Commit Graph

436 Commits

Author SHA1 Message Date
Nikita Popov
99a3c3ffcf [InstCombine][GitHub] Auto-add llvm:instcombine label (NFC) (#115736)
Add `llvm:instcombine` label to PRs touching InstCombine or
InstSimplify. (We track InstSimplify issues under `llvm:instcombine` as
well, so I added it here as well.)
2024-11-12 10:28:20 +01:00
QuietMisdreavus
e5e15f9128 add QuietMisdreavus to Clang/ExtractAPI code owners (#115206)
Adding myself to the ExtractAPI code owners listing so i can participate
in code reviews.
2024-11-08 09:44:19 -07:00
Kunwar Grover
5b697ef5dd [mlir] Update CODEOWNERS file for vector dialect (#115398)
Adding myself to stay updated on patches since I have been reviewing /
upstreaming things related to vector dialect.
2024-11-07 23:53:27 +00:00
Louis Dionne
e236a52a88 [libc++] Unify the benchmarks with the test suite (#101399)
Instead of building the benchmarks separately via CMake and running them
separately from the test suite, this patch merges the benchmarks into
the test suite and handles both uniformly.

As a result:
- It is now possible to run individual benchmarks like we run tests
  (e.g. using libcxx-lit), which is a huge quality-of-life improvement.

- The benchmarks will be run under exactly the same configuration as
  the rest of the tests, which is a nice simplification. This does
  mean that one has to be careful to enable the desired optimization
  flags when running benchmarks, but that is easy with e.g.
  `libcxx-lit <...> --param optimization=speed`.

- Benchmarks can use the same annotations as the rest of the test
  suite, such as `// UNSUPPORTED` & friends.

When running the tests via `check-cxx`, we only compile the benchmarks
because running them would be too time consuming. This introduces a bit
of complexity in the testing setup, and instead it would be better to
allow passing a --dry-run flag to GoogleBenchmark executables, which is
the topic of https://github.com/google/benchmark/issues/1827.

I am not really satisfied with the layering violation of adding the
%{benchmark_flags} substitution to cmake-bridge, however I believe
this can be improved in the future.
2024-11-07 09:07:50 -05:00
Eric
97262afa6d Allow specifying libcxx builder image. (#110303)
This change attempts to shift the libc++ builders over to new backend
infrastructure that allows running an arbitrary container for the
libc++ job.

This has been a long time in the making, and support from github
and gke is finally at the point where it's possible (hopefully).

This change should also demonstrate another important property:
No Downtime Upgrades.

If this goes well, we'll be able to test the upgrade as a part
of the PR process, and then commiting it to main should (ideally)
not break anything.
2024-11-05 16:30:49 -05:00
Louis Dionne
f2019fc5ca [libc++] Upload CMakeConfigureLog artifacts (#114445)
This is helpful to debug CMake configuration issues such as the ones
that can happen when we build an external project (like
GoogleBenchmark).
2024-11-01 09:41:45 -04:00
Aiden Grossman
f87f3ad6ea [Github] Bump CI compiler version to 19.1.2 (#113016) 2024-10-19 10:42:33 -07:00
Brad Richardson
06eb10dadf [flang][driver] rename flang-new to flang (#110023)
This does a global rename from `flang-new` to `flang`. I also
removed/changed any TODOs that I found related to making this change.

---------

Co-authored-by: H. Vetinari <h.vetinari@gmx.com>
Co-authored-by: Andrzej Warzynski <andrzej.warzynski@arm.com>
2024-10-10 09:26:04 +01:00
Aiden Grossman
35684fa4bc [Github] Switch vectorization PR label to vectorizers (#111633)
This changes the PR label to match the name of the subscriber team.

Fixes #111485.
2024-10-09 13:09:19 -07:00
Tom Stellard
9cd289fa4a workflows/release-documentation: Submit a pull request with changes (#108247)
This is instead of pushing directly. Creating a pull request is slightly
more work for the release manager, but it is more secure as we no longer
need a secret with write access to the www-releases repo.
2024-10-01 06:12:03 -07:00
Tom Stellard
8f2aa9dbad workflow/release-binaries: Checkout sources before downloading artifacts (#109349)
The actions/checkout step will clear the current directory, so we need
to checkout the sources first so that the downloaded artifacts won't be
deleted.
2024-10-01 06:11:15 -07:00
Louis Dionne
0547e573c5 [runtimes] Run backdeployment CI on Github hosted runners (#109984)
This removes the need for macOS nodes in Buildkite. It also moves to the
proper way of testing backdeployment, which is to actually run on the
target OS itself, instead of using packaged dylibs from previous OS
versions and trying to emulate backdeployment with DYLD_LIBRARY_PATH.

As a drive-by change, also fix a few back-deployment annotations that
were incorrect and add support for minor versions in the Lit feature
determining availability from the target triple.
2024-09-30 17:08:44 -04:00
Keith Smiley
75ad8b23c0 workflows/release-binaries-all: trigger for Release.cmake (#110394) 2024-09-28 21:23:18 -07:00
Matt Arsenault
1bc59e55ec github: Add tablegen directories to PR autolabeler (#109129) 2024-09-20 08:39:55 +04:00
Tom Stellard
f14fd32602 workflows/commit-access-review: Use get_collaborators() function (#108313)
This gets us the full list of users with commit access to
llvm/llvm-project rather than the list of people in the llvm-committers
team. This will ensure we are able everyone to track everyone with
commit access in case they receive access some other way.
2024-09-16 13:37:49 -07:00
Tom Stellard
ab96409180 workflows/release-binaries: Fix automatic upload (#107315) 2024-09-12 09:50:57 -07:00
Aiden Grossman
74ad254052 [Github][MLGO] Fix mlgo-utils path in new-prs-labeler
This patch (hopefully) fixes the mlgo-utils path in new-prs-labeler so
that it actually matches all files in that directory. Currently it is
not catching the files as they are relatively deeply nested within the
folder.
2024-09-09 08:10:11 +00:00
Martin Storsjö
5024dff6ee [libc++][ci] Add a test configuration with an incomplete sysroot (#107089)
When bringing up a new cross compiler from scratch, we build
libunwind/libcxx in a setup where the toolchain is incomplete and unable
to perform the normal linker checks; this requires a few special cases
in the CMake files.

We simulate that scenario by removing the libc++ headers, libunwind and
libc++ libraries from the installed toolchain.

We need to set CMAKE_CXX_COMPILER_WORKS since CMake fails to probe the
compiler. We need to set CMAKE_CXX_COMPILER_TARGET, since LLVM's
heuristics fail when CMake hasn't been able to probe the environment
properly. (This is normal; one has to set those options when setting up
such a toolchain from scratch.)

This adds CI coverage for these build scenarios, which otherwise seldom
are tested by some build flow (but are essential when setting up a cross
compiler from scratch).
2024-09-05 10:25:41 -04:00
Tom Stellard
ef50970204 workflows/release-binaries: Remove .git/config file from artifacts (#106310)
The .git/config file contains an auth token that can be leaked if the
.git directory is included in a workflow artifact.
2024-08-30 19:46:33 -07:00
Aiden Grossman
1293ab35e4 [Github] Cancel previous in-progress code formatting jobs (#106701) 2024-08-30 14:43:15 -07:00
Aiden Grossman
54916e5784 [Github] Set code formatting job timeout to 30 minutes (#106674)
This patch sets the timeout of the code formatting job to 30 minutes.
The job is currently failing in specific circumstances and needs to be
reworked, but as a temp hack, change the timeout to 30 minutes so that
we can catch these jobs before they hit the Github Actions timeout limit
of six hours.

Somewhat (hackily) alleviates #79661 slightly.
2024-08-30 01:08:38 -07:00
Tom Stellard
9d81e7e36e workflows/release-tasks: Pass required secrets to all called workflows (#106286)
Called workflows don't have access to secrets by default, so we need to
explicitly pass secrets that we use.
2024-08-28 22:18:08 -07:00
Tom Stellard
8927576b8f workflows/release-binaries: Enable flang builds on Windows (#101344)
Flang for Windows depends on compiler-rt, so we need to enable it for
the stage1 builds. This also fixes failures building the flang tests on
macOS.

Fixes #100202.
2024-08-28 18:22:57 -07:00
Nikolas Klauser
ec9f36a624 [libc++] Switch to the current XCode beta on macOS builders (#106363)
This unblocks a ton of work including #76756 as it updates to a newer
version of AppleClang.
2024-08-28 09:02:52 -04:00
Keith Smiley
d2b420cc27 [Release] Add keith to valid archive uploaders (#106018)
I am interested in helping contribute macOS binaries since we're
generally sporadic with uploading these.

Fixes https://github.com/llvm/llvm-project/issues/106016
2024-08-27 21:29:43 -07:00
Louis Dionne
e19c3a7e8d [libc++] Move some macOS CI jobs to Github actions (#89083)
This patch decouples macOS CI testing from BuildKite, which makes the
maintenance of macOS CI easier and more accessible to all contributors.
Right now, the macOS CI is running entirely on machines owned by the
LLVM Foundation with only a small set of contributors having direct
access to them. In particular, updating these machines is currently
a very time-consuming manual process that requires taking the machines
offline, and using Github-provided instances makes that an order of
magnitude easier.

The story for performing back-deployment testing still needs to be
figured out, so for now we are retaining some jobs under BuildKite.
2024-08-27 17:28:12 -04:00
Joseph Huber
7ad7f8f7a3 [libcxx] Add LIBCXX_HAS_TERMINAL_AVAILABLE CMake option to disable print terminal checks (#99259)
Adds a new CMake option called `LIBCXX_HAS_TERMINAL_AVAILABLE` that
prevents us from checking for `isatty`.
2024-08-21 08:48:53 -05:00
Tom Stellard
84efc8ed46 [workflows] Add a new workflow for checking commit access qualifications (#93301)
This workflow produces a list of users that should be moved to the LLVM
Triagers team. An admin will review the list and then manually move
people to the LLVM Triagers Team.

I've also added some documentation to the Developer Policy about the
Triage Role.

See
https://discourse.llvm.org/t/rfc2-new-criteria-for-commit-access/77110
for more details.
2024-08-15 17:08:24 -07:00
Tobias Stadler
9811971860 [GitHub] Run format job on stacked PRs (#102957)
Currently the formatter only runs for the main branch, which prevents
the formatter from running for stacked PRs, which have to target user
branches instead of main.
2024-08-14 14:10:57 +02:00
Aiden Grossman
167c71ad86 Bump CI container clang version to 18.1.8 (#102803)
This patch bumps the CI container LLVM version to 18.1.8. This should've
been bumped a while ago, but I just noticed that it was out of date.
This also allows us to drop a patch that we manually had to add as it is
by default included in v18.
2024-08-11 11:01:15 -07:00
Jannick Kremer
f070f61fc0 [CI][libclang] Add PR autolabeling for libclang (#102809)
This automatically adds the `clang:as-a-library` label on PRs for the C
and Python bindings and the libclang library

---------

Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav@gmail.com>
2024-08-11 12:22:47 +01:00
Jannick Kremer
458fa12202 [Github] Allow CI to run different Python version tests at once (#102455)
Previously, #77219 added a `python_version` parameter for the Github
Actions CI Ninja-based build tests. This is necessary to run component
tests on different Python versions, as is currently done by the only
user of this parameter, the [Libclang Python bindings
test](https://github.com/llvm/llvm-project/blob/main/.github/workflows/libclang-python-tests.yml).
The parameter is missing from the concurrency group of the
workflow, meaning that starting the workflow with two different Python
versions immediately cancels one of them, as pointed out by
https://github.com/llvm/llvm-project/pull/77219#issuecomment-1937105822.
This change fixes that problem by making the Python version part of the
concurrency group key, and removes the superfluous concurrency group
from the calling workflow.
2024-08-08 19:43:01 +02:00
Timm Bäder
342347088e Remove myself from Github's CODEOWNDERS file
This mechanism simply doesn't work for me. I'm getting CCed to
completely unrelated PRs all the time. I checke the bugtracker manually
often enough, so I don't need this.
2024-08-08 10:03:24 +02:00
Tom Stellard
82c2259aeb workflows: Fix permissions for release-sources job (#100750)
For reusable workflows, the called workflow cannot upgrade it's
permissions, and since the default permission is none, we need to
explicitly declare 'contents: read' when calling the release-sources
workflow.

Fixes the error:
The workflow is requesting 'contents: read', but is only allowed
'contents: none'.
2024-08-07 14:19:22 -07:00
Tom Stellard
1fb1a5d8e2 workflows/release-binaries-all: Pass secrets on to release-binaries workflow (#101866)
A called workflow does not have access to secrets by default, so we need
to explicitly pass any secret that we want to use.
2024-08-05 14:40:46 -07:00
Tom Stellard
3c8dadda3a workflows/release-binaries: Give attestation artifacts a unique name (#102041)
We need a different attestation for each supported architecture, so
there artifacts all need to have a different name.

The upload step is run on a Linux runner, so no matter which
architecture's binary is being uploaded the runner.os and runner.arch
variables would always be 'Linux' and 'X64' and so we can't use them for
naming the artifact.
2024-08-05 14:38:56 -07:00
Tom Stellard
dc349a3f47 workflows/release-tasks: Add missing permissions for release binaries (#102023)
Now that the release binaries create artifact attestations, we need to
ensure that we call the workflow with the correct permissions.
2024-08-05 13:30:04 -07:00
Tom Stellard
59476c9998 workflows/release-binaries: Fix problem with python installation on macos-14 (#101774)
python3 wasn't able to see modules installed by pip, so we need to use
the setup-python action to ensure that the default pip and python3 both
use the same prefix.

See https://github.com/actions/runner-images/issues/10385
2024-08-03 09:11:51 -07:00
Jannick Kremer
5f696c1bd9 [github] Add @DeinAlptraum as CODEOWNER for libclang/Python bindings (#101815) 2024-08-03 13:27:31 +02:00
Tom Stellard
14837aff05 workflows: Re-implement the get-llvm-version action as a composite action (#101569)
The old version in the llvm/actions repo stopped working after the
version variables were moved out of llvm/CMakeLists.txt. Composite
actions are more simple and don't require javascript, which is why I
reimplemented it as a composite action.

This will fix the failing abi checks on the release branch.
2024-08-02 21:52:03 -07:00
Tom Stellard
0512ba0a43 workflows: Fix libclc-tests (#101524)
The old out-of-tree build configuration stopped working and in tree
builds are supported now, so we should use the in tree configuration.
The only downside is we can't run the tests any more, but at least we
will be able to test the build again.
2024-08-01 11:23:03 -07:00
Tom Stellard
41003ff3fe workflows/release-binaries: Fetch composite actions outside of default workspace (#100845)
Otherwise, the checkout step will override them.
2024-07-30 18:54:20 -07:00
Tom Stellard
d41f565318 workflow/release-binaries: Fix typo
Introduced in b0860b2087.
2024-07-26 14:51:54 -07:00
Tom Stellard
b0860b2087 workflows/release-binaries: Always pull composite actions from main branch (#100805)
If we pull from the release tag, then if there is a bug in one of the
actions on the release tag, then we can never do a build for that tag.
Pulling from main will allows us to fix bugs in the actions we use to
build the releases.
2024-07-26 14:46:32 -07:00
Tom Stellard
18dee70168 workflows: Remove left over debugging step from release-binaries job 2024-07-26 12:36:40 -07:00
Tom Stellard
247251aee0 Build release binaries for multiple targets (#98431)
This adds release binary builds for the 4 platforms currently supported
by the free GitHub Action runners:

* Linux x86_64
* Windows x86_64
* Mac x86_64
* Mac AArch64

The test stages for these are known to fail, but the creating and
upoading of the release binaries should pass.
2024-07-26 11:26:34 -07:00
Tom Stellard
60e5892e69 Workflows: Fix copy-paste mistake in release-asset-audit
The comment file in this workflow is plain-text not json.
2024-07-26 10:44:31 -07:00
Tom Stellard
9d2461e712 workflows: Add a job for auditing release assets (#92829)
This checks to ensure that uploads are only made by 'approved'
uploaders, which is just everyone who has uploaded a release asset in
the past.

We could do more, but this is just a simple implementation so we can put
something in place and see how it works.

For more discussion see:
https://discourse.llvm.org/t/rfc-improve-binary-security/78121
2024-07-26 09:45:42 -07:00
Tom Stellard
3c2ce70888 workflows: Fix tag name for release sources job (#100752) 2024-07-26 07:38:53 -07:00
Tobias Hieta
a0971f027c [Infra] Fix version-check workflow (#100090) 2024-07-23 13:03:27 +02:00