Closed Bug 1805699 Opened 1 year ago Closed 1 year ago

CI builds are not using sccache since GCP migration in bug 1792251

Categories

(Thunderbird :: Build Config, defect)

defect

Tracking

(thunderbird_esr102 unaffected, thunderbird110 wontfix)

RESOLVED FIXED
111 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird110 --- wontfix

People

(Reporter: rjl, Assigned: rjl)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached image image.png

Since CI builds moved to GCP, they are not using sccache apparently as its hit rate is 0%.

The graphic from perfherder shows that after October 6, sccache has not been utilized. This aligns with https://treeherder.mozilla.org/jobs?repo=comm-central&revision=245a02b78fb7ce2407b9fd0109bb32a3c348a46f which includes the build jobs moving to GCP.

Depends on: 1805737

sccache.log contains numerous entries like:

[opt_constant_folding.o]: generate_hash_key took 0.097 s
Error getting credentials: didn't get a successful HTTP status, got `403 Forbidden`
Got GCS error: didn't get a successful HTTP status, got `403 Forbidden`
[opt_constant_folding.o]: Cache miss in 0.000 s
[opt_constant_folding.o]: Compiling locally
[opt_constant_folding.o]: Compiled in 0.258 s, storing in cache
handle_client: compile
check_compiler: Supported compiler
parse_arguments: Ok: [..... "glsl-optimizer/src/compiler/glsl/opt_constant_propagation.cpp"]
[opt_constant_propagation.o]: get_cached_or_compile: [..... "glsl-optimizer/src/compiler/glsl/opt_constant_propagation.cpp"]
[opt_constant_folding.o]: Cache write error: failed to put cache entry in GCS
    
    Caused by:
        didn't get a successful HTTP status, got `403 Forbidden`
[opt_constant_folding.o]: Cache write finished in 0.258 s

So sccache is unable to retrieve its credehtials (first 403) which generates a cache miss. Then it fails writing back to the cache resulting in the second 403.

Allows use of different buckets for different build products such as
Thunderbird which does not have access to the Firefox sccache buckets and
should be kept separated.

Set a sccache bucket name prefix for GCP similar to the AWS one.

Assignee: nobody → rob
Attachment #9308351 - Attachment description: WIP: Bug 1805699 - Use a prefix on GCP sccache bucket names. → Bug 1805699 - Use a prefix on GCP sccache bucket names. r=#firefox-build-system-reviewers
Attachment #9308352 - Attachment description: WIP: Bug 1805699 - Set GCP sccache bucket prefix for Thunderbird builds. → Bug 1805699 - Set GCP sccache bucket prefix for Thunderbird builds. r=#thunderbird-reviewers
Attachment #9308352 - Attachment description: Bug 1805699 - Set GCP sccache bucket prefix for Thunderbird builds. r=#thunderbird-reviewers → Bug 1805699 - Set GCP sccache bucket prefix for Thunderbird builds. r=dandarnell

comm-central piece should be safe to land early.

Target Milestone: --- → 111 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/integration/autoland/rev/455aa95a34de
Use a prefix on GCP sccache bucket names. r=firefox-build-system-reviewers,ahochheiden

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/451f2cab264f
Set GCP sccache bucket prefix for Thunderbird builds. r=dandarnell

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: