Skip to content

Commit d23302f

Browse files
committed
testing
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent a2dd2f3 commit d23302f

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

Diff for: .github/workflows/build.yml

+22-23
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,42 @@ jobs:
3535
# Then, replace 'soci-snapshotter-instance' with the name of the project you created.
3636
name: Setup Build Matrix
3737
runs-on: ubuntu-latest
38-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'awslabs/soci-snapshotter'
3938
strategy:
4039
matrix:
4140
# We're using a matrix with a single entry so that we can define some config as YAML rather than
4241
# having to write escaped json in a string.
4342
include:
44-
- use-codebuild: ${{ github.repository_owner == 'awslabs' }}
45-
runs-on-names-cb: [ubuntu-x86, al2-arm]
43+
- use-codebuild: ${{ github.repository_owner == 'coderbirju' }}
44+
runs-on-names-cb: [ al2-arm]
4645
runs-on-names: [ubuntu]
4746
runner-labels:
4847
ubuntu: ubuntu-22.04
49-
ubuntu-x86: "codebuild-soci-snapshotter-instance-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge"
50-
al2-arm: "codebuild-soci-snapshotter-instance-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large"
48+
# ubuntu-x86: "codebuild-soci-snapshotter-instance-dev-new-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge"
49+
al2-arm: "codebuild-soci-snapshotter-instance-dev-new-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large"
5150
outputs:
5251
available-runners: ${{ matrix.use-codebuild && toJSON(matrix.runs-on-names-cb) || toJSON(matrix.runs-on-names) }}
5352
runner-labels: ${{ toJSON(matrix.runner-labels) }}
5453
steps:
5554
- name: Dump Config
5655
run: echo '${{ toJSON(matrix) }}'
5756

58-
test:
59-
needs: setup
60-
runs-on: ${{ fromJSON(needs.setup.outputs.runner-labels)[matrix.os] }}
61-
strategy:
62-
matrix:
63-
os: ${{ fromJSON(needs.setup.outputs.available-runners) }}
64-
timeout-minutes: 15
65-
steps:
66-
- uses: actions/checkout@v4
67-
- uses: actions/setup-go@v5
68-
with:
69-
go-version: ${{ env.GO_VERSION }}
70-
- name: Install zlib static on AL2 ARM instances
71-
if: matrix.os == 'al2-arm'
72-
run: dnf install zlib-static.aarch64 -y
73-
- run: make
74-
- run: make test
57+
# test:
58+
# needs: setup
59+
# runs-on: ${{ fromJSON(needs.setup.outputs.runner-labels)[matrix.os] }}
60+
# strategy:
61+
# matrix:
62+
# os: ${{ fromJSON(needs.setup.outputs.available-runners) }}
63+
# timeout-minutes: 15
64+
# steps:
65+
# - uses: actions/checkout@v4
66+
# - uses: actions/setup-go@v5
67+
# with:
68+
# go-version: ${{ env.GO_VERSION }}
69+
# - name: Install zlib static on AL2 ARM instances
70+
# if: matrix.os == 'al2-arm'
71+
# run: dnf install zlib-static.aarch64 -y
72+
# - run: make
73+
# - run: make test
7574

7675
integration:
7776
needs: setup
@@ -91,4 +90,4 @@ jobs:
9190
- name: Install zlib static on AL2 ARM instances
9291
if: matrix.os == 'al2-arm'
9392
run: dnf install zlib-static.aarch64 -y
94-
- run: make integration
93+
- run: GO_TEST_FLAGS="-run TestFuseOperationFailureMetrics" make integration

Diff for: integration/metrics_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ log_fuse_operations = true
152152
defer done()
153153

154154
manipulateZtocMetadata := func(zt *ztoc.Ztoc) {
155+
fmt.Println("-------------------------\n\n\n Inside manipulateZtocMetadata")
155156
for i, md := range zt.FileMetadata {
156157
// Setting UncompressedSize high triggers a "value too large" error
157158
// Maniulate regular files to alter ztoc data and trigger fuse ops failure.
@@ -386,6 +387,7 @@ func buildIndexByManipulatingZtocData(sh *shell.Shell, indexDigest string, manip
386387
return "", err
387388
}
388389

390+
fmt.Println("No errors till line 390 of buildIndexByManipulatingZtocData function")
389391
newIndexDigest := digest.FromBytes(b)
390392
desc := ocispec.Descriptor{Digest: newIndexDigest}
391393
err = testutil.InjectContentStoreContentFromBytes(sh, config.DefaultContentStoreType, desc, b)

0 commit comments

Comments
 (0)