This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Check llvm-bolt binaries before running NFC checks
ClosedPublic

Authored by Amir on Dec 17 2022, 10:10 PM.

Details

Summary

In NFC testing, if llvm-bolt binaries are bitwise identical,
don't run NFC checks.

Event Timeline

Amir created this revision.Dec 17 2022, 10:10 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: treapster. · View Herald Transcript
Amir requested review of this revision.Dec 17 2022, 10:10 PM
Amir updated this revision to Diff 483848.Dec 18 2022, 3:11 PM

Fix shell command

Amir updated this revision to Diff 483849.Dec 18 2022, 3:12 PM

Remove unrelated changes

Amir updated this revision to Diff 483850.Dec 18 2022, 3:13 PM

Remove util

Thanks, Amir.

The patch looks good. The only thing I'm not sure is the error handling at the check-bolt-different step. + one cosmetic nit pick.

zorg/buildbot/builders/BOLTBuilder.py
99

How about adding something like "and skip the following 2 steps otherwise" to the step description?

101

Could you elaborate on why you want flunkOnFailure=False here, please?

At a quick glance, the step fails only if (1) the touch command fails, or (2) depending on error handling mode of the buildbot account shell if remove file command fails. The both cases seems indicate severe enough issues to be aware of (i.e. to fail the build), even if they are not related to a commit in question.

Amir updated this revision to Diff 485458.Dec 27 2022, 9:58 PM

Update comment

Amir marked 2 inline comments as done.Dec 27 2022, 10:01 PM

@gkistanova,

Thank you for a review!

zorg/buildbot/builders/BOLTBuilder.py
101

I agree with your reasoning that an issue with running cmp + touch is severe enough to warrant a test failure. I didn't think much of it, just copied the configuration from the following steps.

Amir marked an inline comment as done.Dec 27 2022, 10:01 PM
This revision is now accepted and ready to land.Dec 27 2022, 10:30 PM
Amir updated this revision to Diff 485579.Dec 28 2022, 10:04 PM

Fix up paths

Amir updated this revision to Diff 485580.Dec 28 2022, 10:05 PM

Remove unrelated changes

Amir updated this revision to Diff 485663.Dec 29 2022, 7:35 PM

Fix up cmp command, ensure the checks/skips are working as intended:
http://157.230.108.44:8011/#/builders/55/builds/1339 modifies llvm-bolt, NFC checks enforced
http://157.230.108.44:8011/#/builders/55/builds/1340 doesn't touch llvm-bolt, NFC checks skipped

This revision was automatically updated to reflect the committed changes.