Skip to content

ci: use poe tasks for model generation in CI workflow#705

Open
vdusek wants to merge 2 commits intomasterfrom
fix/regenerate-models-with-proper-names
Open

ci: use poe tasks for model generation in CI workflow#705
vdusek wants to merge 2 commits intomasterfrom
fix/regenerate-models-with-proper-names

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Apr 7, 2026

Summary

  • Add generate-models-from-file poe task that accepts a local file path, working around datamodel-codegen ignoring --input when url is set in pyproject.toml
  • Update CI workflow to call poe tasks instead of datamodel-codegen directly, ensuring the downloaded artifact from apify-docs PRs is actually used

Test plan

  • Verified locally that poe generate-models-from-file <path> generates models without numbered classes (Error1, Type1, etc.)
  • Verified pyproject.toml is restored after task execution
  • CI workflow runs correctly when triggered from apify-docs PR

🤖 Generated with Claude Code

@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Apr 7, 2026
@vdusek vdusek self-assigned this Apr 7, 2026
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Apr 7, 2026
@github-actions github-actions bot added this to the 138th sprint - Tooling team milestone Apr 7, 2026
@vdusek vdusek force-pushed the fix/regenerate-models-with-proper-names branch from f88f46b to 505e56d Compare April 7, 2026 14:56
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.89%. Comparing base (ad53091) to head (746b9f9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #705      +/-   ##
==========================================
+ Coverage   94.64%   94.89%   +0.24%     
==========================================
  Files          45       45              
  Lines        4405     4405              
==========================================
+ Hits         4169     4180      +11     
+ Misses        236      225      -11     
Flag Coverage Δ
integration 94.89% <ø> (+0.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek changed the title fix: use poe tasks for model generation in CI workflow ci: use poe tasks for model generation in CI workflow Apr 7, 2026
Add `generate-models-from-file` poe task that accepts a local file path,
working around datamodel-codegen's behavior where `url` in pyproject.toml
takes precedence over the `--input` CLI flag.

Update the CI workflow to call poe tasks instead of datamodel-codegen
directly, ensuring the downloaded artifact is actually used when available.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vdusek vdusek force-pushed the fix/regenerate-models-with-proper-names branch from f6571ca to 6def27d Compare April 7, 2026 15:01
Remove `url` from [tool.datamodel-codegen] config and pass it explicitly
via --url/--input in poe tasks. This eliminates the sed workaround in
generate-models-from-file and prevents --input from being silently
ignored when url is set in config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vdusek vdusek force-pushed the fix/regenerate-models-with-proper-names branch from 6def27d to 746b9f9 Compare April 7, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants