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

Build Core Docker Images and Run Tests should only do composeBuild #4361

Merged
merged 2 commits into from Jun 28, 2021

Conversation

cgardens
Copy link
Contributor

What

The step mentioned in the title is running unit tests. This is superfluous as these steps are meant to run acceptance tests. Running the unit tests is always duplicative with the build step. replace build => composeBuild and remove the test directive.

Why

Our python infra is still flakey so PRs like this one get all fouled up due to unrelated problems.

@davinchia
Copy link
Contributor

davinchia commented Jun 27, 2021

Unrelated, I merged in a change that should resolve the checkPython error we see. That branch was running into it since my change wasn't present.

Agree explicitly using composeBuild is good. One thing I wasn't sure is the diff between CORE_ONLY and composeBuild.

@davinchia
Copy link
Contributor

davinchia commented Jun 27, 2021

Actually it looks like composeBuild and CORE_ONLY have similar intent?

composeBuild only builds these submodules while CORE_ONLY excludes connectors from formatting and building connector projects. We should get rid of one. Wdyt?

@davinchia
Copy link
Contributor

thoughts @jrhizor ?

@jrhizor
Copy link
Contributor

jrhizor commented Jun 28, 2021

# jrhizor in ~/code/airbyte on git:master ✖︎ [21:43:52]
→ CORE_ONLY=true ./gradlew build --dry-run | wc -l
     738

# jrhizor in ~/code/airbyte on git:master ✖︎ [21:43:57]
→ ./gradlew composeBuild  --dry-run | wc -l
     121

CORE_ONLY=true ./gradlew build runs tests + works with normalization/other code and ./gradlew composeBuild doesn't. They do have different functionality.

To be honest, in my own flow, I pretty much only run CORE_ONLY=true ./gradlew format but ./gradlew composeBuild for everything else.

.github/workflows/gradle.yml Outdated Show resolved Hide resolved
Co-authored-by: Jared Rhizor <jared@dataline.io>
@cgardens cgardens merged commit 8ebc3dc into master Jun 28, 2021
@cgardens cgardens deleted the cgardens/fix_build_images branch June 28, 2021 16:33
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