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

chore: skip assertions for Docker Rootless #2135

Merged
merged 6 commits into from
Jan 22, 2024

Conversation

mdelapenya
Copy link
Member

@mdelapenya mdelapenya commented Jan 22, 2024

What does this PR do?

In this PR, we are removing an assertion by the error message, as it changed in upstream moby (see https://github.com/moby/moby/pull/46754/files and moby/buildkit#4394).

At the same time, we are skipping an assertion only for Rootless mode, as it's causing a failure on Docker v25.0.0, but not on lower versions.

Finally, and for the sake of reducing the total build time of the pipelines, we are moving the no-reaper and the rootless pipelines from the second stage to the first one, so that the ~5min they take happen at the same time as the main test pipeline.

Why is it important?

We noticed that, since 3 days ago, the Github workers are including Docker v25.0.0 for rootless Docker, which causes the above error to appear.

The regular workers are still in v24.0.7, which will eventually change causing the errors for the entire test suite.

Related issues

@mdelapenya mdelapenya requested a review from a team as a code owner January 22, 2024 17:03
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Jan 22, 2024
@mdelapenya mdelapenya self-assigned this Jan 22, 2024
Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit ba9a9a6
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/65aea4509b009c0008883321
😎 Deploy Preview https://deploy-preview-2135--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.

@mdelapenya
Copy link
Member Author

Merging, as the Mysql error is resolved in #2130

@mdelapenya mdelapenya merged commit 05c56df into testcontainers:main Jan 22, 2024
112 of 115 checks passed
@mdelapenya mdelapenya deleted the skip-rootless-tests branch January 24, 2024 10:43
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Jan 24, 2024
* main: (25 commits)
  chore(deps): bump github.com/dvsekhvalnov/jose2go in /modules/pulsar (testcontainers#2136)
  fix: skip-host-cache option removed in latest MySQL 8.3.0 version (testcontainers#2130)
  chore: skip assertions for Docker Rootless (testcontainers#2135)
  pin Docker images version (testcontainers#2129)
  enable golangci-lint for examples (testcontainers#2128)
  chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 in /modules/neo4j (testcontainers#2098)
  enable golangci-lint for redis module (testcontainers#2126)
  Go install gotestsum and golangci-lint  (testcontainers#2127)
  improve OSSF score (testcontainers#2125)
  chore: run make lint on new modules (testcontainers#2122)
  enable golangci-lint for pulsar (testcontainers#2121)
  lint: enable testifylint (testcontainers#2120)
  chore(deps): bump github.com/nats-io/nats.go in /modules/nats (testcontainers#2094)
  chore(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0 (testcontainers#2104)
  Revert "chore(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 (testcontainers#2088)"
  chore(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 (testcontainers#2088)
  chore(deps): bump cloud.google.com/go/spanner from 1.54.0 to 1.55.0, google.golang.org/api from 0.154.0 to 0.156.0 in /modules/gcloud (testcontainers#2115)
  chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.25.10 to 1.26.3, github.com/aws/aws-sdk-go from 1.48.13 to 1.49.19 in /modules/localstack (testcontainers#2114)
  chore(deps): bump github.com/docker/go-connections from 0.4.0 to 0.5.0 (testcontainers#2113)
  Adding mockserver module (testcontainers#2085)
  ...
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.

1 participant