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

Local tox checks do not skip #28612

Merged
merged 19 commits into from
Feb 11, 2023
Merged

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented Feb 2, 2023

Resolves #28550

tl;dr if all the checks in a static analyze are skipped, we should skip that step entirely.

This PR:

  • Updates run_<check> scripts to always run locally, regardless of whether or not a package is ignored. You can get the same behavior as CI by populating environment variable TF_BUILD.
  • Individual skips should turn step yellow
  • All packages skipping the package should result in that step not running at all. (applies to pylint, verifywhl, verifysdist, bandit, mypy)

Detailed description:

The job yaml itself supports some global level skips. We can take advantage of this feature by placing a script invocation at the beginning of the Analyze build. This script should evaluate the packages of a service directory, and if all skip a given check that is also associated with a global skip (EG: Skip.Pylint), that variable will be automatically set.

@scbedd scbedd added the Central-EngSys This issue is owned by the Engineering System team. label Feb 2, 2023
@scbedd scbedd self-assigned this Feb 2, 2023
@ghost ghost added the EngSys This issue is impacting the engineering system. label Feb 2, 2023
eng/tox/run_mypy.py Outdated Show resolved Hide resolved
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@scbedd scbedd marked this pull request as ready for review February 6, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Pyproject.toml feedback
4 participants