Skip to content

fix: guard integration test resource names against 63-char API limit#729

Merged
vdusek merged 2 commits intomasterfrom
fix/flaky-schedule-integration-test
Apr 16, 2026
Merged

fix: guard integration test resource names against 63-char API limit#729
vdusek merged 2 commits intomasterfrom
fix/flaky-schedule-integration-test

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Apr 15, 2026

Summary

  • Adds a 63-character API name limit guard to get_random_resource_name, following the approach from apify-sdk-python
  • Fixes flaky test_schedule_create_and_get[async] caused by name collisions with stale schedules from cancelled CI runs

Failed CI runs

🤖 Generated with Claude Code

The schedule integration test was flaky due to name collisions with
stale resources left over from previous CI runs that were cancelled
before cleanup. Increasing the random suffix from 5 to 16 characters
makes such collisions virtually impossible.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@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 15, 2026
@vdusek vdusek self-assigned this Apr 15, 2026
@vdusek vdusek requested a review from Pijukatel April 15, 2026 12:42
@github-actions github-actions bot added this to the 138th sprint - Tooling team milestone Apr 15, 2026
@vdusek vdusek changed the title fix: increase random suffix length in integration test resource names test: Increase random suffix length in integration test resource names Apr 15, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.44%. Comparing base (586d15e) to head (cb6fe9b).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #729      +/-   ##
==========================================
+ Coverage   95.28%   95.44%   +0.15%     
==========================================
  Files          45       45              
  Lines        5114     5115       +1     
==========================================
+ Hits         4873     4882       +9     
+ Misses        241      233       -8     
Flag Coverage Δ
integration 95.44% <ø> (+0.15%) ⬆️

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.

Comment thread tests/integration/_utils.py Outdated
Adopt the approach from apify-sdk-python that validates the generated
resource name won't exceed the API limit of 63 characters.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vdusek vdusek requested a review from Pijukatel April 16, 2026 07:10
@vdusek vdusek changed the title test: Increase random suffix length in integration test resource names fix: guard integration test resource names against 63-char API limit Apr 16, 2026
@vdusek vdusek merged commit 47a7a69 into master Apr 16, 2026
26 checks passed
@vdusek vdusek deleted the fix/flaky-schedule-integration-test branch April 16, 2026 07:24
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.

3 participants