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

Add e2e test via Github workflow #1041

Merged
merged 26 commits into from
Nov 10, 2024
Merged

Add e2e test via Github workflow #1041

merged 26 commits into from
Nov 10, 2024

Conversation

foresterre
Copy link
Owner

In #1036, an issue was reported which reported toolchain install issues, possibly caused by path separator issues on windows (ubuntu and mac seem to be fine).

With this commit, we add a run of cargo-msrv as an e2e test to our own CI on windows and mac while we're at it. Previously, we would only run on ubuntu; the e2e test was a side-effect of checking our own MSRV. We do have tests which run via the 'cargo run' vehicle and temporary directories, but that's not as sandboxed as this approach.

Hopefully, running all primary platforms will (1) give an indication of whether #1036 is indeed a cargo-msrv issue, and (2) prevent similar bugs in the future.

@foresterre foresterre force-pushed the e2e branch 5 times, most recently from c028b32 to 18aa127 Compare November 10, 2024 19:21
@foresterre
Copy link
Owner Author

foresterre commented Nov 10, 2024

It's unclear why the windows runner fails to install toolchains thus far. For now it is noted as a known issue. Help is welcome!

I will continue investigating. The windows workflow is not required to pass until we fix this.

In #1036, an issue was reported which reported toolchain install issues, possibly caused by path separator issues on windows (ubuntu and mac seem to be fine).

With this commit, we add a run of cargo-msrv as an e2e test to our own CI on windows and mac while we're at it.
Previously, we would only run on ubuntu; the e2e test was a side-effect of checking our own MSRV.
We do have tests which run via the 'cargo run' vehicle and temporary directories, but that's not as sandboxed as this approach.

Hopefully, running all primary platforms will (1) give an indication of whether #1036 is indeed a cargo-msrv issue, and (2) prevent similar bugs in the future.
Includes:
- Add span to RustupCommand
- Canonicalized path if canonicalize succeeds, otherwise falls back to using the input path
A workaround which may or may not work :)
To be consistent with what cargo-msrv does.
@foresterre foresterre disabled auto-merge November 10, 2024 23:34
@foresterre foresterre merged commit 8fbc435 into main Nov 10, 2024
15 checks passed
@foresterre foresterre deleted the e2e branch November 10, 2024 23:34
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.

1 participant