Skip to content

Commit 9406e69

Browse files
committed
turn the tests off until we have access
1 parent 4858447 commit 9406e69

File tree

2 files changed

+79
-77
lines changed

2 files changed

+79
-77
lines changed
Lines changed: 77 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,77 @@
1-
name: Framework Golden Tests Examples (Private)
2-
on:
3-
push:
4-
5-
jobs:
6-
test:
7-
defaults:
8-
run:
9-
working-directory: framework/examples/myproject_cll
10-
env:
11-
LOKI_TENANT_ID: promtail
12-
LOKI_URL: http://localhost:3030/loki/api/v1/push
13-
CTF_JD_IMAGE: ${{ secrets.CTF_JD_IMAGE }}
14-
runs-on: ubuntu-latest
15-
permissions:
16-
id-token: write
17-
contents: read
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
test:
22-
- name: TestJD
23-
config: jd.toml
24-
count: 1
25-
timeout: 10m
26-
name: ${{ matrix.test.name }}
27-
steps:
28-
- name: Checkout repo
29-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
30-
- name: Configure AWS credentials using OIDC
31-
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
32-
with:
33-
role-to-assume: ${{ secrets.PUBLIC_AWS_ECR_ROLE }}
34-
aws-region: us-east-1
35-
- name: Authenticate to ECR Public
36-
id: login-ecr-public
37-
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
38-
with:
39-
registry-type: public
40-
- name: Check for changes in Framework
41-
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
42-
id: changes
43-
with:
44-
filters: |
45-
src:
46-
- 'framework/**'
47-
- '.github/workflows/framework-golden-tests.yml'
48-
- name: Set up Go
49-
uses: actions/setup-go@v4
50-
with:
51-
go-version: 1.22.8
52-
- name: Cache Go modules
53-
uses: actions/cache@v3
54-
with:
55-
path: |
56-
~/.cache/go-build
57-
~/go/pkg/mod
58-
key: go-modules-${{ hashFiles('framework/examples/myproject_cll/go.sum') }}-${{ runner.os }}-framework-golden-examples
59-
restore-keys: |
60-
go-modules-${{ runner.os }}-framework-golden-examples
61-
go-modules-${{ runner.os }}
62-
- name: Install dependencies
63-
run: go mod download
64-
- name: Run System Tests
65-
if: steps.changes.outputs.src == 'true'
66-
env:
67-
CTF_CONFIGS: ${{ matrix.test.config }}
68-
run: |
69-
go test -timeout ${{ matrix.test.timeout }} -v -count ${{ matrix.test.count }} -run ${{ matrix.test.name }}
70-
- name: Upload Logs
71-
if: always()
72-
uses: actions/upload-artifact@v3
73-
with:
74-
name: container-logs-${{ matrix.test.name }}
75-
path: framework/examples/myproject_cll/logs
76-
retention-days: 1
1+
# TODO: enable when we'll have access to ECRs
2+
#name: Framework Golden Tests Examples (Private)
3+
#on:
4+
# push:
5+
#
6+
#jobs:
7+
# test:
8+
# defaults:
9+
# run:
10+
# working-directory: framework/examples/myproject_cll
11+
# env:
12+
# LOKI_TENANT_ID: promtail
13+
# LOKI_URL: http://localhost:3030/loki/api/v1/push
14+
# CTF_JD_IMAGE: ${{ secrets.CTF_JD_IMAGE }}
15+
# runs-on: ubuntu-latest
16+
# permissions:
17+
# id-token: write
18+
# contents: read
19+
# strategy:
20+
# fail-fast: false
21+
# matrix:
22+
# test:
23+
# - name: TestJD
24+
# config: jd.toml
25+
# count: 1
26+
# timeout: 10m
27+
# name: ${{ matrix.test.name }}
28+
# steps:
29+
# - name: Checkout repo
30+
# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
31+
# - name: Configure AWS credentials using OIDC
32+
# uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
33+
# with:
34+
# role-to-assume: ${{ secrets.PUBLIC_AWS_ECR_ROLE }}
35+
# aws-region: us-east-1
36+
# - name: Authenticate to ECR Public
37+
# id: login-ecr-public
38+
# uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
39+
# with:
40+
# registry-type: public
41+
# - name: Check for changes in Framework
42+
# uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
43+
# id: changes
44+
# with:
45+
# filters: |
46+
# src:
47+
# - 'framework/**'
48+
# - '.github/workflows/framework-golden-tests.yml'
49+
# - name: Set up Go
50+
# uses: actions/setup-go@v4
51+
# with:
52+
# go-version: 1.22.8
53+
# - name: Cache Go modules
54+
# uses: actions/cache@v3
55+
# with:
56+
# path: |
57+
# ~/.cache/go-build
58+
# ~/go/pkg/mod
59+
# key: go-modules-${{ hashFiles('framework/examples/myproject_cll/go.sum') }}-${{ runner.os }}-framework-golden-examples
60+
# restore-keys: |
61+
# go-modules-${{ runner.os }}-framework-golden-examples
62+
# go-modules-${{ runner.os }}
63+
# - name: Install dependencies
64+
# run: go mod download
65+
# - name: Run System Tests
66+
# if: steps.changes.outputs.src == 'true'
67+
# env:
68+
# CTF_CONFIGS: ${{ matrix.test.config }}
69+
# run: |
70+
# go test -timeout ${{ matrix.test.timeout }} -v -count ${{ matrix.test.count }} -run ${{ matrix.test.name }}
71+
# - name: Upload Logs
72+
# if: always()
73+
# uses: actions/upload-artifact@v3
74+
# with:
75+
# name: container-logs-${{ matrix.test.name }}
76+
# path: framework/examples/myproject_cll/logs
77+
# retention-days: 1

framework/components/jd/jd_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import (
1313
// here we only test that we can boot up JD
1414
// client examples are under "examples" dir
1515
// since JD is private this env var should be set locally and in CI
16-
func TestComponentDockerJD(t *testing.T) {
16+
// TODO: add ComponentDocker prefix to turn this on when we'll have access to ECRs
17+
func TestJD(t *testing.T) {
1718
err := framework.DefaultNetwork(&sync.Once{})
1819
require.NoError(t, err)
1920
pgOut, err := postgres.NewPostgreSQL(&postgres.Input{

0 commit comments

Comments
 (0)