Closed Bug 1596479 Opened 6 years ago Closed 6 years ago

hgweb private mirrors not receiving any traffic

Categories

(Firefox Build System :: Task Configuration, defect)

defect
Not set
normal

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: sheehan, Assigned: sheehan)

References

Details

Attachments

(1 file)

I just noticed the private hgweb mirrors haven't been receiving any traffic for a few days. Scanning some logs, it looks like the change to TASKCLUSTER_WORKER_LOCATION environment variable was made and run-task was not updated accordingly.

I'll need to make some changes to run-task to take the new environment variable into account.

Depends on: 1596483

Previously we inspected the TASKCLUSTER_WORKER_GROUP environment variable,
which now only returns the cloud provider of the worker. This commit teaches
run-task to instead use the TASKCLUSTER_WORKER_LOCATION to gather
information about the location of the worker. We also use the extra data
about the cloud provider for the worker to construct a key for use in the
config, in the form cloudprovider/region, so GCP hgweb mirrors can be
amended to the hgmointernal config when they are ready.

While we're here we make the error handling for a missing environment
variable slightly nicer.

Pushed by cosheehan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/efb782988830 teach `run-task` to get worker location from `TASKCLUSTER_WORKER_LOCATION` environment var r=tomprince
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

Based on the RFC, the only key that is guaranteed to be present is cloud, and that the rest are dependent on that value. I'm not sure how the various non gcp/aws workers are configured to report, currently.

Status: RESOLVED → REOPENED
Flags: needinfo?(sheehan)
Resolution: FIXED → ---
Target Milestone: mozilla72 → ---
Backout by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a1338baeaa0a Backed out changeset efb782988830 for wrench bustage (KeyError: 'region'). CLOSED TREE
Backout by cbrindusan@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/69a232cb6935 Backed out changeset efb782988830 for wrench bustage (KeyError: 'region'). CLOSED TREE

Thanks for the backout - it seems I misunderstood the JSON structure as Tom predicted in comment 4. I'll fix this up today.

Flags: needinfo?(sheehan)

(In reply to Connor Sheehan [:sheehan] from comment #8)

Thanks for the backout - it seems I misunderstood the JSON structure as Tom predicted in comment 4. I'll fix this up today.

Not so much as predicted, but diagnosed after seeing the failure and suggesting a backout.

Pushed by cosheehan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5402371c61f7 teach `run-task` to get worker location from `TASKCLUSTER_WORKER_LOCATION` environment var r=tomprince
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: