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

[Easy] Run some tutorials only in smoke test mode #1708

Closed
wants to merge 5 commits into from

Conversation

esantorella
Copy link
Member

@esantorella esantorella commented Feb 27, 2023

Motivation

Some tutorials were being ignored both in "smoke test" and "standard" runs because they OOM or time out in standard runs, but they actually run fine in "smoke test" mode. I moved those three tutorials to the list now called RUN_IF_SMOKE_TEST_IGNORE_IF_STANDARD (renamed for clarity).

Test Plan

These are all running in smoke test mode now (https://github.com/pytorch/botorch/actions/runs/4287842169/jobs/7469160586) and all take less than a minute and an unexceptional amount of memory.

Related PRs

Depends on #1707 (add five-minute timeout for smoke test tutorials)

@esantorella esantorella self-assigned this Feb 27, 2023
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 27, 2023
@codecov
Copy link

codecov bot commented Feb 27, 2023

Codecov Report

Merging #1708 (e033212) into main (10b35f9) will not change coverage.
The diff coverage is n/a.

❗ Current head e033212 differs from pull request most recent head 08b893f. Consider uploading reports for the commit 08b893f to get more accurate results

@@            Coverage Diff            @@
##              main     #1708   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          170       170           
  Lines        14610     14610           
=========================================
  Hits         14610     14610           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@facebook-github-bot
Copy link
Contributor

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

Comment on lines 30 to 35
IGNORE_SMOKE_TEST_ONLY = { # only used in smoke tests
"thompson_sampling.ipynb", # very slow without KeOps + GPU
"composite_mtbo.ipynb", # TODO: very slow, figure out if we can make it faster
"Multi_objective_multi_fidelity_BO.ipynb", # TODO: very slow, speed up
}
IGNORE_STANDARD_ONLY = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I find this naming very confusing. IGNORE_SMOKE_TEST_ONLY means to run it in smoke test only -- maybe we should just call it that RUN_SMOKE_TEST_ONLY?

For IGNORE_STANDARD_ONLY, the comment says "# Causing the tutorials to crash when run without smoke test. Likely OOM.". Does that mean we also run these only in smoke test, in which case they should be in the previous list?

Copy link
Member Author

Choose a reason for hiding this comment

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

agreed! This is confusing.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, this should be clearer now. There actually were never any tutorials we ran only in standard mode. I was confused about this and probably so was whoever put those tutorials on the ignore list in the first place, since they actually run fine in smoke test mode. I moved those tutorials to the list now called "RUN_IF_SMOKE_TEST_IGNORE_IF_STANDARD"

@facebook-github-bot
Copy link
Contributor

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

Copy link
Contributor

@saitcakmak saitcakmak left a comment

Choose a reason for hiding this comment

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

Thanks!

@facebook-github-bot
Copy link
Contributor

@esantorella merged this pull request in 5a215ec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants