Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more gh actions improvements #420

Merged
merged 10 commits into from
May 22, 2024
Merged

Conversation

aws-nslick
Copy link
Contributor

@aws-nslick aws-nslick commented May 21, 2024

Description of changes:

498bc8e ci(github): add an al2023 build
740e7c0 ci(github): add an lttng build
6a21dc1 ci(github): split codechecker to separate job
defbba6 ci(github): add a configuration file for codechecker
6f960c6 ci(github): add concurrency block
bf96c44 ci(github): ubuntu: re-enable fail-fast
f3cb499 ci(github): expand matrix for latest cc
cbcc93d ci(github): rename config.log artifacts
09f5b09 ci(github): distcheck: use github cache
a0df31a ci(github): fix: take actionlint fixes

Notable things:

  1. adds an al2023 build
  2. adds a build variant for lttng
  3. makes the ubuntu builds faster by using the github actions cache
  4. adds a configuration file for static analysis.

Issue #, if available:

Non-issues, but related commits around recent bugs that this would have helped catch:

8158c2b * fix: lttng: fix include define
69e53b0 * fix(lttng): fix LTTNG support in master branch

(This commit adds an lttng build variant)

@aws-nslick aws-nslick force-pushed the gh-actions-faster branch 3 times, most recently from 15ce4d1 to b5d5d0e Compare May 21, 2024 05:14
@aws-nslick aws-nslick force-pushed the gh-actions-faster branch 10 times, most recently from b0a914b to 7af9a32 Compare May 21, 2024 09:09
+ protect against quoting issues in shell expansion.

+ Fix logic error with unnecessary ${{}} usage.

> This step was not conditionally executed prior to this commit.
> > "[the condition] is always evaluated to true because extra characters
> > are around ${{ }}"

See https://github.com/rhysd/actionlint/blob/main/docs/checks.md for
details.
use the gh actions cache for apt packages, rather than redownloading
them every time. This should accelerate the build somewhat. May need to
tweak this in the future and/or move these actions to codebuild runners
to avoid hitting cache limit.
Uploading the artifact with only matrix.cc in the name can cause
collisions when both fail. Upload it as
 `${{ matrix.cc }}-${{ matrix.sdk}}-config.log'
instead so that it is unique.
@aws-nslick aws-nslick force-pushed the gh-actions-faster branch 2 times, most recently from 498bc8e to 609490e Compare May 21, 2024 09:37
Install and build with both the default version of the compiler in the
repos, as well as the latest available via either the ubuntu toolchain
team gcc builds, or the llvm apt repos.
With more elements in the test matrix, fail-fast helps shift left.
Rather than seeing 4-5 different failures, just stop immediately with
the error message responsible.
on eg: force pushes while a job is still running, make the start of the
new job cancel the old job. head_ref is undefined on non-pull_request
runs per their docs.
+ ignore unit tests
+ disable unused parameter warnings.
Move codechecker to its own job, gated but the success of the
distbuilds.
lttng defaults to on, so nothing is required other than installing it
conditionally. Add a build for it.
Add an al2023 build (aws#282), alongside the recently added al2 build. This
also runs on codebuild "self-hosted" runners rather than on the gh
hosted runners. To avoid installing the full toolkit, disable tests in
that build (see related commit b9c46d2).
@aws-nslick aws-nslick marked this pull request as ready for review May 22, 2024 16:15
@aws-nslick aws-nslick requested a review from rajachan as a code owner May 22, 2024 16:15
@aws-nslick aws-nslick merged commit 309d834 into aws:master May 22, 2024
33 checks passed
@aws-nslick aws-nslick deleted the gh-actions-faster branch June 20, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants