Skip to content

Commit

Permalink
Add ARM tests for all distros
Browse files Browse the repository at this point in the history
  • Loading branch information
mheap committed Jan 23, 2024
1 parent de86d46 commit d1d17ba
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 22 deletions.
33 changes: 14 additions & 19 deletions tools/install-tester/config/jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
- match:
version: "3\\..*"
package:
- oss
- enterprise
distros:
- amazon-linux
arch:
- linux/amd64
outputs:
oss: "{{ version }}"
enterprise: "Kong Enterprise {{ version }}"

- match:
version: "3\\..*"
version: "3\\.[2-99]\\.*"
package:
- enterprise
distros:
- amazon-linux
- ubuntu
- debian
- rhel
skip:
- 3.2.x/debian/enterprise/package
- 3.2.x/debian/enterprise/repository
- 3.3.x/debian/enterprise/package
- 3.3.x/debian/enterprise/repository
- 3.2.x/rhel/enterprise/package
- 3.2.x/rhel/enterprise/repository
- 3.3.x/rhel/enterprise/package
- 3.3.x/rhel/enterprise/repository
arch:
- linux/arm64
skip:
- 3.0.x/amazon-linux/enterprise/package
- 3.0.x/amazon-linux/enterprise/repository
- 3.1.x/amazon-linux/enterprise/package
- 3.1.x/amazon-linux/enterprise/repository
outputs:
enterprise: "Kong Enterprise {{ version }}"

Expand All @@ -33,6 +27,7 @@
- oss
- enterprise
distros:
- amazon-linux
- ubuntu
- rhel
- debian
Expand Down
4 changes: 2 additions & 2 deletions tools/install-tester/config/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ debian:
- usermod -aG sudo tester
- "echo 'ALL ALL = (ALL) NOPASSWD: ALL' > /etc/sudoers.d/tester"
rhel:
image: "registry.access.redhat.com/ubi7/ubi-init:latest"
image: "registry.access.redhat.com/ubi9/ubi-init:latest"
setup:
- yum install -y curl gpg sudo
- yum install -y gpg sudo
- useradd tester -m -p password
- "echo 'ALL ALL = (ALL) NOPASSWD: ALL' > /etc/sudoers.d/tester"
amazon-linux:
Expand Down
2 changes: 1 addition & 1 deletion tools/install-tester/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function runSingleJob(distro, job, arch, installOption, conditions) {
// Create a file to re-run the command in one + debug
fs.writeFileSync(
`./output/${job.version}-${distro}-${installOption.package}-${installOption.type}.txt`,
`docker run --platform linux/amd64 -it ${
`docker run --platform ${arch} -it ${
jobConfig.image
} bash -c "${jobConfig.commands
.replace(/"/g, '\\"')
Expand Down

0 comments on commit d1d17ba

Please sign in to comment.