Skip to content

Improve CI diagnostics for failing pytest runs - #36

Merged
nova-rey merged 1 commit into
APIfrom
codex/update-ci-to-capture-failure-diagnostics
Oct 22, 2025
Merged

nova-rey merged 1 commit into
APIfrom
codex/update-ci-to-capture-failure-diagnostics

Conversation

@nova-rey

Copy link
Copy Markdown
Owner

Summary

  • rerun the first failing pytest case with verbose flags when the quiet run fails
  • capture environment details and pip freeze alongside the quiet and verbose logs

Testing

  • not run (workflow change)

https://chatgpt.com/codex/tasks/task_e_68f96c485da0832885953881e2852079

@nova-rey
nova-rey merged commit a503061 into API Oct 22, 2025
2 of 4 checks passed
@nova-rey
nova-rey deleted the codex/update-ci-to-capture-failure-diagnostics branch October 22, 2025 23:45

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

ℹ️ 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 .github/workflows/ci.yml
Comment on lines +69 to +77
- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
with:
name: pytest-logs
path: |
reports/pytest_quiet.log
reports/pytest_verbose.log
reports/pip-freeze.txt

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 Badge Guard artifact upload when optional logs are missing

The artifact step runs unconditionally via if: always() yet requests reports/pytest_verbose.log and reports/pip-freeze.txt. These files are only created when the rerun step executes, so any successful test run—or a repo without tests—will leave them absent. actions/upload-artifact@v4 fails the job by default when a requested path does not exist, causing the workflow to error even though tests passed. Gate the upload to failing runs or set if-no-files-found: ignore for optional files so a clean test run does not report failure.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant