Skip to content

Commit 7a2106e

Browse files
committed
Merge remote-tracking branch 'origin/main' into opensearch-dashboards-grafana
2 parents 56688ee + b3cb409 commit 7a2106e

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/pr-tests.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Pull request
2+
on:
3+
pull_request:
4+
jobs:
5+
rocky9-ovs-aio-test:
6+
name: aio (Rocky 9 OVS)
7+
uses: stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-all-in-one.yml@stackhpc/2024.1
8+
with:
9+
kayobe_image: ghcr.io/stackhpc/stackhpc-kayobe-config:stackhpc-2024.1
10+
os_distribution: rocky
11+
os_release: "9"
12+
ssh_username: cloud-user
13+
neutron_plugin: ovs
14+
OS_CLOUD: openstack
15+
stackhpc_cloud_tests_version: ${{ github.ref }}
16+
repository: stackhpc/stackhpc-kayobe-config
17+
github_ref: stackhpc/2024.1
18+
runner: arc-aio-cloud-tests-runner
19+
secrets: inherit
20+
21+
ubuntu-jammy-ovn-aio-test:
22+
name: aio (Ubuntu Jammy OVN)
23+
uses: stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-all-in-one.yml@stackhpc/2024.1
24+
with:
25+
kayobe_image: ghcr.io/stackhpc/stackhpc-kayobe-config:stackhpc-2024.1
26+
os_distribution: ubuntu
27+
os_release: jammy
28+
ssh_username: ubuntu
29+
neutron_plugin: ovn
30+
OS_CLOUD: openstack
31+
stackhpc_cloud_tests_version: ${{ github.ref }}
32+
repository: stackhpc/stackhpc-kayobe-config
33+
github_ref: stackhpc/2024.1
34+
runner: arc-aio-cloud-tests-runner
35+
secrets: inherit
36+
37+
lint:
38+
runs-on: ubuntu-22.04
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Install pip dependencies
43+
run: pip install -r requirements.txt
44+
45+
- name: Run pylint
46+
run: |
47+
set +e # disabling exit on non-zero error code so can output warnings without failing
48+
pylint stackhpc_cloud_tests/*.py
49+
EXIT_CODE=$?
50+
set -e
51+
if [[ $(($EXIT_CODE & 3)) > 0 ]] #bitwise check for pylint exit codes which indicate errors (01 and 10) https://pylint.readthedocs.io/en/latest/user_guide/usage/run.html#exit-codes
52+
then
53+
exit 1
54+
fi

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
grafana-client==4.1.*
22
opensearch-py==2.5.*
33
prometheus-api-client==0.5.*
4+
pylint==3.3.*
45
pytest-testinfra==10.1.*
56
requests==2.31.*

0 commit comments

Comments
 (0)