Skip to content

fix: retry on label error#2644

Merged
mdelapenya merged 1 commit intotestcontainers:mainfrom
stevenh:fix/lable-error-retry
Jul 16, 2024
Merged

fix: retry on label error#2644
mdelapenya merged 1 commit intotestcontainers:mainfrom
stevenh:fix/lable-error-retry

Conversation

@stevenh
Copy link
Copy Markdown
Contributor

@stevenh stevenh commented Jul 14, 2024

Add system errors to list of permanent errors which fixes infinite retries when a build is attempted with an invalid label.

Add system errors to list of permanent errors which fixes infinite
retries when a build is attempted with an invalid label.
@stevenh stevenh requested a review from a team as a code owner July 14, 2024 10:42
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 14, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 679ed63
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6693ab98b83fef00087ddaa9
😎 Deploy Preview https://deploy-preview-2644--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 mdelapenya self-assigned this Jul 15, 2024
@mdelapenya mdelapenya added the bug An issue with the library label Jul 15, 2024
@mdelapenya
Copy link
Copy Markdown
Member

I guess you mean an invalid label when building the image, right? If so, what would be the impact of merging this and #2637?

@stevenh
Copy link
Copy Markdown
Contributor Author

stevenh commented Jul 15, 2024

I guess you mean an invalid label when building the image, right? If so, what would be the impact of merging this and #2637?

Yes I mistakenly had a colon in value of the Tag field as I expected it to take the same format as docker -t so had used Tag: "repo:version" instead of Tag = "version", Repo: "repo".

This was a persistent error, and sent the retry into an infinite loop.

#2637 is separate, no conflict there that I can see.

Copy link
Copy Markdown
Member

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdelapenya mdelapenya merged commit d16750b into testcontainers:main Jul 16, 2024
mdelapenya added a commit that referenced this pull request Aug 5, 2024
* main:
  feat: add grafana-lgtm module (#2660)
  Added valkey module (#2639)
  fix: container.Endpoint and wait.FortHTTP to use lowest internal port (#2641)
  chore: test cleanups (#2657)
  docs: fix compilation of examples (#2656)
  feat: add custom container registry substitutor (#2647)
  fix: couchbase containers intermittently hang on startup (#2650)
  chore(deps): bump Ryuk to 0.8.1 (#2648)
  fix: retry on label error (#2644)
  perf: optimise docker authentication config lookup (#2646)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue with the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants