File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -12,34 +12,46 @@ jobs:
12
12
with :
13
13
runner : linux.2xlarge
14
14
docker-image : executorch-ubuntu-22.04-linter
15
- submodules : ' none '
15
+ submodules : false
16
16
fetch-depth : 0
17
17
ref : ${{ inputs.ref }}
18
- timeout : 90
18
+ timeout : 120
19
19
script : |
20
20
./scripts/lint_urls.sh $(
21
21
{ [ "${{ github.event_name }}" = "pull_request" ] \
22
22
&& git diff --name-only "${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}"; } \
23
23
|| \
24
24
{ [ "${{ github.event_name }}" = "push" ] \
25
25
&& git diff --name-only "${{ github.event.before }}...${{ github.sha }}"; }
26
- )
26
+ ) || {
27
+ echo
28
+ echo "URL lint failed."
29
+ echo "If this is a transient outage, you can bypass it by adding the \`skip-url-lint\` label to your PR."
30
+ echo "Or add \`@lint-ignore\` somewhere on the same line as the URL you want to skip checking."
31
+ exit 1
32
+ }
27
33
28
34
lint-xrefs :
29
35
if : ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-xref-lint') }}
30
36
uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
31
37
with :
32
38
runner : linux.2xlarge
33
39
docker-image : executorch-ubuntu-22.04-linter
34
- submodules : ' none '
40
+ submodules : false
35
41
fetch-depth : 0
36
42
ref : ${{ inputs.ref }}
37
- timeout : 90
43
+ timeout : 60
38
44
script : |
39
45
./scripts/lint_xrefs.sh $(
40
46
{ [ "${{ github.event_name }}" = "pull_request" ] \
41
47
&& git diff --name-only "${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}"; } \
42
48
|| \
43
49
{ [ "${{ github.event_name }}" = "push" ] \
44
50
&& git diff --name-only "${{ github.event.before }}...${{ github.sha }}"; }
45
- )
51
+ ) || {
52
+ echo
53
+ echo "Xref lint failed."
54
+ echo "If this is a transient outage, you can bypass it by adding the \`skip-xref-lint\` label to your PR."
55
+ echo "Or add \`@lint-ignore\` somewhere on the same line as the reference you want to skip checking."
56
+ exit 1
57
+ }
You can’t perform that action at this time.
0 commit comments