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

run docker acceptance tests once #4362

Merged
merged 5 commits into from Jun 28, 2021

Conversation

cgardens
Copy link
Contributor

What

  • The current github action configurations runs the docker acceptance tests twice. They are run in the build job and also in the run acceptance test job. This appears to be purely duplicative. I don't really care where we run them. Happy to keep the extra job and just remove it from the build, but doing it twice doesn't make sense to me.

@davinchia
Copy link
Contributor

davinchia commented Jun 27, 2021

This is true for master, but isn't true for PR builds: https://github.com/airbytehq/airbyte/blob/master/.github/workflows/gradle.yml#L124

I think we should remove && github.ref == 'refs/heads/master' as well so the docker acceptance tests always build. This way, we can be sure the acceptance test at least pass for docker before we publish dev images.

Base automatically changed from cgardens/fix_build_images to master June 28, 2021 16:33
@cgardens
Copy link
Contributor Author

okay! I'll remove that condition here. agreed we always want these to run at this point.

though one thing you mentioned doesn't quite make sense to me. the dev images also only get pushed on master, so even as it is now (before removing the condition) we already always run the acceptance tests before publishing the dev image)

Copy link
Contributor

@jrhizor jrhizor left a comment

Choose a reason for hiding this comment

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

I think this makes sense.

Before the EC2 runners, I think the main build was almost 2x the length of the acceptance test, and the acceptance test was 90% of what you needed to be confident making core changes, so it was great for iteration in a branch.

Now that there's only a 6min difference it doesn't matter as much.

@cgardens cgardens merged commit 97c0ee8 into master Jun 28, 2021
@cgardens cgardens deleted the cgardens/do_not_run_acceptance_tests_twice branch June 28, 2021 20:48
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

3 participants