Skip to content

Bug-2003889: Show Lando try-push status instead of a blank-revision error - #1103

Open
moijes12 wants to merge 3 commits into
mozilla:mainfrom
moijes12:fix2003889
Open

moijes12 wants to merge 3 commits into
mozilla:mainfrom
moijes12:fix2003889

Conversation

@moijes12

@moijes12 moijes12 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Handle missing Lando commit IDs using the landing-job status from Lando instead of waiting for Treeherder to reject a blank new_revision. Also explain when Lando has landed but Treeherder has not ingested the try push yet (including a hint for the new Lando instance).

Outcomes

image

@gmierz

Fixes Bug-2003889 and Bug-2028932

@netlify

netlify Bot commented Sep 14, 2026

Copy link
Copy Markdown

Deploy Preview for mozilla-perfcompare ready!

Name Link
🔨 Latest commit acc2246
🔍 Latest deploy log https://app.netlify.com/projects/mozilla-perfcompare/deploys/6aacd9c3edfd870008229553
😎 Deploy Preview https://deploy-preview-1103--mozilla-perfcompare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

…rror

Handle missing Lando commit IDs using the landing-job status from Lando
instead of waiting for Treeherder to reject a blank new_revision. Also
explain when Lando has landed but Treeherder has not ingested the try
push yet (including a hint for the new Lando instance).

Fixes Bug-2003889 and Bug-2028932
New Lando returns commit_id as an empty string when a landing job fails,
along with a multi-line hg error. Treat that as a missing revision, and
show only the first line of Lando's error so the page is readable.
@davehunt
davehunt requested a review from kala-moz September 14, 2026 11:44
@moijes12
moijes12 marked this pull request as ready for review September 14, 2026 14:53
@moijes12

moijes12 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

@kala-moz I feel I could create a Error page with some styling which can be used to display these errors. What do you think?

Comment thread src/logic/lando.ts Outdated
Comment on lines +34 to +38
return text
.split(/\r?\n/)
.map((line) => line.trim())
.find((line) => line.length > 0);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Optional suggestion to stop as soon as you find a match

for (const line of text.split(/\r?\n/)) {
  const trimmed = line.trim();
  if (trimmed) return trimmed;
}
return undefined;

Comment thread src/logic/lando.ts Outdated
@@ -22,9 +68,15 @@ async function fetchFromLando(url: string) {
export async function fetchRevisionFromLandoId(
landoid: string,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit (this might fall outside this PR's scope to correct this, feel free to ignore):

Suggested change
landoid: string,
landoId: string,

Comment thread src/logic/lando.ts Outdated
return typeof job.commit_id === 'string' && job.commit_id.trim().length > 0;
}

function firstLine(text: string | undefined) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function firstLine(text: string | undefined) {
function firstLine(text: string | undefined): string | undefined {

Return the first non-empty line without mapping the whole error, add an
explicit return type on firstLine, and rename landoid to landoId.
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.

2 participants