Skip to content

Commit 999914e

Browse files
authored
Merge branch 'main' into patch-1
2 parents 631d85c + d230581 commit 999914e

File tree

178 files changed

+6101
-5025
lines changed

Some content is hidden

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

178 files changed

+6101
-5025
lines changed

.cspell.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ import:
1010
caseSensitive: true
1111
ignorePaths:
1212
- '*.svg'
13-
- data/community/members.yaml
14-
- vendors.yaml
1513
- content/ja
1614
- content/zh
15+
- data/community/members.yaml
16+
- static/refcache.json
17+
- vendors.yaml
1718
patterns:
1819
- name: CodeBlock
1920
pattern: |

.cspell/pt-palavras.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
desserializa
22
desserializar
33
autoinstrumentação
4+
autoinstrumentações
45
autoconsistentes
56
serialização
67
verbosidade

.editorconfig

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ root = true
33
[*]
44
end_of_line = lf
55
insert_final_newline = true
6-
7-
[Makefile]
8-
indent_style = tab
6+
trim_trailing_whitespace = true
97

108
[*.{html,js,json,md,sass,yaml}]
119
indent_style = space
1210
indent_size = 2
11+
12+
[Makefile]
13+
indent_style = tab

.github/workflows/build-dev.yml

-9
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ on:
77
description: Regex of submodule paths to update to HEAD before building.
88
default: content-modules
99
type: string
10-
workflow_call:
11-
inputs:
12-
submodule_path_regex:
13-
type: string
14-
required: true
15-
skip_ref_cache_check:
16-
type: boolean
17-
default: false
1810

1911
jobs:
2012
build-and-test:
@@ -60,7 +52,6 @@ jobs:
6052
name: REFCACHE updates?
6153
needs: build-and-test
6254
runs-on: ubuntu-latest
63-
if: ${{ !inputs.skip_ref_cache_check }}
6455
steps:
6556
- uses: actions/checkout@v4
6657
- uses: actions/download-artifact@v4

.github/workflows/build-semconv-daily.yml

-26
This file was deleted.

.github/workflows/check-file.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Files
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
7+
jobs:
8+
check-expired:
9+
name: EXPIRED FILE check
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- run: npm run check:expired
14+
- run: npm run _diff:fail
15+
16+
check-filenames:
17+
name: FILENAME check
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- run: npm run check:filenames
22+
23+
check-formatting:
24+
name: FILE FORMAT
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- run: npm run check:format

.github/workflows/check-format.yml

-39
This file was deleted.

.github/workflows/check-links.yml

+45-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
name: Links
22

3+
# cSpell:ignore nvmrc opentelemetrybot
34
on:
45
merge_group:
56
pull_request:
67

