Commit Graph

43 Commits

Author SHA1 Message Date
Kevin Krakauer e55fb66ecd use github issue templates 2021-07-14 13:10:55 -07:00
Ian Lewis 927bb26517 Don't mark issues as stale.
PiperOrigin-RevId: 378306356
2021-06-08 20:08:17 -07:00
Ian Lewis 32b66bb2be Add badges for Github actions so it's easier to notice when they are failing.
PiperOrigin-RevId: 374331016
2021-05-17 19:44:02 -07:00
Ian Lewis 1699d702cb Fix issue reviver
Fixes invocation of the Github issue reviver by including the required 'path'
command line option. Also updates the issue reviver to add a 'revived' label to
revived issues. Issues with a 'revived' label will no longer be marked as
stale.

PiperOrigin-RevId: 373046772
2021-05-10 17:29:07 -07:00
Ayush Ranjan 915b813798 [op] Remove Build job from GitHub actions.
We already have blocking nogo tests which show all findings. This job was
building all nogo targets, and posting all the findings to GitHub as a check
run. Building nogo takes a while so we actually end up wasting a lot of time
doing redundant work.

This is aligned with our goal of moving away from GitHub actions to BuildKite
only.

PiperOrigin-RevId: 370134875
2021-04-23 12:33:48 -07:00
Ian Lewis 90900e4f8f Don't mark exported PRs as stale.
PiperOrigin-RevId: 368121539
2021-04-12 17:56:06 -07:00
Seth Vargo 449913e655
Update go.yml 2021-03-11 13:25:04 -05:00
Seth Vargo ddc69a1638
Improve Actions hygiene
👋 hello there! I'm a fellow Googler who works on projects that leverage GitHub Actions for CI/CD. Recently I noticed a large increase in our queue time, and I've tracked it down to the [limit of 180 concurrent jobs](https://docs.github.com/en/actions/reference/usage-limits-billing-and-administration) for an organization. To help be better citizens, I'm proposing changes across a few repositories that will reduce GitHub Actions hours and consumption. I hope these changes are reasonable and I'm happy to talk through them in more detail.

- (**you were already doing this, thank you!**) Only run GitHub Actions for pushes and PRs against the main branch of the repository. If your team uses a forking model, this change will not affect you. If your team pushes branches to the repository directly, this changes actions to only run against the primary branches or if you open a Pull Request against a primary branch.

- For long-running jobs (especially tests), I added the "Cancel previous" workflow. This is very helpful to prevent a large queue backlog when you are doing rapid development and pushing multiple commits. Without this, GitHub Actions' default behavior is to run all actions on all commits.

There are other changes you could make, depending on your project (but I'm not an expert):

- If you have tests that should only run when a subset of code changes, consider gating your workflow to particular file paths. For example, we have some jobs that do Terraform linting, but [they only run when Terraform files are changed](c4f59fee71/.github/workflows/terraform.yml (L3-L11)).

Hopefully these changes are not too controversial and also hopefully you can see how this would reduce actions consumption to be good citizens to fellow Googlers. If you have any questions, feel free to respond here or ping me on chat. Thank you!
2021-03-10 16:36:21 -05:00
Adin Scannell e74aa25e22 Fix Go branch building.
Files removed from the working tree were not being properly removed from
the branch, leading to symbol conflicts while building. This requires the
change to 'git add --all' in the tools/go_branch.sh script.

But why was this not caught by CI? The "git clean -f" command by default
only cleans files in the current working directory. In order to clean the
whole tree recursively, we need to specify a pathspec, which is ".".

In addition to these fixes, re-add the "go tests" command to help prevent
this from happening again, since merges on the Go branch will happen in
GitHub actions for simplicity. The Go test is retained in BuildKite.

PiperOrigin-RevId: 351503804
2021-01-12 20:33:28 -08:00
Adin Scannell a20da70829 Fix Go branch for arm64.
This requires several changes:
* Templates must preserve relevant tags.
* Pagetables templates are split into two targets, each preserving tags.
* The binary VDSO is similarly split into two targets, with some juggling.
* The top level tools/go_branch.sh now does a crossbuild of ARM64 as well,
  and checks and merges the results of the two branches together.

Fixes #5178

PiperOrigin-RevId: 351304330
2021-01-11 22:33:36 -08:00
Adin Scannell 33d59811fc Change the build badge to point to BuildKite.
PiperOrigin-RevId: 350197814
2021-01-05 12:40:22 -08:00
Adin Scannell 2a5d3c248f Add YAML validation for configuration files.
For validation, the "on" key in existing YAML files is changed to a literal
string. In the YAML spec, on is a keyword which encodes a boolean value, so
without relying on a specific implementation the YAML files are technically
not encoding an object that complies with the specification.

PiperOrigin-RevId: 350172147
2021-01-05 10:43:04 -08:00
Tamir Duberstein 3ff7324dfa Avoid duplicate `run` key
This GitHub action has been failing since 4e963c9.

PiperOrigin-RevId: 349327675
2020-12-28 13:57:54 -08:00
Adin Scannell 4e963c99ce Cleanup GitHub actions workflows.
Also, drop the pull_request template, since this has not proved to be
helpful, and just results in a commit message the includes the list.

PiperOrigin-RevId: 347636507
2020-12-15 10:05:47 -08:00
Ian Lewis 43dd7a2005 Fix labels on issue templates
PiperOrigin-RevId: 342577869
2020-11-16 00:06:02 -08:00
Adin Scannell 994c90e2d2 Add nogo check annotations to GitHub.
When nogo checks are violated, they will automatically posted
as annotations on the specific GitHub commit. This allows us
to ensure analysis & style rules and have them called out.

PiperOrigin-RevId: 334447285
2020-09-29 13:16:54 -07:00
Ian Lewis c053c4bb03 Fix GitHub issue template.
runsc -v doesn't work. It should be runsc -version

PiperOrigin-RevId: 331911035
2020-09-15 19:49:56 -07:00
Andrei Vagin bd3252d5cf github: Don't build the Go branch for feature branches
We can't actually push the Go branch on pushes to feature branches.

Signed-off-by: Andrei Vagin <avagin@google.com>
2020-09-09 14:56:59 -07:00
Andrei Vagin 27897621da github: run actions for feature branches
Signed-off-by: Andrei Vagin <avagin@google.com>
2020-09-09 10:56:11 -07:00
Fabricio Voznika 25babd6351 Run bazel build before deleting cached gopath files
bazel creates sysmlink to the cache on the first invokation.
On a new clone, there are no symlink, thus `rm -rf bazel-bin/gopath`
has no effect. Call `bazel build something` first, then delete
cached gopath.

PiperOrigin-RevId: 327536044
2020-08-19 17:05:45 -07:00
Adin Scannell e3c349d219 Fix syntax error in issue_reviver.
PiperOrigin-RevId: 324642975
2020-08-03 11:22:52 -07:00
Adin Scannell 10f6c41bbd Include shim binaries in the Go branch.
PiperOrigin-RevId: 324615016
2020-08-03 09:09:51 -07:00
Adin Scannell a7d9aa6d5b Use proper set-output syntax.
PiperOrigin-RevId: 324302828
2020-07-31 16:08:29 -07:00
Adin Scannell cb1a3ba63a Fix merge flow for Go branch.
PiperOrigin-RevId: 324024075
2020-07-30 10:05:48 -07:00
Adin Scannell a05ea20ef1 Don't attempt to use the secret if it does not exist.
Fixes #3326

PiperOrigin-RevId: 323589669
2020-07-28 09:40:44 -07:00
Ian Lewis 74df310ac0 Don't run issue reviver on forks.
Add a conditional to avoid running the issue reviver on forks. It will
always cause errors since bug references in the source code don't match
issue IDs in forked repos.

PiperOrigin-RevId: 321042060
2020-07-13 15:07:00 -07:00
Adin Scannell 8d8dce418f Add stale issue & PR cleanup.
PiperOrigin-RevId: 315020368
2020-06-05 16:51:58 -07:00
Adin Scannell 0bc022b7f3 Fix push for Go branch.
PiperOrigin-RevId: 313419745
2020-05-27 10:49:04 -07:00
Adin Scannell 8437ef752d Normalize permissions in the go branch.
Fixes #2722
2020-05-20 22:57:52 -07:00
Adin Scannell f2f2dec728 Add simplified badge and Build workflow.
PiperOrigin-RevId: 312159017
2020-05-18 14:53:23 -07:00
Adin Scannell cbfb55869e Implement Go branch updater with GitHub actions.
PiperOrigin-RevId: 312155686
2020-05-18 14:36:16 -07:00
Adin Scannell f589a85889 Run issue_reviver via GitHub.
PiperOrigin-RevId: 311600872
2020-05-14 14:02:43 -07:00
Adin Scannell 89562b5b2b Run labeller only for non-forked pull requests.
Otherwise the labeller will generate an error each time.

PiperOrigin-RevId: 309505731
2020-05-01 17:50:07 -07:00
Adin Scannell 2e8c35b506 Add basic GitHub labeler workflow.
This is the first automated GitHub actions workflow, and it simply applies
labels to pull request in a best-effort fashion.

PiperOrigin-RevId: 308112191
2020-04-23 13:02:17 -07:00
Adin Scannell c31641150d Add GitHub pull request template.
This just provides some sane reminders and ticks a box on the GitHub UI. This
change also cleans up the issue template, as there is already an automatic
link to the repository's security disclosure policy.

PiperOrigin-RevId: 307868833
2020-04-22 12:12:49 -07:00
Adin Scannell 89822a4461 Move to GitHub's new issue templates.
This allows us to specify a richer configuration for the issue template, that
effectively moves a lot of the "metadata" from the template itself to the main
issue page.

PiperOrigin-RevId: 307666509
2020-04-21 13:14:09 -07:00
Adin Scannell e3c5fa3345 Update CONTRIBUTING.md
PiperOrigin-RevId: 250730726
2019-05-30 12:09:10 -07:00
Adin Scannell f18a8f9581 Update README.md to point to gvisor.dev
PiperOrigin-RevId: 242690968
Change-Id: I1ac2248b5ab3bcd95beed52ecddbb9f34eeb3775
2019-04-09 10:20:21 -07:00
Ian Gudger 5666e35c43 Improve consistency of github templates
PiperOrigin-RevId: 195735915
Change-Id: If4dcd836c3cf9da7c314b95101b23f95ff0eb234
2018-05-07 15:52:47 -07:00
Fabricio Voznika 2c21e4c32c Make bug template more readable in edit mode
When editing the bug, the rendered view of the tags don't show up. This format is easier to read.

PiperOrigin-RevId: 195697019
Change-Id: If9bb818b7ecd28bb87608a52b3343d488144ebfd
2018-05-07 11:50:36 -07:00
Ian Gudger f94d90073f Add to the github issue template
PiperOrigin-RevId: 195444658
Change-Id: I62d12405324f9c80ec572c65d76c5f320a9b549e
2018-05-04 11:26:22 -07:00
Fabricio Voznika 7e82550bf7 Add github bug template
PiperOrigin-RevId: 195382309
Change-Id: I3e50206d137bb15c0532282ffbc3508aa5ddeb28
2018-05-04 01:24:23 -07:00
Nicolas Lacasse b6c21eb1f7 Add a GitHub pull request template.
It directs users to our contributor guidelines and Gerrit instance.

PiperOrigin-RevId: 194830523
Change-Id: I9882da0e95d04f7e1ee941bf65d40fbe45a47b24
2018-05-01 09:42:37 -04:00