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

CI: restore integration tests, fixup MacOS/Windows expected linker parts #373

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

cpu
Copy link
Member

@cpu cpu commented Dec 3, 2023

In #348 I neglected to update the callsites that were previously using make test so they would run the new Rust-based integration tests (behind make integration). It also seems like the Windows makefile test target wasn't being exercised at all (there was a missing required env var for the client.exe invocation).

This branch fixes that, and along the way uncovered that the MacOS and Windows linker parts have drifted from expected. Those are updated in this branch as well. Unfortunately it seems like the Windows CMake builds disagree on the linker parts compared to the Windows Makefile builds. For now I've made the CMake builds only run the client/server integration test, and let the Makefile builds enforce the expected linker parts. We could also consider maintaining two different expected_linker_parts returns, but doing that will be a bit tricky since right now the expected values are chosen by target_os alone, and don't know about the build tooling in-use.

cpu added 2 commits December 3, 2023 13:48
CI is showing that `-framework Security` is no longer produced by
`cargo` with `--print native-static-libs`. This commit removes it from
our expected output in the `verify_static_libs` test, and in the README.
These aren't mentioned in the README, so only the static lib
verification test needs updating.
@cpu cpu self-assigned this Dec 3, 2023
@cpu
Copy link
Member Author

cpu commented Dec 11, 2023

@jsha Would you be able to give this branch a quick review when you have a chance? 🙇

Copy link
Collaborator

@jsha jsha left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!

When we cut over to the Rust based integration tests we neglected to
update the `make test` call-sites to also run `make integration`. The
`test` PHONY target doesn't run the `--ignored` cargo tests that include
the integration component.

For the Windows makefile (not CMake) we must also update a test
invocation to specify that cert verification should be skipped,
otherwise the test just generates usage help.

For the CMake windows targets, a few changes are needed:

1. We need to run the integration tests separately from the
   `TEST_COMMAND` - the test binaries are built by this process, and so
   we can't rely on them to exist for the integration test to use until
   afterwards
2. We need to run only the client/server tests. The CMake builds
   disagree with the non-CMake builds about the required linker parts
   for the `verify_static_libs` integration test.
@cpu cpu force-pushed the cpu-integration-ci-restore branch from e212c01 to f8dac1d Compare December 13, 2023 21:07
@cpu cpu merged commit 2dd8157 into rustls:main Dec 13, 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.

2 participants