8+
env:
9+
CHANGED_FILES:
10+
PR_NUM: ${{ github.event.pull_request.number }}
11+
USER_EMAIL: [email protected]
12+
USER_NAME: opentelemetrybot
13+
714
jobs:
815
build-and-check-links:
916
name: BUILD and CHECK LINKS
@@ -42,12 +49,12 @@ jobs:
4249
echo "submodule(s); or undo the submodule update(s) if it happened by mistake."
4350
npm run _diff:fail
4451
45-
- run: npm run log:check:links
52+
- run: |
53+
npm run log:check:links
54+
CHANGED_FILES=$(git status --porcelain)
55+
echo "CHANGED_FILES=$CHANGED_FILES" >> "$GITHUB_ENV"
4656
continue-on-error: true
47-
- name: Any files need updating?
48-
run: |
49-
echo "If the diff fails due to .htmltest, then either run 'npm run fix:htmltest-config' locally or '/fix:htmltest-config' in GitHub"
50-
npm run _diff:fail
57+
5158
- uses: actions/upload-artifact@v4
5259
with:
5360
name: build-log-etc
@@ -56,6 +63,36 @@ jobs:
5663
tmp/package*.json
5764
static/refcache.json
5865
66+
- name: Push changes if any, and fail check
67+
if: ${{ env.CHANGED_FILES }}
68+
run: |
69+
echo "Changes detected in the refcache etc:"
70+
git status --short
71+
72+
echo 'cmd: gh pr checkout $PR_NUM -b "pr-check-links-${RANDOM}"'
73+
# git branch -v
74+
75+
# git config --local user.email "$USER_EMAIL"
76+
# git config --local user.name "$USER_NAME"
77+
# git add -A
78+
# git commit -m "Updates from build-and-check-links workflow"
79+
80+
# echo "\nPushing changes to PR."
81+
# current_branch=$(git rev-parse --abbrev-ref HEAD)
82+
# echo current_branch=$current_branch
83+
# # gh pr checkout sets some git configs that we can use to make sure
84+
# # we push to the right repo & to the right branch
85+
# remote_repo=$(git config --get branch.${current_branch}.remote)
86+
# echo remote_repo=$remote_repo
87+
# remote_branch=$(git config --get branch.${current_branch}.merge)
88+
# echo remote_branch=$remote_branch
89+
# git push ${remote_repo} HEAD:${remote_branch}
90+
91+
# echo "Failing workflow so that changes can be reviewed, and checks rerun."
92+
# exit 1
93+
# env:
94+
# GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
95+
5996
check-refcache:
6097
name: REFCACHE updates?
6198
needs: build-and-check-links
@@ -67,7 +104,9 @@ jobs:
67104
- name: Fail when refcache contains entries with HTTP status 4XX
68105
run: |
69106
if grep -B 1 -e '"StatusCode": 4' static/refcache.json; then
70-
echo "Run 'npx gulp prune' to remove 4xx entries from the refcache"
107+
echo "Run 'npm run _refcache:prune' to remove 404 entries from refcache.json,"
108+
echo "or run './scripts/double-check-refcache-400s.mjs' locally to address"
109+
echo "other 400-status entries."
71110
exit 1
72111
fi
73112
- name: Does the refcache need updating?

.github/workflows/check-spelling.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@ jobs:
2626
suggestions: true
2727

2828
dict-check:
29-
name: CSPELL:IGNORE check
29+
name: CSPELL page-local word list check
3030
runs-on: ubuntu-latest
31+
env:
32+
FIX_CMD: fix:dict
3133
steps:
3234
- uses: actions/checkout@v4
33-
- run: npm run fix:dict
35+
- run: npm run ${{ env.FIX_CMD }}
3436
- name: Any changed files?
3537
run: |
3638
CHANGES=`git status --porcelain`
3739
if [[ $CHANGES ]]; then
38-
echo "Locally run `npm run fix:dict` and commit the changes:"
40+
echo "Add comment '/fix:${{ env.FIX_CMD }}' to your PR in GitHub,"
41+
echo "or locally run 'npm run ${{ env.FIX_CMD }}' and commit the changes:"
3942
echo "$CHANGES"
4043
exit 1
4144
else

.github/workflows/reusable-workflow-notification.yml

-59
This file was deleted.

.github/workflows/survey-on-merged-pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
PR_NUM: ${{ github.event.pull_request.number }}
9-
SURVEY_URL: https://forms.gle/WV58koUBGSG9HBY66
9+
SURVEY_URL: https://docs.google.com/forms/d/e/1FAIpQLSf2FfCsW-DimeWzdQgfl0KDzT2UEAqu69_f7F2BVPSxVae1cQ/viewform?entry.1540511742=open-telemetry/opentelemetry.io
1010

1111
jobs:
1212
comment-on-pr:
@@ -35,6 +35,6 @@ jobs:
3535
- name: Add comment to PR if author is not a member
3636
if: env.MEMBER_FOUND == 'false'
3737
run: |
38-
gh pr comment ${PR_NUM} --repo open-telemetry/opentelemetry.io --body "Thank you for your contribution! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey: ${SURVEY_URL}"
38+
gh pr comment ${PR_NUM} --repo open-telemetry/opentelemetry.io --body "Thank you for your contribution! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this [survey](${SURVEY_URL})"
3939
env:
4040
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)