Skip to content

GHA: use more ninja, build examples in the last step, and more - #14992

Closed
vszakats wants to merge 13 commits into
curl:masterfrom
vszakats:gha-opt-more
Closed

vszakats wants to merge 13 commits into
curl:masterfrom
vszakats:gha-opt-more

Conversation

@vszakats

@vszakats vszakats commented Sep 21, 2024 •

Copy link
Copy Markdown
Member

@vszakats vszakats added performance CI Continuous Integration labels Sep 21, 2024
@vszakats vszakats changed the title GHA/awc-lc: use ninja GHA: use ninja, make build examples the last step Sep 21, 2024
@vszakats vszakats changed the title GHA: use ninja, make build examples the last step GHA: use ninja, build examples in the last step Sep 21, 2024
@vszakats
vszakats force-pushed the gha-opt-more branch 2 times, most recently from 4c759f0 to cd9b467 Compare September 21, 2024 02:59
@dfandrich

Copy link
Copy Markdown
Contributor

Analysis of PR #14992 at cd9b4679:

Test 1540 failed, which has NOT been flaky recently, so there could be a real issue in the PR. Note that this test has failed in 9 different CI jobs (the link just goes to one of them).

Test 2037 failed, which has NOT been flaky recently, so there could be a real issue in the PR.

Generated by Testclutch

@vszakats vszakats changed the title GHA: use ninja, build examples in the last step GHA: use more ninja, build examples in the last step Sep 21, 2024
@vszakats vszakats changed the title GHA: use more ninja, build examples in the last step GHA: use more ninja, build examples in the last step, and more Sep 21, 2024
@vszakats vszakats closed this in 1b84496 Sep 22, 2024
@vszakats
vszakats deleted the gha-opt-more branch September 22, 2024 09:31
vszakats added a commit that referenced this pull request Sep 22, 2024
vszakats added a commit that referenced this pull request Sep 28, 2024
It seems like the Ubuntu apt mirror list or other preloaded data on the
Linux runner can go stale (?) throughout a single week causing failures
like this, in some of the jobs:
```
Ign:16 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libapr1-dev amd64 1.7.0-8ubuntu0.22.04.1
Err:16 mirror+file:/etc/apt/apt-mirrors.txt jammy-updates/main amd64 libapr1-dev amd64 1.7.0-8ubuntu0.22.04.1
  404  Not Found [IP: 40.81.13.82 80]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnghttp2-dev amd64 1.43.0-1ubuntu0.2 [117 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 vsftpd amd64 3.0.5-0ubuntu1.1 [123 kB]
Fetched 4029 kB in 2s (1682 kB/s)
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/a/apr/libapr1-dev_1.7.0-8ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 40.81.13.82 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.
```
https://github.com/curl/curl/actions/runs/11074211380/job/30772496037#step:32:63

Restore `apt update` to fix it.

Follow-up to 1b84496 #14992

Closes #15082
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
- linux: bump up test parallelism for valgrind tests to `-j4`
  (from `-j2`). (EXPERIMENTAL)
- linux: drop `apt-get update` for the default architecture on the GHA
  native runner. It makes prereq install steps complete faster.
  The runner image gets weekly updates, and that should be enough to
  guarantee fresh packages in most cases:
  https://github.com/actions/runner-images/commits/main/images/ubuntu/Ubuntu2204-Readme.md
- aws-lc: use ninja with cmake.
- aws-lc: build examples with cmake.
- aws-lc: drop `apt update`.
- aws-lc, wolfssl, linux32, http3-linux: move building examples to
  the last step.
  Follow-up to 45202cb curl#14906
- windows: formatting.

Closes curl#14992
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
It seems like the Ubuntu apt mirror list or other preloaded data on the
Linux runner can go stale (?) throughout a single week causing failures
like this, in some of the jobs:
```
Ign:16 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libapr1-dev amd64 1.7.0-8ubuntu0.22.04.1
Err:16 mirror+file:/etc/apt/apt-mirrors.txt jammy-updates/main amd64 libapr1-dev amd64 1.7.0-8ubuntu0.22.04.1
  404  Not Found [IP: 40.81.13.82 80]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnghttp2-dev amd64 1.43.0-1ubuntu0.2 [117 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 vsftpd amd64 3.0.5-0ubuntu1.1 [123 kB]
Fetched 4029 kB in 2s (1682 kB/s)
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/a/apr/libapr1-dev_1.7.0-8ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 40.81.13.82 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.
```
https://github.com/curl/curl/actions/runs/11074211380/job/30772496037#step:32:63

Restore `apt update` to fix it.

Follow-up to 1b84496 curl#14992

Closes curl#15082
vszakats added a commit to vszakats/curl that referenced this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration performance

Development

Successfully merging this pull request may close these issues.

2 participants