Skip to content

Commit 7ec1ead

Browse files
authored
Merge pull request #34 from k8sstormcenter/ddelnano/gh-release-copybara-cleanup
Graduate release files from copybara ignored_dirs
2 parents 8138deb + fae50fb commit 7ec1ead

2 files changed

Lines changed: 49 additions & 33 deletions

File tree

.github/workflows/build_and_test.yaml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,32 @@ jobs:
3535
with:
3636
image-base-name: "dev_image_with_extras"
3737
ref: ${{ needs.env-protect-setup.outputs.ref }}
38-
# clang-tidy:
39-
# runs-on: oracle-vm-16cpu-64gb-x86-64
40-
# needs: [authorize, env-protect-setup, get-dev-image]
41-
# container:
42-
# image: ${{ needs.get-dev-image.outputs.image-with-tag }}
43-
# steps:
44-
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45-
# with:
46-
# fetch-depth: 0
47-
# ref: ${{ needs.env-protect-setup.outputs.ref }}
48-
# - name: Add pwd to git safe dir
49-
# run: git config --global --add safe.directory `pwd`
50-
# - name: get bazel config
51-
# uses: ./.github/actions/bazelrc
52-
# with:
53-
# BB_API_KEY: ${{ secrets.BB_IO_API_KEY }}
54-
# - name: Save Diff Info
55-
# run: ./ci/save_diff_info.sh
56-
# - name: Run Clang Tidy
57-
# shell: bash
58-
# run: |
59-
# diff_file="diff_origin_main_cc"
60-
# if [[ "${{ github.event_name }}" == "push" ]] || [[ "${{ github.event_name }}" == "schedule" ]]; then
61-
# diff_file="diff_head_cc"
62-
# fi
63-
# ./ci/run_clang_tidy.sh -f "${diff_file}"
38+
clang-tidy:
39+
runs-on: oracle-vm-16cpu-64gb-x86-64
40+
needs: [authorize, env-protect-setup, get-dev-image]
41+
container:
42+
image: ${{ needs.get-dev-image.outputs.image-with-tag }}
43+
steps:
44+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45+
with:
46+
fetch-depth: 0
47+
ref: ${{ needs.env-protect-setup.outputs.ref }}
48+
- name: Add pwd to git safe dir
49+
run: git config --global --add safe.directory `pwd`
50+
- name: get bazel config
51+
uses: ./.github/actions/bazelrc
52+
with:
53+
BB_API_KEY: ${{ secrets.BB_IO_API_KEY }}
54+
- name: Save Diff Info
55+
run: ./ci/save_diff_info.sh
56+
- name: Run Clang Tidy
57+
shell: bash
58+
run: |
59+
diff_file="diff_origin_main_cc"
60+
if [[ "${{ github.event_name }}" == "push" ]] || [[ "${{ github.event_name }}" == "schedule" ]]; then
61+
diff_file="diff_head_cc"
62+
fi
63+
./ci/run_clang_tidy.sh -f "${diff_file}"
6464
code-coverage:
6565
if: github.event_name == 'push'
6666
needs: [authorize, env-protect-setup, get-dev-image]
@@ -85,7 +85,7 @@ jobs:
8585
run: |
8686
# Github actions container runner creates a docker network without IPv6 support. We enable it manually.
8787
sysctl -w net.ipv6.conf.lo.disable_ipv6=0
88-
./ci/collect_coverage.sh -u -b main -c "$(git rev-parse HEAD)" -r k8sstormcenter/pixie
88+
./ci/collect_coverage.sh -u -b main -c "$(git rev-parse HEAD)" -r ${{ github.repository }}
8989
generate-matrix:
9090
needs: [authorize, env-protect-setup, get-dev-image]
9191
runs-on: oracle-vm-16cpu-64gb-x86-64
@@ -185,18 +185,19 @@ jobs:
185185
shell: bash
186186
build-and-test-status:
187187
if: always()
188-
needs: [build-and-test, generate-matrix]
188+
needs: [build-and-test, clang-tidy, generate-matrix]
189189
runs-on: ubuntu-latest
190190
steps:
191-
- if: needs.build-and-test.result == 'success'
191+
- if: needs.build-and-test.result == 'success' && needs.clang-tidy.result == 'success'
192192
run: echo "Build and Test complete ✓"
193193
- if: >
194-
needs.generate-matrix.result == 'success'
194+
needs.generate-matrix.result == 'success' && needs.clang-tidy.result == 'success'
195195
&& needs.build-and-test.result == 'skipped'
196196
run: echo "Build and Test skipped no matrix configs generated ✓"
197197
- if: >
198-
!(needs.build-and-test.result == 'success') &&
198+
!(needs.build-and-test.result == 'success' && needs.clang-tidy.result == 'success') &&
199199
!(needs.generate-matrix.result == 'success' &&
200+
needs.clang-tidy.result == 'success' &&
200201
needs.build-and-test.result == 'skipped')
201202
run: |
202203
echo "Build and Test failed"

tools/copybara/upstream_sync/copy.bara.sky

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,20 @@ dest_repo = "git@github.com:k8sstormcenter/pixie.git"
2020
# Directories with fork-specific customizations that will be upstreamed separately.
2121
ignored_dirs = [
2222
".bazelrc", # upstream + fork only changes
23-
".github/**", # upstream + fork only changes
23+
# Release jobs (cli/cloud/operator/vizier _release.yaml) and their
24+
# supporting ci/ scripts are now converged with upstream and flow
25+
# through copybara. The entries below are non-release .github and ci
26+
# files that are still fork-customized.
27+
".github/workflows/cacher.yaml", # runner name
28+
".github/workflows/codeql.yaml", # runner names
29+
".github/workflows/pr_3p_deps.yaml", # fork removed; preserve deletion
30+
".github/workflows/pr_genfiles.yml", # minor fork divergence
31+
".github/workflows/pr_linter.yml", # minor fork divergence
32+
".github/workflows/release_update_docs_px_dev.yaml",
33+
".github/workflows/trivy_fs.yaml",
34+
".github/workflows/trivy_images.yaml",
2435
"DEVELOPMENT.md", # Should be moved to a fork only file
25-
"ci/**", # upstream
36+
"ci/github/bazelrc", # fork-specific bazelrc REPO_URL
2637
"k8s/**", # cert-manager support (upstream)
2738
"scripts/create_cloud_secrets.sh", # cert-manager support (upstream)
2839
"skaffold/**",
@@ -91,8 +102,12 @@ ignored_dirs = [
91102

92103
# Files/dirs that exist only in the fork and must not be deleted by copybara.
93104
fork_only_files = [
105+
".github/workflows/copybara_pixie_oss.yaml",
106+
".github/workflows/perf_clickhouse.yaml",
107+
".github/workflows/perf_soc_attack.yaml",
94108
"PLATFORM.md",
95109
"bazel/external/rules_docker_pusher_cfg.patch",
110+
"ci/run_copybara.sh",
96111
"k8s/vizier/bootstrap/adaptive_export_*",
97112
"k8s/vizier/bootstrap/kustomization.yaml",
98113
"src/carnot/planner/ir/clickhouse_*",

0 commit comments

Comments
 (0)