This is an archive of the discontinued LLVM Phabricator instance.

Switch sanitizer-windows bot to annotator scripts
ClosedPublic

Authored by rnk on Jan 29 2019, 1:45 PM.

Details

Summary

This is intended to be equivalent to the old SanitizerBuilderWindows
buidlbot factory code. Next, I'll look into enabling libfuzzer testing
on this bot, and make sure it's on VS 2017.

Diff Detail

Repository
rL LLVM

Event Timeline

rnk created this revision.Jan 29 2019, 1:45 PM
inglorion accepted this revision.Jan 29 2019, 3:21 PM

LGTM, with some suggestions in the comments.

zorg/buildbot/builders/annotated/annotated_builder.py
249 ↗(On Diff #184165)

You could elide the None here; it's the default.

zorg/buildbot/builders/annotated/sanitizer-windows.py
48 ↗(On Diff #184165)

You can omit this; check True for all stages is the default. I don't terribly mind making it explicit, so I'm ok if you prefer to leave it in.

This revision is now accepted and ready to land.Jan 29 2019, 3:21 PM
rnk marked 3 inline comments as done.Jan 29 2019, 3:25 PM

Thanks!

zorg/buildbot/builders/annotated/sanitizer-windows.py
48 ↗(On Diff #184165)

Ah, that I didn't know.

rnk updated this revision to Diff 184193.Jan 29 2019, 3:29 PM
rnk marked 2 inline comments as done.
  • just raise KeyError instead of using .get()
zorg/buildbot/builders/annotated/annotated_builder.py
249 ↗(On Diff #184165)

I realized that my "report" call below doesn't actually fail the build. I'm going to just let it throw KeyError, since it indicates a programming error. I wanted to try to make it more usable, but I just don't think this code is going to last very long with the impending monorepo reorg, so let's do the simple thing.

This revision was automatically updated to reflect the committed changes.
zorg/trunk/buildbot/osuosl/master/config/builders.py