Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build fails with "sending never-build-twice request failed" #508

Closed
wants to merge 1 commit into from

Conversation

RomainMuller
Copy link
Contributor

The never-build-twice feature assumed that it is not, ever, possible for a single build to result in multiple different builds of the same package with different build IDs. #507 suggest this might actually be a valid outcome (the exact details of why/how are not clear yet).

This PR removes that assumption and keeps separate cache entries for each individual build ID in order to reduce the risk of breaking the build.

Fixes #507

The never-build-twice feature assumed that it is not, ever, possible for
a single build to result in multiple different builds of the same
package with different build IDs. #507 suggest this might actually be a
valid outcome (the exact details of why/how are not clear yet).

This PR removes that assumption and keeps separate cache entries for
each individual build ID in order to reduce the risk of breaking the
build.

Fixes #507
@RomainMuller RomainMuller requested a review from a team as a code owner January 24, 2025 11:07
@RomainMuller RomainMuller marked this pull request as draft January 24, 2025 12:13
@RomainMuller RomainMuller deleted the romain.marcadier/nbt-build-id branch January 24, 2025 12:49
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 72.05%. Comparing base (2acdb1b) to head (b50f449).

Files with missing lines Patch % Lines
internal/jobserver/nbt/nbt.go 70.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
- Coverage   72.15%   72.05%   -0.11%     
==========================================
  Files         104      104              
  Lines        5402     5407       +5     
==========================================
- Hits         3898     3896       -2     
- Misses       1044     1048       +4     
- Partials      460      463       +3     
Components Coverage Δ
Generators 83.23% <ø> (ø)
Instruments ∅ <ø> (∅)
Go Driver 77.58% <ø> (-0.72%) ⬇️
Toolexec Driver 73.65% <100.00%> (+0.02%) ⬆️
Aspects 79.05% <ø> (ø)
Injector 78.26% <ø> (ø)
Job Server 70.15% <70.00%> (-0.12%) ⬇️
Other 72.05% <72.72%> (-0.11%) ⬇️
Files with missing lines Coverage Δ
internal/toolexec/proxy/compile.go 67.44% <100.00%> (+0.25%) ⬆️
internal/jobserver/nbt/nbt.go 81.37% <70.00%> (-1.29%) ⬇️

... and 2 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] builds fail with sending never-build-twice request: mismatched build ID for ...
1 participant