Skip to content

Commit 5fcd23d

Browse files
authored
Improve OS detection and adjust task sequencing in perf-lab workflow (#78)
- Enhance `capture-system-info` to detect RHEL-based systems and install `epel-release` if needed. - Reorder task execution in workflow to optimize setup and cleanup stages.
1 parent d632d4f commit 5fcd23d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

scripts/perf-lab/helpers/os.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ scripts:
1111
- set-state: RUN.os linux
1212

1313
capture-system-info:
14+
- sh: grep '^ID=' /etc/os-release | cut -d= -f2 | tr -d '"'
15+
then:
16+
- regex: ".*rhel.*"
17+
then:
18+
- script: check-and-install-package
19+
with:
20+
command: fastfetch
21+
package: epel-release
1422
- script: check-and-install-package
1523
with:
1624
command: fastfetch

scripts/perf-lab/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,16 +452,16 @@ roles:
452452
# - output-vars
453453
- detect-os
454454
- capture-system-info
455-
- start-timestamp
456455
- cleanup-env
457456
- config-env
458457
- ensure-requirements
459458
- clone-repo
460459
- stop-test-services
460+
- start-timestamp
461461
run-scripts:
462462
- run-tests
463-
- download-metrics
464463
cleanup-scripts:
465464
- stop-timestamp
465+
- download-metrics
466466
- stop-test-services
467-
# - cleanup-env
467+
- cleanup-env

0 commit comments

Comments
 (0)