d2l-ai / d2l-en

Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.
https://D2L.ai
Other
23.37k stars 4.29k forks source link

CI: Add ability to build specific chapters or sections #2122

Open AnirudhDagar opened 2 years ago

AnirudhDagar commented 2 years ago

It will be useful to add a d2l bot command to specify running only a few chapters or sections. For example, a change in #2121 needs to be tested against chapter 16 and also sections from 15.8 onwards.

Pitch

Commenting something like the following on a PR:

@d2l-bot please build chapter_natural-language-processing-pretraining and chapter_natural-language-processing-applications.

should rerun CI for all the sections in these chapters. There is no need to rebuild from scratch for all the chapters, but rebuilding these would definitely help in ensuring the validity of a change while saving a lot of resources.

cc @astonzhang

astonzhang commented 2 years ago

This feature will be helpful for changes that may affect a subset of notebooks!