Skip to content

chore: refine fail-fast strategy on CI#1555

Merged
mdelapenya merged 9 commits intotestcontainers:mainfrom
mdelapenya:ci-refinements
Aug 30, 2023
Merged

chore: refine fail-fast strategy on CI#1555
mdelapenya merged 9 commits intotestcontainers:mainfrom
mdelapenya:ci-refinements

Conversation

@mdelapenya
Copy link
Copy Markdown
Member

@mdelapenya mdelapenya commented Aug 30, 2023

  • chore: let all modules to finish their execution
  • chore: save workers for examples

What does this PR do?

This PR adds a new input parameter to the reusable workflow to run the Go tests, making it possible to call it with a fail-fast strategy.

At the same time, we are not running the Go examples (modules that do not expose any API, just code snippets) in one single version of Go: 1.20.x, and only in Ubuntu.

Why is it important?

The first change tries to avoid the cancellation of the entire matrix for modules, which could happen if a flaky build fails: the rest of those 60 builds will be cancelled.

The second change is to save GH workers, as examples as less critical in terms of build conditions. We will reduce by 4 the number of user workers for the examples: Given there are 10 examples, instead of 40 builds, we will have just 10.

We do not want to abort all the modules if/when one is flaky.
The rest of matrices will still fail fast
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Aug 30, 2023
@mdelapenya mdelapenya self-assigned this Aug 30, 2023
@mdelapenya mdelapenya requested a review from a team as a code owner August 30, 2023 09:00
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 30, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 92d2c0d
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64ef29376d9b5a000880fe79
😎 Deploy Preview https://deploy-preview-1555--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Co-authored-by: Matthieu MOREL <[email protected]>
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya mdelapenya merged commit e25b7e0 into testcontainers:main Aug 30, 2023
@mdelapenya mdelapenya deleted the ci-refinements branch August 30, 2023 12:05
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Aug 30, 2023
* main:
  chore: refine fail-fast strategy on CI (testcontainers#1555)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Changes that do not impact the existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants