Skip to content

Commit 2ae9747

Browse files
ddelnanokoksay
andauthored
Use gha oracle runners for build and test job (#2277)
Summary: Use gha oracle runners for build and test job This PR supersedes #2261. Relevant Issues: N/A Type of change: /kind cleanup Test Plan: Adhoc build from latest commit passes ([build link](https://github.com/pixie-io/pixie/actions/runs/19958776211)) --------- Signed-off-by: Koray Oksay <[email protected]> Signed-off-by: Dom Del Nano <[email protected]> Co-authored-by: Koray Oksay <[email protected]>
1 parent 8f338b7 commit 2ae9747

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
image-base-name: "dev_image_with_extras"
3737
ref: ${{ needs.env-protect-setup.outputs.ref }}
3838
clang-tidy:
39-
runs-on: oracle-16cpu-64gb-x86-64
39+
runs-on: oracle-vm-16cpu-64gb-x86-64
4040
needs: [authorize, env-protect-setup, get-dev-image]
4141
container:
4242
image: ${{ needs.get-dev-image.outputs.image-with-tag }}
@@ -64,7 +64,7 @@ jobs:
6464
code-coverage:
6565
if: github.event_name == 'push'
6666
needs: [authorize, env-protect-setup, get-dev-image]
67-
runs-on: oracle-16cpu-64gb-x86-64
67+
runs-on: oracle-vm-16cpu-64gb-x86-64
6868
container:
6969
image: ${{ needs.get-dev-image.outputs.image-with-tag }}
7070
steps:
@@ -88,7 +88,7 @@ jobs:
8888
./ci/collect_coverage.sh -u -b main -c "$(git rev-parse HEAD)" -r pixie-io/pixie
8989
generate-matrix:
9090
needs: [authorize, env-protect-setup, get-dev-image]
91-
runs-on: oracle-16cpu-64gb-x86-64
91+
runs-on: oracle-vm-16cpu-64gb-x86-64
9292
container:
9393
image: ${{ needs.get-dev-image.outputs.image-with-tag }}
9494
outputs:
@@ -120,7 +120,7 @@ jobs:
120120
bazel_tests_*
121121
build-and-test:
122122
needs: [authorize, env-protect-setup, get-dev-image, generate-matrix]
123-
runs-on: oracle-16cpu-64gb-x86-64
123+
runs-on: oracle-vm-16cpu-64gb-x86-64
124124
permissions:
125125
contents: read
126126
actions: read
@@ -160,6 +160,10 @@ jobs:
160160
run: |
161161
# Github actions container runner creates a docker network without IPv6 support. We enable it manually.
162162
sysctl -w net.ipv6.conf.lo.disable_ipv6=0
163+
164+
# Our qemu builds require unprivileged user namespaces to run.
165+
sysctl -w kernel.unprivileged_userns_clone=1
166+
sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
163167
./scripts/bazel_ignore_codes.sh test ${{ matrix.args }} --target_pattern_file=target_files/${{ matrix.tests }} \
164168
2> >(tee bazel_stderr)
165169
- name: Parse junit reports

bazel/toolchain_transitions.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ cc_clang_binary = meta.wrap_with_transition(
2929
native.cc_binary,
3030
{
3131
"@//bazel/cc_toolchains:compiler": meta.replace_with("clang"),
32+
"@//bazel/cc_toolchains:libc_version": meta.replace_with("glibc2_36"),
3233
},
3334
executable = True,
3435
)

ci/github/bazelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ common --color=yes
55
# a given run.
66
common --keep_going
77

8-
# Always use remote exec
9-
build --config=remote
10-
118
build --build_metadata=HOST=github-actions
129
build --build_metadata=USER=github-actions
1310
build --build_metadata=REPO_URL=https://github.com/pixie-io/pixie

src/utils/testingutils/docker/elastic.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,23 @@ func SetupElastic() (*elastic.Client, func(), error) {
7070
Type: "tmpfs",
7171
TempfsOptions: &docker.TempfsOptions{
7272
SizeBytes: 100 * 1024 * 1024,
73+
Mode: 0o777,
7374
},
7475
},
7576
{
7677
Target: "/opt/elasticsearch/volatile/logs",
7778
Type: "tmpfs",
7879
TempfsOptions: &docker.TempfsOptions{
7980
SizeBytes: 100 * 1024 * 1024,
81+
Mode: 0o777,
8082
},
8183
},
8284
{
8385
Target: "/tmp",
8486
Type: "tmpfs",
8587
TempfsOptions: &docker.TempfsOptions{
8688
SizeBytes: 100 * 1024 * 1024,
89+
Mode: 0o777,
8790
},
8891
},
8992
}

0 commit comments

Comments
 (0)