Skip to content

Commit c1a3863

Browse files
authored
Merge pull request #43386 from github/repo-sync
Repo sync
2 parents a3a60d8 + 05461db commit c1a3863

Some content is hidden

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

44 files changed

+741
-111
lines changed

.github/workflows/content-lint-markdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
steps:
2525
- name: Check out repo
2626
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27+
with:
28+
# Fetch 2 commits so tj-actions/changed-files can diff without extra API calls
29+
fetch-depth: 2
2730

2831
- name: Set up Node and dependencies
2932
uses: ./.github/actions/node-npm-setup

.github/workflows/link-check-on-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
33+
with:
34+
# Fetch 2 commits so tj-actions/changed-files can diff without extra API calls
35+
fetch-depth: 2
3336

3437
- uses: ./.github/actions/node-npm-setup
3538

.github/workflows/readability.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
if: github.repository == 'github/docs-internal'
2828
runs-on: ubuntu-latest
2929
steps:
30-
- name: Check out repo with full history
30+
- name: Check out repo
3131
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3232
with:
33-
fetch-depth: 0
33+
# Fetch 2 commits so tj-actions/changed-files can diff without extra API calls
34+
fetch-depth: 2
3435

3536
- name: Checkout PR for manual dispatch
3637
if: ${{ github.event_name == 'workflow_dispatch' }}

.github/workflows/reviewers-legal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
steps:
3434
- name: Checkout repository
3535
uses: actions/checkout@v6.0.1
36+
with:
37+
# Fetch 2 commits so tj-actions/changed-files can diff without extra API calls
38+
fetch-depth: 2
3639

3740
- name: Get changed files
3841
id: changed_files

.github/workflows/test-changed-content.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
# Even if if doesn't do anything
2929
- name: Check out repo
3030
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
31+
with:
32+
# Fetch 2 commits so tj-actions/changed-files can diff without extra API calls
33+
fetch-depth: 2
3134

3235
- uses: ./.github/actions/node-npm-setup
3336

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ jobs:
8888
# Even if if doesn't do anything
8989
- name: Check out repo
9090
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
91+
with:
92+
# Fetch 2 commits so tj-actions/changed-files can diff without extra API calls
93+
fetch-depth: 2
9194

9295
- uses: ./.github/actions/setup-elasticsearch
9396
if: ${{ matrix.name == 'search' || matrix.name == 'languages' }}

config/kubernetes/default/deployments/webapp.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ spec:
2525
requests:
2626
cpu: 1000m
2727
memory: 4500Mi
28+
# Keep ~600 MB headroom above --max-old-space-size in
29+
# config/moda/configuration/default/env.yaml for Node
30+
# off-heap memory and OS overhead.
2831
limits:
2932
cpu: 8000m
3033
memory: 16Gi

config/kubernetes/production/deployments/webapp.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ spec:
3434
# Absolute minimum to start app is 4500Mi
3535
# Would increase with more pages, versions, or languages supported
3636
# The additional memory helps during traffic surges
37+
# Keep ~600 MB headroom above --max-old-space-size in
38+
# config/moda/configuration/production/env.yaml for Node
39+
# off-heap memory and OS overhead.
3740
limits:
3841
cpu: 16000m
3942
memory: 16Gi

config/moda/configuration/default/env.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
data:
22
MODA_APP_NAME: docs-internal
33
NODE_ENV: production
4+
# V8 heap limit (--max-old-space-size) should leave at least ~600 MiB
5+
# below the K8s memory request for Node off-heap memory (Buffers,
6+
# V8 code cache, libuv) and OS overhead. If you change the memory
7+
# request in config/kubernetes/default/deployments/webapp.yaml,
8+
# update this value to match.
9+
# Current: 4500 MiB request, 4096 MiB heap = 404 MiB headroom
410
NODE_OPTIONS: '--max-old-space-size=4096'
511
PORT: '4000'
612
ENABLED_LANGUAGES: 'en,es,ja,pt,zh,ru,fr,ko,de'

config/moda/configuration/production/env.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
data:
22
MODA_APP_NAME: docs-internal
33
NODE_ENV: production
4+
# V8 heap limit (--max-old-space-size) should leave at least ~600 MiB
5+
# below the K8s memory request for Node off-heap memory (Buffers,
6+
# V8 code cache, libuv) and OS overhead. If you change the memory
7+
# request in config/kubernetes/production/deployments/webapp.yaml,
8+
# update this value to match.
9+
# Current: 8.0 Gi (8192 MiB) request, 7168 MiB heap = 1024 MiB headroom
410
NODE_OPTIONS: '--max-old-space-size=7168'
511
PORT: '4000'
612
ENABLED_LANGUAGES: 'en,es,ja,pt,zh,ru,fr,ko,de'

0 commit comments

Comments
 (0)