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

airbyte-ci: fix extra steps running when selected commands are provided #38549

Merged
merged 1 commit into from
May 22, 2024

Conversation

clnoll
Copy link
Contributor

@clnoll clnoll commented May 21, 2024

Fixes the issue discussed here, where we were running all tests during the version increment check, instead of simply running the version increment check.

I think the logic around skip_steps and keep_steps is a little hard to follow so would be worth taking another look at some point, but this should fix the problem in the short term.

@clnoll clnoll requested a review from a team as a code owner May 21, 2024 21:14
Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) May 21, 2024 9:14pm

@clnoll clnoll requested review from bnchrch and alafanechere and removed request for a team May 21, 2024 21:14
Comment on lines +321 to +323
# If any `skip_steps` are present, we will run everything except the skipped steps, instead of just `keep_steps`.
if not run_step_options.keep_steps:
run_step_options.skip_steps += self._get_step_id_to_skip_according_to_metadata()
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for catching this interesting edge case.
We should normally be protected from this issue as the __post__init__ of RunStepOptions raises an error if we both use skip_steps and keeped_steps.
The problem appeared because I my change set skips_steps post instantiation.

Your if introductions looks good and straightforward to me: if the users passed specific step to only run (via keep steps) the test skipping logic is bypassed.

@clnoll clnoll merged commit 7d3a2e1 into master May 22, 2024
30 checks passed
@clnoll clnoll deleted the catherine/airbyte-ci-fix-keep-steps branch May 22, 2024 13:31
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.

2 participants