Skip to content

Commit 8b6f898

Browse files
authored
Merge pull request #2769 from jaidev17/remove-test-badge-clean
Remove legacy test status badge feature (STESOL-191)
2 parents a5e72d8 + b98458e commit 8b6f898

26 files changed

Lines changed: 7 additions & 682 deletions

.github/workflows/stats-pr.yml

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

.github/workflows/test-lp.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,3 @@ jobs:
9191
- name: Check if maintenance is turned off
9292
if: env.MAINTENANCE == 'off' && success()
9393
run: echo "Maintenance is turned off for one or more files"
94-
# Only upload artifact if maintenance is on
95-
- name: Upload stats artifact
96-
uses: actions/upload-artifact@v4
97-
if: success() && env.MAINTENANCE == 'on'
98-
with:
99-
name: stats_current_test_info
100-
path: data/stats_current_test_info.yml

.github/workflows/weekly_stats_update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Result: updated files content/stats/stats_weekly_data.yml content/stats/stats_current_test_info.yml
1+
# Result: updated file data/stats_weekly_data.yml
22
# Will appear in learn.arm.com/stats
33

44
name: Stats file weekly update
@@ -57,7 +57,7 @@ jobs:
5757
# Commit updated files in a new PR
5858
- name: Commit updated stats files to repository
5959
run: |
60-
git add data/stats_weekly_data.yml data/stats_current_test_info.yml
60+
git add data/stats_weekly_data.yml
6161
# Push and commit only if changes to commit; if not, say so and end.
6262
git commit -m 'automatic update of stats files' && git push origin main || echo "No changes to commit"
6363

content/learning-paths/cross-platform/_example-learning-path/appendix-3-test.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -242,38 +242,6 @@ The framework will print information about any errors to the console. To display
242242
./tools/maintenance.py -i content/install-guides/mytool.md --debug
243243
```
244244

245-
246-
### Saving the results
247-
248-
If you want the results to be saved, add the `--stats-report` flag to the command. This will update a statistics file `stats_current_test_info.yml`, which publishes the result to the website. In order to do that, the Learning Path or Install Guide needs to exist as an entry in the statistics file. Find the category for your content. If it's an Install Guide, the name will be that of the .md file without the extension. If it's a Learning Path, you will use the name of the directory. For example:
249-
250-
```
251-
install-guides:
252-
mytool:
253-
readable_title: My Tool
254-
tests_and_status:
255-
- ubuntu:latest: passed
256-
microcontrollers:
257-
my-new-learning-path:
258-
readable_title: My new Learning Path
259-
tests_and_status:
260-
- ubuntu:latest: passed
261-
```
262-
263-
```bash
264-
./tools/maintenance.py -i content/install-guides/mytool.md --stats-report
265-
```
266-
267-
```yaml
268-
tests_and_status:
269-
- ubuntu:latest: passed
270-
- fedora:latest: failed
271-
```
272-
273-
The field `tests_and_status` is a list that indicated whether all tests passed for a corresponding Docker container image or if at least one test failed.
274-
275-
In the example above, the summary indicates that for this Learning Path all tests passed for the image `ubuntu:latest` but at least one test failed for the image `fedora:latest`. More information about the failures can be found in the console.
276-
277245
## Advanced usage for embedded development
278246
### Using the Corstone-300 FVP
279247

data/stats_current_test_info.yml

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

themes/arm-design-system-hugo-theme/layouts/install-guides/installtoolsall.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
- partial general-formatting/github-links.html
1515
- partial navigation/content-navigation-mobile.html
1616
- partial general-formatting/external-link.html
17-
- partial test-maintenance/test-maintenance.html
1817
- partial general-formatting/feedback.html
1918
- partial general-formatting/feedback.html
2019
*/}}

themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/metadata-table.html

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,6 @@ <h2 id="about-marker">{{$page_h2}}</h2>
145145
{{end}}
146146
</td>
147147
</tr>
148-
{{ if .Params.test_maintenance}}
149-
<tr>
150-
<td class="td-metadata-key">
151-
Test status:
152-
</td>
153-
<td class="td-metadata-value">
154-
{{ partial "test-maintenance/test-maintenance" . }}
155-
</td>
156-
</tr>
157-
{{end}}
158148
</table>
159149
</div>
160150
<!-- RIGHT TABLE, mobile -->
@@ -199,18 +189,6 @@ <h2 id="about-marker">{{$page_h2}}</h2>
199189
{{end}}
200190
</td>
201191
</tr>
202-
{{ if .Params.test_maintenance}}
203-
<tr>
204-
<td class="td-metadata-key width-max-content">
205-
Test status:
206-
</td>
207-
</tr>
208-
<tr>
209-
<td class="td-metadata-value">
210-
{{ partial "test-maintenance/test-maintenance" . }}
211-
</td>
212-
</tr>
213-
{{end}}
214192
</table>
215193
</div>
216194
</div>

0 commit comments

Comments
 (0)