Skip to content

Commit 7955468

Browse files
Merge pull request #1617 from ArmDeveloperEcosystem/main
Production update
2 parents abfbeaf + 41b070d commit 7955468

File tree

722 files changed

+12483
-9077
lines changed

Some content is hidden

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

722 files changed

+12483
-9077
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
required: true
2020
HUGO_RAG_API:
2121
required: true
22+
HUGO_AUDIO_API:
23+
required: true
2224

2325
env:
2426
HUGO_VERSION: 0.130.0
@@ -43,7 +45,10 @@ jobs:
4345
with:
4446
hugo-version: ${{ env.HUGO_VERSION }}
4547
extended: true
46-
48+
49+
- name: Clear npm cache
50+
run: npm cache clean --force
51+
4752
# Installs Post-CSS
4853
- name: Install Post-CSS
4954
run: npm install postcss-cli
@@ -63,6 +68,7 @@ jobs:
6368
env:
6469
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
6570
HUGO_RAG_API: ${{ secrets.HUGO_RAG_API }}
71+
HUGO_AUDIO_API: ${{ secrets.HUGO_AUDIO_API }}
6672

6773
# Deploys website to AWS S3 and invalidate CloudFront Cache
6874
- name: Deploy to S3

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ jobs:
2323
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_INTERNAL }}
2424
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
2525
HUGO_RAG_API: ${{ secrets.HUGO_RAG_API }}
26+
HUGO_AUDIO_API: ${{ secrets.HUGO_AUDIO_API }}

.github/workflows/production.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ jobs:
2323
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_PRODUCTION }}
2424
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
2525
HUGO_RAG_API: ${{ secrets.HUGO_RAG_API }}
26+
HUGO_AUDIO_API: ${{ secrets.HUGO_AUDIO_API }}

.github/workflows/stats-pr.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Open Pull Request with updated stats report
2+
on:
3+
workflow_run:
4+
workflows: ["Test Learning Path"]
5+
types: [completed]
6+
permissions:
7+
actions: read
8+
contents: write
9+
pull-requests: write
10+
jobs:
11+
stats-pr:
12+
runs-on: ubuntu-24.04-arm
13+
steps:
14+
- name: Checkout main branch
15+
uses: actions/checkout@v4
16+
with:
17+
ref: main
18+
- name: Download stats report as artifact
19+
uses: actions/download-artifact@v4
20+
with:
21+
# Run ID of the workflow that uploaded the artifact
22+
run-id: ${{ github.event.workflow_run.id }}
23+
github-token: ${{ github.token }}
24+
- name: Check if artifact exists
25+
run: |
26+
if [ ! -d stats_current_test_info ]; then
27+
echo "No stats artifact found"
28+
echo "ARTIFACT_EXIST=false" >> "$GITHUB_ENV"
29+
else
30+
echo "Stats artifact found"
31+
echo "ARTIFACT_EXIST=true" >> "$GITHUB_ENV"
32+
fi
33+
- name: Move stats file
34+
# Unpack the artifact and move the stats file to the correct location
35+
if: env.ARTIFACT_EXIST == 'true'
36+
run: |
37+
mv stats_current_test_info/stats_current_test_info.yml data/stats_current_test_info.yml
38+
rm -rf stats_current_test_info
39+
- name: Set workflow link as environment variable
40+
if: env.ARTIFACT_EXIST == 'true'
41+
run: echo "WORKFLOW_URL=${{ github.event.workflow_run.workflow_url }}" >> $GITHUB_ENV
42+
- name: Echo Workflow URL
43+
if: env.ARTIFACT_EXIST == 'true'
44+
run: echo $WORKFLOW_URL
45+
- name: Create Pull Request
46+
uses: peter-evans/create-pull-request@v6
47+
if: env.ARTIFACT_EXIST == 'true' && success()
48+
with:
49+
commit-message: Update stats_current_test_info.yml
50+
title: Update stats_current_test_info.yml
51+
body: |
52+
Update test result file with recent run
53+
Triggered by workflow run ${ WORKFLOW_URL }
54+
Auto-generated by create-pull-request: https://github.com/peter-evans/create-pull-request
55+
branch: update-stats-current-test-info
56+
base: main

.github/workflows/test-lp.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Test Learning Path
2+
on: pull_request
3+
jobs:
4+
Test-Pull-Request:
5+
runs-on: ubuntu-24.04-arm
6+
steps:
7+
- name: Check out repository code
8+
uses: actions/checkout@v4
9+
with:
10+
ref: ${{ steps.vars.outputs.branch-name }}
11+
- name: Get all changed markdown files
12+
id: changed-markdown-files
13+
uses: tj-actions/changed-files@v44
14+
with:
15+
files: |
16+
**.md
17+
- name: Install dependencies
18+
if: steps.changed-markdown-files.outputs.any_changed == 'true'
19+
run: pip install -r tools/requirements.txt
20+
- name: Run test suite for all changed .md files
21+
id: run-suite
22+
if: steps.changed-markdown-files.outputs.any_changed == 'true'
23+
# Run the test suite
24+
run: |
25+
set -o pipefail; ./tools/test_lp.sh ${{ steps.changed-markdown-files.outputs.all_changed_files }} 2>&1 | tee test-lp-output.txt
26+
- name: Parse test suite errors
27+
id: test-suite-state
28+
if: success()
29+
# Catch any missed errors if running multiple tests
30+
run: |
31+
cat test-lp-output.txt | grep -q 'Tests failed in test suite' && echo "TEST_SUITE_ERRORS=true" >> "$GITHUB_ENV" \
32+
|| echo "TEST_SUITE_ERRORS=false" >> "$GITHUB_ENV"
33+
- name: Check for errors in test suite
34+
if: env.TEST_SUITE_ERRORS == 'true' && success()
35+
run: |
36+
echo "Test failures detected in test suite, check the output in earlier steps"
37+
exit 1
38+
- name: Parse test maintenance off
39+
id: maintenance-state
40+
if: success()
41+
# Check if maintenance is turned off
42+
run: |
43+
cat test-lp-output.txt | grep -q 'maintenance is turned off' && echo "MAINTENANCE=off" >> "$GITHUB_ENV" \
44+
|| echo "MAINTENANCE=on" >> "$GITHUB_ENV"
45+
- name: Check if maintenance is turned off
46+
if: env.MAINTENANCE == 'off' && success()
47+
run: echo "Maintenance is turned off for one or more files"
48+
# Only upload artifact if maintenance is on
49+
- name: Upload stats artifact
50+
uses: actions/upload-artifact@v4
51+
if: success() && env.MAINTENANCE == 'on'
52+
with:
53+
name: stats_current_test_info
54+
path: data/stats_current_test_info.yml

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ resources/
55
node_modules/
66
package-lock.json
77
.hugo_build.lock
8+
.vscode
89

910
# macOS files
1011
*.DS_Store
1112
nohup.out
1213

13-
venv/
14+
venv/
15+
contributor_private.csv

.wordlist.txt

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3571,4 +3571,121 @@ cloudsdk
35713571
highcpu
35723572
proj
35733573
sln
3574-
uploader
3574+
uploader
3575+
AAPCS
3576+
AOvVaw
3577+
ASR
3578+
AoT
3579+
Authtoken
3580+
Bc
3581+
ConstraintLayout
3582+
DIMPL
3583+
DNNL
3584+
Damo
3585+
Disambiguating
3586+
FMMLA
3587+
FunASR
3588+
FunASR's
3589+
GAxUDSKQEHfyWClAQFnoECA
3590+
ImageOperation
3591+
ImageProcessor
3592+
Inductor
3593+
KleidiCV
3594+
ModelScope
3595+
NOPASSWD
3596+
OSCI
3597+
PMUs
3598+
PUNC
3599+
PWD
3600+
Paraformer
3601+
PerformanceMetrics
3602+
ProfilerActivity
3603+
QAQ
3604+
RemoteImage
3605+
STT
3606+
Sobel's
3607+
SystemC
3608+
VAD
3609+
VER
3610+
VL
3611+
VSIX
3612+
ViTFeatureExtractor
3613+
ViTForImageClassification
3614+
Webhook
3615+
YPQ
3616+
aG
3617+
aQsHmumnZykaFxM
3618+
aaa
3619+
aaaaa
3620+
adduser
3621+
afc
3622+
ahUKEwisi
3623+
alpineImage
3624+
asr
3625+
authtoken
3626+
autoregressive
3627+
baremetal
3628+
chpasswd
3629+
cn
3630+
codebases
3631+
combobox
3632+
compileSdk
3633+
csv
3634+
da
3635+
dai
3636+
databinding
3637+
deallocated
3638+
debconf
3639+
debuggability
3640+
defsym
3641+
demangle
3642+
durations
3643+
dy
3644+
f'Predicted
3645+
fcb
3646+
fmopa
3647+
fsSL
3648+
hotspot
3649+
idx
3650+
iic
3651+
impl
3652+
inductor
3653+
inferencing
3654+
inout
3655+
instain
3656+
intr
3657+
kickstart
3658+
kleidicv
3659+
kleidicvdemo
3660+
lcrt
3661+
lsemihost
3662+
lst
3663+
modelscope
3664+
modularity
3665+
mymodel
3666+
nanoTime
3667+
nat
3668+
ngrok
3669+
nostartfiles
3670+
opi
3671+
paraformer
3672+
picolibc
3673+
preprocessor
3674+
punc
3675+
rct
3676+
recommender
3677+
rtti
3678+
semihost
3679+
sme
3680+
svcntsw
3681+
tvb
3682+
uninstallation
3683+
usermod
3684+
usg
3685+
vad
3686+
ved
3687+
ver
3688+
vit
3689+
wav
3690+
za
3691+
zh

archetypes/learning-path/_index.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ prerequisites:
1313
- PLACEHOLDER PREREQ 1
1414
- PLACEHOLDER PREREQ 2
1515

16-
author_primary: PLACEHOLDER NAME
16+
author: PLACEHOLDER NAME
1717

1818
### Tags
1919
skilllevels: PLACEHOLDER SKILLLEVEL
@@ -28,6 +28,23 @@ operatingsystems:
2828
- PLACEHOLDER OS G
2929

3030

31+
32+
further_reading:
33+
- resource:
34+
title: PLACEHOLDER MANUAL
35+
link: PLACEHOLDER MANUAL LINK
36+
type: documentation
37+
- resource:
38+
title: PLACEHOLDER BLOG
39+
link: PLACEHOLDER BLOG LINK
40+
type: blog
41+
- resource:
42+
title: PLACEHOLDER GENERAL WEBSITE
43+
link: PLACEHOLDER GENERAL WEBSITE LINK
44+
type: website
45+
46+
47+
3148
### FIXED, DO NOT MODIFY
3249
# ================================================================================
3350
weight: 1 # _index.md always has weight of 1 to order correctly
Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
---
2-
next_step_guidance: PLACEHOLDER TEXT 1
3-
4-
recommended_path: /learning-paths/PLACEHOLDER_CATEGORY/PLACEHOLDER_LEARNING_PATH/
5-
6-
further_reading:
7-
- resource:
8-
title: PLACEHOLDER MANUAL
9-
link: PLACEHOLDER MANUAL LINK
10-
type: documentation
11-
- resource:
12-
title: PLACEHOLDER BLOG
13-
link: PLACEHOLDER BLOG LINK
14-
type: blog
15-
- resource:
16-
title: PLACEHOLDER GENERAL WEBSITE
17-
link: PLACEHOLDER GENERAL WEBSITE LINK
18-
type: website
19-
20-
212
# ================================================================================
22-
# FIXED, DO NOT MODIFY
3+
# FIXED, DO NOT MODIFY THIS FILE
234
# ================================================================================
24-
weight: 21 # set to always be larger than the content in this path, and one more than 'review'
25-
title: "Next Steps" # Always the same
26-
layout: "learningpathall" # All files under learning paths have this same wrapper
5+
weight: 21 # Set to always be larger than the content in this path to be at the end of the navigation.
6+
title: "Next Steps" # Always the same, html page title.
7+
layout: "learningpathall" # All files under learning paths have this same wrapper for Hugo processing.
278
---

0 commit comments

Comments
 (0)