Skip to content

Fix sharding in hwci#1124

Merged
ia0 merged 1 commit into
google:mainfrom
ia0:shard
Jul 2, 2026
Merged

Fix sharding in hwci#1124
ia0 merged 1 commit into
google:mainfrom
ia0:shard

Conversation

@ia0

@ia0 ia0 commented Jul 2, 2026

Copy link
Copy Markdown
Member

No description provided.

@ia0 ia0 added the for:maintainability Improves maintainers life label Jul 2, 2026

@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 moves the sharding initialization (shard_init) and completion (shard_done) calls in scripts/hwci.sh from the run function to the top-level script execution block. However, this change causes the global _shard_index variable to persist across multiple run invocations, which can lead to inconsistent test-to-shard assignments and increased compilation times in CI. It is recommended to reset _shard_index to -1 at the start of each run call to maintain sharding consistency.

Comment thread scripts/hwci.sh
@ia0 ia0 merged commit 84a2859 into google:main Jul 2, 2026
74 of 81 checks passed
@ia0 ia0 deleted the shard branch July 2, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

for:maintainability Improves maintainers life

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants