Commit Graph

495 Commits (80e7ed48f7b4b0d2c05d5b4ac85978d34df858e1)

Author SHA1 Message Date
Carlo Cabrera b6d0e2ee8f
triage: add more `long build` formulae (#95136) 2022-02-15 13:55:36 +08:00
Carlo Cabrera c356327ee1
workflows/tests: error when `long build` is set without `CI-long-timeout` (#94907)
We now use a `long build` label to identify PRs that need the
`CI-long-timeout` label but don't have it because other PRs are
currently using it.

Let's save some CI time by failing CI whenever a PR has the `long build`
label but not the `CI-long-timeout` label.

I've also updated `triage.yml` to add the `long build` label where
appropriate. The criterion I used here was whether a CI run that skips
dependent testing will still exceed the short timeout of 60 minutes.

This leaves out formulae that regularly take a long time only due to
having a large number of dependents (e.g. `python@3.*`, `go`). I think
this is the correct thing to do to avoid having to manually remove the
`long build` label every time the `triage` workflow is run in cases
where the CI run will not actually need `CI-long-timeout` (e.g. when we
use `CI-skip-dependents`).

This is based on the suggestion from #94792.
2022-02-11 23:26:48 +08:00
Carlo Cabrera c8e630a009
workflows/tests: set longer timeout for self-hosted Linux runner too (#93732) 2022-02-11 06:28:55 +08:00
Thierry Moisan d15507f655
Remove sonarqube-lts from the autobump list (#94557) 2022-02-10 17:43:24 +00:00
Carlo Cabrera dc934e95c6
tests: show linkage and bottle output earlier (#94825)
These don't need the outcome of the dependent tests, so let's show them
earlier. It'll also make the formulae step easier to distinguish from
the dependents step in the CI log.
2022-02-10 16:32:20 +08:00
rui 7d7647d91a
autobump: track more formulae (#94087)
* autobump: track more formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>

* remove dups and add more rust formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>

* fix case issue for `MeiliSearch` name

* autobump: remove `dwarfutils`

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>

* autobump: remove `fst`

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>

* autobump: remove `rover`

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2022-02-01 20:23:11 -05:00
Carlo Cabrera cc15e0491c
workflows/dispatch-build-bottle: always upload logs (#94130)
This is the same change as in #94067.

In particular, I need this in order to diagnose a bottling failure for
`libxslt` which I can't reproduce locally.
2022-01-30 15:46:45 +01:00
Dawid Dziurla a94d550a66
workflows: try to fix autobump (#94084) 2022-01-29 23:43:54 +01:00
Carlo Cabrera d59f5c4349
workflows/tests: always upload logs (#94067) 2022-01-29 23:54:33 +08:00
Carlo Cabrera ea93315763
workflows/tests: fix GraphQL query errors (#93472)
The `response` has no `data` property -- this is already read by
Octokit.
2022-01-20 22:51:50 +01:00
Carlo Cabrera 6a3ee7e606
workflows/tests: show `brew linkage` output (#93341)
Needs Homebrew/homebrew-test-bot#771.
2022-01-18 16:20:04 +01:00
Carlo Cabrera ad5776e46c
workflows: remove `HOMEBREW_RELOCATE_RPATHS` (#93327)
These now do nothing since Homebrew/brew#12745.
2022-01-18 21:16:56 +08:00
Carlo Cabrera c68d9b70d6
tests: get debug output for failed API queries (#93275)
I got in touch with GitHub Support about our constantly failing GraphQL
queries. They requested for the `x-github-request-id` in the response
header of any of our failed queries, so I'm adding this to try to
generate one.
2022-01-17 21:51:00 +08:00
rui e523676669
autobump: track more formulae (#92769)
* autobump: track more formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>

* track more go formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-01-10 13:56:05 +01:00
Carlo Cabrera 432a355fa7
workflows/tests: warn when label count query fails (#92555)
I suspect this query is failing all the time these days, but can't
confirm because the query fails silently. Let's at least set a warning
when it fails so what we can check whether it did or didn't.
2022-01-05 21:27:35 +08:00
rui c28cc34670
autobump: track more java formulae (#92328)
* autobump: track more java formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>

* add more apache formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-01-03 10:58:48 -05:00
rui 8281139e75
autobump: track more php formulae (#92189)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-12-30 07:42:58 -05:00
rui f688d269b3
autobump: track more formulae (#91955)
* autobump: track more formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>

* remove dup

Signed-off-by: Rui Chen <rui@chenrui.dev>

* add some more formulae

Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-12-24 08:49:09 +01:00
Rui Chen ef6cd71d2d autobump: track more rust formulae
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-12-19 18:29:14 +01:00
Bo Anderson e0174499bb
workflows: invoke self-hosted logic on Linux (#91274) 2021-12-14 19:09:41 +00:00
Carlo Cabrera 5950a53872
workflows/tests: remove `bottles` directory on Linux (#90766)
Creating this directory produces a `File exists` error on the
self-hosted Linux runner (cf. #90611).

There ought to be a better solution, but I have no idea what it is, so
let's unblock PRs that need the self-hosted runner for now.
2021-12-09 19:00:15 +08:00
Issy Long 9c63066585
ci: Make the 'CI-long-timeout' check fail open on GitHub API errors (#90735) 2021-12-09 08:09:17 +08:00
Carlo Cabrera 631d0f057c
workflows/tests: limit use of `CI-long-timeout` label (#90718)
* workflows/tests: limit use of `CI-long-timeout` label

The `CI-long-timeout` label is currently overused: it is almost always
added to every PR that takes longer than an hour to run, and we suffer
from long CI queues as a consequence. This defeats the purpose of having
the label in the first place.

Let's try to mitigate this by automatically removing the
`CI-long-timeout` label whenever there are at least two open PRs that
already have the label applied.

I employ a little hack to be able to use our `label-pull-requests`
action, since trying to do this with `actions/github-script` is a little
involved. An alternative to this is to use an external action such as
`andymckay/labeler`. [1] I can also look at adapting our action
properly, but this might take a while since I don't know JavaScript.

[1] https://github.com/andymckay/labeler

* Consolidate timeout label jobs

* Fail long-timeout PRs when there are too many of them

This gets around the issue of requiring a token with write permissions
to pull requests.

* Integrate long PR count into `tap_syntax` job

* Improve error message

Also, extract the maximum number of long-timeout PRs to a variable for
clarity.
2021-12-08 22:50:16 +08:00
Bo Anderson 044713f3a2
workflows/dispatch-rebottle: dynamic runner selection (#89984) 2021-12-04 06:59:31 +08:00
Carlo Cabrera 5745d44303
triage: skip recursive dependents for `sqlite` (#90332)
sqlite is quite good at maintaining API/ABI compatibility, so there
isn't really much of a need to spend an extra two days on CI testing
recursive dependents.

Let's also fix the incorrect reference to `openssl.rb` since it's also
on the same line, and remove sqlite and rust from having the
`CI-linux-self-hosted` label automatically applied.
2021-12-03 21:43:21 +00:00
Carlo Cabrera e70c5a9923
bug.yml: fix missing `label` property (#90232)
Submitting bug reports hasn't worked for a while because of the missing
`label`.

My editor complained about `labels` needing to be an array, so I've made
that one too. It was also complaining about the missing label property
for the checkboxes, so I guess it knows what it's talking about here.

See https://github.com/Homebrew/discussions/discussions/2526#discussioncomment-1731168
2021-12-01 15:28:41 -05:00
fn ⌃ ⌥ f03c62e3d4 workflows: update legacy formula exceptions 2021-11-23 11:56:49 +00:00
fn ⌃ ⌥ 3f3fa990a4
workflows/triage: replace JSON with YAML (#89759) 2021-11-22 20:03:41 +08:00
Dawid Dziurla f775b14e4a
workflows: use `container` (#89586) 2021-11-21 09:38:09 +01:00
Dawid Dziurla 84870fee08
workflows/autobump: fix username setting (#89747) 2021-11-20 16:51:57 +08:00
Carlo Cabrera 542ed55211
tests: set timeout via flags only on self-hosted runners (#89620)
We're not particularly constrained (yet?) in our use of GitHub runners,
so we probably don't need to cut jobs short when using them. This would
be useful for PRs such as #89617 where the macOS runners finish in under
an hour, but the Linux runner requires more than an hour to complete.
2021-11-18 21:30:58 +08:00
Dawid Dziurla a6f2a9d096
workflows/autobump: flip username logic 2021-11-18 10:38:17 +01:00
Rui Chen be475e0c30 workflows/autobump: track more formulae
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-11-17 00:58:33 -05:00
Rui Chen ed312b910e workflows/autobump: track more nodejs formulae
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-11-14 19:49:53 -05:00
Dawid Dziurla eeeeb6e109
workflows/triage: label dotnet formula PRs (#89327) 2021-11-13 21:40:13 +01:00
Carlo Cabrera 4642fe362e
workflows: use `--skip-online-checks` for bottle jobs (#89268)
This follows from the discussion at Homebrew/homebrew-test-bot#699, and
implements part of #89265.
2021-11-12 20:29:25 +08:00
Rui Chen cc327e2675 workflows/autobump: track some nodejs formulae
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-11-07 10:04:24 -05:00
Dawid Dziurla f141a8f3b6
workflows/autobump: fix you typo 2021-11-07 12:32:39 +01:00
Dawid Dziurla 363aac9ffa
workflows/autobump: configure git user based on event type 2021-11-07 12:24:31 +01:00
Rui Chen 04c6be9753 workflows/autobump: update formulae list 2021-11-06 02:05:58 -04:00
Carlo Cabrera bca470a3a1 Remove `CI-force-{arm,linux}` label handling
These will do nothing when Homebrew/homebrew-test-bot#687 is merged.
2021-11-05 18:19:23 +08:00
Carlo Cabrera b0b2d58211 workflows/tests: enable Monterey CI on PRs
Pair with Homebrew/homebrew-test-bot#682.
2021-11-05 18:19:23 +08:00
Carlo Cabrera 8f8ecf17c9
dispatch-build-bottle: upload failed bottles (#88191)
This is useful for examining built bottles that somehow failed the tests
for some other reason. (e.g. https://github.com/Homebrew/homebrew-core/issues/87708#issuecomment-951088501)

This change is identical to the code that's already in `tests.yml`:

ce050467b2/.github/workflows/tests.yml (L300-L315)

While we're here, let's also echo the timeout, since this is useful to
know while a job is running.
2021-10-28 20:50:40 +08:00
Bo Anderson eb2d6c0096
workflows/dispatch-build-bottle: allow an array of runners (#87867) 2021-10-25 04:11:55 +01:00
Carlo Cabrera 6190ea61a7
workflows/tests: run `git clean` in container setup (#87801)
This resolves `brew doctor` errors due to uncommitted modifications in
the Linux container seen at #87793 and #87794.
2021-10-23 08:15:51 +02:00
Bo Anderson 8de1f5a15c
workflows/tests: don't test Monterey by default for now 2021-10-21 19:29:28 +01:00
Bo Anderson 402f44a20b
workflows: add Monterey CI (#87707) 2021-10-21 19:11:19 +01:00
Bo Anderson 76c0e12670 Remove linuxbrew-core references 2021-10-21 14:52:39 +01:00
Dawid Dziurla 883587144d
workflows/autobump: add exploitdb 2021-10-20 19:58:44 +02:00
BrewTestBot 6fb6e310e9 triage-issues.yml: update to match main configuration 2021-09-28 19:26:51 +02:00