Closed Bug 1633969 Opened 4 years ago Closed 4 years ago

.hg-annotate-ignore-revs and .git-blame-ignore-revs missing commits

Categories

(Developer Infrastructure :: Lint and Formatting, defect)

defect

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: jya, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(8 files, 2 obsolete files)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review

We have "Bug 1298559 - Enable eslint for /browser/base/content/test/ r=mattn"
and "Bug 1561435 - Format browser/base/, a=automatic-formatting"

prevents reading blame properly

Regressions: 1561435

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Lint and Formatting

Actually, too many missing to count. So will convert all the .hg-annotate-ignore-revs to the git version

Redoing the whole file for simplicity, and because so many were missing.

This was done with the command:

while IFS= read -r line; do commit=echo "$line" | sed "s/\(.*\) - .* - \(Bug .*\)$/\\1/g" ; title= echo "$line" | sed "s/\(.*\) - .* - \(Bug .*\)$/\\2/g"; echo "# $title"; echo "# https://hg.mozilla.org/mozilla-central/rev/$commit"; cmd=git cinnabar hg2git $commit; echo $cmd "# gecko-dev"; done < .hg-annotate-ignore-revs > .git-blame-ignore-revs

Also adding commit "Bug 1298559 - Enable eslint for /browser/base/content/test/ r=mattn" to the list as it was absent.

Redoing the whole file for simplicity, and because so many were missing.

This was done with the command:

while IFS= read -r line; do commit=echo "$line" | sed "s/\(.*\) - .* - \(Bug .*\)$/\\1/g" ; title= echo "$line" | sed "s/\(.*\) - .* - \(Bug .*\)$/\\2/g"; echo "# $title"; echo "# https://hg.mozilla.org/mozilla-central/rev/$commit"; cmd=git cinnabar hg2git $commit; echo $cmd "# gecko-dev"; done < .hg-annotate-ignore-revs > .git-blame-ignore-revs

Also adding commit "Bug 1298559 - Enable eslint for /browser/base/content/test/ r=mattn" to the list as it was absent.

A few issues:

  • you attached 2 patches
  • there are some null ids in there (0000000000000000000000000000000000000000)
  • this is not listing gecko-dev commits, but native cinnabar commits. While claiming they are gecko-dev, and dropping the gecko-dev commits that were already listed.
  • The null id is from bug 1563300 not having the right mercurial id in .hg-annotate-ignore-revs.
  • There are also a bunch of entries in .git-blame-ignore-revs that don't have an equivalent in .hg-annotate-ignore-revs, like 6f3709b3878117466168c40affa7bca0b60cf75b, d57dde190f67e7964bb3a908d33a4d086da696b1, etc.
  • I think the format for .git-blame-ignore-revs would be better if it looked more like .hg-annotate-ignore-revs. Like, taking the file verbatim, adding a # before each line, and interleave with the corresponding git commits.
Attachment #9144518 - Attachment is obsolete: true

Bonus: of the 232 commits with "ignore-this-changeset", 147 are not in .hg-annotate-ignore-revs, 210 are not in .git-blame-ignore-revs for cinnabar ids, and 126 are not in .git-blame-ignore-revs for gecko-dev ids.

Summary: Few more commit not ignored by git. → .hg-annotate-ignore-revs and .git-blame-ignore-revs missing commits

Leaving this to someone more experienced with what to do.

Assignee: jyavenard → nobody
Attachment #9144519 - Attachment is obsolete: true

Per its definition in v-c-t, hg smart-annotate skips them in addition to
the contents of the .hg-annotate-ignore-revs file, so they don't need to
appear in the file.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED

It was generated by mixing every commit with "ignore-this-changeset" and
everything listed in .hg-annotate-ignore-revs, in topologic order.

The format was changed to:

# hg-sha1 - author - subject
cinnabar-sha1 # cinnabar
gecko-dev-sha1 # gecko-dev

The comment line corresponds to entries in .hg-annotate-ignore-revs (or
what they would look like for commits with "ignore-this-changeset").

Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/09aa29bbae71
Remove mercurial changesets that are marked "ignore-this-changeset". r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/a260fa7a69b4
Fix the ignore changeset for bug 1563300. r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/627d4256d95b
Add changesets that appear in .git-blame-ignore-revs but aren't already marked as ignored for mercurial. r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/f7b3e879c09d
Reorder .hg-annotate-ignore-revs by topologic order. r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/24d544171364
Add a changeset marked as "skip-blame" to .hg-annotate-ignore-revs. r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/acd7ab1651c1
Adjust messages in .hg-annotate-ignore-revs to match what is actually in the changesets. r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/02cbfa7967b2
Refresh .git-blame-ignore-revs. r=sylvestre
https://hg.mozilla.org/integration/autoland/rev/64504e869f32
Add bug 1298559 to .{hg-annotate,git-blame}-ignore-revs. r=sylvestre
Blocks: 1637889
Product: Firefox Build System → Developer Infrastructure
Blocks: 1634702
No longer depends on: 1634702
Type: task → defect
Keywords: regression
Regressed by: 1561435
No longer regressions: 1561435
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: