Skip to content

docs(ci): correct overstated comments in publish + pin-compat workflows - #2198

Closed
HongmingWang-Rabbit wants to merge 1 commit into
stagingfrom
fix/ci-comment-accuracy
Closed

docs(ci): correct overstated comments in publish + pin-compat workflows#2198
HongmingWang-Rabbit wants to merge 1 commit into
stagingfrom
fix/ci-comment-accuracy

Conversation

@HongmingWang-Rabbit

Copy link
Copy Markdown
Contributor

Summary

Two doc-only fixes from the post-merge review of #2196 + #2197:

  1. publish-runtime.yml — comment claimed "≈ 2 min" but real wall is ~4-5 min (30 attempts × (~3-5s pip install + 4s sleep) on a slow runner). Updated both the comment and the final ::error:: message. Also added a caveat about Fastly content-under-URL staleness (separate from propagation lag — needs a follow-up wheel-hash check).

  2. runtime-pin-compat.yml — comment claimed "byte-identical with publish-runtime.yml's build step" but the temp dirs differ (/tmp/runtime-build here vs ${{ runner.temp }}/runtime-build there). Softened to "same build script with the same args" and noted the smoke import is intentionally narrower than publish's.

No behavior change

Comment-only edits.

🤖 Generated with Claude Code

Two doc-only fixes from the post-merge review of #2196 + #2197.

publish-runtime.yml (cascade pip-resolve probe):

  - Comment said "≈ 2 min" but real wall is 30 attempts × (~3-5s
    pip install + 4s sleep) ≈ 4-5 min on a slow runner. Update both
    the in-loop comment and the final ::error:: message.

  - Add the `--no-cache-dir` caveat to the comment block so the
    next reader doesn't assume this probe defends against ALL Fastly
    failure modes. It defends against propagation lag (the cascade-
    too-fast case it was added to fix); it does NOT defend against
    Fastly serving stale CONTENT under the new version's URL — that's
    a separate PyPI-corruption mode that needs a wheel-hash check
    against the just-uploaded dist (tracked as a follow-up).

runtime-pin-compat.yml (PR-built wheel job):

  - Comment said "byte-identical with publish-runtime.yml's build
    step" but the temp dirs differ (`/tmp/runtime-build` here vs
    `${{ runner.temp }}/runtime-build` there — they coincide on
    ubuntu-latest but call sites aren't identical). Soften to "same
    build script with the same args" and explicitly call out that
    the smoke import is intentionally narrower than publish's full
    invariant battery.

No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@HongmingWang-Rabbit
HongmingWang-Rabbit added this pull request to the merge queue Apr 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Apr 28, 2026
@HongmingWang-Rabbit

Copy link
Copy Markdown
Contributor Author

Obsoleted by #2199 + #2200 which both substantially restructured the same comment regions:

Both target comments are now correct on staging without this PR.

@HongmingWang-Rabbit
HongmingWang-Rabbit deleted the fix/ci-comment-accuracy branch April 28, 2026 18:55
HongmingWang-Rabbit pushed a commit that referenced this pull request Jun 12, 2026
)

The canvas-readiness loop added in PR #2195 captured the curl status
into CODE with `CODE=$(curl -s -o /dev/null -w '%{http_code}' ...
|| echo 000)`. That shape is exactly the BAD_STATUS_CAPTURE pattern
that .gitea/scripts/lint-curl-status-capture.py rejects — curl -w can
write a status to stdout before the || echo 000 fallback fires,
producing polluted values such as a concatenated status string rather
than one code.

Adopt the lint-approved tempfile pattern already used by
e2e-staging-external.yml (set +e / curl -w '...' > file / set -e /
cat file || echo '000') so the captured value is always a clean HTTP
code or '000'.

Closes #2198 (main-red after #2195).
Closes #2199 (auto-filed main-red watchdog, root cause identical to #2198).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
HongmingWang-Rabbit pushed a commit that referenced this pull request Jun 12, 2026
…empfile (resolves #2198, #2199)' (#2201) from fix/e2e-chat-readiness-curl-tempfile-2198 into main
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