Skip to content

fix(ci): reduce staging validation log output#29

Merged
ailuckly merged 1 commit into
developfrom
fix/staging-validation-log-noise
May 7, 2026
Merged

fix(ci): reduce staging validation log output#29
ailuckly merged 1 commit into
developfrom
fix/staging-validation-log-noise

Conversation

@ailuckly
Copy link
Copy Markdown
Owner

@ailuckly ailuckly commented May 7, 2026

Summary

  • Stop printing successful staging health and character-list response bodies into GitHub Actions logs.
  • Keep the staging character list smoke check strict by validating the API response code.
  • Print only concise ok messages on successful validation.

Why

The deploy was successful, but scripts/validate-staging-host.sh used curl -fsS without -o, so the full /api/open/character/list JSON response was written to the Actions log. That is noisy and can expose unnecessary public data/URLs.

Verification

  • bash -n scripts/validate-staging-host.sh
  • git diff --check
  • Simulated staging validation with fake docker and curl; output only showed compose status plus concise ok lines.

Suppress successful staging health and character-list response bodies in Actions logs.

The character smoke still validates the API code and fails on unexpected responses, but no longer prints the full public character list on success.

Verification:

- bash -n scripts/validate-staging-host.sh

- git diff --check

- simulated staging validation with fake docker/curl commands
Copilot AI review requested due to automatic review settings May 7, 2026 11:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Reduces noise (and potential data exposure) in GitHub Actions staging validation by suppressing successful curl response bodies and replacing them with concise ok status lines, while adding an API-code check for the character list smoke test.

Changes:

  • Suppress /api/health response body output and print a concise success message.
  • Capture /api/open/character/list response to a temp file instead of logging it.
  • Add a smoke validation step that checks the API response code and prints truncated output only on failure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

echo "==> staging character list smoke"
curl -fsS "http://127.0.0.1:9009/api/open/character/list?pageNum=1&pageSize=2"
curl -fsS -o "$CHARACTER_LIST_RESPONSE" "http://127.0.0.1:9009/api/open/character/list?pageNum=1&pageSize=2"
if ! grep -q '"code":200' "$CHARACTER_LIST_RESPONSE"; then
@ailuckly ailuckly merged commit 22fc8bd into develop May 7, 2026
9 checks passed
@ailuckly ailuckly deleted the fix/staging-validation-log-noise branch May 7, 2026 12:03
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.

2 participants