Skip to content

ci: fix Validate job (generated client formatting + ty version pin) - #67

Merged
JacobCoffee merged 3 commits into
mainfrom
fix/validate-ci-pretalx-format
Oct 11, 2026
Merged

JacobCoffee merged 3 commits into
mainfrom
fix/validate-ci-pretalx-format

Conversation

@JacobCoffee

Copy link
Copy Markdown
Owner

What

  • ruff format the generated http_client.py — the pretalx codegen output had long, un-wrapped function signatures that failed both ruff check (E501) and ruff format --check.
  • Run ty via uv run instead of uvx in the Validate job, so it uses the project-pinned version from uv.lock instead of silently fetching whatever the latest ty alpha release is. The untracked uvx invocation had drifted ~70 releases ahead of the pinned version and started flagging QuerySet[Model] annotations (a normal Django-without-stubs pattern) as errors.
  • Added a ruff format/ruff check --fix step to the pretalx-codegen Makefile target so the next scheduled schema sync doesn't regenerate unformatted code and break CI again.

Why

main CI has been red since the last pretalx schema sync (#38) merged — the Validate job fails on ruff check due to the unformatted generated client, and would also fail on ty check because of the version drift described above.

Verification

  • uv run ruff check → all checks passed
  • uv run ruff format --check → all files formatted
  • uv run ty check src packages/pretalx-client/src → exit 0 (warnings only, matching existing [tool.ty.rules] policy)
  • uv run pytest packages/pretalx-client/tests/ → 231 passed, 4 skipped

…ject version

- ruff format the generated http_client.py (long codegen'd signatures
  broke E501 and format check)
- run ty via 'uv run' (project-pinned version) instead of 'uvx ty',
  which silently pulled the latest alpha and introduced unrelated
  invalid-type-form errors
- make the pretalx codegen pipeline run ruff format/fix on its output
  so future schema syncs don't regenerate unformatted code
Copilot AI balanced review requested due to automatic review settings October 11, 2026 01:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T01:17:40.056173Z 18f07e0 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

PR #59 (0010_add_qbo_fields) and PR #60 (0010_alter_conference_options)
both branched off 0009, leaving two leaf migrations in the
program_conference app. This broke makemigrations/migrate on a clean
database and failed the Test Smoke job with 'Conflicting migrations
detected'.
Copilot AI balanced review requested due to automatic review settings October 11, 2026 01:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

badge.file.read() opened the underlying storage file but never closed
it, leaving the descriptor to be closed by GC. On CPython 3.14 this
surfaces as a PytestUnraisableExceptionWarning during an unrelated
test's teardown, failing Test Smoke non-deterministically.
Copilot AI balanced review requested due to automatic review settings October 11, 2026 01:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JacobCoffee
JacobCoffee merged commit 1a40d9f into main Oct 11, 2026
14 of 16 checks passed
@JacobCoffee
JacobCoffee deleted the fix/validate-ci-pretalx-format branch October 11, 2026 01:37
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