Commit Graph

58 Commits

Author SHA1 Message Date
Tom Stellard
3e984182dc workflows/release-tasks: Upload lit releases to pypi
Reviewed By: thieta, kwk

Differential Revision: https://reviews.llvm.org/D146491
2023-05-31 09:25:19 -07:00
Tobias Hieta
e46aa6d3b6
[NFC][Py Reformat] Reformat version-check.py in .github dir 2023-05-26 08:11:06 +02:00
Tom Stellard
afa607fbac workflows/release-tasks: Remove stray backslash
Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D150018
2023-05-12 23:34:05 -07:00
Tom Stellard
63bd7726d1 workflows/repo-lockdown: Ignore libcxx and related sub-directories
https://discourse.llvm.org/t/opening-up-prs-experimentally-for-a-subset-of-the-llvm-project/70375/11

Reviewed By: ldionne

Differential Revision: https://reviews.llvm.org/D150314
2023-05-12 23:20:24 -07:00
Tom Stellard
74acaf1809 workflows/release-binaries: Install missing dependencies
Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D148772
2023-04-20 08:21:53 -07:00
Tom Stellard
93d6289c98 workflows/release-tasks: Always run apt-get update before installing deps
There is a bug in the package tree of on the default images that
causes some dependencies not to be found.  Running apt-get gets us
the latest package lists rather than relying on the default lists
in the GitHub Runner imgae, which can be up to a week old.

Running apt-get update before intstalling packages is also recommended in
the official github documentation:

https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-ubuntu-runners

Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D148741
2023-04-20 08:15:50 -07:00
Tom Stellard
cd39791350 workflows/release-binaries: Add missing output variable
Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D148734
2023-04-19 12:59:00 -07:00
Jack Grigg
5b8156bf62 github: Add manual workflow to build and upload release binaries
Reviewed By: kwk

Differential Revision: https://reviews.llvm.org/D143535
2023-04-17 12:03:56 -07:00
Mohammed Keyvanzadeh
2b88298c2a
[github] update action and use major version
- Update the `actions/download-artifact` action to version 3.
- Use the major version of an action instead of specifying the minor or patch versions.

Differential Revision: https://reviews.llvm.org/D148327
2023-04-15 00:52:44 +03:30
Tom Stellard
64c30dc9a2 workflows/release-tasks: Fix missing suffix on doxygen tarballs
Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D145997
2023-03-27 23:28:18 -07:00
Tom Stellard
c52e947f9c workflows/release-tasks: Upload release notes as an artifact
This make sure the docs are always available and can be manually uploaded
if a later step fails.

Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D145996
2023-03-27 23:17:14 -07:00
Jessica Clarke
2be973e9d8 workflows: Don't try and run llvm-bugs in forks
Most forks won't have an LLVM_BUGS_KEY secret, so Mailgun will error out
with a missing key, and if forks do happen to have such a secret then we
still don't want to be getting emails to LLVM's mailing lists for
downstream forks.

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D146235
2023-03-16 16:47:07 +00:00
Joyce Brum
829b8912cd feat: harden permissions for all github workflows
Signed-off-by: Joyce Brum <joycebrum@google.com>

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D144119
2023-03-03 21:34:27 -08:00
Mohammed Keyvanzadeh
d30b187f7d
[github] update actions and make tweaks
- Update the GitHub workflow actions to their latest versions.
- Use the latest Node.js LTS release.
- Use the latest Ubuntu version for consistency across all workflows.
- The `set-output` command is deprecated and will soon be disabled (https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) so use the new recommended way.
- Use the `$()` expressions for string interpolation instead of the deprecated backticks in Bash.
- Format the YAML files.

Differential Revision: https://reviews.llvm.org/D143015
2023-02-01 06:23:33 +03:30
Tom Stellard
683b83abaa workflows: Fix libclc tests
libclc requires using cmake files to detect the LLVM installation instead
of llvm-config so we need to update our cmake invocation.

Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D142716
2023-01-27 11:23:20 -08:00
Tom Stellard
9f307a02be workflows: Bump python version on Windows to try to fix lldb failure
Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D142719
2023-01-27 11:06:39 -08:00
Tom Stellard
57b491b5c1 Workflows: Fix version-check.py script for when there is no RC tag yet
Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D142598
2023-01-27 06:58:47 -08:00
Tobias Hieta
24c10abe83
[NFC] Fix exception in version-check.py script 2022-09-15 13:34:29 +02:00
Tom Stellard
99020b3c73 workflows/llvm-project-tests: Workaround an issue with lldb builds on Windows
For some reason cmake started selecting a 32-bit version of python on
Windows instead of the 64-bit version when building windows.  Explicitly
setting the default python to 3.10 fixes this problem.

Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D132280
2022-08-20 00:15:18 -07:00
Tom Stellard
5b108dfc15 workflows/version-check: Fix check for release candidates
Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D131650
2022-08-19 21:51:04 -07:00
Tobias Hieta
46a315a331
[workflow] Run release tasks for me (tru) as well.
Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D131493
2022-08-10 10:02:26 +02:00
Tom Stellard
be3587ae9a workflows: Fix typo from 2d3d0f50ce 2022-08-02 21:20:13 -07:00
Tom Stellard
2d3d0f50ce workflows: Remove symbol versions from libclang.so in the libclang ABI test
Now that the symbol version for libclang.so changes for each release again,
we need to remove the symbol versions from the shared library in order
for the ABI checker to be able to compare with an older version of the
shared library.
2022-08-02 21:15:39 -07:00
Tom Stellard
b9a6629193 workflows: Pass phab token to github-automation.py when creating a pull request
The script needs this in order to automatically assign a reviewer.
2022-07-29 09:59:55 -07:00
Tom Stellard
d9e02a30b1 workflows: Use macos-11 runners
macos-10.15 is deprecated and will be removed.
2022-07-27 23:25:58 -07:00
Tom Stellard
b1dace63b1 workflows: Use correct access token when pushing to llvm-project-release-prs repo
The checkout action will hard-code the default github actions token in
the git config so that all pushes use it.  We need to set
persist-credentials=false so we can use a token that has permission
to push to the llvm-project-release-prs repo.
2022-07-27 20:14:54 -07:00
Tom Stellard
51ba98d058 workflows: Fix version check for X.0.0 releases 2022-07-27 13:26:09 -07:00
Tom Stellard
858ded9cba workflows: Use sccache to speed up CI builds
Reviewed By: asl

Differential Revision: https://reviews.llvm.org/D129880
2022-07-26 17:25:26 -07:00
Tom Stellard
9d05de2a91 Import CI tests from the release branch
The tests still only run on pushes or pull requests for the release
branch, but having it in the main branch means we don't have to copy
the tests every time we create a new release branch.

Reviewed By: asl

Differential Revision: https://reviews.llvm.org/D129526
2022-07-26 16:53:24 -07:00
Tom Stellard
66d755bbf8 workflows: Add GitHub action for automating some release tasks
For each release tag, this action will create a new release on GitHub,
and for each -final tag, this action will build the documentation and
upload it to GitHub.

Reviewed By: hans, kwk

Differential Revision: https://reviews.llvm.org/D99780
2022-07-26 15:36:51 -07:00
Tom Stellard
f673dcc693 github: Automatically assign reviewers for backport requests
When there is a backport request, the GitHub Action that handles the
backport will now automatically assign the issue to the user(s) who
approved the commit in Phabricator and create an issue comment asking
them to review the request.

Reviewed By: thieta, kwk

Differential Revision: https://reviews.llvm.org/D126423
2022-07-26 15:30:27 -07:00
Mohammed Keyvanzadeh
7e5f75aa37
[github] format and refactor GitHub workflows
Format and refactor the GitHub workflow for consistency.

Differential Revision: https://reviews.llvm.org/D125197
2022-06-11 11:31:21 +04:30
Anton Korobeynikov
64cc8b2756 Disable Mailgun click tracking 2022-02-24 19:03:43 +03:00
Tom Stellard
90faaf811f issue-subscriber: Fix handling of labels with spaces
Fixes #53288

Reviewed By: mehdi_amini, asl, Quuxplusone

Differential Revision: https://reviews.llvm.org/D117745
2022-02-21 04:04:47 -08:00
Tom Stellard
fee491a10a issue-release-workflow: Add support for /cherry-pick command in issue body
Reviewed By: kwk

Differential Revision: https://reviews.llvm.org/D119312
2022-02-16 22:18:06 -08:00
Tom Stellard
9bbe44fb9d github: Fix automated PR creation for backports
GitHub Actions stores the token used for checking out a git repo in
the git configuration and then uses that token for pushes from that
repo too.  We need to use a different token for push because we
are pushing to the llvmbot/llvm-project repo and not the upstream repo,
so we need to disable persist-credentials when checking out the source.
2022-02-04 22:22:01 -08:00
Tom Stellard
e8485b744a github: Fix issue-subscriber workflow
This stopped working due to additional dependencies added to github-automation.py
by daf82a51a0
2022-02-03 16:12:24 -08:00
Tom Stellard
daf82a51a0 github: Add actions to automate part of the release workflow
This adds support for automatically cherry-picking and testing fixes for the
release branch using 'commands' in issue comments.  The two supported commands are:

/cherry-pick <commit1> <commit2> ...

Which will backport and test commits from main.  And also

/branch owner/repo/branch

Which will test commits from the given branch.

Reviewed By: alexbatashev, kwk

Differential Revision: https://reviews.llvm.org/D117386
2022-02-03 15:03:59 -08:00
Anton Korobeynikov
1f26aa42ce Remove "awaiting-review" labels from closed issues.
Fixes #53451
2022-01-27 23:06:15 +03:00
Tom Stellard
a2adebf409 workflows: Make issue-subscriber more robust for labels with special characters
Also, replace the existing actionscript implementation with a python
script that can be run outside of GitHub Actions.  The intention is
that going forward, all github action functionality would be implemented
in this script.

Reviewed By: kwk

Differential Revision: https://reviews.llvm.org/D116762
2022-01-14 22:04:54 -08:00
Tom Stellard
dd48c6aff9 github: Add action for automated issue notification
This adds a github action that will mention a team called issue-subscribers-$LABEL
whenever a label is added to a bug.  Mentioning the team will automatically
subscribe all team members to the bug.

Differential Revision: https://reviews.llvm.org/D114412
2022-01-05 10:36:29 -08:00
Anton Korobeynikov
ea927b504b No need to checkout a repo 2021-12-17 00:31:19 +03:00
Anton Korobeynikov
764f96cb3b Send to llvm-bugs 2021-12-17 00:30:35 +03:00
Anton Korobeynikov
2528557787 Install test mailer for github bugs 2021-12-17 00:26:21 +03:00
Alexander Batashev
84f2ef2f29 Disable issue labeler in LLVM forks
LLVM forks may use GitHub Actions as well as the upstream projects,
but they do not necessarily follow the same development processes.
Disable automatic issue labeling for forks, so that it does not
interfere with downstream repo automation.

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D115708
2021-12-14 20:02:54 +03:00
Anton Korobeynikov
8f64b5fd50
Use "new issue" label for tagging new issues
Apparently "help wanted" has some additional special meaning
2021-12-12 13:38:26 -08:00
Anton Korobeynikov
c16ced9937 Version bump 2021-12-12 12:58:52 +03:00
Anton Korobeynikov
f3c91b4f38 Try another labeler implementation 2021-12-12 12:54:29 +03:00
Anton Korobeynikov
5ccfb73756 Autolabel new issues 2021-12-12 12:46:21 +03:00
Alexander Batashev
84ccf0b891 Disable lockdown for external forks by default
GitHub Actions can be used in external forks, and this
workflow breaks all pull-requests for those who use both
GitHub Pull Requests and GitHub Actions.

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D112801
2021-10-29 14:54:20 -07:00