Closed Bug 2054234 Opened 4 months ago Closed 4 months ago

lando does not land code changes as pushes to firefox-autoland, firefox-main/mozilla-central etc.

Categories

(Conduit :: Lando, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: sheehan)

References

Details

Lando does not land changes to git repositories (including for Nightly, Beta, ...) because it hit an issue with thunderbird-desktop-esr153: https://lando.moz.tools/api/jobs/11515/

`Temporary error (<class 'lando.main.scm.exceptions.SCMInternalServerError'>) encountered while pulling from tree: thunderbird-desktop-esr153, pull path: https://github.com/thunderbird/thunderbird-desktop.git: Error running git command; sanitised_command=['git', 'reset', '--hard', 'origin/esr153'], path='/files/repos/thunderbird-desktop-esr153', fatal: ambiguous argument 'origin/esr153': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Flags: needinfo?(zeid)
Flags: needinfo?(omehani)

Hi @aryx

Are there any updates regarding this? Thanks.

Flags: needinfo?(aryx.bugmail)

Are there any updates regarding this?

Nothing from my end.

Flags: needinfo?(aryx.bugmail)

Cancelled the offending automation job 11510, as well as job 11511. Both were submitted against thunderbird-desktop-esr153. I logged into the node and ran:

app@lando-automationworkergit-0:/files/repos/thunderbird-desktop-esr153$ git fetch origin
remote: Enumerating objects: 3181, done.
remote: Counting objects: 100% (896/896), done.
remote: Compressing objects: 100% (226/226), done.
remote: Total 3181 (delta 699), reused 679 (delta 669), pack-reused 2285 (from 2)
Receiving objects: 100% (3181/3181), 12.06 MiB | 25.94 MiB/s, done.
Resolving deltas: 100% (1449/1449), completed with 214 local objects.
From https://github.com/thunderbird/thunderbird-desktop
   8750eae2ee6..9a24b5088b5  main       -> origin/main
   7b440e7ff80..53cb3b0404b  beta       -> origin/beta
   2a9755beb98..0234f0d2df8  esr140     -> origin/esr140
 * [new branch]              esr153     -> origin/esr153
   f82a2d9c771..4181ca90e7c  release    -> origin/release
 * [new tag]                 THUNDERBIRD_140_12_1esr_BUILD1  -> THUNDERBIRD_140_12_1esr_BUILD1
 * [new tag]                 THUNDERBIRD_140_12_1esr_RELEASE -> THUNDERBIRD_140_12_1esr_RELEASE
 * [new tag]                 THUNDERBIRD_152_0_1_BUILD1      -> THUNDERBIRD_152_0_1_BUILD1
 * [new tag]                 THUNDERBIRD_152_0_1_BUILD2      -> THUNDERBIRD_152_0_1_BUILD2
 * [new tag]                 THUNDERBIRD_152_0_1_BUILD3      -> THUNDERBIRD_152_0_1_BUILD3
 * [new tag]                 THUNDERBIRD_152_0_1_RELEASE     -> THUNDERBIRD_152_0_1_RELEASE
 * [new tag]                 THUNDERBIRD_153_0b4_BUILD1      -> THUNDERBIRD_153_0b4_BUILD1
 * [new tag]                 THUNDERBIRD_153_0b4_BUILD2      -> THUNDERBIRD_153_0b4_BUILD2
 * [new tag]                 THUNDERBIRD_153_0b4_RELEASE     -> THUNDERBIRD_153_0b4_RELEASE
 * [new tag]                 THUNDERBIRD_153_0b5_BUILD1      -> THUNDERBIRD_153_0b5_BUILD1
 * [new tag]                 THUNDERBIRD_153_0b5_RELEASE     -> THUNDERBIRD_153_0b5_RELEASE
 * [new tag]                 THUNDERBIRD_153_0b6_BUILD1      -> THUNDERBIRD_153_0b6_BUILD1
 * [new tag]                 THUNDERBIRD_153_0b6_RELEASE     -> THUNDERBIRD_153_0b6_RELEASE
 * [new tag]                 THUNDERBIRD_153_0b7_BUILD1      -> THUNDERBIRD_153_0b7_BUILD1
 * [new tag]                 THUNDERBIRD_153_0b7_RELEASE     -> THUNDERBIRD_153_0b7_RELEASE

Note that the command output now shows esr153 as a newly added branch. It's not clear why that branch wasn't available on the worker before. I think this should resolve this in the short term until we figure out why the branch wasn't added automatically. The remaining queue of automation jobs have been processed.

We should look at implementing bug 2021999, which would have prevented this outage.

See Also: → 2021999
Assignee: nobody → sheehan
Status: NEW → RESOLVED
Closed: 4 months ago
Flags: needinfo?(zeid)
Flags: needinfo?(omehani)
Resolution: --- → FIXED
See Also: → 2054466

Thanks Connor for handling this.

We allow cancelling of deferred jobs from the UI for regular landing jobs, we should add this capability to automation jobs via the UI or CLI as well as it would be a simple way to mitigate this issue. Filed bug 2054466.

See Also: → 2055129

I think the root cause of this bug is that we created the thunderbird-desktop-esr153 repo in lando prior to the branch existing, so lando was left with a partially initialised repo when it tried, and failed to clone that branch https://bugzilla.mozilla.org/show_bug.cgi?id=2055129#c5

Blocks: 2055132
No longer blocks: 2055132
See Also: → 2055132
See Also: → 2057401
You need to log in before you can comment on or make changes to this bug.