Commit Graph

48 Commits

Author SHA1 Message Date
Liu Shilong
3634a831d9
[ci] Disable some workflow use github app instead to have stable performance. (#18132)
Why I did it
github workflow is not easy to extend to other repos.
Use github app instead to share the same workflow.

Work item tracking
Microsoft ADO (number only): 26855292
How I did it
How to verify it
2024-02-19 18:27:31 +08:00
Liu Shilong
1c3bf41b89
[workflow] Use automerge_scan instead of automerge for correct commit message. (#17669)
Why I did it
automerge and automerge_scan have different behavior when merging PRs.
automerge may left some PRs unmerged. So, use automerge_scan instead.

Work item tracking
Microsoft ADO (number only): 26361240
How I did it
How to verify it
2024-01-09 20:28:18 +08:00
Liu Shilong
52568ceab0
[action] Update workflow to parse & monitor pending automation PRs. (#16446)
Why I did it
There are many automation PRs pending for PR checker failure issue.
As PR number grows, github api to list prs comes to its limit.
We need to monitor and send alert for these PRs.

Work item tracking
Microsoft ADO (number only): 25064441
How I did it
For auto-cherry pick PRs:
- more than 3 days, comment @author to check
- more than 10 days, stop comment.
- more than 28 days, comment @author PR will be closed
- more than 30 days, close PR

For submodule update HEAD PRs:
- more than 3 days, send alert(submodule PR)

How to verify it
Which release bra
2023-09-07 13:34:34 +08:00
Liu Shilong
bee87909e7
[action] Fix auto merge workflow commit message. (#15450)
Why I did it
Refine submodule update commit message.

Work item tracking
Microsoft ADO (number only): 24253804
2023-06-19 08:31:56 +08:00
StormLiangMS
0ad58d3b85
To change the PR template to have 202305 (#15513)
Why I did it
To include 202305 in the PR template.

Work item tracking
Microsoft ADO (21450860):
How I did it
Change the temlate.

How to verify it
pass PR test.
2023-06-17 10:32:11 +08:00
Liu Shilong
7afeffcabb
[action] Only add 'automerge' label on master version upgrade PR. (#15112)
Why I did it
Don't auto update package version for release branch.

Work item tracking
Microsoft ADO (number only): 22335854
How I did it
How to verify it
2023-05-17 18:09:12 +08:00
Liu Shilong
6303cd91d0
[action] Update github workflows about automerge_scan and pr_cherrypick_prestep. (#15090)
Why I did it
When auto cherry pick workflow create PR, fill the body field.
Rerun Azure.sonic-buildimage on failure perday.
Work item tracking
Microsoft ADO (number only): 17979778
How I did it
How to verify it
2023-05-17 11:06:50 +08:00
Qi Luo
38f0ec6563
Update pull request template for test evidence, and work item trackers (#14552)
Update pull request template for test evidence, and work item trackers
2023-04-11 15:16:35 -07:00
Liu Shilong
03c02e3946
[action] Update AutoMergeScan action to ignore Semgrep and rerun failed job. (#14118)
Why I did it
Semgrep check has some issues. Ignore it.
check automerge label.
Ignore Azure.sonic-buildimage sub test jobs. Only check final result.
How I did it
2023-03-10 14:14:51 +08:00
xumia
39c3f650a7
[Ci] Support the SONiC reproducible build in Azure Pipelines (#13986)
Why I did it
[Ci] Support the SONiC reproducible build in Azure Pipelines
Enable the reproducible build on master branch
Enable the mirror snapshot based build on 202205+ which support snapshot build.

How I did it
Enable the build flag on Azure Pipelines.

How to verify it
2023-02-27 12:26:14 +08:00
Liu Shilong
cabaebb4b0
[action] Update github actions on trigger and label. (#13542)
Why I did it
github action will report error on forked repos. It is not by design.
keep 'Approved for xxx branch' label in auto cherry pick workflow.
How I did it
Disable github action on folked repos.
Keep 'approved for xxx' label in auto cherry pick workflow.
How to verify it
Which release bra
2023-01-30 16:57:39 +08:00
Guohan Lu
b195e47651
[github]: update codeowner from Azure teams to sonic-net teams (#13243)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2023-01-07 21:07:20 -08:00
Liu Shilong
6681cad1c5
[action] Keep 'request for xxx branch' label when finished auto-cherry-pick. (#13107)
Why I did it
To keep 'Request for xxx branch' label when finished auto-cherry-pick.

How I did it
Change logic in post cherry pick action.

How to verify it
2022-12-20 16:41:04 +08:00
StormLiangMS
c7c921166c
Add 202211 backport option for the PR review template (#12884)
Why I did it
Add 202211 backport option

How I did it
Add option in .github/pull_request_template.md

How to verify it
2022-12-02 17:43:56 +08:00
Liu Shilong
6f2ddc5f49
[action] Add github action to merge mssonicbld's PRs which can be merged (#12564)
* [action] Add github action to scan auto-mergeable PRs
2022-11-30 11:28:06 +08:00
Liu Shilong
844f83171b
[action] Use pull_request_target trigger instead to avoid codeQL check approval (#12509) 2022-10-27 17:36:04 +08:00
Liu Shilong
81ee9488e8
[action] Use github code scan instead of LGTM. (#12402)
* [action] Add code scan for python
2022-10-25 16:34:07 +08:00
Liu Shilong
357c1eaa1b
[action] Update automerge version, change log level and change auto cherry-pick branch name. (#12455) 2022-10-20 13:03:39 +08:00
Liu Shilong
05b1e06012
[action] Add debug info for automerge github action. (#12389) 2022-10-18 13:53:29 +08:00
Liu Shilong
247bd78da3
[action] Fix PR pre-cherry-pick action wrong author issue. (#12339) 2022-10-11 09:56:48 +08:00
Liu Shilong
09d4d3e6e7
[action] Fix trigger issue in PR pre-cherry-pick action. (#12333) 2022-10-10 17:11:31 +08:00
Liu Shilong
019e0acd51
[actions] Add auto cherry-pick actions to release branch (#11496)
* [actions] Add github actions to auto cherry-pick prs to release branches

* Add README, fix workflow
2022-10-10 16:55:00 +08:00
kannankvs
3686454c6e
Updated the template with comment recieved (#12276)
Updated the PR template with comment received on removing the reference link on GCU. Hence added text to show reference for GCU PR.
2022-10-05 17:51:42 -07:00
Mai Bui
95f4af3407
[actions] Support Semgrep by Github Actions (#12249)
Signed-off-by: maipbui <maibui@microsoft.com>
#### Why I did it
[Semgrep](https://github.com/returntocorp/semgrep) is a static analysis tool to find security vulnerabilities.
When opening a PR or commtting to PR, Semgrep performs a diff-aware scanning, which scans changed files in PRs.
When merging PR, Semgrep performs a full scan on master branch and report all findings.
Ref: - [Supported Language](https://semgrep.dev/docs/supported-languages/#language-maturity) - [Semgrep Rules](https://registry.semgrep.dev/rule)
#### How I did it
Integrate Semgrep into this repository by committing a job configuration file
#### How to verify it
PR: https://github.com/maipbui/sonic-buildimage/pull/2
Master branch full scan findings: [Master branch findings results](https://github.com/maipbui/sonic-buildimage/actions/runs/3160181876/jobs/5144332404)
PR https://github.com/maipbui/sonic-buildimage/pull/2 scan findings: [Pull request findings results](https://github.com/maipbui/sonic-buildimage/actions/runs/3160193505/jobs/5144357859)
2022-10-03 14:38:55 -04:00
kannankvs
c674b3c634
[doc]: Updated PR Template for a comment to add label/tag for the feature raised. (#12058)
Signed-off-by: kannankvs <kannan_kvs@dell.com>
2022-09-13 21:49:05 -07:00
Liu Shilong
98d6357ae7
[actions] Remove approve step in label action. (#12015)
Why I did it
Approve step needs special permission settings.
We already added permission setting to enable bypass merging PR.
So, approve step is not necessary.
2022-09-08 17:23:29 +08:00
Liu Shilong
030de9f26d
[actions] Add github context env in label action. (#11926) 2022-09-02 14:07:48 +08:00
Liu Shilong
4b4e311c14
[actions] Update github actions label and automerge. (#11736)
1. Add auto approve step when adding label to version upgrading PR.
2. Use mssonicbld TOKEN to merge version upgrading PR instead of 'github actions'
2022-08-29 11:24:57 +08:00
Guohan Lu
957285236a
[github]: update pr template to include 202205 backport option (#11139)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2022-06-14 11:48:59 -07:00
Guohan Lu
73c5ac11ee
[CODEOWNERS]: update code owners for various repos (#10980)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2022-05-30 01:25:51 -07:00
Sudharsan Dhamal Gopalarathnam
4a5f81dcb8
[Template]Update template to point to configuration.md in yang-models folder (#10777)
… folder

#### Why I did it
Update template to point to configuration.md in yang-model folder.
2022-05-09 12:04:01 -07:00
Sudharsan Dhamal Gopalarathnam
1223a7baba
Update template pull_request_template.md (#9888)
Updating template description to include link to configuration schema for YANG module changes.

#### Why I did it
Updating template description to include link to configuration schema for YANG module changes. When reviewing yang models it becomes difficult to know the entire schema for the table for which yang is defined. Besides providing a clear picture, it will also help to document the config_db schema which is not upto date.

#### How I did it
Updating template file
2022-02-14 13:55:40 -08:00
Sujin Kang
1564bdd702
Update Code Owner for device (#9721)
Add new code owners for /device
2022-01-11 13:43:48 -08:00
xumia
faab7d5991
[Build]: Support reproducible build for release branches (#9426)
[Build]: Support reproducible build for release branches #9426
2021-12-23 16:16:55 +08:00
Qi Luo
ba02cde062
[codeowners]: Add some auto reviewers for sonic-yang-models folder (#9250)
Add some auto reviewers for sonic-yang-models folder
2021-11-18 10:20:33 -08:00
Joe LeVeque
83b8791160
[PR template] Add checkbox for backport request to 202106 branch (#7960)
Add checkbox for backport request to 202106 branch to PR template
2021-06-29 18:45:23 -07:00
xumia
57cc2081cd
Fix workflow permission issue when running in merge branch (#7417)
Fix the labeler workflow permission issue when merging from fork repo.
It impacts the labeler workflow to support auto-merge for package versions upgrade on 202012 branch. The current workaround is to add the label "automerge" on the PR sent by mssonicbld, then the automerge workflow will merge the PR.
2021-04-25 10:02:58 +08:00
xumia
12ab9af4fb
[ci] Support to merge SONiC package versions change pr automatically (#7065)
Support to merge the SONiC package versions upgrade pull request automatically.

#### How I did it
Add the automerge tag in the pull request.
1. Sent by the author mssonicbld
2. Only contains changes in files/build/**/*
3. Only for the specified branch 202012

Merge the pull request.
1. Sent by the author mssonicbld
2. The Azure Pipelines checker complete and successful
3. The pull request contains label automerge
2021-04-11 21:17:28 -07:00
kannankvs
a8f8385d88
[doc]: Update issue_template.md (#7067) 2021-03-31 00:04:43 -07:00
Joe LeVeque
c327689992
[GitHub] Tweak PR and issue templates (#6744)
Tweak GitHub issue and pull request templates
- Rename files to align with new [standard](https://docs.github.com/en/github/building-a-strong-community/using-templates-to-encourage-useful-issues-and-pull-requests)
- Use markdown headings rather than bolded bullets
2021-02-10 23:12:21 -08:00
Qi Luo
3bceccb81a
[codeowners]: Add as owners of some folders (#6654)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2021-02-03 05:31:41 -08:00
Guohan Lu
eeb955489f [codeowners]: update the global fallback
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-02 19:19:30 -08:00
Guohan Lu
8a024f00ce [owners]: add initial owners
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-01-31 21:19:53 -08:00
Guohan Lu
66fffedc8a [doc]: add 202012 branch in the PR request template
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-01-02 11:20:17 -08:00
Joe LeVeque
9e100257d0
[.github] Update pull request template #5115 (#5115)
Fix a spelling error in the template. Also make a few other minor tweaks.
2020-08-06 02:18:29 -07:00
lguohan
1870c181c5
Update PULL_REQUEST_TEMPLATE.md 2020-07-21 03:05:00 -07:00
lguohan
43e80f7c2a
[doc]: ask the motivation of the PR (#4462)
it is important to understand the motivation of the PR.

what I did is usually the PR title, so remove.

Signed-off-by: Guohan Lu <lguohan@gmail.com>
2020-04-22 11:02:38 -07:00
lguohan
2cd2f95384 [github]: add templates for submitting issues and PR (#947) 2017-09-08 21:27:15 -07:00