-
Notifications
You must be signed in to change notification settings - Fork 485
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_and_test.yml: ensure tests & ./run_clippy.sh pass for build in the Dockerfile #4073
Conversation
…the Dockerfile This patch adds a third build type to the build-neon build matrix. This build type corresponds to what we do in Dockerfile, i.e., a `--release` build without `--features testing`. The advantage of doing it this way is that we can re-use the steps from the fine-grained & richer build-neon workflow job. The disadvantage is that we duplicate the build arguments from the Dockerfile. The alternative is to do it the other way around, i.e., from the Dockerfile, invoke `cargo test` and `./run_clippy.sh`. However, that would duplicate all the CARGO_FLAGS and CARGO_FEATURES logic that we have in the build-neon workflow job. Which seems worse to me.
Let's do this after #4067 |
build-neon uses `make postgres-...`. The Makefile expects BUILD_TYPE to be debug or release. Before this PR, the build matrix's BUILD_TYPE would be just that. Now the build matrix's build type is something different than the Makefile's BUILD_TYPE. Make the difference explicit.
@zoete had to push a fixup because the
|
Sigh, the current state of this PR doesn't solve the clippy situation yet. There are two problems:
I was going to suggest using It's probably the right approach, though. Thoughts? |
Test results for f42aede:debug build: 219 tests run: 209 passed, 0 failed, 10 (full report)release build: 219 tests run: 208 passed, 1 failed, 10 (full report)Failed tests: |
- rename MATRIX_BUILD_TYPE to "variant" - extract build variables into separate action - move clippy to separate action, use build vars from the new action - build-neon: use build vars from the new action
Yuck, turns out I'd need to propagate the new This will eat too much time for too little benefit. |
This patch adds a third build type to the build-neon build matrix. This build type corresponds to what we do in Dockerfile, i.e., a
--release
build without--features testing
.The advantage of doing it this way is that we can re-use the steps from the fine-grained & richer build-neon workflow job.
The disadvantage is that we duplicate the build arguments from the Dockerfile.
The alternative is to do it the other way around, i.e., from the Dockerfile, invoke
cargo test
and./run_clippy.sh
.However, that would duplicate all the CARGO_FLAGS and CARGO_FEATURES logic that we have in the build-neon workflow job. Which seems worse to me.