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

Set ZEBRA_SKIP_NETWORK_TESTS using Windows syntax #1782

Merged
merged 1 commit into from
Feb 19, 2021
Merged

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Feb 19, 2021

Motivation

The large sync tests run on Windows, but we want to disable them.

The "Show env vars" CI step prints ZEBRA_SKIP_NETWORK_TESTS= on Windows, but we expect ZEBRA_SKIP_NETWORK_TESTS=1.

The if command should support ==, !=, and ||, so they are unlikely to be the problem:
https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#operators

Solution

Use Powershell syntax to set ZEBRA_SKIP_NETWORK_TESTS on Windows:
https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#environment-files

Also skip the entire large sync test step on Ubuntu and Windows, because the tests are skipped anyway due to ZEBRA_SKIP_NETWORK_TESTS. This saves some compilation time.

Outcome

The Show env vars step in this PR outputs:

ZEBRA_SKIP_NETWORK_TESTS=1
CARGO_INCREMENTAL=0
RUST_BACKTRACE=full

🎉

Review

This review is a high priority if Windows CI keeps failing after #1777.

Use Powershell syntax to set ZEBRA_SKIP_NETWORK_TESTS on Windows.

Also skip the entire large sync test step on Ubuntu and
Windows, because the tests are skipped anyway due to
ZEBRA_SKIP_NETWORK_TESTS. This saves some 
compilation time.
@teor2345 teor2345 added C-bug Category: This is a bug A-devops Area: Pipelines, CI/CD and Dockerfiles P-High I-integration-fail Continuous integration fails, including build and test failures labels Feb 19, 2021
@teor2345 teor2345 requested a review from dconnolly February 19, 2021 07:31
@teor2345 teor2345 self-assigned this Feb 19, 2021
@teor2345 teor2345 marked this pull request as ready for review February 19, 2021 08:04
@teor2345 teor2345 closed this Feb 19, 2021
@teor2345 teor2345 reopened this Feb 19, 2021
@teor2345
Copy link
Contributor Author

Windows CI failed testnet large sync on #1777, and it seems to keep failing, so let's make this critical priority.

@teor2345
Copy link
Contributor Author

The macOS testnet failure will be fixed by #1222

@teor2345
Copy link
Contributor Author

I'm admin-merging this PR to fix CI failures.

@teor2345 teor2345 merged commit a445cfb into main Feb 19, 2021
@teor2345 teor2345 deleted the windows-ci-env-var branch February 19, 2021 09:36
@teor2345 teor2345 mentioned this pull request Feb 23, 2021
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles C-bug Category: This is a bug I-integration-fail Continuous integration fails, including build and test failures
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant