Skip to content

Restore --no-verify CLI flag - #1186

Merged
Kludex merged 4 commits into
mainfrom
codex/restore-no-verify
Sep 3, 2026
Merged

Kludex merged 4 commits into
mainfrom
codex/restore-no-verify

Conversation

@Kludex

@Kludex Kludex commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Preserve the existing --no-verify CLI flag while adding the explicit --verify counterpart. Update the custom help output and cover the parsed values for both flags.

Tests

  • scripts/test -q
  • uv run pytest tests/httpx2/test_main.py -q

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

@Kludex
Kludex deployed to cloudflare September 3, 2026 10:29 — with GitHub Actions Active
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-03T10:31:53.629361Z 4d307da PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

@codspeed

codspeed Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 17 untouched benchmarks
⏩ 7 skipped benchmarks1


Comparing codex/restore-no-verify (eaa8f15) with main (c9b1d33)

Open in CodSpeed

Footnotes

  1. 7 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@Kludex
Kludex deployed to cloudflare September 3, 2026 10:30 — with GitHub Actions Active

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d307da905

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/httpx2/httpx2/_main.py
@Kludex
Kludex deployed to cloudflare September 3, 2026 10:52 — with GitHub Actions Active
@Kludex
Kludex deployed to cloudflare September 3, 2026 10:55 — with GitHub Actions Active
@Kludex
Kludex enabled auto-merge (squash) September 3, 2026 10:56

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="tests/httpx2/test_main.py">

<violation number="1" location="tests/httpx2/test_main.py:40">
P2: The new test only asserts that click parses `verify` into the expected boolean. The removed `test_no_verify` sent a real HTTPS request with `--no-verify` to a self-signed server and asserted `exit_code == 0`, which was the only coverage proving the flag actually disables verification end-to-end. Restore an integration test (e.g. invoking `main` against an `https_server` with `--no-verify` and asserting success) so a wiring or SSL-path regression in the very flag this PR restores is still caught.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

Comment thread tests/httpx2/test_main.py
(["--no-verify"], False),
],
)
def test_verify_option(option: list[str], expected: bool) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The new test only asserts that click parses verify into the expected boolean. The removed test_no_verify sent a real HTTPS request with --no-verify to a self-signed server and asserted exit_code == 0, which was the only coverage proving the flag actually disables verification end-to-end. Restore an integration test (e.g. invoking main against an https_server with --no-verify and asserting success) so a wiring or SSL-path regression in the very flag this PR restores is still caught.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At tests/httpx2/test_main.py, line 40:

<comment>The new test only asserts that click parses `verify` into the expected boolean. The removed `test_no_verify` sent a real HTTPS request with `--no-verify` to a self-signed server and asserted `exit_code == 0`, which was the only coverage proving the flag actually disables verification end-to-end. Restore an integration test (e.g. invoking `main` against an `https_server` with `--no-verify` and asserting success) so a wiring or SSL-path regression in the very flag this PR restores is still caught.</comment>

<file context>
@@ -28,10 +29,17 @@ def test_help() -> None:
+        (["--no-verify"], False),
+    ],
+)
+def test_verify_option(option: list[str], expected: bool) -> None:
+    with main.make_context("httpx2", ["https://example.com", *option]) as context:
+        assert context.params["verify"] is expected
</file context>

@Kludex
Kludex merged commit 62e0827 into main Sep 3, 2026
19 checks passed
@Kludex
Kludex deleted the codex/restore-no-verify branch September 3, 2026 10:58

This branch was successfully deployed

1 active deployment
cloudflare — eaa8f156 Deployed Sep 3, 2026 by Kludex via Docs preview (Cloudflare) #805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant