Open Bug 2095538 Opened 10 days ago Updated 7 days ago

m-c glean-parser lint shows wrong path and only fails on CI

Categories

(Data Platform and Tools :: Glean: SDK, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: janerik, Unassigned)

References

Details

Here's a try run for bug 2095526: https://treeherder.mozilla.org/jobs?repo=try&revision=c8520b29546880f9866aca838fd9bfbb64c8ad0f
It failed: https://treeherder.mozilla.org/logviewer?job_id=608995573&repo=try&task=BI5j5zzlROWIvylsES36_w.0&lineNumber=137

[task 2026-11-20T12:08:09.155+00:00] TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/services/sync/modules/metrics.yaml:1455 | NAME_TOO_SIMILAR: system.os.version: Metric `system.os.version`'s name is too similar to existing metric `system.os_version` (glean-parser)

That system.os_version metrics is in toolkit/components/resistfingerprinting/metrics.yaml.
system.os.version is in xpcom/metrics.yaml.
Neither of that is services/sync/modules/metrics.yaml

Notably resistfingerprinting/metrics.yaml has the no_lint and doesn't fail for me locally.
Neither with a full lint: mach lint --linter glean-parser .
Nor with one listing out the folders same as the try run says it does:

mach lint --linter glean-parser tools servo uriloader gradle build intl netwerk media .codex modules remote .cargo layout docshell docs supply-chain mozglue taskcluster memory .claude parser services mobile toolkit browser mots.yaml startupcache config accessible dom .zed ipc .agents mfbt hal testing .github js editor image xpfe .vscode caps chrome gfx devtools extensions python widget security storage .idea xpcom

I have the suspicion that the failure might be due to how metrics are ordered. Though that doesn't explain why it points to the wrong file.

No longer blocks: 2095526
See Also: → 2095526
Severity: -- → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.