Skip to content

Commit 5e521fd

Browse files
authored
Merge branch 'master' into reverse.aix.path2
2 parents feeaa2a + b1584dd commit 5e521fd

File tree

404 files changed

+14777
-4803
lines changed

Some content is hidden

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

404 files changed

+14777
-4803
lines changed

.ansible-lint

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
1+
---
2+
# .ansible-lint
3+
14
skip_list:
25
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern
36
- '204' # Lines should be no longer than 160 chars
47
- '207' # Nested jinja pattern
58
- '208' # File permissions unset or incorrect
69
- '301' # Commands should not change things if nothing needs doing
7-
- '303' # Using command rather than module
10+
- '303' # Using command rather than module
811
- '305' # Use shell only when shell functionality is required
9-
- '306' # Shells that use pipes should set the pipefail option
12+
- '306' # Shells that use pipes should set the pipefail option
1013
- '401' # Git checkouts must contain explicit version
1114
- '403' # Package installs should not use latest
1215
- '501' # Become_user requires become to work as expected
16+
- '503' # Tasks that run when changed should likely be handlers.
1317
- '601' # Don't compare to literal True/False
1418
- '602' # Don't compare to empty string
15-
- 'var-naming' # var-naming File defines variable that violates variable naming standards
19+
- 'var-naming' # var-naming File defines variable that violates variable naming standards
20+
- 'fqcn-builtins' # Disable error introduced in ansible-lint 6.X (https://github.com/ansible/ansible-lint/pull/1908)
21+
- 'name[template]' # Jinja templates should only be at the end of ‘name’.
22+
- 'template-instead-of-copy' # Replaced upstream in https://github.com/ansible/ansible-lint/pull/2512
23+
- 'no-free-form' # Exclude As Requires Significant Changes ( 196 changes required )
24+
- 'fqcn[action]' # Exclude As Requires Significant Changes ( 249 changes required )
25+
- 'args[module]' # Exclude Experimental Rule Validation ( Prevents 4 experimental warnings )
26+
27+
kinds:
28+
- vars: "ansible/playbooks/adoptopenjdk_variables.yml"
1629

1730
exclude_paths:
18-
- ./ansible/playbooks/adoptopenjdk_variables.yml # See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1926
31+
- ansible/playbooks/adoptopenjdk_variables.yml # See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1926

.github/ISSUE_TEMPLATE/ansible.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ assignees: ''
88
---
99
Please put the name of the software product (and affected platforms if relevant) in the title of this issue
1010

11-
- [ ] Missing install
12-
- [ ] Bug in ansible playbook
13-
- [ ] Request for new playbook addition
11+
Delete as appropriate from this list:
12+
13+
- Missing install
14+
- Bug in ansible playbook
15+
- Request for new playbook addition
1416

1517
Details:

.github/ISSUE_TEMPLATE/machineaccess.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ labels: 'Temp Infra Access'
66
assignees: 'sxa'
77

88
---
9-
Access level:
9+
**NOTE: THIS ISSUE SHOULD NOT BE CLOSED BY THE ORIGINATOR IF ACCESS IS GRANTED**.
10+
When the access is no longer needed please add a comment and a member
11+
of the infrastructure team will revoke it and close the issue.
12+
13+
Required access level (Delete as appropriate). Note that you should only
14+
request the minimum level that is required to solve your problem
1015

1116
- [ ] Non-privileged
1217
- [ ] jenkins user

.github/ISSUE_TEMPLATE/teamaccess.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ labels: ''
66
assignees: 'sxa'
77

88
---
9-
Team requested:
9+
Team requested - delete those which are not applicable :
1010

11-
- [ ] infrastructure-triage
12-
- [ ] infrastructure
13-
- [ ] infrastructure-core
14-
- [ ] infrastructure-secret
11+
- infrastructure-triage
12+
- infrastructure
13+
- infrastructure-core
14+
- infrastructure-secret
1515

1616
Please explain why you need this access:

.github/ISSUE_TEMPLATE/testcasefail.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ Please set the title to indicate the test name and machine name where known.
1010
To make it easy for the infrastructure team to repeat and diagnose, please
1111
answer the following questions:
1212

13-
- test suite/name?
13+
- test suite/name (e.g, BUILD_LIST, TARGET, CUSTOM_TARGET)?
14+
- a link into recent `Test_` job on https://ci.adoptium.net which showed the failure
15+
- **Hyperlink** to re-run in Grinder:
1416
- Is there an existing issue elsewhere covering this?
1517
- Which machine(s) does it work on?
1618
- Which machine(s) does it fail on?
17-
- Do you have a link to a Grinder re-run if the test with the failure?
1819

1920
Any other details:

.github/PULL_REQUEST_TEMPLATE.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ the requirements below.
44
-->
55

66
##### Checklist
7-
<!-- For completed items, change [ ] to [x]. Leave unchecked if not required -->
7+
<!-- For completed items, change [ ] to [x]. Delete any lines that are not applicable for this PR -->
88

99
- [ ] commit message has one of the [standard prefixes](https://github.com/adoptium/infrastructure/blob/master/CONTRIBUTING.md#commit-messages)
1010
- [ ] [faq.md](https://github.com/adoptium/infrastructure/blob/master/FAQ.md) updated if appropriate
1111
- [ ] other documentation is changed or added (if applicable)
12-
- [ ] playbook changes run through [VPC](https://ci.adoptopenjdk.net/view/Tooling/job/VagrantPlaybookCheck/) or [QPC](https://ci.adoptopenjdk.net/view/Tooling/job/QEMUPlaybookCheck/) (if you have access)
12+
- [ ] playbook changes run through [VPC](https://ci.adoptium.net/view/Tooling/job/VagrantPlaybookCheck/) or [QPC](https://ci.adoptium.net/view/Tooling/job/QEMUPlaybookCheck/) (if you have access)
13+
- [ ] VPC/QPC not applicable for this PR
1314
- [ ] for inventory.yml changes, bastillion/nagios/jenkins updated accordingly

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/labeler.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,22 @@
99

1010
# label_name:
1111
# - path/to/file_or_folder
12+
1213
ghActions:
13-
- .github/workflows/**/*
14+
- changed-files:
15+
- any-glob-to-any-file: [.github/*]
1416
doc:
15-
- docs/*
16-
- '**/*.md'
17+
- changed-files:
18+
- any-glob-to-any-file: [docs/*, '**/*.md']
1719
Vagrant:
18-
- ansible/pbTestScripts/**/*
19-
- ansible/vagrant/Vagrantfile*
20+
- changed-files:
21+
- any-glob-to-any-file: [ansible/pbTestScripts/**/*, ansible/vagrant/Vagrantfile*]
2022
pbTests:
21-
- ansible/pbTestScripts/**/*
23+
- changed-files:
24+
- any-glob-to-any-file: [ansible/pbTestScripts/**/*]
2225
docker:
23-
- ansible/docker/Dockerfile*
26+
- changed-files:
27+
- any-glob-to-any-file: [ansible/docker/Dockerfile*]
2428
ansible:
25-
- ansible/playbooks/**/*
26-
- ansible/plugins/**/*
27-
- ansible/inventory.yml
28-
- ansible/ansible.cfg
29+
- changed-files:
30+
- any-glob-to-any-file: [ansible/playbooks/**/*, ansible/plugins/**/*, ansible/inventory.yml, ansible/ansible.cfg]

.github/regex_labeler.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ labels:
7676
- label: "provider:osuosl"
7777
matcher:
7878
title: "osuosl"
79-
- label: "provider:scaleway"
79+
- label: "provider:skytap"
8080
matcher:
81-
title: "scaleway"
81+
title: "skytap"
8282
- label: "provider:nine"
8383
matcher:
8484
title: "nine"

.github/workflows/build.yml

+50-19
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,77 @@ on:
55
paths:
66
- .github/workflows/build.yml
77
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/**
8-
branches:
8+
- ansible/docker/**
9+
branches:
910
- master
1011
push:
1112
paths:
1213
- .github/workflows/build.yml
1314
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/**
14-
branches:
15+
- ansible/docker/**
16+
branches:
1517
- master
1618

19+
permissions:
20+
contents: read
21+
1722
jobs:
1823
build-and-push-centos6:
1924
name: Centos6
2025
runs-on: ubuntu-latest
2126
steps:
2227

23-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
29+
30+
- name: Set up Docker Buildx to use cache feature
31+
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
2432

25-
- name: Docker Build & Push Centos6 Image to Docker Hub
26-
uses: docker/build-push-action@v1
33+
- name: Login to Docker Hub
34+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
2735
with:
2836
username: ${{ secrets.DOCKER_USERNAME }}
29-
password: ${{ secrets.DOCKER_PASSWORD }}
30-
dockerfile: ./ansible/docker/Dockerfile.CentOS6
31-
repository: adoptopenjdk/centos6_build_image
32-
tags: latest
33-
push: ${{ github.ref == 'refs/heads/master' }}
37+
password: ${{ secrets.DOCKER_TOKEN }}
38+
if: github.ref == 'refs/heads/master'
39+
40+
41+
- name: Docker Build CentOS6 Image Test
42+
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
43+
with:
44+
file: ./ansible/docker/Dockerfile.CentOS6
45+
build-args: git_sha=${{ github.sha }}
46+
tags: adoptopenjdk/centos6_build_image:latest
47+
cache-from: type=registry,ref=adoptopenjdk/centos6_build_image:latest
48+
cache-to: type=inline
49+
push: false
50+
if: github.ref != 'refs/heads/master'
51+
52+
- name: Docker Build & Push Centos6 Image to Docker Hub On Merge
53+
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
54+
with:
55+
file: ./ansible/docker/Dockerfile.CentOS6
56+
build-args: git_sha=${{ github.sha }}
57+
tags: adoptopenjdk/centos6_build_image:latest
58+
cache-from: type=registry,ref=adoptopenjdk/centos6_build_image:latest
59+
cache-to: type=inline
60+
push: false
61+
if: github.ref == 'refs/heads/master'
3462

3563
build-and-push-alpine3:
3664
name: Alpine3
3765
runs-on: ubuntu-latest
3866
steps:
3967

40-
- uses: actions/checkout@v2
68+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4169

42-
- name: Docker Build & Push Alpine3 Image to Docker Hub
43-
uses: docker/build-push-action@v1
70+
- name: Set up Docker Buildx to use cache feature
71+
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
72+
73+
- name: Docker Build Alpine3 Image
74+
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
4475
with:
45-
username: ${{ secrets.DOCKER_USERNAME }}
46-
password: ${{ secrets.DOCKER_PASSWORD }}
47-
dockerfile: ./ansible/docker/Dockerfile.Alpine3
48-
repository: adoptopenjdk/alpine3_build_image
49-
tags: latest
50-
push: ${{ github.ref == 'refs/heads/master' }}
76+
file: ./ansible/docker/Dockerfile.Alpine3
77+
build-args: git_sha=${{ github.sha }}
78+
tags: adoptopenjdk/alpine3_build_image:latest
79+
cache-from: type=registry,ref=adoptopenjdk/alpine3_build_image:latest
80+
cache-to: type=inline
81+
push: false

.github/workflows/build_mac.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,38 @@ on:
55
paths:
66
- .github/workflows/build_mac.yml
77
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/**
8-
branches:
8+
branches:
99
- master
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build-macos:
1316
name: macOS
1417
runs-on: ${{ matrix.os }}
1518
strategy:
1619
matrix:
17-
os: [macos-10.15]
20+
include:
21+
- os: [macos-13]
22+
- os: [macos-14]
1823
steps:
1924

20-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26+
27+
- name: Install Python
28+
run: brew install [email protected] --overwrite
2129

22-
- name: Install dependencies
30+
- name: Install Ansible
2331
run: brew install ansible
2432

33+
# This is to fix an issue with the github macos14 runner, that cant resolve keyserver.ubuntu.com
34+
# but this does work when replaced with the IP address. Spotted during the GPG verification of ANT step
35+
# Upstream Bug : https://github.com/actions/runner-images/issues/9777
36+
- name: Replace keyserver address with IP address
37+
run: |
38+
sed -i '' 's/keyserver\.ubuntu\.com/185.125.188.27/g' ansible/playbooks/Supporting_Scripts/package_signature_verification.sh
39+
2540
- name: Run Ansible Playbook
2641
run: |
2742
echo "localhost ansible_user=runner ansible_connection=local" > ansible/hosts

.github/workflows/build_qemu.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: QEMU Playbook Checker
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/build_qemu.yml
7+
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/**
8+
branches:
9+
- master
10+
types: [ labeled ]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build_job:
17+
if: ${{ github.event.label.name == 'QEMU-playbook-check' }}
18+
# The host should always be linux
19+
runs-on: ubuntu-latest
20+
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
21+
22+
strategy:
23+
matrix:
24+
include:
25+
- arch: aarch64
26+
distro: ubuntu18.04
27+
- arch: aarch64
28+
distro: buster
29+
- arch: ppc64le
30+
distro: ubuntu18.04
31+
- arch: s390x
32+
distro: ubuntu18.04
33+
- arch: riscv64
34+
distro: ubuntu20.04
35+
# - arch: armv7
36+
# distro: jessie
37+
38+
steps:
39+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40+
41+
- name: Run on architecture
42+
uses: uraimo/run-on-arch-action@b0ffb25eb00af00468375982384441f063da1741 # v2.7.2
43+
with:
44+
arch: ${{ matrix.arch }}
45+
distro: ${{ matrix.distro }}
46+
run: |
47+
apt -y update
48+
apt -y install ansible sudo
49+
echo "localhost ansible_user=runner ansible_connection=local" > ansible/hosts
50+
set -eux
51+
cd ansible
52+
if [ ! -e /usr/bin/python ] ; then ln -s /usr/bin/python3 /usr/bin/python ; fi
53+
sudo ansible-playbook -i hosts --extra-vars 'git_sha=${{ github.sha }}' playbooks/AdoptOpenJDK_Unix_Playbook/main.yml --skip-tags="debug,jenkins,docker,ntp_time,swap_file,adoptopenjdk,jenkins"

0 commit comments

Comments
 (0)