Skip to content

Commit b672b23

Browse files
authored
Merge branch 'main' into ske-dep-api
2 parents 32435e8 + eaa7543 commit b672b23

File tree

1,078 files changed

+209410
-17208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,078 files changed

+209410
-17208
lines changed

.github/workflows/check-all-english-links.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
check_all_english_links:
1818
name: Check all links
1919
if: github.repository == 'github/docs-internal'
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-20.04-xl
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
2323
FIRST_RESPONDER_PROJECT: Docs content first responder
2424
REPORT_AUTHOR: docubot
2525
REPORT_LABEL: broken link report
2626
REPORT_REPOSITORY: github/docs-content
2727
steps:
28+
- name: Check that gh CLI is installed
29+
run: gh --version
30+
2831
- name: Check out repo's default branch
2932
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
3033
- name: Setup Node
@@ -50,18 +53,32 @@ jobs:
5053
NODE_ENV: production
5154
PORT: 4000
5255
DISABLE_OVERLOAD_PROTECTION: true
53-
DISABLE_RENDER_CACHING: true
56+
DISABLE_RENDERING_CACHE: true
5457
# We don't want or need the changelog entries in this context.
5558
CHANGELOG_DISABLED: true
5659
# The default is 10s. But because this runs overnight, we can
5760
# be a lot more patient.
5861
REQUEST_TIMEOUT: 20000
62+
# Don't care about CDN caching image URLs
63+
DISABLE_REWRITE_ASSET_URLS: true
64+
run: |
65+
node server.mjs > /tmp/stdout.log 2> /tmp/stderr.log &
66+
sleep 6
67+
curl --retry-connrefused --retry 5 -I http://localhost:4000/
68+
69+
- if: ${{ failure() }}
70+
name: Debug server outputs on errors
5971
run: |
60-
node server.mjs &
61-
sleep 5
62-
curl --retry-connrefused --retry 3 -I http://localhost:4000/
72+
echo "____STDOUT____"
73+
cat /tmp/stdout.log
74+
echo "____STDERR____"
75+
cat /tmp/stderr.log
6376
6477
- name: Run script
78+
env:
79+
# The default is 300 which works OK on a fast macbook pro
80+
# but not so well in Actions.
81+
LINKINATOR_CONCURRENCY: 100
6582
run: |
6683
script/check-english-links.js > broken_links.md
6784
@@ -73,11 +90,6 @@ jobs:
7390
#
7491
# https://docs.github.com/actions/reference/context-and-expression-syntax-for-github-actions#job-status-check-functions
7592

76-
- if: ${{ failure() }}
77-
name: Debug broken_links.md
78-
run: |
79-
ls -lh broken_links.md
80-
wc -l broken_links.md
8193
- uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
8294
if: ${{ failure() }}
8395
with:

.github/workflows/link-check-all.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424

2525
jobs:
2626
check-links:
27-
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
27+
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
@@ -49,6 +49,9 @@ jobs:
4949
run: cat $HOME/files.json
5050

5151
- name: Link check (warnings, changed files)
52+
env:
53+
# Don't care about CDN caching image URLs
54+
DISABLE_REWRITE_ASSET_URLS: true
5255
run: |
5356
./script/rendered-content-link-checker.mjs \
5457
--language en \
@@ -59,6 +62,9 @@ jobs:
5962
--list $HOME/files.json
6063
6164
- name: Link check (critical, all files)
65+
env:
66+
# Don't care about CDN caching image URLs
67+
DISABLE_REWRITE_ASSET_URLS: true
6268
run: |
6369
./script/rendered-content-link-checker.mjs \
6470
--language en \

.github/workflows/pa11y.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ concurrency:
2323

2424
jobs:
2525
test:
26-
# Run on self-hosted if the private repo or ubuntu-latest if the public repo
26+
# Run on ubuntu-20.04-xl if the private repo or ubuntu-latest if the public repo
2727
# See pull # 17442 in the private repo for context
28-
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
28+
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
2929
timeout-minutes: 60
3030
strategy:
3131
fail-fast: false

.pa11yci

Lines changed: 0 additions & 102 deletions
This file was deleted.
24.5 KB
Loading
22.9 KB
Loading
17.2 KB
Loading

0 commit comments

Comments
 (0)