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

[ci] Support to skip vstest using include/exclude config file. #11086

Merged
merged 5 commits into from
Jun 17, 2022

Conversation

liushilongbuaa
Copy link
Contributor

@liushilongbuaa liushilongbuaa commented Jun 9, 2022

Why I did it

Some changes didn't change vs image. We should not run vstest in such cases.

How I did it

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@liushilongbuaa liushilongbuaa force-pushed the skip-vstest branch 5 times, most recently from 3c89ac3 to 17ef303 Compare June 9, 2022 11:48
azure-pipelines.yml Outdated Show resolved Hide resolved
@liushilongbuaa liushilongbuaa changed the title [ci] Support to skip vstest [ci] Support to skip vstest using include/exclude config file. Jun 14, 2022
@liushilongbuaa liushilongbuaa merged commit 2851884 into sonic-net:master Jun 17, 2022
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Jun 20, 2022
…-net#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Jun 20, 2022
…-net#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Jun 20, 2022
…-net#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Jun 20, 2022
…-net#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA
liushilongbuaa added a commit that referenced this pull request Jun 21, 2022
* [ci] Support to skip vstest using include/exclude config file. (#11086)
* [build] Add version files to docker image dependencies (#11179)
liushilongbuaa added a commit that referenced this pull request Jun 21, 2022
* [build] Add version files to docker image dependencies

* [ci] Support to skip vstest using include/exclude config file. (#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA
liushilongbuaa added a commit that referenced this pull request Jun 22, 2022
* [ci] Support to skip vstest using include/exclude config file. (#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA

* [build] Add version files to docker image dependencies
liushilongbuaa added a commit that referenced this pull request Jun 22, 2022
* [build] Add version files to docker image dependencies

* [ci] Support to skip vstest using include/exclude config file. (#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA
skbarista pushed a commit to skbarista/sonic-buildimage that referenced this pull request Aug 17, 2022
* [ci] Support to skip vstest using include/exclude config file. (sonic-net#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA

* [build] Add version files to docker image dependencies
@liushilongbuaa liushilongbuaa deleted the skip-vstest branch October 18, 2022 06:56
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.

2 participants