Closed Bug 1807831 Opened 3 years ago Closed 3 years ago

Add a check to make sure that we don't regress the number of warnings

Categories

(Developer Infrastructure :: Source Documentation, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
Tracking Status
firefox111 --- fixed

People

(Reporter: Sylvestre, Assigned: cdengler)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(3 external files)

We have currently many warnings (3841 today).

Maybe we should store this number in a configuration file ( docs/config.yml ?) and make sure it doesn't go above.

The number of warnings can be found in the log. Example:
https://firefoxci.taskcluster-artifacts.net/F-wVIWdBSzCNQvWWvCwAdA/0/public/logs/live_backing.log

build succeeded, .* warnings.

a more recent one:
https://firefoxci.taskcluster-artifacts.net/TMp_0MVOTTeSg-8oQR7YbA/0/public/logs/live_backing.log
[task 2023-01-18T10:03:15.179Z] build succeeded, 3718 warnings.

Recap of the discussion of the specs in the chat

  • we put some upper bound X on the acceptable number of warnings in the config file
  • if a user submits a change that raises more warnings than the upper bound, the build fails
  • the user is told their changes raised N - X = Y new warnings, and that they should review them

I'd add a new flag --check-num-warnings, is that name OK for you?

sounds good, thanks

Assignee: nobody → cdengler
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8b332f84762b Add a check to make sure that we don't regress the number of warnings r=sylvestre,ahal DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e60526f1b822 Add check-num-warnings option to the ci r=firefox-source-docs-reviewers,sylvestre DONTBUILD

Backed out for causing documentation failures.

Flags: needinfo?(cdengler)
Attachment #9318756 - Attachment description: WIP: Bug 1807831 - Add check-num-warnings option to the ci → Bug 1807831 - Add check-num-warnings option to the ci r=#firefox-source-docs-reviewers

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f795d3557239 Add check-num-warnings option to the ci r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Depends on: 1817962
Blocks: 1861953
Flags: needinfo?(cdengler)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: