Commit Graph

179 Commits

Author SHA1 Message Date
Aiden Grossman
888f07031b [Github] Add support for building libc docs in Github actions (#69824)
This patch adds support for building the libc docs in Github actions.
This eanbles easily diagnosing doc build failures/warnings in PRs and at
the tip of tree.
2023-10-24 12:04:25 -07:00
Aiden Grossman
099ce25663 [Github] Fetch before files changed action on push in docs action
My previous commit 397f1ce9ef switched up
the docs github action to use the GH API for pull requests. However,
this breaks the action when pushing to a branch as the Github API can't
provide diffs for commits. This patch fixes that by creating a local
checkout beforehand on push events for determining the changed files.
2023-10-23 22:09:02 -07:00
Aiden Grossman
397f1ce9ef [Github] Use API to fetch PR diff for docs action (#70001)
People are currently running into issues where the files-changed step
isn't able to find the merge base. This seems to happen more often on
very out of date branches. This patch side steps the issue by just
fetching the diff from the GH API.
2023-10-23 21:34:06 -07:00
Aiden Grossman
6768a3d431 [Github] Add libcxx docs to CI (#69828)
This patch adds a step to the documentation Github action to build the
libc++ docs if they have changed. This enables easily diagnosing build
failures/warnings in PRs.
2023-10-23 20:27:08 -07:00
Aiden Grossman
d61e915460 [Github] Add libunwind to docs CI (#69830)
This patch adds the libunwind docs to the Github docs action which
enables easy triage of docs build failures in Github PRs. There is
already buildbot coverage of this configuration, but it is much less
convenient to use in PRs.
2023-10-23 20:24:46 -07:00
Aiden Grossman
6250afe37f [Github] Fetch an additional commit for docs CI on PRs
There still seem to be issues with the files changed step taking a
significant amount of time on PRs. This seems to be occurring on PRs
with one commit and not on PRs with more than one commit which is why I
didn't catch this nuance before. Either way, fetching an additional
commit seems to fix the issue. Requires a little bit of hackiness due to
the fact that you can't do math in the github actions variables.

Will be monitoring this over the next little bit to see if this actually
fixes the problem.

CI stuff is annoying sometimes.
2023-10-21 16:45:20 -07:00
Aiden Grossman
5ce45e9d8e [Github] Add lldb docs step to Github docs action (#69832)
This patch adds a step to build the lldb docs when they change to the
Github docs action, enabling easy triage of warnings/docs build failures
during the PR process.
2023-10-21 15:42:29 -07:00
Aiden Grossman
40a5044af8 [Github] Add clang-tools-extra docs to CI (#69827)
This patch adds the clang-tools-extra docs to the Github CI job that
builds docs, enabling the ability to easily ensure the docs build
properly without warnings in PRs and at the tip of tree.
2023-10-21 15:32:51 -07:00
Aiden Grossman
764c7ae949 [Github] Remove CMake options from docs CI resetting defaults
The SPHINX_OUTPUT_HTML and SPHINX_OUTPUT_MAN CMake flags are by default
set to ON/True in ./llvm/cmake/modules/FindSphinx.cmake, so we don't
need to set them true again within the CMake invocation.
2023-10-21 02:11:15 -07:00
Aiden Grossman
9b381c6a06 [Github] Fetch number of commits in PR for docs action (#69763)
This patches changes the docs action to run a fetch with a depth of the
number of commits in the PR (1 if we're just running against a push
event) which significantly increases the speed of the changed files
event. The changed files event goes from taking ~30m to ~3s without any
noticeable increase in fetch time.
2023-10-20 18:48:40 -07:00
Diogo Teles Sant'Anna
7c0a589af9 [CI] Set minimal permission on libcxx-check-generated-file workflow (#69737)
Relates to #69736

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
2023-10-20 17:42:22 -07:00
Tom Stellard
afdad4fd40 workflows/release-tasks: Fix release note artifact upload (#69522) 2023-10-19 14:02:23 -07:00
Aiden Grossman
cd205efb9d Revert "[Github] Make PR formatting job only run with C/C++ changes (#69556)"
This reverts commit 80b2aac2c6.

I mistakenly assumed this job didn't also do python formatting
(should've grepped for more than just black in the python portion of
this script). Pulling it out for now to get python formatting working
again while the patch is iterated further.
2023-10-18 23:28:20 -07:00
Aiden Grossman
cffb9df10c [Github] Add steps to build clang docs to CI (#69550)
Recently, support for building the LLVM documentation within Github
actions landed, allowing for easy testing of the docs both pre and post
landing. This patch extends that functionality to clang and adds in
additional support to the docs Github workflow to only build the docs
for the subproject whose documentation has been touched.
2023-10-18 22:58:03 -07:00
Aiden Grossman
80b2aac2c6 [Github] Make PR formatting job only run with C/C++ changes (#69556)
Currently the PR formatting job only runs clang-format. There isn't a
lot of utility in running it if there aren't any C/C++ changes as there
will be nothing to format. This isn't super noisy currently as the job
doesn't fail if there aren't any C/C++ changes, but it's a bit of a
waste.

In addition, this patch names the code formatting job "Check C++
Formatting" to make it clear that this job only checks C/C++ formatting
rather than Python formatting/other languages.
2023-10-18 22:53:17 -07:00
Louis Dionne
1196e6dda9 [libc++] Move the check-generated-files job to Github Actions (#68920)
This allows running these quick checks faster than in our Buildkite
pipeline, which has much more latency. This will also avoid blocking the
rest of the testing pipeline in case the generated-files checks are
failing.
2023-10-18 19:56:16 -07:00
Tom Stellard
1db8abf21a workflows/release-lit: Pass correct build directory to pypa/gh-action-pypi-publish (#69438) 2023-10-18 14:02:05 -07:00
Tom Stellard
6a7f0b9d9f workflows/release-lit: Fix dev suffix removal (#69397)
This was broken by b71edfaa4e.
2023-10-18 14:01:53 -07:00
Jan Patrick Lehr
3162cf0430 [Github][OpenMP] Adding rule for OpenMP label (#65331)
This adds initial labelling for OpenMP (clang, libomp, libomptarget)
2023-10-17 17:34:04 +02:00
Aiden Grossman
8ddca6b2c1 [CI] Fix documentation build CI job
Currently this job fails when trying to install system dependencies as
the apt-get commands are not run with sudo, so they don't have the
appropriate permissions. This does not occur with act which is why it
wasn't caught in the first place. The change has been validated as
fixing the problem against my fork.
2023-10-16 22:48:37 -07:00
Aiden Grossman
12a731b5a4 [CI] Add Github actions job to build LLVM documentation (#69269)
This patch adds in support for building the LLVM documentation through a
Github actions job. This enables catching documentation build failures
earlier and also more easily as the job failure will show up directly on
pull requests. The job currently only builds the documentation for LLVM,
but the plan is to extend it to also build the documentation for other
subprojects when appropriate (i.e., the docs files have changed),
starting with clang.
2023-10-16 22:08:45 -07:00
Jonas Devlieghere
9d11ec74b0 [GitHub] Add myself to CODEOWNERS for LLDB (NFC)
Add myself to CODEOWNERS for the lldb subdirectory.

Discourse discussion: https://discourse.llvm.org/t/usage-of-codeowners-file/73524
2023-10-06 08:03:39 -07:00
Vlad Serebrennikov
918829959f [clang] Subscribe to DR changes 2023-10-05 18:44:01 +03:00
Nikita Popov
bc61395241 [llvm] Add myself to CODEOWNERS (NFC) 2023-10-04 16:42:17 +02:00
Nikita Popov
91760dc38d Add explanatory comment to CODEOWNERS (NFC) 2023-10-04 16:42:15 +02:00
Tom Stellard
95b2c6b3d6 workflows/release-binaries: Use more cores to avoid the 6 hour timeout (#67874) 2023-10-03 11:40:41 -07:00
Tobias Hieta
acb6e855a8 [workflow] Fix abi checker in llvm-tests. Same fix as in 99fb0af80d (#67957)
Fixes #67651
2023-10-02 18:14:02 +02:00
Vlad Serebrennikov
18b597be74 Remove 'vectorizers' label from PR labeler (#67810)
It's subsumed by an order of magnitude more popular `vectorization` label that is applied for the same path patterns.

Statistics (issues and PRs together):
`vectorization`: 91 open, 91 closed
`vectorizers`: 8 open, 5 closed 

All `vectorizers` usages has occurred in just the past 2 weeks, and likely by our bot.
2023-09-29 19:27:22 +04:00
Vlad Serebrennikov
b242820d1d Fix issue labeler applying incorrect label for libc++abi issues (#67811) 2023-09-29 18:46:42 +04:00
Tobias Hieta
db777db25c [Workflow] Update clang-format to 17.0.1 (#67402)
17.0.1 is our most recent stable version which we decided to follow and
it fixes the issue described in llvm/llvm-project#67343
2023-09-28 08:37:30 +02:00
Tom Stellard
7d6c3a2473 workflows/pr-receive: Ignore draft pull requests (#66578)
This prevent users from being subscribed automatically to draft pull
requests.
2023-09-26 15:58:04 -07:00
Mehdi Amini
5746407a78 Fix duplicate entry new-prs-labeler.yml
Fixing the typo actually made it so that there were two entries for mlir:affine...
2023-09-26 01:48:53 -07:00
Mehdi Amini
f74e274af7 Update new-prs-labeler.yml to fix MLIR affine and presburger subscription
The pattern for mlir:presburger was incomplete, and there was a typo for mlir:affine (was spelled `afine`)

Also group the MLIR pattern, this file would better be sorted but this deserves its own commit.
2023-09-25 22:32:45 -07:00
Tulio Magno Quites Machado Filho
b2247f85dc workflows/release-tasks: Setup FileCheck and not for release-lit (#66799)
lit tests require commands FileCheck and not. They must be available in
the PATH.

This also guarantees that python3-psutil is installed in order to enable
more tests.

Fixes #64892.
2023-09-25 14:03:34 -03:00
cor3ntin
b7ff03206d [Documentation] Replace recommonmark by myst-parser (#65664)
Recommonmark has been deprecated, then archived last year. This was
tracked by: https://github.com/llvm/llvm-iwg/issues/30

See https://github.com/readthedocs/recommonmark

This patch migrates all our doc to use myst

Additional details for bot maintainers: https://discourse.llvm.org/t/maintenance-required-on-sphinx-build-bots/73612
2023-09-25 14:02:39 +02:00
Tobias Hieta
a6e81df289 [Workflow] Roll back some settings since they caused more issues
This needs more investigation.
2023-09-23 17:53:51 +02:00
Tobias Hieta
cefc31c921 [Workflow] Use a higher max depth
This can fix not being able to fetch the right amounts of history for the code-format flow.
2023-09-23 15:44:16 +02:00
Tobias Hieta
e33703fce9 [Workflow] Try to fix code-formatter failing to find changes in some cases.
See comment here: https://github.com/tj-actions/changed-files#usage-
2023-09-23 15:30:21 +02:00
Tobias Hieta
bd0281669e [workflow] Tweak code formatting workflow to be faster
This should limit how many commits we need to fetch and should be faster.
2023-09-22 17:18:23 +02:00
Tobias Hieta
a1177b0bdb Reland: [Workflow] Add new code format helper.
I landed this format helper, but unfortunately, it didn't work because
of permissions, it could not add comments on a fork's PR. @cor3ntin
informed me there are fixes for this that you had worked on @tstellar -
but I didn't have time to read up on it too much. Can you explain what
changes are needed to get the action to be able to write comments on
fork's PR?
2023-09-22 10:26:09 +02:00
ChiaHungDuan
2aa4a32af1 [Github] Add compiler-rt:scudo label to scudo prs (#66829) 2023-09-21 13:52:05 -07:00
Tobias Hieta
fe5c185641 Revert "[Workflow] Add new code format helper. (#66684)"
This reverts commit da94bf0d56.
2023-09-20 10:01:37 +02:00
Tobias Hieta
da94bf0d56 [Workflow] Add new code format helper. (#66684)
This helper will format python files with black/darker and
C/C++ files with clang-format.

The format helper is written so that we can expand it with new
formatters in the future like clang-tidy.
2023-09-20 08:52:29 +02:00
Danila Malyutin
01475dc29a [github] Make branch workflow more robust (#66781)
Avoid false positives by requiring space after `/branch` command so the
action won't trigger on diffs that include filenames like
`.../BranchProbabilityInfo.cpp`.
2023-09-19 22:18:16 +03:00
Tom Stellard
5e4e2a5aae workflows/pr-receive: Ignore pull requests with 10 or more commits (#66320)
This will cause the auto-labeler not to run on pull requests with more
than 10 commits. Usually larger pull requests like this are mistakes and
we want to avoid generating an excessive amount of notifications.

It may be possible for legitimate pull requests to have 10 or more
commits from people pushing fixup commits to addresss review comments.
However, these pull requests should already have the correct labels by
the time they grow to 10 commits.
2023-09-16 07:45:50 -07:00
Corentin Jabot
a59870a05c [Github] Fix yml syntax 2023-09-16 12:27:08 +02:00
cor3ntin
f3796acd77 [Github] Do not label clang-format files as clang (#66388) 2023-09-16 11:04:00 +02:00
Markus Böck
6af7bf6953 [GitHub] Fix mlir:core label definition (#66556)
The current regex for the `mlir:core` PR label is too accepting. It uses
`**` as a prefix for all paths, which allows any kind of directory
prefix to be inserted when matching. Combined with very common directory
suffixes such as `IR` and `Transforms`, it leads to many false positives
of being applied to PRs that do not touch MLIR core such as
https://github.com/llvm/llvm-project/pull/66520

This PR therefore changes the `mlir:core` labels to only include the
specified top-level directories if directly nested under either `lib`
for source files, or `include` for header files
2023-09-16 00:41:51 +02:00
Louis Dionne
8f44edbd24 [runtimes] Add CODEOWNERS entries for libc++, libc++abi and libunwind (#66416)
This ensures that a review from the appropriate teams is requested on
PRs that modify files belonging to these projects.

Relevant discussion: https://discourse.llvm.org/t/changes-to-pull-request-subscription-system
2023-09-15 16:15:26 -04:00
cor3ntin
6c8243060d [Github] Use our own issue labeler fork (#65900)
- Only adds 'new issue' if no other label is added
(https://github.com/llvm/llvm-project/issues/65701)

- No not add labels if labels were already set
- Only add `foo` if there are no `foo:bar` label being added (although,
we don't use that yet)

Fixes #65701
2023-09-15 18:14:11 +02:00