Skip to content

feat: validate the format of run_name - #1292

Open
vdusek wants to merge 2 commits into
feat/child-run-wait-for-resourcesfrom
feat/validate-child-run-name
Open

vdusek wants to merge 2 commits into
feat/child-run-wait-for-resourcesfrom
feat/validate-child-run-name

Conversation

@vdusek

@vdusek vdusek commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Part 7 of the Actor composability stack, stacked on #1273.

Actor.start, Actor.call, Actor.start_task, and Actor.call_task now raise a ValueError for a run_name that is not 1 to 63 letters, digits, hyphens, or underscores ([a-zA-Z0-9_-]{1,63}). No run starts.

The platform may store run names later, for example for an idempotency key on run start (apify/apify-core#31126) or a child runs endpoint. In the backend review, Matěj noted that the API would need to restrict the characters (. is a problem in MongoDB) and the length. Restricting the format after a stable release would be a breaking change, so the SDK validates it from the start. The 63-character limit matches the limit for storage names.

The JS SDK does not validate runName yet, so it needs the same rule.

The title has no !, because named child runs are experimental.

✍️ Drafted by 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 Nov 30, 2026
@vdusek vdusek self-assigned this Nov 30, 2026
@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (feat/child-run-wait-for-resources@9b50a1b). Learn more about missing BASE report.

Additional details and impacted files
@@                         Coverage Diff                          @@
##             feat/child-run-wait-for-resources    #1292   +/-   ##
====================================================================
  Coverage                                     ?   94.13%           
====================================================================
  Files                                        ?       54           
  Lines                                        ?     4247           
  Branches                                     ?        0           
====================================================================
  Hits                                         ?     3998           
  Misses                                       ?      249           
  Partials                                     ?        0           
Flag Coverage Δ
e2e 31.08% <60.00%> (?)
integration 49.65% <60.00%> (?)
unit 91.61% <100.00%> (?)

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

☔ View full report in Codecov by Harness.
📢 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 added this pull request to stack #1286 November 30, 2026 13:22
@vdusek
vdusek marked this pull request as ready for review November 30, 2026 13:31
@vdusek
vdusek requested review from Pijukatel and barjin November 30, 2026 13:31

This branch has not been deployed

No deployments
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.

1 participant