This is an archive of the discontinued LLVM Phabricator instance.

[utils] Avoid hardcoding metadata ids in update_cc_test_checks
ClosedPublic

Authored by jkorous on Apr 6 2022, 7:45 PM.

Details

Summary

Specifically for: !tbaa, !tbaa.struct, !annotation, !srcloc, !nosanitize.

The goal is to avoid test brittleness caused by hardcoded values.

Diff Detail

Event Timeline

jkorous created this revision.Apr 6 2022, 7:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 7:45 PM
jkorous requested review of this revision.Apr 6 2022, 7:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 7:45 PM

Can you follow the pattern of how the tests for other update utils are written, by autogenerating the check lines, committing such a file, and comparing that newly-generated checlines don't differ?

jkorous planned changes to this revision.Apr 7 2022, 1:25 PM

Sure, will do! I intended to keep the tests simple but understand the desire for consistency.

jkorous updated this revision to Diff 424681.Apr 22 2022, 7:03 PM

Made the tests consistent with other pre-existing tests.

Friendly ping.

This revision is now accepted and ready to land.May 10 2022, 7:14 AM
jdoerfert added inline comments.May 10 2022, 7:14 AM
llvm/utils/UpdateTestChecks/common.py
623

Style: Maybe realign the above again.

This revision was landed with ongoing or failed builds.May 10 2022, 10:18 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 10:18 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
dyung added a subscriber: dyung.May 10 2022, 11:38 AM

Hi @jkorous, 4 of the tests you added seem to be failing on the PS4 linux and Window buildbots, can you take a look, and revert if it might take a while to investigate?

https://lab.llvm.org/buildbot/#/builders/139/builds/21573
https://lab.llvm.org/buildbot/#/builders/216/builds/4167

thakis added a subscriber: thakis.May 10 2022, 12:35 PM

Also fails on linux: https://lab.llvm.org/buildbot/#/builders/109/builds/38285

And on mac: http://45.33.8.238/macm1/35024/step_7.txt

(On some platforms, the bot redness was masked by D124552 breaking the bots first.)

But yes, please fix or revert.

Reverting for now. Will take a look.