Skip to content

Commit bc9487b

Browse files
author
Julia Okuniewska
authored
Merge branch 'main' into kubeadm_intel
2 parents f83ec8f + 78ab5ab commit bc9487b

File tree

87 files changed

+2925
-818
lines changed

Some content is hidden

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

87 files changed

+2925
-818
lines changed

.github/dependabot.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,29 @@
33

44
---
55
version: 2
6-
registries:
7-
github:
8-
type: git
9-
url: https://github.com
10-
username: x-access-token
11-
password: ${{ secrets.SYS_ORCH_GITHUB }}
126
updates:
137
- package-ecosystem: "gomod"
14-
directory: "/"
15-
registries:
16-
- github
8+
directories:
9+
- "/"
1710
schedule:
1811
interval: daily
19-
open-pull-requests-limit: 2
12+
open-pull-requests-limit: 3
2013
commit-message:
21-
prefix: "[gomod] "
14+
prefix: "[gomod] "
15+
groups:
16+
dependencies:
17+
patterns:
18+
- "*"
19+
exclude-patterns: # Internal dependencies are update into separate PRs.
20+
- "*open-edge-platform*"
21+
internal-dependencies:
22+
patterns:
23+
- "*open-edge-platform*"
24+
- package-ecosystem: "github-actions"
25+
directories:
26+
- "/" # this enables searching only in /.github/workflows directory
27+
schedule:
28+
interval: daily
29+
open-pull-requests-limit: 10
30+
commit-message:
31+
prefix: "[gha] "

.github/workflows/auto-close.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ on:
1212
schedule:
1313
- cron: '30 1 * * *' # run every day
1414
workflow_dispatch: {}
15-
15+
permissions: {}
1616
jobs:
1717
stale-auto-close:
18-
runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
18+
permissions:
19+
contents: read # branch delete will be handled by the repo settings
20+
issues: write
21+
pull-requests: write
22+
runs-on: ubuntu-latest
1923
steps:
20-
- uses: actions/stale@v5.1.1
24+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
2125
with:
2226
repo-token: ${{ secrets.GITHUB_TOKEN }}
2327
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Make a comment or update the PR to avoid closing PR after 15 days.'

.github/workflows/auto-update.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,26 @@ on:
1414
- main
1515
- release-*
1616

17+
permissions: {}
18+
1719
concurrency:
1820
group: ${{ github.workflow }}-${{ github.ref }}
1921
cancel-in-progress: true
2022

2123
jobs:
22-
Auto-Update-PR:
24+
update-pull-requests:
25+
permissions:
26+
contents: read
27+
pull-requests: write
2328
runs-on: ubuntu-latest
29+
2430
steps:
25-
- uses: tibdex/[email protected]
31+
- name: Checkout repository
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2633
with:
27-
github_token: ${{ secrets.SYS_ORCH_GITHUB }}
34+
persist-credentials: false
2835

36+
- name: Update pull requests
37+
uses: open-edge-platform/orch-ci/.github/actions/pr_updater@f341738d975c38b2b91f25d405baeb2d39bf2ddb # 0.1.14
38+
with:
39+
github_token: ${{ secrets.SYS_ORCH_GITHUB }}

.github/workflows/co-integration-test.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,39 @@ on:
1414

1515
jobs:
1616
integration-smoke-test:
17+
permissions:
18+
contents: read
1719
runs-on: ubuntu-24.04-16core-64GB
1820
if: true
1921
env:
2022
VERSION: ${{ github.head_ref }} # Use the component branch that triggered the action for the test
2123
steps:
2224
- name: Checkout orch ci
23-
uses: actions/checkout@v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2426
with:
2527
repository: open-edge-platform/orch-ci
2628
path: ci
2729
ref: "main"
2830
token: ${{ secrets.SYS_ORCH_GITHUB }}
31+
persist-credentials: false
2932

3033
- name: Checkout cluster-tests for integration tests
31-
uses: actions/checkout@v4
34+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3235
with:
3336
repository: open-edge-platform/cluster-tests
3437
path: cluster-tests
3538
ref: "main"
3639
token: ${{ secrets.SYS_ORCH_GITHUB }}
40+
persist-credentials: false
3741

3842
- name: Bootstrap CI environment
3943
uses: ./ci/.github/actions/bootstrap
4044
with:
4145
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
4246

4347
- name: Run make test with additional config
48+
env:
49+
VERSION: ${{ env.VERSION }}
4450
run: |
4551
cd cluster-tests
46-
ADDITIONAL_CONFIG="{\"components\":[{\"name\":\"cluster-manager\", \"skip-local-build\": false, \"git-repo\": {\"version\":\"${{ env.VERSION }}\"}}]}" make test
52+
ADDITIONAL_CONFIG="{\"components\":[{\"name\":\"cluster-manager\", \"skip-local-build\": false, \"git-repo\": {\"version\":\"${VERSION}\"}}]}" make test
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
---
5+
6+
name: Push development artifacts to the Release Service
7+
8+
on:
9+
# manual trigger from the Actions tab
10+
workflow_dispatch:
11+
12+
env:
13+
VERSION_SUFFIX: -test
14+
15+
permissions: {}
16+
17+
jobs:
18+
dev-artifacts-push:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Build Docker image
29+
run: |
30+
make docker-build
31+
32+
- name: Build Helm chart
33+
run: |
34+
make helm-build
35+
36+
- name: Configure AWS credentials
37+
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.0.1
38+
with:
39+
aws-access-key-id: ${{ secrets.NO_AUTH_ECR_PUSH_USERNAME }}
40+
aws-secret-access-key: ${{ secrets.NO_AUTH_ECR_PUSH_PASSWD }}
41+
aws-region: us-west-2
42+
43+
- name: Login to Amazon ECR
44+
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
45+
with:
46+
registries: "080137407410"
47+
48+
- name: Push Docker image
49+
run: |
50+
make docker-push
51+
52+
- name: Push Helm chart
53+
run: |
54+
make helm-push

.github/workflows/post-merge.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ on:
1111
- main
1212
- release-*
1313
workflow_dispatch:
14-
14+
permissions: {}
1515
jobs:
1616
post-merge:
17-
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@main
17+
permissions:
18+
contents: read
19+
security-events: write
20+
id-token: write
21+
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
1822
with:
1923
run_build: true
20-
run_security_scans: true
2124
run_version_check: true
2225
run_dep_version_check: true
2326
cache_go: true
@@ -29,4 +32,4 @@ jobs:
2932
run_docker_push: true
3033
run_helm_build: true
3134
run_helm_push: true
32-
secrets: inherit
35+
secrets: inherit # zizmor: ignore[secrets-inherit]

.github/workflows/pre-merge.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,22 @@ on:
1212
- release-*
1313
workflow_dispatch:
1414

15+
permissions: {}
16+
1517
jobs:
1618
lint:
19+
permissions:
20+
contents: read
1721
runs-on: ubuntu-latest
1822
steps:
1923
- name: Checkout PR
20-
uses: actions/checkout@v4
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2125
with:
2226
ref: ${{ github.head_ref }}
27+
persist-credentials: false
2328

2429
- name: "Setup"
25-
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@main
30+
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
2631
with:
2732
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
2833
bootstrap_tools: "go,gotools,nodejs"
@@ -33,7 +38,7 @@ jobs:
3338
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
3439
3540
- name: Cache build artifact
36-
uses: actions/cache@v4
41+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3742
with:
3843
path: |
3944
${{ env.GOCACHE }}
@@ -45,15 +50,18 @@ jobs:
4550
run: make lint
4651

4752
build:
53+
permissions:
54+
contents: read
4855
runs-on: ubuntu-latest
4956
steps:
5057
- name: Checkout PR
51-
uses: actions/checkout@v4
58+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5259
with:
5360
ref: ${{ github.head_ref }}
61+
persist-credentials: false
5462

5563
- name: "Setup"
56-
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@main
64+
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
5765
with:
5866
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
5967
bootstrap_tools: "go,gotools"
@@ -64,7 +72,7 @@ jobs:
6472
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
6573
6674
- name: Cache build artifact
67-
uses: actions/cache@v4
75+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6876
with:
6977
path: |
7078
${{ env.GOCACHE }}
@@ -75,15 +83,18 @@ jobs:
7583
run: make build
7684

7785
test:
86+
permissions:
87+
contents: read
7888
runs-on: ubuntu-latest
7989
steps:
8090
- name: Checkout PR
81-
uses: actions/checkout@v4
91+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8292
with:
8393
ref: ${{ github.head_ref }}
94+
persist-credentials: false
8495

8596
- name: "Setup"
86-
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@main
97+
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
8798
with:
8899
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
89100
bootstrap_tools: "go,gotools"
@@ -94,7 +105,7 @@ jobs:
94105
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
95106
96107
- name: Cache build artifact
97-
uses: actions/cache@v4
108+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
98109
with:
99110
path: |
100111
${{ env.GOCACHE }}
@@ -105,6 +116,8 @@ jobs:
105116
run: make test
106117

107118
pre-merge:
119+
permissions:
120+
contents: read
108121
needs: [lint, build, test]
109122
uses: open-edge-platform/orch-ci/.github/workflows/pre-merge.yml@main
110123
with:
@@ -119,5 +132,8 @@ jobs:
119132
run_test: false
120133
run_validate_clean_folder: false
121134
run_docker_build: true
122-
run_scan_containers: false
123-
secrets: inherit
135+
run_docker_push: false
136+
run_helm_build: true
137+
run_helm_push: false
138+
version_suffix: "-pr-${{ github.event.number }}"
139+
secrets: inherit

.github/workflows/service-test.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
---
55

66
name: Run service tests
7-
7+
8+
permissions: {}
9+
810
on:
911
pull_request:
1012
branches:
@@ -14,17 +16,38 @@ on:
1416

1517
jobs:
1618
integration-smoke-test:
19+
permissions:
20+
contents: read
1721
runs-on: ubuntu-latest
1822
steps:
1923
- name: Checkout orch ci
20-
uses: actions/checkout@v4
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2125
with:
2226
ref: ${{ github.head_ref }}
27+
persist-credentials: false
2328

2429
- name: Bootstrap CI environment
25-
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@main
30+
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
2631
with:
2732
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
2833

2934
- name: Run service test
30-
run: make run-service-test
35+
run: make run-service-test
36+
37+
- name: Gather logs from every pod
38+
if: always()
39+
run: |
40+
mkdir -p service-test-logs
41+
for pod_and_namespace in $(kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.name}{";"}{.metadata.namespace}{"\n"}{end}'); do
42+
pod=$(echo "$pod_and_namespace" | awk -F';' '{print $1}')
43+
namespace=$(echo "$pod_and_namespace" | awk -F';' '{print $2}')
44+
echo "Gathering logs for pod $pod in namespace $namespace"
45+
kubectl logs "$pod" -n "$namespace" > "./service-test-logs/${pod}.log" || echo "Failed to get logs for $pod in namespace $namespace"
46+
done
47+
48+
- name: Upload pod logs as evidence
49+
if: always()
50+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
51+
with:
52+
name: service-test-logs
53+
path: service-test-logs

0 commit comments

Comments
 (0)