Skip to content

[ci] script to validate tutorials were built in > 0 sec #2031

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

Merged
merged 11 commits into from
Sep 9, 2022

Conversation

clee2000
Copy link
Contributor

@clee2000 clee2000 commented Sep 7, 2022

If the running time is 0 minutes 0.000 seconds this means that python code probably didn't run either due to error or to lacking python code, so we check that the output doesn't have this string.

I don't want to break everyone's builds so we have a list of known bad tutorials that currently fail and only fail if there is a new one that is not on this list.

Example of failure: https://app.circleci.com/pipelines/github/pytorch/tutorials/6423/workflows/9f59712e-0d3b-428c-81cc-13d5eb22f259/jobs/125997

@netlify
Copy link

netlify bot commented Sep 7, 2022

Deploy Preview for pytorch-tutorials-preview ready!

Name Link
🔨 Latest commit d24a51b
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/631b858062004800086b1fba
😎 Deploy Preview https://deploy-preview-2031--pytorch-tutorials-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@clee2000 clee2000 changed the title script to validate 0.000 script to validate tutorials were built in > 0 sec Sep 7, 2022
@clee2000 clee2000 changed the title script to validate tutorials were built in > 0 sec [ci] script to validate tutorials were built in > 0 sec Sep 7, 2022
@clee2000 clee2000 marked this pull request as ready for review September 8, 2022 00:11
Copy link
Contributor

@ZainRizvi ZainRizvi left a comment

Choose a reason for hiding this comment

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

Looking good!

@svekars svekars added the ci label Sep 8, 2022
Comment on lines +100 to +102
+ "python code in this tutorial probably didn't run:\n{}".format(
"\n".join(did_not_run)
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit

Suggested change
+ "python code in this tutorial probably didn't run:\n{}".format(
"\n".join(did_not_run)
)
+ f"python code in this tutorial probably didn't run:\n{'\n'.join(did_not_run)}"
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the black formatter was angry about the backslash inside the brackets for the f-string f-string expression part cannot include a backslash

]

# when the tutorial is fixed, remove it from this list
KNOWN_BAD = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we call it something other than bad?

Some tutorials are intentionally disabled. TTS tutorial is disabled because conflicting dependency issue but the original tutorial is executed on TorchAudio CI and we make sure it works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

which tutorial is this? i can put it in the ok_to_not_run list, which isnt really a better name
the end goal is that we fix everything in the known bad list or decide that its ok to to run (b/c it has no code or some other reason)

Copy link
Contributor

@mthrok mthrok left a comment

Choose a reason for hiding this comment

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

The white space changes and docker image changes don't seem essential to the validation of execution time. They should be in separate PRs.

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.

6 participants