Closed Bug 1963786 Opened 12 days ago Closed 5 days ago

code-review-bot couldn't find the base revision of a revision submitted with `MOZILLACENTRAL` as the base

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: marco)

References

(Blocks 1 open bug)

Details

moz-phab version (from moz-phab version): 1.8.1

Bug 1963595 changed the default repository for submissions to Phabricator to be FIREFOXAUTOLAND.

User :Standard8 submitted a patch while autoland was broken: https://phabricator.services.mozilla.com/D247337

Code Review Bot used the setup and inherited the broken Gecko Decision Task.

By default, Lando should use mozilla-central as base repository.

(In reply to Sebastian Hengst [:aryx] (needinfo me if it's about an intermittent or backout) from comment #0)

Bug 1963595 changed the default repository for submissions to Phabricator to be FIREFOXAUTOLAND.

User :Standard8 submitted a patch while autoland was broken: https://phabricator.services.mozilla.com/D247337

To clarify, the submission that failed was submitted with MOZILLACENTRAL as the base. So the automation couldn't find the base revision (I assume as it was looking to base on git), and then seemed to default to autoland, rather than the mozilla-central base repo.

I think it is slightly worse that what we previously thought. I think what it is running is variable... (maybe the tip of mozilla-unified).

For example, my push here was flagged as not applying because the files didn't exist. Looking at the log, it mentions this:

robustcheckout (err): (remote resolved tip to 2f1504b705ccdb95321f99b340e32be91d9599c2; result is not deterministic)

It looks like it then tries to check out the right thing, but I guess fails because it isn't git.

The revision above is a mozilla-beta-only commit, which is why the patch didn't apply - because the files aren't there yet.

The first patch in the stack also got applied to mozilla-beta, but because it touched files that were already there, it applied fine, but the tests will be running against out of date code/test harnesses.

Should this be tracked somewhere as part of the hg->git work?

Flags: needinfo?(sheehan)

None of this appears to be an issue with moz-phab, and the bug's description isn't very clear. Generally it's best to file a bug that describes the problem, rather than just proposing a solution.

Let me see if I can untangle this .

So I think the issue this bug is reporting is "code-review-bot failed to apply the patches for D247337 and D248131"?

Should this be tracked somewhere as part of the hg->git work?

I've attached it to our main tracking bug for now.

Blocks: hg-to-git
Flags: needinfo?(standard8)
Keywords: regression
No longer regressed by: 1963595
Summary: moz-phab should use a mozilla-central as base repository by default → automation couldn't find the base revision of a revision submitted with `MOZILLACENTRAL` as the base

Sorry, I agree this has gotten a bit of a mess. Here's some hopefully clearer steps to repeat:

  1. Create a patch locally, in a pure git repository, based off the latest main branch of mozilla-firefox/firefox.
  2. Submit the patch to Phabricator.
  3. Wait for the code review bot automation to run.
  4. Inspect where the code review bot has applied the patch.

Expected Results

  • As I based off of the main branch of mozilla-firefox/firefox, the code review automation run should either be based on the revision I was based on, or the latest main.
  • The test results should always be consistent for the same patch which is pushed at different times (assuming the test mechanisms haven't been updated in-between).

Actual Results

  • The patches have been applied to the mercurial "tip" of the mozilla-unified repository. Depending on when you push, and what has been pushed recently, this might be the tips of any of the active branches (autoland/central/beta/release/esr128/esr115).
  • Depending on what you've submitted, and the timing, you may get:
    • failures to apply patches
    • incorrect results from the code review automation
  • Resubmitting the same patch, may or may not clear the issues depending on if mozilla-unified has been pushed to and therefore may have switched to a different 'tip'.
Flags: needinfo?(standard8)

Thanks - this looks like a code-review-bot issue, moving.

Component: moz-phab → Source Code Analysis
Product: Conduit → Developer Infrastructure
Summary: automation couldn't find the base revision of a revision submitted with `MOZILLACENTRAL` as the base → code-review-bot couldn't find the base revision of a revision submitted with `MOZILLACENTRAL` as the base

I think I've fixed this today.

Flags: needinfo?(sheehan)

Thanks, as far as I can tell this does indeed appear to be fixed.

Assignee: nobody → mcastelluccio
Status: NEW → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.