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

connectors-ci: check if the pushed image can be pulled #26088

Merged
merged 3 commits into from
May 15, 2023

Conversation

alafanechere
Copy link
Contributor

What

#26085 suggests that published images might very rarely not be pullable.
I'd like to add a safety net on the publish flow and to always pull images that were just pushed and try to run SPEC on them.
The networking overhead is worth the peace of mind IMO.

How

  • Pull the published images just after push
  • If pull fails no spec cache or metadata upload

Bonus: do not try to upload metadata or spec cache during a pre-release flow.

@alafanechere alafanechere requested a review from bnchrch May 15, 2023 20:25
Copy link
Contributor

@bnchrch bnchrch left a comment

Choose a reason for hiding this comment

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

Approved as long as you dont think there will be a race condition :)


async def _run(self) -> StepResult:
try:
exit_code = await with_exit_code(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need any retry logic?

@alafanechere
Copy link
Contributor Author

Approved as long as you dont think there will be a race condition :)

The steps are sequential so I have the guarantee docker push happenned before docker pull.
But you're right :) I'll add a retry logic.

@alafanechere alafanechere enabled auto-merge (squash) May 15, 2023 22:09
@alafanechere alafanechere merged commit 0e3ec70 into master May 15, 2023
19 checks passed
@alafanechere alafanechere deleted the augustin/connectors-ci/pull-after-push branch May 15, 2023 22:14
marcosmarxm pushed a commit to natalia-miinto/airbyte that referenced this pull request Jun 8, 2023
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