Commit Graph

45 Commits

Author SHA1 Message Date
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
Anton Korobeynikov 686dca86bf Enable github issues 2021-12-11 12:13:33 +03:00
Anton Korobeynikov c0b40b96af Disable issues / pull requests via templates in preparation with migration 2021-12-01 21:43:22 +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
Tom Stellard 3be1f4b8fd repo-lockdown: Add pr comment and fix typo 2021-10-18 14:31:44 -07:00
Tom Stellard 20d397f853 workflows: Migrate repo-lockdown to GitHub Actions
https://github.com/dessant/repo-lockdown/issues/6
2021-10-18 14:22:49 -07:00
Mike Edwards fe190cf6c9 Removing the main to master sync GitHub workflow. 2021-01-28 12:18:25 -08:00
Tom Stellard eefd420e00 [github] Move repo lockdown config into llvm-project repo
We were storing this in the .github repo and moving this into llvm-project
will allow us to delete the .github repo.
2021-01-11 16:20:08 -08:00
Mike Edwards 62ec4ac907 [PATCH] github actions: Pepare main branch for being read/write
Patch provided by Tom Stellard <tstellar@redhat.com>
2020-12-06 22:16:36 -08:00
Tom Stellard 91843f7949
github actions: Update branch_sync to push to main 2020-12-01 16:22:30 -08:00
Tom Stellard 4e85e0ca90
github actions: Use correct credentials for pushing 2020-11-30 12:25:43 -08:00
Tom Stellard c9eae09251
github actions: Use llvmbot token for main branch sync
The default github actions token cannot push to restricted branches, so we need to use a token from the llvmbot user.
2020-11-25 14:43:18 -08:00
Tom Stellard da886bf471 GitHub Actions: Add job for automatically updating the main branch
Differential Revision: https://reviews.llvm.org/D91554
2020-11-20 22:26:11 -08:00
Tom Stellard c3ab38eaa9 Revert Add github lockdown app to auto-close pull requests.
This reverts r364358 (git commit b37f2f3391)

Moving this file to a separate repository https://github.com/llvm/.github,
 so it doesn't pollute the main tree.  It also did not appear to be working.

llvm-svn: 364558
2019-06-27 16:23:26 +00:00
Tom Stellard b37f2f3391 Add github lockdown app to auto-close pull requests.
llvm-svn: 364358
2019-06-25 22:51:46 +00:00