Skip to content

Commit d73dfb7

Browse files
authored
Merge pull request #1556 from annietllnd/pr-test-framework
Test framework update
2 parents 80dfc11 + 5a27a0a commit d73dfb7

Some content is hidden

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

41 files changed

+1156
-807
lines changed

.github/workflows/stats-pr.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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@v2
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: Move stats file
25+
# Unpack the artifact and move the stats file to the correct location
26+
run: |
27+
mv stats_current_test_info/stats_current_test_info.yml data/stats_current_test_info.yml
28+
rm -rf stats_current_test_info
29+
- name: Set workflow link as environment variable
30+
run: echo "WORKFLOW_URL=${{ github.event.workflow_run.workflow_url }}" >> $GITHUB_ENV
31+
- name: Echo Workflow URL
32+
run: echo $WORKFLOW_URL
33+
- name: Create Pull Request
34+
uses: peter-evans/create-pull-request@v6
35+
if: success()
36+
with:
37+
commit-message: Update stats_current_test_info.yml
38+
title: Update stats_current_test_info.yml
39+
body: |
40+
Update test result file with recent run
41+
Triggered by workflow run ${ WORKFLOW_URL }
42+
Auto-generated by create-pull-request: https://github.com/peter-evans/create-pull-request
43+
branch: update-stats-current-test-info
44+
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resources/
55
node_modules/
66
package-lock.json
77
.hugo_build.lock
8+
.vscode
89

910
# macOS files
1011
*.DS_Store

content/install-guides/ambaviz.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ tool_install: true # Set to true to be listed in main selection pag
2727
multi_install: false # Set to true if first page of multi-page article, else false
2828
multitool_install_part: false # Set to true if a sub-page of a multi-page article, else false
2929
layout: installtoolsall # DO NOT MODIFY. Always true for tool install articles
30+
test_maintenance: true
31+
test_images:
32+
- ubuntu:latest
33+
3034
---
3135

3236
[Arm AMBA Viz](https://www.arm.com/products/development-tools/embedded-and-software/amba-viz) is a tool to visualize AMBA events to accelerate SoC verification. This guide is for SoC verification and validation engineers to efficiently analyze hardware signals in their designs.
@@ -49,23 +53,23 @@ AMBA Viz requires a Linux host machine with Java 11 or JavaFX.
4953

5054
Extract the software from the bundle to the desired install location. For example:
5155

52-
```command
56+
```console
5357
tar -xf ambaviz.tar.gz
5458
```
5559

5660
Navigate to the newly-created `ambaviz-<version>` folder, and run the following script to set up environment variables:
5761

5862
#### sh/bash
59-
```command
63+
```console
6064
source sourceMe.sh
6165
```
6266
#### csh
63-
```command
67+
```console
6468
sourceMe.csh
6569
```
6670

6771
The AMBA Viz Release Notes provide full installation instructions, located in the extracted directory at:
68-
```command
72+
```console
6973
docs/public/assets/pdfs/ambaviz-release-note.pdf
7074
```
7175

@@ -78,17 +82,17 @@ License set up instructions are available in the [Arm License install guide](/in
7882
## Get started
7983

8084
Typically, AMBA Viz is launched with a waveform file:
81-
```command
85+
```console
8286
ambaviz -f <waveform_file>
8387
```
8488

8589
A proprietary `AVDB` waveform format is recommended to improve the performance of AMBA Viz.
8690

8791
To convert `VCD` or `FSDB` files to this format, use the `wave2avdb` script, for example:
88-
```command
92+
```console
8993
wave2avdb -d cmn600 -f waves.vcd -o waves.avdb
9094
```
9195
The User Guide provides full usage instructions, located in the extracted directory at:
92-
```command
96+
```console
9397
docs/public/assets/pdfs/ambaviz-user-guide.pdf
9498
```

content/install-guides/ams.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ tool_install: true # Set to true to be listed in main selection pag
2828
multi_install: false # Set to true if first page of multi-page article, else false
2929
multitool_install_part: false # Set to true if a sub-page of a multi-page article, else false
3030
layout: installtoolsall # DO NOT MODIFY. Always true for tool install articles
31+
test_maintenance: true
32+
test_images:
33+
- ubuntu:latest
3134
---
3235
[Arm Performance Studio](https://developer.arm.com/Tools%20and%20Software/Arm%20Performance%20Studio%20for%20Mobile) (formally known as `Arm Mobile Studio`) is a performance analysis tool suite for various application developers:
3336

@@ -57,7 +60,7 @@ Run the supplied `Arm_Performance_Studio_<version>_windows_x86-64.exe` installer
5760
### Linux
5861

5962
Unpack the supplied `Arm Performance Studio` bundle to the desired location. For example:
60-
```command
63+
```console
6164
tar -xf Arm_Performance_Studio_2024.3_linux_x86-64.tgz
6265
```
6366
### macOS

content/install-guides/anaconda.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ tool_install: true
2222
weight: 1
2323
---
2424

25-
[Anaconda Distribution](https://www.anaconda.com/products/distribution) is a popular open-source Python distribution.
25+
[Anaconda Distribution](https://www.anaconda.com/products/distribution) is a popular open-source Python distribution.
2626

2727
It includes access to a repository with over 8,000 open-source data science and machine learning packages.
2828

29-
The `conda` command can be used to quickly install and use Python packages.
29+
The `conda` command can be used to quickly install and use Python packages.
3030

3131
Follow the instructions below to install and use Anaconda Distribution on an Arm server.
3232

@@ -46,11 +46,12 @@ aarch64
4646

4747
If you see a different result, you are not using an Arm computer running 64-bit Linux.
4848

49-
The installer requires some desktop related libraries. The dependencies can be met by installing a desktop environment.
49+
The installer requires some desktop related libraries. The dependencies can be met by installing a desktop environment.
5050

5151
For Ubuntu/Debian, run the command:
5252

5353
```console
54+
sudo apt update
5455
sudo apt install xfce4 -y
5556
```
5657

@@ -60,7 +61,7 @@ For Amazon Linux, run the command:
6061
sudo amazon-linux-extras install mate-desktop1.x
6162
```
6263

63-
## How do I download the latest Anaconda distribution?
64+
## How do I download the latest Anaconda distribution?
6465

6566
To download the latest Anaconda distribution, run:
6667

@@ -84,7 +85,7 @@ sh ./Anaconda3-2024.10-1-Linux-aarch64.sh -b
8485

8586
The install takes a couple of minutes to complete.
8687

87-
The batch installation will not set up the shell.
88+
The batch installation will not set up the shell.
8889

8990
To set up the shell, run:
9091

@@ -133,7 +134,7 @@ Run the example code:
133134
python ./tf.py
134135
```
135136

136-
The expected output format is below. Your version may be slightly different.
137+
The expected output format is below. Your version may be slightly different.
137138

138139
```output
139140
2.12.0
@@ -180,6 +181,6 @@ tensor([[0.9287, 0.5931, 0.0239],
180181
```
181182

182183

183-
You are ready to use Anaconda Distribution.
184+
You are ready to use Anaconda Distribution.
184185

185186
Explore the many machine learning articles and examples using TensorFlow and PyTorch.

content/install-guides/ansible.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ minutes_to_complete: 10
88
multi_install: false
99
multitool_install_part: false
1010
official_docs: https://docs.ansible.com/ansible/latest/index.html
11+
test_maintenance: true
1112
test_images:
1213
- ubuntu:latest
1314
test_link: null
14-
test_maintenance: false
1515
title: Ansible
1616
tool_install: true
1717
weight: 1
1818
---
1919

2020
Ansible is an open source, command-line automation used to configure systems and deploy software.
2121

22-
Ansible command-line tools can be installed on a variety of Linux distributions.
22+
Ansible command-line tools can be installed on a variety of Linux distributions.
2323

2424
[General installation information](https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html) is available which covers all supported operating systems, but it doesn't talk about Arm-based hosts.
2525

@@ -41,7 +41,7 @@ aarch64
4141

4242
If you see a different result, you are not using an Arm-based machine running 64-bit Linux.
4343

44-
## How do I download and install Ansible for Ubuntu on Arm?
44+
## How do I download and install Ansible for Ubuntu on Arm?
4545

4646
The easiest way to install the latest version of Ansible for Ubuntu on Arm is to use the PPA (Personal Package Archive).
4747

@@ -54,7 +54,7 @@ sudo add-apt-repository --yes --update ppa:ansible/ansible
5454
sudo apt install ansible -y
5555
```
5656

57-
Confirm the Ansible command line tools are installed by running:
57+
Confirm the Ansible command line tools are installed by running:
5858

5959
```bash
6060
ansible-playbook --version

0 commit comments

Comments
 (0)