Skip to content

Conversation

@driazati
Copy link
Member

@driazati driazati commented Jan 19, 2022

This adds ci.py to the docs to make it more clear how to easily build the docs locally. This also re-arranges CI following the merging of all CI steps to run concurrently since there's no need to run the Sphinx precheck during GPU unit tests. This still preserves it though in the docs step as a way to quickly bail out if there are formatting errors so the full tutorials don't get built. Doing that surfaced a bunch of warnings in the full docs build that were previously just ignored (hence the extra warnings in the grep regex)

Ignored warnings from: https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-9971/1/pipeline/

cc @areusch

@driazati driazati mentioned this pull request Jan 20, 2022
@driazati driazati force-pushed the docs_instr branch 4 times, most recently from 0184501 to 86e7860 Compare January 21, 2022 21:11
@driazati driazati marked this pull request as ready for review January 21, 2022 21:11
@github-actions github-actions bot removed the request for review from a team January 21, 2022 21:11
@driazati driazati force-pushed the docs_instr branch 5 times, most recently from 2caad4f to 2378dc8 Compare January 26, 2022 23:50
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

thanks @driazati , left a couple comments. overall i'm supportive of this.

cc @Mousius @leandron

function join_by { local IFS="$1"; shift; echo "$*"; }

IGNORED_WARNINGS=(
'__mro__'
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add a comment explaining why these are ignored, and which piece of the warning string these match? i.e if I want to add one here, what do i do?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a comment, generally people shouldn't be adding new warnings here unless there are infra problems (i.e. we had to ignore some stuff when bumping up the PyTorch version). Most of these aren't new and were being ignored before, just not in the actual docs build (where they weren't checked at all) and only on the precheck.

'autotvm:Cannot find config for target=cuda -keys=cuda,gpu'
)

JOINED_WARNINGS=$(join_by '|' "${IGNORED_WARNINGS[@]}")
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a little perilous as they aren't escaped. wdyt about doing this in python and then we could add tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

ideally the entire CI would be mostly Python and minimal bash instead of the opposite which we have right now. but to keep this PR simple since it does re-arrange a bunch of stuff I think we should leave it as is for now and leave migrating to Python for a follow up

This adds `ci.py` to the docs to make it more clear how to easily build the docs locally. This also re-arranges CI following the merging of all CI steps to run concurrently since there's no need to run the Sphinx precheck during GPU unit tests. This still preserves it though in the docs step as a way to quickly bail out if there are formatting errors so the full tutorials don't get built.
Copy link
Member

@Mousius Mousius left a comment

Choose a reason for hiding this comment

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

Kicked off the branch check to make sure this runs smoothly but otherwise LGTM

@Mousius Mousius merged commit b365586 into apache:main Jan 31, 2022
@Mousius
Copy link
Member

Mousius commented Jan 31, 2022

Thanks @driazati 😸

Mousius pushed a commit that referenced this pull request Feb 9, 2022
This is empty following #9971 and is no longer needed

Co-authored-by: driazati <[email protected]>
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
This adds `ci.py` to the docs to make it more clear how to easily build the docs locally. This also re-arranges CI following the merging of all CI steps to run concurrently since there's no need to run the Sphinx precheck during GPU unit tests. This still preserves it though in the docs step as a way to quickly bail out if there are formatting errors so the full tutorials don't get built.

Co-authored-by: driazati <[email protected]>
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
This is empty following apache#9971 and is no longer needed

Co-authored-by: driazati <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants