Commit Graph

35 Commits

Author SHA1 Message Date
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