Commit Graph

142 Commits (986bd28ed54e0edd622ef1067200b80f9ce005f7)

Author SHA1 Message Date
Mike McQuaid 9230f14842
.github/PULL_REQUEST_TEMPLATE.md: refer to default branch with HEAD. 2020-06-25 11:20:46 +01:00
Dawid Dziurla e337444f11
workflows: remove extra space 2020-06-20 12:11:06 +02:00
Dawid Dziurla 77babe22b6
workflows: run jobs on ubuntu VMs instead containers (#55126)
should be faster
2020-05-22 18:53:05 +02:00
Mike McQuaid f7f14cb527
workflows/tests: don't update-reset homebrew/core. (#54644)
This shouldn't be necessary as there's a slimmer fetch happening below.
2020-05-13 11:22:44 +01:00
Bo Anderson a17a5e2e3d
workflows/tests: fix for pre-installed Linuxbrew (#54626) 2020-05-12 22:13:03 +01:00
Dawid Dziurla 8417673871
workflows: dismiss reviews if bottle publish failed (#54324)
Reviews could be automatically dismissed on new commits pushed (there is
an option for that in repository settings on Github). That is not the
case for labels. They remain attached to a PR, even when new commits are
pushed. This is undesirable and creates security concerns, because
someone could introduce untested code just before the automerge happens.
2020-05-09 10:57:11 +02:00
Mike McQuaid d81fea0b7b
workflows/tests: tweak caching (#54369)
Avoid setup.rb being incorrectly cached.
2020-05-07 17:45:05 +01:00
Dawid Dziurla 295336ad3c
workflows: more appropriate step name 2020-05-05 13:49:47 +02:00
Dawid Dziurla cb374ce51a
workflows: git push with backoff
ported from linuxbrew-core
2020-05-05 13:41:46 +02:00
EricFromCanada f294cea9e5 actions: remove generate_formulae.brew.sh_data.yml
Closes #54119.

Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
2020-05-04 20:06:01 +00:00
Jonathan Chang 0d5644a597 workflows: fix case 2020-05-02 23:22:06 +10:00
Jonathan Chang dfeab962a4 workflows: fix syntax 2020-05-02 23:17:24 +10:00
Jonathan Chang 4ef1abba43 workflows: also post comment on cancellation 2020-05-02 23:12:29 +10:00
Mike McQuaid 433cedc2bd
workflows/tests: cleanup tapping. (#54072)
- Don't auto-update (can mess with branches)
- Don't need to `update-reset` as `test-bot` isn't in Actions images
2020-05-01 11:41:31 +01:00
Mike McQuaid dd523db64c
workflows/tests: check tap_syntax on Linux too. (#54046)
We want to make sure all formulae are readable and pass style checks on
both macOS and Linux.

Why Linux? We're doing increasing numbers of things on Linux (bottle
uploads, formulae.brew.sh generation, etc.) and can no longer have
homebrew-core only work on macOS.

This means that changes that make formulae unreadable on Linux will need
to be fixed (e.g. https://github.com/Homebrew/brew/pull/7470) before the
formula changes are merged.

As a nice side-effect: this should make life easier for linuxbrew-core
maintainers.
2020-05-01 09:16:55 +01:00
Bo Anderson c6fe159082 workflows/publish-commit-bottles: increase retry count 2020-04-28 20:11:02 +01:00
Bo Anderson 2dec193d88
workflows/scheduled: don’t run on forks (#53880) 2020-04-28 12:34:16 +01:00
Bo Anderson 1b758951e8
workflows/tests: run tap_syntax on master push (#53842)
workflows/tests: run tap_syntax on master push.

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-04-28 11:28:33 +01:00
Jonathan Chang dc8c20150a
workflows: don't ping BrewTestBot on schedule (#53827) 2020-04-27 21:04:07 +10:00
Mike McQuaid e4fa680502 workflows/tests: move tap_syntax checks to hosted workers.
We have more hosted workers, this avoids running them three times and
generally saves our self-hosted workers for jobs that aren't too broken.
2020-04-27 11:25:50 +01:00
Issy Long 48798a1014
publish-commit-bottles: Revert 7dcd5e2 and a7ce130 (#53801)
- The "potentially fix syntax" commit did not fix it.
- Revert to make `brew pr-publish` work again, so we can ship software
  to users.
- Dinner calls, and even though we could probably do an `if` in the main
  `script` code, I don't trust myself to write JS well enough after this!
2020-04-26 20:35:47 +01:00
Issy Long a7ce1303b8
publish-commit-bottles: Fix syntax? (#53800)
- Sorry folks, 7dcd5e2be6 was bad:

> The workflow is not valid.
> .github/workflows/publish-commit-bottles.yml (Line: 31, Col: 13):
> Unrecognized named-value: 'context'. Located at position 1 within
> expression: context.actor != "BrewTestBot"

- Maybe if it does the `if` after the `uses`, it'll know what `context`
  is?
2020-04-26 20:26:34 +01:00
Issy Long 7dcd5e2be6 publish-commit-bottles: Don't comment if it's a @BrewTestBot auto-merge
- This was annoying me, and it must have been weird to contributors too,
  to have a bot reference itself.
- Since PRs can still be merged with `brew pr-publish` _outside_ of
  the auto-merge process, ie if things are particularly urgent, I've
  kept this in for human maintainers who trigger the action.
- The "publish failed" message is still useful in all cases.

Closes #53798.

Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
2020-04-26 19:05:29 +00:00
Mike McQuaid 45076510b3 workflows/tests: split test-bot invocations.
This should improve the GitHub Actions output.
2020-04-26 14:31:09 +01:00
Jonathan Chang f6a625fd44 workflows: set user name 2020-04-26 12:09:29 +10:00
Jonathan Chang 87c4c1137d workflows: fix committer for nameless users 2020-04-26 11:08:13 +10:00
Jonathan Chang b17640aba9 workflow: fix parens 2020-04-26 10:14:00 +10:00
Jonathan Chang 6b50c0228f workflows: remove "ready to merge" on publish fail 2020-04-26 10:13:26 +10:00
Jonathan Chang ad9251e048 workflows: enable autopublish 2020-04-26 10:09:17 +10:00
Dawid Dziurla f888779204
workflows: add autopublish workflow (#53194)
Only do a dry run, for now.
2020-04-25 16:28:24 +10:00
Mike McQuaid 17db3c9522 workflows/tests: output failures.
Provide a summary of what steps failed.
2020-04-22 13:56:56 +01:00
Dawid Dziurla 64b782f2cd
Revert "workflows: don't use Docker container"
This reverts commit 5d35fe1f38.

`line 1: brew: command not found`
2020-04-21 10:33:34 +02:00
Jonathan Chang 5d35fe1f38 workflows: don't use Docker container 2020-04-19 22:43:05 +10:00
Issy Long 052d729e64
publish-commit-bottles: Fix bug with error message syntax from #53098 (#53104)
- I tried to be too clever. Given that I don't know JS, that was a bad
  idea. Let's do this the less elegant but (hopefully) definitely
  working way to avoid cryptic errors like:

```
[error]Cookies must be enabled to use GitHub.
```

from [`pr-publish` Actions runs](https://github.com/Homebrew/homebrew-core/runs/583194836?check_suite_focus=true).
2020-04-13 18:09:24 +01:00
Issy Long cbc4461925
publish-commit-bottles: Improve linking in "merge triggered/failed" messages (#53098)
- It was probably not entirely clear to users what "bottle pull" meant.
- We can use Markdown style links to make the message shorter.
- Tested in a browser with `console.log()` as that's as far as my JS
  goes!
2020-04-13 17:33:27 +01:00
Mike McQuaid 06a8b116f1 workflows/tests: make consistent with Homebrew/brew.
Make more of the logic consistent with what Homebrew/brew's GitHub
Actions' configuration does.
2020-04-13 11:31:58 +01:00
Issy Long c1c9fe85bc
publish-commit-bottles: Comment on a PR when someone triggers the Action (#53002)
- I went to do my first `brew pr-publish` on a "ready to merge" PR and
  it failed, because @dawidd6 had already started.
- We can't expect maintainers to pick through the Actions UI to find
  existing Actions that are running for the formula - the UI isn't
  that good.
- So this adds a comment to the PR, when the Action starts, to say who
  started it. It serves as a warning to other maintainers that it's in
  hand and to not try. Unless it fails for some reason.
2020-04-12 11:41:20 +01:00
Jonathan Chang 36497e0c51 workflows: update name to reflect migration 2020-04-11 18:37:12 +10:00
Sean Molenaar bbd457a944 Workflow: Set GITHUB_TOKEN variable 2020-04-09 18:25:51 +10:00
Jonathan Chang f34ce2de48 workflows: post comment on pr-publish failure 2020-04-08 20:03:38 +01:00
Bo Anderson 26f20caec7 workflows/tests: update Homebrew before running 2020-04-04 16:01:25 +11:00
Bo Anderson c974d3d6af
workflows/tests: always upload bottles (#52431) 2020-04-02 10:09:45 +01:00
Dawid Dziurla 16722fb659
workflows: mount unzip from runner 2020-03-31 14:27:27 +02:00
Dawid Dziurla 087583d351
workflows: configure git for pull-pr 2020-03-31 14:26:41 +02:00
Dawid Dziurla 39cc29c9f7
workflows: verbose pull-pr 2020-03-31 13:52:28 +02:00
Dawid Dziurla e76a9e1153
workflows: install unzip
required by `brew pr-pull`
2020-03-31 13:42:11 +02:00
Dawid Dziurla bceaedeb7d
workflows: set HOMEBREW_GITHUB_API_TOKEN for pr-pull 2020-03-31 13:29:25 +02:00
Dawid Dziurla 1f14d3b40d
workflows: fix 2020-03-31 13:19:42 +02:00
Dawid Dziurla 14306c1a6a
workflows: use brew pr-pull (#52372) 2020-03-31 13:17:07 +02:00
Bo Anderson 24edab7e65
workflows/tests: don't fail fast (#52152) 2020-03-26 19:55:28 +11:00