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

choosetests: add the --force-net option, which will throw an error if networking is unavailable #42889

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

DilumAluthge
Copy link
Member

Currently, when you run Base.runtests(["all"]), if networking is unavailable, it will print a warning and skip the test sets that requiring networking.

However, in some settings (e.g. CI), this is undesirable. In CI, if networking is unavailable, we want to throw an error so that the CI job fails, which gets our attention and lets us know that we need to fix something in the CI environments.

This PR adds the --force-net option, which can be used like e.g. Base.runtests(["all", "--force-net"]). When the --force-net option is passed, if networking is unavailable, an error is thrown.

@DilumAluthge DilumAluthge added ci Continuous integration backport 1.6 Change should be backported to release-1.6 backport 1.7 labels Nov 1, 2021
@DilumAluthge DilumAluthge merged commit 31b9fd2 into master Nov 1, 2021
@DilumAluthge DilumAluthge deleted the dpa/force-net-choosetests branch November 1, 2021 17:46
KristofferC pushed a commit that referenced this pull request Nov 9, 2021
…r if networking is unavailable (#42889)

(cherry picked from commit 31b9fd2)
KristofferC pushed a commit that referenced this pull request Nov 10, 2021
…r if networking is unavailable (#42889)

(cherry picked from commit 31b9fd2)
@KristofferC
Copy link
Member

Doesn't work on 1.6.

@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Nov 10, 2021
KristofferC pushed a commit that referenced this pull request Nov 10, 2021
…r if networking is unavailable (#42889)

(cherry picked from commit 31b9fd2)
KristofferC pushed a commit that referenced this pull request Nov 11, 2021
…r if networking is unavailable (#42889)

(cherry picked from commit 31b9fd2)
KristofferC pushed a commit that referenced this pull request Nov 12, 2021
…r if networking is unavailable (#42889)

(cherry picked from commit 31b9fd2)
daviehh pushed a commit to daviehh/julia that referenced this pull request Nov 16, 2021
…r if networking is unavailable (JuliaLang#42889)

(cherry picked from commit 31b9fd2)
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
…r if networking is unavailable (#42889)

(cherry picked from commit 31b9fd2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants