This is an archive of the discontinued LLVM Phabricator instance.

[clang] Move the clang formatting job to run-buildbot to fix the CI
ClosedPublic

Authored by philnik on Jun 27 2023, 2:04 PM.

Details

Reviewers
ldionne
NoQ
Group Reviewers
Restricted Project
Commits
rG2a3322bab069: [clang] Create a buildkite-pipeline.yml file for clang

Diff Detail

Event Timeline

philnik created this revision.Jun 27 2023, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 2:04 PM
Herald added a subscriber: arichardson. · View Herald Transcript
philnik updated this revision to Diff 535508.Jun 28 2023, 1:45 PM

Try moving the command to run-buildbot

philnik published this revision for review.Jun 28 2023, 2:05 PM
philnik retitled this revision from [clang] Try to fix the buildkite CI to [clang] Move the clang formatting job to run-buildbot to fix the CI.
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 2:06 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne added inline comments.
clang/utils/ci/buildkite-pipeline.yml
22

Can you try with this instead?

'! grep -rnI ''[[:blank:]]$'' clang/lib clang/include clang/docs || false'
philnik updated this revision to Diff 536611.Jul 2 2023, 9:55 AM

Try Louis' suggestion

philnik updated this revision to Diff 536612.Jul 2 2023, 9:56 AM

Fix diff

philnik marked an inline comment as done.Jul 2 2023, 10:46 AM
philnik added inline comments.
clang/utils/ci/buildkite-pipeline.yml
22

Nope, doesn't work.

ldionne added inline comments.Jul 3 2023, 6:29 AM
libcxx/utils/ci/run-buildbot
206 ↗(On Diff #536612)

We shouldn't be adding a clang-specific job to this file, since this is for libc++ jobs. Please either find the right way to escape the command in the buildkite-pipeline file or create a script like run-buildbot within Clang, and then move that job there. The latter might make more sense if we want to move more and more stuff to this way of doing CI in the future, but we'll need the Clang folks to be on board.

philnik updated this revision to Diff 538208.Jul 7 2023, 11:05 AM
philnik marked 2 inline comments as done.

Address comments

Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2023, 11:05 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

@aaron.ballman @erichkeane @cor3ntin (anybody else?) are you fine with moving the clang build kite-pipeline to clang/utils/ci and adding a run-buildbot?

ldionne requested changes to this revision.Jul 7 2023, 11:33 AM

I really like where this is going, this will create a framework where Clang can add more pre-commit CI checks if they desire.

clang/utils/ci/run-buildbot
32–35

This should go away.

37–43

Let's remove those since they are not enforced.

66–69

This too.

81–102

Let's get rid of all this.

105–106
108

Let's remove this line entirely, CMake prints the version of the compiler in use.

libcxx/utils/ci/run-buildbot
206 ↗(On Diff #538208)

This can be removed now.

This revision now requires changes to proceed.Jul 7 2023, 11:33 AM

@aaron.ballman @erichkeane @cor3ntin (anybody else?) are you fine with moving the clang build kite-pipeline to clang/utils/ci and adding a run-buildbot?

I think that seems reasonable, thank you!

philnik updated this revision to Diff 538290.Jul 7 2023, 3:50 PM
philnik marked 7 inline comments as done.

Address comments

ldionne accepted this revision.Jul 10 2023, 12:24 PM

This LGTM but the CI has to pass! Also don't forget to undo the changes to buildkite-pipeline.yml

This revision is now accepted and ready to land.Jul 10 2023, 12:24 PM
philnik updated this revision to Diff 538798.Jul 10 2023, 1:31 PM

Try to fix CI

philnik updated this revision to Diff 539183.Jul 11 2023, 10:37 AM

Try to fix CI

This revision was landed with ongoing or failed builds.Jul 12 2023, 5:33 AM
This revision was automatically updated to reflect the committed changes.