Skip to content

Conversation

@samestep
Copy link
Contributor

@samestep samestep commented Jun 30, 2021

  • add the jobs to the matrix
    • jit_legacy
    • nogpu_NO_AVX
    • nogpu_NO_AVX2
    • slow
  • use the test config properly to enable the different test conditions
  • validate that it works
  • disable on pull requests before merging

Test plan:

CI. Example run: https://github.com/pytorch/pytorch/actions/runs/1013240987

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jun 30, 2021

💊 CI failures summary and remediations

As of commit a15e5e8 (more details on the Dr. CI page and at hud.pytorch.org/pr/61055):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


Preview docs built from this PR

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Contributor

@samestep has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@samestep samestep marked this pull request as ready for review July 7, 2021 18:53
@samestep samestep requested review from a team, janeyx99 and seemethere July 7, 2021 18:53
@samestep
Copy link
Contributor Author

samestep commented Jul 7, 2021

test_runner_type: str,
on_pull_request: bool = False,
enable_doc_jobs: bool = False,
enable_jit_legacy_test: YamlShellBool = "''",
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the advantage of using YamlShellBool with '' and 1s instead of just having Trues/Falses with bools? Is it for better compat between shell and script?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it for better compat between shell and script?

Yeah exactly; this variable gets set as an environment variable, so it's easier for both shell and Python scripts to consume it if false is represented as the empty string.

Copy link
Contributor

@walterddr walterddr left a comment

Choose a reason for hiding this comment

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

looks good!

IN_PULL_REQUEST=${CIRCLE_PULL_REQUEST:-}

if [[ "$BUILD_ENVIRONMENT" == *-slow-* ]]; then
if [[ "$BUILD_ENVIRONMENT" == *-slow-* || $TEST_CONFIG == 'slow' ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

shellscript noob q:
what's the difference between double quoted variable "$BLA", bracketed "${BLA}" and naked $BLA here?
i am sensing it might be relate to macos/linux convention but i dunno why there's so much inconsistent in these if statementss

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there's no difference between using quotes vs not within [[ double brackets ]], which is why shellcheck doesn't complain here; also the curly braces are basically never necessary, so idk why people are using them in general here

@facebook-github-bot
Copy link
Contributor

@samestep has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@samestep merged this pull request in e9a40de.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants