Skip to content

minimize chance of infinite loop - #4456

Closed
derrickaw wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
derrickaw:20261020_fixRelease
Closed

derrickaw wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
derrickaw:20261020_fixRelease

Conversation

@derrickaw

Copy link
Copy Markdown
Contributor

I think the release workflow is hitting an infinite loop of trying to generate a random identifier.

@derrickaw

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a retry mechanism in the random DDL generator to prevent infinite loops when generating unique identifiers by incrementing the identifier length after 10 failed attempts. The reviewer suggests capping this length increment to prevent exceeding database dialect limits (63 characters for PostgreSQL and 128 for Google Standard SQL), which would otherwise result in invalid DDL statements.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.03%. Comparing base (08daa78) to head (8a5bdd8).

Additional details and impacted files
@@            Coverage Diff             @@
##               main    #4456    +/-   ##
==========================================
  Coverage     57.03%   57.03%            
+ Complexity     8035     7580   -455     
==========================================
  Files          1156     1156            
  Lines         73754    73754            
  Branches       8698     8698            
==========================================
+ Hits          42065    42066     +1     
  Misses        28889    28889            
+ Partials       2800     2799     -1     
Components Coverage Δ
spanner-templates 84.57% <ø> (-0.01%) ⬇️
spanner-import-export 72.16% <ø> (+0.01%) ⬆️
spanner-live-forward-migration 89.02% <ø> (-0.02%) ⬇️
spanner-live-reverse-replication 80.93% <ø> (-0.02%) ⬇️
spanner-bulk-migration 89.01% <ø> (-0.01%) ⬇️
gcs-spanner-dv 88.07% <ø> (-0.02%) ⬇️
see 3 files with indirect coverage changes
🚀 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.

@derrickaw

Copy link
Copy Markdown
Contributor Author

covered in 4472

@derrickaw derrickaw closed this Oct 23, 2026
@derrickaw
derrickaw deleted the 20261020_fixRelease branch October 23, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant