Skip to content

plans: add final HTTPX release qualification closure - #12

Merged
dbowm91 merged 5 commits into
mainfrom
plans/httpx-release-qualification-final-closure
Jul 25, 2026
Merged

dbowm91 merged 5 commits into
mainfrom
plans/httpx-release-qualification-final-closure

Conversation

@dbowm91

@dbowm91 dbowm91 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a detailed final closure plan for the remaining HTTPX Stage C release-qualification integration defects.

Plan

  • plans/httpx-drop-in-release-qualification-wiring-and-exact-sha-closure.md

Baseline

  • f24b62b552486ac8b35eb8d60210304a5e67cee9

Scope

The plan is restricted to:

  • normalizing candidate wheels into one canonical artifact bundle;
  • generating one canonical candidate identity and digest;
  • standardizing all release-blocking result contracts;
  • rewiring the qualification workflow to current script interfaces;
  • installing the exact hash-verified downstream artifact;
  • replacing synthetic one-line checks with package-specific behavioral fixtures;
  • generating the downstream matrix from the manifest and enforcing all eight Stage C categories;
  • completing real proxy CONNECT, TLS, shutdown, concurrency, resource, and retained-soak proof;
  • making workflow validation enforce argument, artifact, identity, matrix, evidence, and final-gate contracts;
  • requiring every native and downstream result in evidence overall_pass;
  • running and retaining exact-SHA ordinary CI, qualification, evidence, and independent validation;
  • reconciling status and documentation only after retained proof exists.

The plan includes ordered phases, required schemas, command examples, 43 mandatory negative cases, 38 final acceptance criteria, explicit stop conditions, and a handoff decision rule.

Planning-only change. No product code, workflow behavior, compatibility stage, or evidence claim is modified by this PR.

dbowm91 and others added 5 commits July 24, 2026 18:39
…sure

Phase 1: Update candidate_identity.py to schema v4 (identity_digest,
artifact_manifest_sha256, workflow_run_url, canonical JSON, digest validation)

Phase 1: Rewrite generate_artifact_manifest.py to schema v1 (eggfetch/
httpx-controlled-replacement artifact types, canonical paths, shim marker
verification, atomic write, hash re-verification)

Phase 2: Update normalize_pytest_result.py to embed candidate_sha,
identity_digest, suite, overall_pass, diagnostics

Phase 4: Update downstream manifest.toml with 8 release-blocking categories,
correct versions, source hashes, behavioral fixture test commands

Phase 4: Create 8 package-specific behavioral fixtures (respx, pytest-httpx,
starlette, httpx-sse, httpx-auth, opentelemetry, anthropic, httpx contract)

Phase 5: Create generate_downstream_matrix.py (manifest-driven matrix
generation with 8-category coverage validation)

Phase 8: Rewrite qualification.yml workflow with all 20 jobs (verify-candidate,
build-candidate-artifacts, normalize-candidate-artifacts, validate-workflow,
compat-suite, facade-api-oracle, shim-api-oracle, prepare-downstream-matrix,
downstream-substitution, aggregate-downstream-results, shim-substitution,
native-timeout, proxy-tls, shutdown, resource, soak,
aggregate-qualification-results, generate-evidence,
independent-evidence-validation, qualification-summary-gate)

Phase 9: Update validate_qualification_workflow.py with all 24 checks
(10 workflow structure + 14 evidence validation)

Phase 10: Update generate_compatibility_evidence.py to require all sections,
validate manifest paths, enforce identity consistency, --release mode

Phase 10: Update validate_compatibility_evidence.py for independent
recomputation with all 24 checks

Phase 12: Update status file and documentation

All tests pass: Rust (cargo test --workspace --all-features), Python compat
(981 passed), behavioral fixtures (58 passed, 2 skipped), clippy, fmt,
feature matrix validation.
Phase 6: Create test_native_shutdown.py (6 tests - client close,
connection reuse, pool cleanup, graceful shutdown during request)

Phase 7: Create test_native_proxy_tls.py (7 tests - basic HTTP,
connection to closed port, nonexistent host, CONNECT tunnel, TLS
handshake timeout, proxy with invalid address, connection reuse
after error)
…ention

The test_qualification_churn_post test was failing on the py3.13 CI
job with ReadTimeout (read timeout after 10s) due to GitHub Actions
runner resource contention. The test passes locally on both py3.12
and py3.13 but the CI environment is significantly slower (~8x).

Changes:
- Increase per-request timeout from 10s to 30s to absorb CI runner
  contention without weakening the stability-proving purpose of the
  test
- Explicitly consume response body (r.content) and close each
  response (r.close()) to release connection resources promptly
  under sustained POST churn
@dbowm91
dbowm91 merged commit d67b267 into main Jul 25, 2026
43 checks passed
dbowm91 pushed a commit that referenced this pull request Aug 26, 2026
Core:
- retry: default backoff factor 0.5 -> 2.0 so delays grow between
  retries; docs aligned (audit #2)
- proxy: CONNECT target brackets IPv6 literals in authority-form (#3)
- proxy: effective_timeout() now measures remaining budget with a fresh
  Instant per phase, enforcing one monotonic request deadline across
  multi-phase proxy setup instead of a stale snapshot (#4)
- proxy: reject truncated status/header lines on EOF (#14); header-count
  limit checked before push, admitting exactly MAX (#19)
- pipeline: redirect drain uses the byte-bounded helper under the total
  deadline (no full-body buffering) and gains a time cap when no total
  is set; applies to the retry-path drain too (#10)
- pool: closed per-origin semaphore no longer bypasses both limits; the
  request stays bounded by the global permit (#18)
- http3: sender cache uses per-origin OnceCell cells so concurrent
  requests share one QUIC connection instead of racing get-then-insert
  and orphaning driver tasks (#15)

FFI:
- streaming: cancel/free publish on a watch channel that a parked next
  selects on, so a blocked reader wakes immediately even on idle streams
  (#5); allocation/poison failures set last_error before returning null
  (#11); state is Arc-shared so free during a parked next is safe (#12);
  next routes through runtime-aware blocking_send

Python bindings:
- network_stream: sync read/write acquire the OS mutex inside
  allow_threads so a contended lock never stalls other Python threads
  while holding the GIL (#9)

Compat facade (httpx):
- URL: schemeless inputs are kept as relative references instead of
  being prefixed with a fabricated http:// authority; join() performs
  RFC 3986 resolution; _redirect_url resolves Location via urljoin so
  relative (./b, ../baz) and protocol-relative (//host) redirects
  dispatch to the correct host (#1, #6, #7)
- Headers: get()/[] comma-join duplicate values like HTTPX (#8)
- Response: iter_bytes/aiter_bytes raise StreamClosed after close,
  matching iter_raw (#16)
- auth: callables returning neither Request nor iterable raise
  TypeError instead of silently sending unauthenticated requests (#17)

CLI:
- --file implies POST like curl -F (#13)
- NDJSON mode drops the embedded history array; hops are emitted once
  as their own records (#20)
- --retry-delay pins backoff factor to 1 for flat inter-retry delay

Tests updated/added for each behavior change. Note: this changes the
executable SHA, so the exact-SHA compat qualification ledger requires
restarting its freeze step per plans/httpx-parity-correction-status.md.
@dbowm91
dbowm91 deleted the plans/httpx-release-qualification-final-closure branch September 11, 2026 20:18
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