Skip to content

ci: stabilize CI#7

Closed
mrhpython wants to merge 1 commit intomainfrom
chore/ci-stabilize-20250903222553Z
Closed

ci: stabilize CI#7
mrhpython wants to merge 1 commit intomainfrom
chore/ci-stabilize-20250903222553Z

Conversation

@mrhpython
Copy link
Copy Markdown
Owner

Removes job-level if filters (always create check contexts) and adds a robust /health wait loop.
This should resolve 0s failures and ensure required checks report correctly.

@mrhpython mrhpython enabled auto-merge (squash) September 3, 2025 22:26
Copy link
Copy Markdown

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

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 suggestions.

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, or 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 fix this CI failure" or "@codex address that feedback".

Comment thread .github/workflows/ci.yml
Comment on lines 22 to +30
- name: API health (offline)
run: |
DEV_NO_API=1 node backend/index.cjs &
echo $! > api.pid
sleep 1
curl -fsS http://127.0.0.1:8790/health | tee health.json
DEV_NO_API=1 node backend/index.cjs & echo $! > api.pid
for i in {1..20}; do
if curl -fsS http://127.0.0.1:8790/health >/dev/null; then
curl -fsS http://127.0.0.1:8790/health | tee health.json; break
fi
sleep 0.3
done
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] Fail health step when /health never responds

The new wait loop swallows all curl failures and never asserts that the API became healthy. With set -e the curl inside the if is allowed to fail without aborting the step, and after the loop there is no check of whether a successful request occurred. If the server process starts but never serves /health (e.g., it hangs during boot or the endpoint regresses), this step will exit 0 and the CI job will succeed without ever verifying the API. The previous single curl would fail in that situation. Consider tracking success in the loop and exit 1 after the loop if no healthy response was observed.

Useful? React with 👍 / 👎.

@mrhpython mrhpython disabled auto-merge September 8, 2025 21:23
@mrhpython mrhpython enabled auto-merge (squash) September 8, 2025 21:23
@mrhpython mrhpython disabled auto-merge September 8, 2025 21:24
@mrhpython mrhpython closed this Sep 8, 2025
@mrhpython mrhpython deleted the chore/ci-stabilize-20250903222553Z branch September 24, 2025 16:40
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