From a912583060bc75082fafded1a4de3c9c10700aff Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 22 May 2024 17:37:53 +0200 Subject: [PATCH] `slack-vitess-r15.0.5`: add `slack_cross_cell` custom durability policy (#266) * `slack-vitess-r15.0.5`: add `slack_cross_cell` custom durability policy Signed-off-by: Tim Vaillancourt * go mod tidy Signed-off-by: Tim Vaillancourt * go mod tidy Signed-off-by: Tim Vaillancourt * go mod tidy again Signed-off-by: Tim Vaillancourt * Use tag Signed-off-by: Tim Vaillancourt * use v0.15.1 Signed-off-by: Tim Vaillancourt * update shim Signed-off-by: Tim Vaillancourt * Make `Durabler` interface methods public (#15548) Signed-off-by: Tim Vaillancourt Signed-off-by: Manan Gupta Co-authored-by: Manan Gupta * Update `slack_cross_cell` shim Signed-off-by: Tim Vaillancourt * go mod tidy Signed-off-by: Tim Vaillancourt * go mod tidy again Signed-off-by: Tim Vaillancourt * Allow private go module from vitess-additions repo Signed-off-by: Tim Vaillancourt * Fix typo Signed-off-by: Tim Vaillancourt * Missing non-template update Signed-off-by: Tim Vaillancourt * Missing non-template update Signed-off-by: Tim Vaillancourt * Missing non-template update, pt 3 Signed-off-by: Tim Vaillancourt * Fix docker tests Signed-off-by: Tim Vaillancourt * make proto Signed-off-by: Tim Vaillancourt * fix upgrade/downgrade tests Signed-off-by: Tim Vaillancourt * Update all the Go dependencies (#11741) * Update all the Go dependencies This seems to work for the basics just fine, so let's have CI take a run at this as well to update these. Only one small update to the Azure blob storage handling seems needed so far. Signed-off-by: Dirkjan Bussink * Use correct proto comparisons We're using `reflect.DeepEqual` or `testify` helpers that essentially use that in a number of places are comparing protobufs. This is not supported though, protobufs are not comparable with `reflect.DeepEqual`. This is exposed because of the tiny patch bump of protobuf which changes some internal optimization of how it initializes protobufs that breaks all this. Instead, move to the appropriate helpers here. Signed-off-by: Dirkjan Bussink Signed-off-by: Dirkjan Bussink * Resolve signature mismatch Signed-off-by: Tim Vaillancourt * revert protobuf version Signed-off-by: Tim Vaillancourt * revert protobuf version, pt 2 Signed-off-by: Tim Vaillancourt * Revert "Update all the Go dependencies (#11741)" This reverts commit 18faa1eb9b91e1eb89c9dfd5be90a107a62d4503. * go mod tidy Signed-off-by: Tim Vaillancourt --------- Signed-off-by: Tim Vaillancourt Signed-off-by: Manan Gupta Signed-off-by: Dirkjan Bussink Co-authored-by: Manan Gupta Co-authored-by: Dirkjan Bussink --- .../check_make_vtadmin_authz_testgen.yml | 6 ++ .github/workflows/cluster_endtoend_12.yml | 6 ++ .github/workflows/cluster_endtoend_13.yml | 6 ++ .github/workflows/cluster_endtoend_15.yml | 6 ++ .github/workflows/cluster_endtoend_18.yml | 6 ++ .github/workflows/cluster_endtoend_21.yml | 6 ++ .github/workflows/cluster_endtoend_22.yml | 6 ++ ...ter_endtoend_ers_prs_newfeatures_heavy.yml | 6 ++ .../workflows/cluster_endtoend_mysql80.yml | 6 ++ .../cluster_endtoend_mysql_server_vault.yml | 6 ++ ...cluster_endtoend_onlineddl_declarative.yml | 6 ++ .../cluster_endtoend_onlineddl_ghost.yml | 6 ++ .../cluster_endtoend_onlineddl_revert.yml | 6 ++ .../cluster_endtoend_onlineddl_revertible.yml | 6 ++ .../cluster_endtoend_onlineddl_scheduler.yml | 6 ++ .../cluster_endtoend_onlineddl_singleton.yml | 6 ++ .../cluster_endtoend_onlineddl_vrepl.yml | 6 ++ ...luster_endtoend_onlineddl_vrepl_stress.yml | 6 ++ ..._endtoend_onlineddl_vrepl_stress_suite.yml | 6 ++ ...cluster_endtoend_onlineddl_vrepl_suite.yml | 6 ++ .../cluster_endtoend_schemadiff_vrepl.yml | 6 ++ .../cluster_endtoend_tabletmanager_consul.yml | 6 ++ ...cluster_endtoend_tabletmanager_tablegc.yml | 6 ++ ...uster_endtoend_tabletmanager_throttler.yml | 6 ++ ..._tabletmanager_throttler_custom_config.yml | 6 ++ ...cluster_endtoend_topo_connection_cache.yml | 6 ++ ...dtoend_vreplication_across_db_versions.yml | 6 ++ .../cluster_endtoend_vreplication_basic.yml | 6 ++ ...luster_endtoend_vreplication_cellalias.yml | 6 ++ ...vreplication_migrate_vdiff2_convert_tz.yml | 6 ++ ...luster_endtoend_vreplication_multicell.yml | 6 ++ .../cluster_endtoend_vreplication_v2.yml | 6 ++ .../cluster_endtoend_vstream_failover.yml | 6 ++ ...r_endtoend_vstream_stoponreshard_false.yml | 6 ++ ...er_endtoend_vstream_stoponreshard_true.yml | 6 ++ ...dtoend_vstream_with_keyspaces_to_watch.yml | 6 ++ .../cluster_endtoend_vtbackup_transform.yml | 6 ++ ..._vtctlbackup_sharded_clustertest_heavy.yml | 6 ++ .../cluster_endtoend_vtgate_concurrentdml.yml | 6 ++ .../cluster_endtoend_vtgate_gen4.yml | 6 ++ .../cluster_endtoend_vtgate_general_heavy.yml | 6 ++ .../cluster_endtoend_vtgate_godriver.yml | 6 ++ ...uster_endtoend_vtgate_partial_keyspace.yml | 6 ++ .../cluster_endtoend_vtgate_queries.yml | 6 ++ ...cluster_endtoend_vtgate_readafterwrite.yml | 6 ++ .../cluster_endtoend_vtgate_reservedconn.yml | 6 ++ .../cluster_endtoend_vtgate_schema.yml | 6 ++ ...cluster_endtoend_vtgate_schema_tracker.yml | 6 ++ ...dtoend_vtgate_tablet_healthcheck_cache.yml | 6 ++ .../cluster_endtoend_vtgate_topo.yml | 6 ++ .../cluster_endtoend_vtgate_topo_consul.yml | 6 ++ .../cluster_endtoend_vtgate_topo_etcd.yml | 6 ++ .../cluster_endtoend_vtgate_transaction.yml | 6 ++ .../cluster_endtoend_vtgate_unsharded.yml | 6 ++ .../cluster_endtoend_vtgate_vindex_heavy.yml | 6 ++ .../cluster_endtoend_vtgate_vschema.yml | 6 ++ .github/workflows/cluster_endtoend_vtorc.yml | 6 ++ .../cluster_endtoend_vttablet_prscomplex.yml | 6 ++ .../workflows/cluster_endtoend_xb_backup.yml | 6 ++ .../cluster_endtoend_xb_recovery.yml | 6 ++ .github/workflows/docker_test_cluster_10.yml | 6 ++ .github/workflows/docker_test_cluster_25.yml | 6 ++ .github/workflows/e2e_race.yml | 6 ++ .github/workflows/endtoend.yml | 6 ++ .github/workflows/local_example.yml | 6 ++ .github/workflows/region_example.yml | 6 ++ .github/workflows/static_checks_etc.yml | 6 ++ .github/workflows/unit_race.yml | 6 ++ .github/workflows/unit_test_mysql80.yml | 6 ++ .../upgrade_downgrade_test_backups_e2e.yml | 6 ++ ...owngrade_test_backups_e2e_next_release.yml | 6 ++ .../upgrade_downgrade_test_backups_manual.yml | 6 ++ ...grade_test_backups_manual_next_release.yml | 6 ++ ...e_downgrade_test_query_serving_queries.yml | 6 ++ ...est_query_serving_queries_next_release.yml | 6 ++ ...de_downgrade_test_query_serving_schema.yml | 6 ++ ...test_query_serving_schema_next_release.yml | 6 ++ ...rade_downgrade_test_reparent_new_vtctl.yml | 6 ++ ...e_downgrade_test_reparent_new_vttablet.yml | 6 ++ ...rade_downgrade_test_reparent_old_vtctl.yml | 6 ++ ...e_downgrade_test_reparent_old_vttablet.yml | 6 ++ docker/test/run.sh | 4 ++ go.mod | 1 + go.sum | 2 + go/vt/vtctl/reparentutil/durability.go | 66 +++++++++---------- go/vt/vtctl/reparentutil/durability_test.go | 2 +- .../reparentutil/slack_cross_cell_shim.go | 9 +++ test/templates/cluster_endtoend_test.tpl | 6 ++ .../cluster_endtoend_test_docker.tpl | 6 ++ .../cluster_endtoend_test_mysql57.tpl | 6 ++ .../cluster_endtoend_test_self_hosted.tpl | 3 + test/templates/unit_test.tpl | 6 ++ test/templates/unit_test_self_hosted.tpl | 3 + 93 files changed, 566 insertions(+), 34 deletions(-) create mode 100644 go/vt/vtctl/reparentutil/slack_cross_cell_shim.go diff --git a/.github/workflows/check_make_vtadmin_authz_testgen.yml b/.github/workflows/check_make_vtadmin_authz_testgen.yml index c8c86ffda2e..25d982b257b 100644 --- a/.github/workflows/check_make_vtadmin_authz_testgen.yml +++ b/.github/workflows/check_make_vtadmin_authz_testgen.yml @@ -5,6 +5,9 @@ jobs: build: name: Check Make vtadmin_authz_testgen runs-on: ubuntu-latest + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped id: skip-workflow @@ -40,6 +43,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.vtadmin_changes == 'true' run: | diff --git a/.github/workflows/cluster_endtoend_12.yml b/.github/workflows/cluster_endtoend_12.yml index 920c0d596f1..fb1465f928f 100644 --- a/.github/workflows/cluster_endtoend_12.yml +++ b/.github/workflows/cluster_endtoend_12.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (12) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_13.yml b/.github/workflows/cluster_endtoend_13.yml index ea08573ff55..3241fac86b1 100644 --- a/.github/workflows/cluster_endtoend_13.yml +++ b/.github/workflows/cluster_endtoend_13.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (13) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_15.yml b/.github/workflows/cluster_endtoend_15.yml index c18fbd315cb..ee6c814b45a 100644 --- a/.github/workflows/cluster_endtoend_15.yml +++ b/.github/workflows/cluster_endtoend_15.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (15) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_18.yml b/.github/workflows/cluster_endtoend_18.yml index c40a3a61e76..2cdc4e1c3b0 100644 --- a/.github/workflows/cluster_endtoend_18.yml +++ b/.github/workflows/cluster_endtoend_18.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (18) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_21.yml b/.github/workflows/cluster_endtoend_21.yml index c0f03027b13..9859ad56a6d 100644 --- a/.github/workflows/cluster_endtoend_21.yml +++ b/.github/workflows/cluster_endtoend_21.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (21) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_22.yml b/.github/workflows/cluster_endtoend_22.yml index 4f91afdfb04..7ecffd95450 100644 --- a/.github/workflows/cluster_endtoend_22.yml +++ b/.github/workflows/cluster_endtoend_22.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (22) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_ers_prs_newfeatures_heavy.yml b/.github/workflows/cluster_endtoend_ers_prs_newfeatures_heavy.yml index 395a48e2b0b..af913a52a1a 100644 --- a/.github/workflows/cluster_endtoend_ers_prs_newfeatures_heavy.yml +++ b/.github/workflows/cluster_endtoend_ers_prs_newfeatures_heavy.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (ers_prs_newfeatures_heavy) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_mysql80.yml b/.github/workflows/cluster_endtoend_mysql80.yml index 89377015136..66835fa65d1 100644 --- a/.github/workflows/cluster_endtoend_mysql80.yml +++ b/.github/workflows/cluster_endtoend_mysql80.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (mysql80) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_mysql_server_vault.yml b/.github/workflows/cluster_endtoend_mysql_server_vault.yml index ff65c546afb..acda59cd60d 100644 --- a/.github/workflows/cluster_endtoend_mysql_server_vault.yml +++ b/.github/workflows/cluster_endtoend_mysql_server_vault.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (mysql_server_vault) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_declarative.yml b/.github/workflows/cluster_endtoend_onlineddl_declarative.yml index a2d9b35e142..1e53dd44a47 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_declarative.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_declarative.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_declarative) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_ghost.yml b/.github/workflows/cluster_endtoend_onlineddl_ghost.yml index 5b8c2f6af3b..bcd1d556fa6 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_ghost.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_ghost.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_ghost) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_revert.yml b/.github/workflows/cluster_endtoend_onlineddl_revert.yml index 1bbc0c1e59f..facded3dc6a 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_revert.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_revert.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_revert) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_revertible.yml b/.github/workflows/cluster_endtoend_onlineddl_revertible.yml index 4beb8e206ba..80dbcbe3c71 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_revertible.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_revertible.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_revertible) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_scheduler.yml b/.github/workflows/cluster_endtoend_onlineddl_scheduler.yml index 44a644e499e..f62074acb73 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_scheduler.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_scheduler.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_scheduler) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_singleton.yml b/.github/workflows/cluster_endtoend_onlineddl_singleton.yml index b5269686ace..cbdf73a81d7 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_singleton.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_singleton.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_singleton) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_vrepl.yml b/.github/workflows/cluster_endtoend_onlineddl_vrepl.yml index 5dbe7ac91f9..de9f381adc9 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_vrepl.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_vrepl.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_vrepl) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress.yml b/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress.yml index 089438385d6..0375d7ff84b 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_vrepl_stress) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress_suite.yml b/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress_suite.yml index 332f93d66ce..7f35803bb17 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress_suite.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_vrepl_stress_suite.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_onlineddl_vrepl_suite.yml b/.github/workflows/cluster_endtoend_onlineddl_vrepl_suite.yml index 63ae86e3d92..1787f0ede13 100644 --- a/.github/workflows/cluster_endtoend_onlineddl_vrepl_suite.yml +++ b/.github/workflows/cluster_endtoend_onlineddl_vrepl_suite.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (onlineddl_vrepl_suite) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_schemadiff_vrepl.yml b/.github/workflows/cluster_endtoend_schemadiff_vrepl.yml index 5dea970f6c1..f97fbb4079b 100644 --- a/.github/workflows/cluster_endtoend_schemadiff_vrepl.yml +++ b/.github/workflows/cluster_endtoend_schemadiff_vrepl.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (schemadiff_vrepl) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_tabletmanager_consul.yml b/.github/workflows/cluster_endtoend_tabletmanager_consul.yml index aba96a8f212..c6818fe3af7 100644 --- a/.github/workflows/cluster_endtoend_tabletmanager_consul.yml +++ b/.github/workflows/cluster_endtoend_tabletmanager_consul.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (tabletmanager_consul) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_tabletmanager_tablegc.yml b/.github/workflows/cluster_endtoend_tabletmanager_tablegc.yml index dd12df31d57..48dcd746b08 100644 --- a/.github/workflows/cluster_endtoend_tabletmanager_tablegc.yml +++ b/.github/workflows/cluster_endtoend_tabletmanager_tablegc.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (tabletmanager_tablegc) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_tabletmanager_throttler.yml b/.github/workflows/cluster_endtoend_tabletmanager_throttler.yml index 0d66b549a2f..fa1ab2a8d9a 100644 --- a/.github/workflows/cluster_endtoend_tabletmanager_throttler.yml +++ b/.github/workflows/cluster_endtoend_tabletmanager_throttler.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (tabletmanager_throttler) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_tabletmanager_throttler_custom_config.yml b/.github/workflows/cluster_endtoend_tabletmanager_throttler_custom_config.yml index 916080277f6..8d18a6072af 100644 --- a/.github/workflows/cluster_endtoend_tabletmanager_throttler_custom_config.yml +++ b/.github/workflows/cluster_endtoend_tabletmanager_throttler_custom_config.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (tabletmanager_throttler_custom_config) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_topo_connection_cache.yml b/.github/workflows/cluster_endtoend_topo_connection_cache.yml index 5ca3e951e93..0263f02980b 100644 --- a/.github/workflows/cluster_endtoend_topo_connection_cache.yml +++ b/.github/workflows/cluster_endtoend_topo_connection_cache.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (topo_connection_cache) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vreplication_across_db_versions.yml b/.github/workflows/cluster_endtoend_vreplication_across_db_versions.yml index 0a0134f4da7..86adaa73d65 100644 --- a/.github/workflows/cluster_endtoend_vreplication_across_db_versions.yml +++ b/.github/workflows/cluster_endtoend_vreplication_across_db_versions.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vreplication_across_db_versions) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vreplication_basic.yml b/.github/workflows/cluster_endtoend_vreplication_basic.yml index 692fd49c2f6..ca7547e7da1 100644 --- a/.github/workflows/cluster_endtoend_vreplication_basic.yml +++ b/.github/workflows/cluster_endtoend_vreplication_basic.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vreplication_basic) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vreplication_cellalias.yml b/.github/workflows/cluster_endtoend_vreplication_cellalias.yml index 2345c1a708c..aaecec5d4f4 100644 --- a/.github/workflows/cluster_endtoend_vreplication_cellalias.yml +++ b/.github/workflows/cluster_endtoend_vreplication_cellalias.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vreplication_cellalias) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vreplication_migrate_vdiff2_convert_tz.yml b/.github/workflows/cluster_endtoend_vreplication_migrate_vdiff2_convert_tz.yml index c495a15a07d..d96fe73f008 100644 --- a/.github/workflows/cluster_endtoend_vreplication_migrate_vdiff2_convert_tz.yml +++ b/.github/workflows/cluster_endtoend_vreplication_migrate_vdiff2_convert_tz.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vreplication_multicell.yml b/.github/workflows/cluster_endtoend_vreplication_multicell.yml index 6bebf1d29dd..7d74847dfdf 100644 --- a/.github/workflows/cluster_endtoend_vreplication_multicell.yml +++ b/.github/workflows/cluster_endtoend_vreplication_multicell.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vreplication_multicell) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vreplication_v2.yml b/.github/workflows/cluster_endtoend_vreplication_v2.yml index 79ed0f2ba47..1a4e8405c78 100644 --- a/.github/workflows/cluster_endtoend_vreplication_v2.yml +++ b/.github/workflows/cluster_endtoend_vreplication_v2.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vreplication_v2) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vstream_failover.yml b/.github/workflows/cluster_endtoend_vstream_failover.yml index 5c2cac6f612..4e788bd568b 100644 --- a/.github/workflows/cluster_endtoend_vstream_failover.yml +++ b/.github/workflows/cluster_endtoend_vstream_failover.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vstream_failover) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vstream_stoponreshard_false.yml b/.github/workflows/cluster_endtoend_vstream_stoponreshard_false.yml index a7fcd389d6a..863b125d4b2 100644 --- a/.github/workflows/cluster_endtoend_vstream_stoponreshard_false.yml +++ b/.github/workflows/cluster_endtoend_vstream_stoponreshard_false.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vstream_stoponreshard_false) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vstream_stoponreshard_true.yml b/.github/workflows/cluster_endtoend_vstream_stoponreshard_true.yml index ff11fccd18c..7fe3a41119b 100644 --- a/.github/workflows/cluster_endtoend_vstream_stoponreshard_true.yml +++ b/.github/workflows/cluster_endtoend_vstream_stoponreshard_true.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vstream_stoponreshard_true) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vstream_with_keyspaces_to_watch.yml b/.github/workflows/cluster_endtoend_vstream_with_keyspaces_to_watch.yml index 2d1ef3675be..1c57b00c042 100644 --- a/.github/workflows/cluster_endtoend_vstream_with_keyspaces_to_watch.yml +++ b/.github/workflows/cluster_endtoend_vstream_with_keyspaces_to_watch.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vstream_with_keyspaces_to_watch) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtbackup_transform.yml b/.github/workflows/cluster_endtoend_vtbackup_transform.yml index 26257762fc0..b523bdc2d6d 100644 --- a/.github/workflows/cluster_endtoend_vtbackup_transform.yml +++ b/.github/workflows/cluster_endtoend_vtbackup_transform.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtbackup_transform) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtctlbackup_sharded_clustertest_heavy.yml b/.github/workflows/cluster_endtoend_vtctlbackup_sharded_clustertest_heavy.yml index 62a8ae38ccb..9645b38b43f 100644 --- a/.github/workflows/cluster_endtoend_vtctlbackup_sharded_clustertest_heavy.yml +++ b/.github/workflows/cluster_endtoend_vtctlbackup_sharded_clustertest_heavy.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_concurrentdml.yml b/.github/workflows/cluster_endtoend_vtgate_concurrentdml.yml index ba5a591cc3d..b2f55c0cca0 100644 --- a/.github/workflows/cluster_endtoend_vtgate_concurrentdml.yml +++ b/.github/workflows/cluster_endtoend_vtgate_concurrentdml.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_concurrentdml) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_gen4.yml b/.github/workflows/cluster_endtoend_vtgate_gen4.yml index efc5b709f4a..cf460081839 100644 --- a/.github/workflows/cluster_endtoend_vtgate_gen4.yml +++ b/.github/workflows/cluster_endtoend_vtgate_gen4.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_gen4) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_general_heavy.yml b/.github/workflows/cluster_endtoend_vtgate_general_heavy.yml index 697789ea794..a7854042cd9 100644 --- a/.github/workflows/cluster_endtoend_vtgate_general_heavy.yml +++ b/.github/workflows/cluster_endtoend_vtgate_general_heavy.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_general_heavy) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_godriver.yml b/.github/workflows/cluster_endtoend_vtgate_godriver.yml index fabd6332823..b525857ba9c 100644 --- a/.github/workflows/cluster_endtoend_vtgate_godriver.yml +++ b/.github/workflows/cluster_endtoend_vtgate_godriver.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_godriver) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_partial_keyspace.yml b/.github/workflows/cluster_endtoend_vtgate_partial_keyspace.yml index 98c1ba4d0e2..3631811ef05 100644 --- a/.github/workflows/cluster_endtoend_vtgate_partial_keyspace.yml +++ b/.github/workflows/cluster_endtoend_vtgate_partial_keyspace.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_partial_keyspace) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_queries.yml b/.github/workflows/cluster_endtoend_vtgate_queries.yml index bfa5c0cc427..2ad90545056 100644 --- a/.github/workflows/cluster_endtoend_vtgate_queries.yml +++ b/.github/workflows/cluster_endtoend_vtgate_queries.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_queries) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_readafterwrite.yml b/.github/workflows/cluster_endtoend_vtgate_readafterwrite.yml index 1faeb8c1394..8d082844ed7 100644 --- a/.github/workflows/cluster_endtoend_vtgate_readafterwrite.yml +++ b/.github/workflows/cluster_endtoend_vtgate_readafterwrite.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_readafterwrite) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_reservedconn.yml b/.github/workflows/cluster_endtoend_vtgate_reservedconn.yml index cb662335416..fcf0221b718 100644 --- a/.github/workflows/cluster_endtoend_vtgate_reservedconn.yml +++ b/.github/workflows/cluster_endtoend_vtgate_reservedconn.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_reservedconn) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_schema.yml b/.github/workflows/cluster_endtoend_vtgate_schema.yml index 70c8aa41398..15f985e0725 100644 --- a/.github/workflows/cluster_endtoend_vtgate_schema.yml +++ b/.github/workflows/cluster_endtoend_vtgate_schema.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_schema) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_schema_tracker.yml b/.github/workflows/cluster_endtoend_vtgate_schema_tracker.yml index 959dcaffb41..81a79417b24 100644 --- a/.github/workflows/cluster_endtoend_vtgate_schema_tracker.yml +++ b/.github/workflows/cluster_endtoend_vtgate_schema_tracker.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_schema_tracker) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_tablet_healthcheck_cache.yml b/.github/workflows/cluster_endtoend_vtgate_tablet_healthcheck_cache.yml index e0d752da170..7e620f86afb 100644 --- a/.github/workflows/cluster_endtoend_vtgate_tablet_healthcheck_cache.yml +++ b/.github/workflows/cluster_endtoend_vtgate_tablet_healthcheck_cache.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_topo.yml b/.github/workflows/cluster_endtoend_vtgate_topo.yml index cc52b16e152..76228b8570e 100644 --- a/.github/workflows/cluster_endtoend_vtgate_topo.yml +++ b/.github/workflows/cluster_endtoend_vtgate_topo.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_topo) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_topo_consul.yml b/.github/workflows/cluster_endtoend_vtgate_topo_consul.yml index f8467acb80a..cd4cc22068e 100644 --- a/.github/workflows/cluster_endtoend_vtgate_topo_consul.yml +++ b/.github/workflows/cluster_endtoend_vtgate_topo_consul.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_topo_consul) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_topo_etcd.yml b/.github/workflows/cluster_endtoend_vtgate_topo_etcd.yml index 49cf13a72cf..40e62b4fe9c 100644 --- a/.github/workflows/cluster_endtoend_vtgate_topo_etcd.yml +++ b/.github/workflows/cluster_endtoend_vtgate_topo_etcd.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_topo_etcd) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_transaction.yml b/.github/workflows/cluster_endtoend_vtgate_transaction.yml index e60ec4a91f0..11357f081b9 100644 --- a/.github/workflows/cluster_endtoend_vtgate_transaction.yml +++ b/.github/workflows/cluster_endtoend_vtgate_transaction.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_transaction) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_unsharded.yml b/.github/workflows/cluster_endtoend_vtgate_unsharded.yml index ceb2a4d1ac5..2a2f585c7c5 100644 --- a/.github/workflows/cluster_endtoend_vtgate_unsharded.yml +++ b/.github/workflows/cluster_endtoend_vtgate_unsharded.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_unsharded) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_vindex_heavy.yml b/.github/workflows/cluster_endtoend_vtgate_vindex_heavy.yml index dd1d403536e..6694179e63f 100644 --- a/.github/workflows/cluster_endtoend_vtgate_vindex_heavy.yml +++ b/.github/workflows/cluster_endtoend_vtgate_vindex_heavy.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_vindex_heavy) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtgate_vschema.yml b/.github/workflows/cluster_endtoend_vtgate_vschema.yml index 3b288231d47..ca7f314bddb 100644 --- a/.github/workflows/cluster_endtoend_vtgate_vschema.yml +++ b/.github/workflows/cluster_endtoend_vtgate_vschema.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtgate_vschema) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vtorc.yml b/.github/workflows/cluster_endtoend_vtorc.yml index c3ac49a519b..266c1633bd8 100644 --- a/.github/workflows/cluster_endtoend_vtorc.yml +++ b/.github/workflows/cluster_endtoend_vtorc.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vtorc) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_vttablet_prscomplex.yml b/.github/workflows/cluster_endtoend_vttablet_prscomplex.yml index 105dba67e9c..1a47750ddf9 100644 --- a/.github/workflows/cluster_endtoend_vttablet_prscomplex.yml +++ b/.github/workflows/cluster_endtoend_vttablet_prscomplex.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (vttablet_prscomplex) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_xb_backup.yml b/.github/workflows/cluster_endtoend_xb_backup.yml index 836ec68c1c9..ef759867bb0 100644 --- a/.github/workflows/cluster_endtoend_xb_backup.yml +++ b/.github/workflows/cluster_endtoend_xb_backup.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (xb_backup) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/cluster_endtoend_xb_recovery.yml b/.github/workflows/cluster_endtoend_xb_recovery.yml index 5c047d4f857..c4222851864 100644 --- a/.github/workflows/cluster_endtoend_xb_recovery.yml +++ b/.github/workflows/cluster_endtoend_xb_recovery.yml @@ -11,6 +11,9 @@ jobs: name: Run endtoend tests on Cluster (xb_recovery) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -50,6 +53,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/docker_test_cluster_10.yml b/.github/workflows/docker_test_cluster_10.yml index 4655311e745..f8e7ebcbc02 100644 --- a/.github/workflows/docker_test_cluster_10.yml +++ b/.github/workflows/docker_test_cluster_10.yml @@ -6,6 +6,9 @@ jobs: name: Docker Test Cluster 10 runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -46,6 +49,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' run: | diff --git a/.github/workflows/docker_test_cluster_25.yml b/.github/workflows/docker_test_cluster_25.yml index a539cb157c7..0ad13f4cf7e 100644 --- a/.github/workflows/docker_test_cluster_25.yml +++ b/.github/workflows/docker_test_cluster_25.yml @@ -6,6 +6,9 @@ jobs: name: Docker Test Cluster 25 runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -46,6 +49,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' run: | diff --git a/.github/workflows/e2e_race.yml b/.github/workflows/e2e_race.yml index 67002683b7f..8cad0e6e27b 100644 --- a/.github/workflows/e2e_race.yml +++ b/.github/workflows/e2e_race.yml @@ -6,6 +6,9 @@ jobs: name: End-to-End Test (Race) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped id: skip-workflow @@ -44,6 +47,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' run: | diff --git a/.github/workflows/endtoend.yml b/.github/workflows/endtoend.yml index 44a30f02cb8..ef5512a79be 100644 --- a/.github/workflows/endtoend.yml +++ b/.github/workflows/endtoend.yml @@ -6,6 +6,9 @@ jobs: name: End-to-End Test runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped id: skip-workflow @@ -44,6 +47,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' run: | diff --git a/.github/workflows/local_example.yml b/.github/workflows/local_example.yml index bfcf1762507..7ab31c0d6f1 100644 --- a/.github/workflows/local_example.yml +++ b/.github/workflows/local_example.yml @@ -5,6 +5,9 @@ jobs: build: name: Local example using ${{ matrix.topo }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} strategy: matrix: os: [ubuntu-latest] @@ -49,6 +52,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - uses: actions/setup-node@v3 if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.examples == 'true' with: diff --git a/.github/workflows/region_example.yml b/.github/workflows/region_example.yml index d0c621b259a..fedcce2f78e 100644 --- a/.github/workflows/region_example.yml +++ b/.github/workflows/region_example.yml @@ -5,6 +5,9 @@ jobs: build: name: Region Sharding example using ${{ matrix.topo }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} strategy: matrix: os: [ubuntu-latest] @@ -49,6 +52,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - uses: actions/setup-node@v3 if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.examples == 'true' with: diff --git a/.github/workflows/static_checks_etc.yml b/.github/workflows/static_checks_etc.yml index 12870e82d92..7ebe383e7db 100644 --- a/.github/workflows/static_checks_etc.yml +++ b/.github/workflows/static_checks_etc.yml @@ -9,6 +9,9 @@ jobs: name: Static Code Checks Etc runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -93,6 +96,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.go_files == 'true' run: | diff --git a/.github/workflows/unit_race.yml b/.github/workflows/unit_race.yml index 71f25d1de99..bc23c44cc23 100644 --- a/.github/workflows/unit_race.yml +++ b/.github/workflows/unit_race.yml @@ -10,6 +10,9 @@ jobs: name: Unit Test (Race) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped id: skip-workflow @@ -48,6 +51,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.unit_tests == 'true' run: | diff --git a/.github/workflows/unit_test_mysql80.yml b/.github/workflows/unit_test_mysql80.yml index 123620c1567..2bc6dc02742 100644 --- a/.github/workflows/unit_test_mysql80.yml +++ b/.github/workflows/unit_test_mysql80.yml @@ -10,6 +10,9 @@ jobs: test: runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - name: Check if workflow needs to be skipped @@ -49,6 +52,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.unit_tests == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_backups_e2e.yml b/.github/workflows/upgrade_downgrade_test_backups_e2e.yml index 827d42e8469..110286facc3 100644 --- a/.github/workflows/upgrade_downgrade_test_backups_e2e.yml +++ b/.github/workflows/upgrade_downgrade_test_backups_e2e.yml @@ -34,6 +34,9 @@ jobs: name: Run Upgrade Downgrade Test - Backups - E2E runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_previous_release @@ -76,6 +79,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_backups_e2e_next_release.yml b/.github/workflows/upgrade_downgrade_test_backups_e2e_next_release.yml index bfd3c848b8f..3d2dba16c60 100644 --- a/.github/workflows/upgrade_downgrade_test_backups_e2e_next_release.yml +++ b/.github/workflows/upgrade_downgrade_test_backups_e2e_next_release.yml @@ -34,6 +34,9 @@ jobs: name: Run Upgrade Downgrade Test - Backups - E2E - Next Release runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_next_release @@ -79,6 +82,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_backups_manual.yml b/.github/workflows/upgrade_downgrade_test_backups_manual.yml index effa8633bf6..f5cb57bf039 100644 --- a/.github/workflows/upgrade_downgrade_test_backups_manual.yml +++ b/.github/workflows/upgrade_downgrade_test_backups_manual.yml @@ -35,6 +35,9 @@ jobs: name: Run Upgrade Downgrade Test - Backups - Manual runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_previous_release @@ -78,6 +81,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_backups_manual_next_release.yml b/.github/workflows/upgrade_downgrade_test_backups_manual_next_release.yml index a61ab0b118c..286cab6b486 100644 --- a/.github/workflows/upgrade_downgrade_test_backups_manual_next_release.yml +++ b/.github/workflows/upgrade_downgrade_test_backups_manual_next_release.yml @@ -35,6 +35,9 @@ jobs: name: Run Upgrade Downgrade Test - Backups - Manual - Next Release runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_next_release @@ -81,6 +84,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_query_serving_queries.yml b/.github/workflows/upgrade_downgrade_test_query_serving_queries.yml index 1261587c6c6..0f0767186f5 100644 --- a/.github/workflows/upgrade_downgrade_test_query_serving_queries.yml +++ b/.github/workflows/upgrade_downgrade_test_query_serving_queries.yml @@ -36,6 +36,9 @@ jobs: name: Run Upgrade Downgrade Test - Query Serving (Queries) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_previous_release @@ -78,6 +81,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_query_serving_queries_next_release.yml b/.github/workflows/upgrade_downgrade_test_query_serving_queries_next_release.yml index 29e073cdbc6..3c6e9e72e3e 100644 --- a/.github/workflows/upgrade_downgrade_test_query_serving_queries_next_release.yml +++ b/.github/workflows/upgrade_downgrade_test_query_serving_queries_next_release.yml @@ -36,6 +36,9 @@ jobs: name: Run Upgrade Downgrade Test - Query Serving (Queries) Next Release runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_next_release @@ -81,6 +84,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_query_serving_schema.yml b/.github/workflows/upgrade_downgrade_test_query_serving_schema.yml index 9ec3f575aaf..80ee20eb0f1 100644 --- a/.github/workflows/upgrade_downgrade_test_query_serving_schema.yml +++ b/.github/workflows/upgrade_downgrade_test_query_serving_schema.yml @@ -36,6 +36,9 @@ jobs: name: Run Upgrade Downgrade Test - Query Serving (Schema) runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_previous_release @@ -78,6 +81,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_query_serving_schema_next_release.yml b/.github/workflows/upgrade_downgrade_test_query_serving_schema_next_release.yml index 0dcc50ba869..ec04e9665a3 100644 --- a/.github/workflows/upgrade_downgrade_test_query_serving_schema_next_release.yml +++ b/.github/workflows/upgrade_downgrade_test_query_serving_schema_next_release.yml @@ -35,6 +35,9 @@ jobs: if: always() && (needs.get_next_release.result == 'success') name: Run Upgrade Downgrade Test - Query Serving (Schema) Next Release runs-on: ubuntu-latest + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_next_release @@ -80,6 +83,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_reparent_new_vtctl.yml b/.github/workflows/upgrade_downgrade_test_reparent_new_vtctl.yml index b3eae3b8f8d..e33fbdf797b 100644 --- a/.github/workflows/upgrade_downgrade_test_reparent_new_vtctl.yml +++ b/.github/workflows/upgrade_downgrade_test_reparent_new_vtctl.yml @@ -36,6 +36,9 @@ jobs: name: Run Upgrade Downgrade Test - Reparent New Vtctl runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_next_release @@ -81,6 +84,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_reparent_new_vttablet.yml b/.github/workflows/upgrade_downgrade_test_reparent_new_vttablet.yml index b80fb3beac9..d60b89b8731 100644 --- a/.github/workflows/upgrade_downgrade_test_reparent_new_vttablet.yml +++ b/.github/workflows/upgrade_downgrade_test_reparent_new_vttablet.yml @@ -36,6 +36,9 @@ jobs: name: Run Upgrade Downgrade Test - Reparent New VTTablet runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_next_release @@ -81,6 +84,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_reparent_old_vtctl.yml b/.github/workflows/upgrade_downgrade_test_reparent_old_vtctl.yml index e9e63024858..46eace29872 100644 --- a/.github/workflows/upgrade_downgrade_test_reparent_old_vtctl.yml +++ b/.github/workflows/upgrade_downgrade_test_reparent_old_vtctl.yml @@ -36,6 +36,9 @@ jobs: name: Run Upgrade Downgrade Test - Reparent Old Vtctl runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_previous_release @@ -78,6 +81,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/.github/workflows/upgrade_downgrade_test_reparent_old_vttablet.yml b/.github/workflows/upgrade_downgrade_test_reparent_old_vttablet.yml index c0b08f1acd7..a9e0424cb27 100644 --- a/.github/workflows/upgrade_downgrade_test_reparent_old_vttablet.yml +++ b/.github/workflows/upgrade_downgrade_test_reparent_old_vttablet.yml @@ -36,6 +36,9 @@ jobs: name: Run Upgrade Downgrade Test - Reparent Old VTTablet runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} needs: - get_previous_release @@ -78,6 +81,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/docker/test/run.sh b/docker/test/run.sh index e41a529c51d..870cdce425f 100755 --- a/docker/test/run.sh +++ b/docker/test/run.sh @@ -181,6 +181,10 @@ bashcmd=$(append_cmd "$bashcmd" "rm -rf /vt/bin; ln -s /vt/src/vitess.io/vitess/ bashcmd=$(append_cmd "$bashcmd" "rm -rf /vt/lib; ln -s /vt/src/vitess.io/vitess/lib /vt/lib") bashcmd=$(append_cmd "$bashcmd" "rm -rf /vt/vthook; ln -s /vt/src/vitess.io/vitess/vthook /vt/vthook") +# Setup git for private go modules +bashcmd=$(append_cmd "$bashcmd" "export GOPRIVATE=$GOPRIVATE") +bashcmd=$(append_cmd "$bashcmd" "git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/") + # Maven was setup in /vt/dist, may need to reinstall it. bashcmd=$(append_cmd "$bashcmd" "echo 'Checking if mvn needs installing...'; if [[ ! \$(command -v mvn) ]]; then echo 'install maven'; curl -sL --connect-timeout 10 --retry 3 http://www-us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | tar -xz && mv apache-maven-3.3.9 /vt/dist/maven; fi; echo 'mvn check done'") diff --git a/go.mod b/go.mod index 61731852fd2..249a5f64984 100644 --- a/go.mod +++ b/go.mod @@ -120,6 +120,7 @@ require ( github.com/hashicorp/go-cleanhttp v0.5.1 github.com/hashicorp/go-version v1.6.0 github.com/planetscale/log v0.0.0-20221118170849-fb599bc35c50 + github.com/slackhq/vitess-addons v0.15.3 github.com/slok/noglog v0.2.0 go.uber.org/mock v0.4.0 go.uber.org/zap v1.23.0 diff --git a/go.sum b/go.sum index 494e9dfb049..dc9fa3d8169 100644 --- a/go.sum +++ b/go.sum @@ -671,6 +671,8 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sjmudd/stopwatch v0.0.0-20170613150411-f380bf8a9be1 h1:acClJNSOjUrAUKW+ZneCZymCFDWtSaJG5YQl8FoOlyI= github.com/sjmudd/stopwatch v0.0.0-20170613150411-f380bf8a9be1/go.mod h1:Pgf1sZ2KrHK8vdRTV5UHGp80LT7HMUKuNAiKC402abY= +github.com/slackhq/vitess-addons v0.15.3 h1:W3YuaXb5h+gfu0Ougc0um13HKtiIkPzJ6W+J0+X6wtY= +github.com/slackhq/vitess-addons v0.15.3/go.mod h1:+5kNtWka7+mWQ+/kNf6Ci+9tyZNelIkU/zgqoBYUNi8= github.com/slok/noglog v0.2.0 h1:1czu4l2EoJ8L92UwdSXXa1Y+c5TIjFAFm2P+mjej95E= github.com/slok/noglog v0.2.0/go.mod h1:TfKxwpEZPT+UA83bQ6RME146k0MM4e8mwHLf6bhcGDI= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= diff --git a/go/vt/vtctl/reparentutil/durability.go b/go/vt/vtctl/reparentutil/durability.go index 735965c3afa..8fd1634faa0 100644 --- a/go/vt/vtctl/reparentutil/durability.go +++ b/go/vt/vtctl/reparentutil/durability.go @@ -55,13 +55,13 @@ func init() { // Durabler is the interface which is used to get the promotion rules for candidates and the semi sync setup type Durabler interface { - // promotionRule represents the precedence in which we want to tablets to be promoted. + // PromotionRule represents the precedence in which we want to tablets to be promoted. // The higher the promotion rule of a tablet, the more we want it to be promoted in case of a failover - promotionRule(*topodatapb.Tablet) promotionrule.CandidatePromotionRule - // semiSyncAckers represents the number of semi-sync ackers required for a given tablet if it were to become the PRIMARY instance - semiSyncAckers(*topodatapb.Tablet) int - // isReplicaSemiSync returns whether the "replica" should send semi-sync acks if "primary" were to become the PRIMARY instance - isReplicaSemiSync(primary, replica *topodatapb.Tablet) bool + PromotionRule(*topodatapb.Tablet) promotionrule.CandidatePromotionRule + // SemiSyncAckers represents the number of semi-sync ackers required for a given tablet if it were to become the PRIMARY instance + SemiSyncAckers(*topodatapb.Tablet) int + // IsReplicaSemiSync returns whether the "replica" should send semi-sync acks if "primary" were to become the PRIMARY instance + IsReplicaSemiSync(primary, replica *topodatapb.Tablet) bool } func RegisterDurability(name string, newDurablerFunc NewDurabler) { @@ -94,13 +94,13 @@ func PromotionRule(durability Durabler, tablet *topodatapb.Tablet) promotionrule if tablet == nil || tablet.Alias == nil { return promotionrule.MustNot } - return durability.promotionRule(tablet) + return durability.PromotionRule(tablet) } // SemiSyncAckers returns the primary semi-sync setting for the instance. // 0 means none. Non-zero specifies the number of required ackers. func SemiSyncAckers(durability Durabler, tablet *topodatapb.Tablet) int { - return durability.semiSyncAckers(tablet) + return durability.SemiSyncAckers(tablet) } // IsReplicaSemiSync returns the replica semi-sync setting from the tablet record. @@ -110,7 +110,7 @@ func IsReplicaSemiSync(durability Durabler, primary, replica *topodatapb.Tablet) if primary == nil || primary.Alias == nil || replica == nil || replica.Alias == nil { return false } - return durability.isReplicaSemiSync(primary, replica) + return durability.IsReplicaSemiSync(primary, replica) } //======================================================================= @@ -118,8 +118,8 @@ func IsReplicaSemiSync(durability Durabler, primary, replica *topodatapb.Tablet) // durabilityNone has no semi-sync and returns NeutralPromoteRule for Primary and Replica tablet types, MustNotPromoteRule for everything else type durabilityNone struct{} -// promotionRule implements the Durabler interface -func (d *durabilityNone) promotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { +// PromotionRule implements the Durabler interface +func (d *durabilityNone) PromotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { switch tablet.Type { case topodatapb.TabletType_PRIMARY, topodatapb.TabletType_REPLICA: return promotionrule.Neutral @@ -127,13 +127,13 @@ func (d *durabilityNone) promotionRule(tablet *topodatapb.Tablet) promotionrule. return promotionrule.MustNot } -// semiSyncAckers implements the Durabler interface -func (d *durabilityNone) semiSyncAckers(tablet *topodatapb.Tablet) int { +// SemiSyncAckers implements the Durabler interface +func (d *durabilityNone) SemiSyncAckers(tablet *topodatapb.Tablet) int { return 0 } -// isReplicaSemiSync implements the Durabler interface -func (d *durabilityNone) isReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { +// IsReplicaSemiSync implements the Durabler interface +func (d *durabilityNone) IsReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { return false } @@ -143,8 +143,8 @@ func (d *durabilityNone) isReplicaSemiSync(primary, replica *topodatapb.Tablet) // It returns NeutralPromoteRule for Primary and Replica tablet types, MustNotPromoteRule for everything else type durabilitySemiSync struct{} -// promotionRule implements the Durabler interface -func (d *durabilitySemiSync) promotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { +// PromotionRule implements the Durabler interface +func (d *durabilitySemiSync) PromotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { switch tablet.Type { case topodatapb.TabletType_PRIMARY, topodatapb.TabletType_REPLICA: return promotionrule.Neutral @@ -152,13 +152,13 @@ func (d *durabilitySemiSync) promotionRule(tablet *topodatapb.Tablet) promotionr return promotionrule.MustNot } -// semiSyncAckers implements the Durabler interface -func (d *durabilitySemiSync) semiSyncAckers(tablet *topodatapb.Tablet) int { +// SemiSyncAckers implements the Durabler interface +func (d *durabilitySemiSync) SemiSyncAckers(tablet *topodatapb.Tablet) int { return 1 } -// isReplicaSemiSync implements the Durabler interface -func (d *durabilitySemiSync) isReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { +// IsReplicaSemiSync implements the Durabler interface +func (d *durabilitySemiSync) IsReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { switch replica.Type { case topodatapb.TabletType_PRIMARY, topodatapb.TabletType_REPLICA: return true @@ -173,8 +173,8 @@ func (d *durabilitySemiSync) isReplicaSemiSync(primary, replica *topodatapb.Tabl // It returns NeutralPromoteRule for Primary and Replica tablet types, MustNotPromoteRule for everything else type durabilityCrossCell struct{} -// promotionRule implements the Durabler interface -func (d *durabilityCrossCell) promotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { +// PromotionRule implements the Durabler interface +func (d *durabilityCrossCell) PromotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { switch tablet.Type { case topodatapb.TabletType_PRIMARY, topodatapb.TabletType_REPLICA: return promotionrule.Neutral @@ -182,13 +182,13 @@ func (d *durabilityCrossCell) promotionRule(tablet *topodatapb.Tablet) promotion return promotionrule.MustNot } -// semiSyncAckers implements the Durabler interface -func (d *durabilityCrossCell) semiSyncAckers(tablet *topodatapb.Tablet) int { +// SemiSyncAckers implements the Durabler interface +func (d *durabilityCrossCell) SemiSyncAckers(tablet *topodatapb.Tablet) int { return 1 } -// isReplicaSemiSync implements the Durabler interface -func (d *durabilityCrossCell) isReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { +// IsReplicaSemiSync implements the Durabler interface +func (d *durabilityCrossCell) IsReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { switch replica.Type { case topodatapb.TabletType_PRIMARY, topodatapb.TabletType_REPLICA: return primary.Alias.Cell != replica.Alias.Cell @@ -201,8 +201,8 @@ func (d *durabilityCrossCell) isReplicaSemiSync(primary, replica *topodatapb.Tab // durabilityTest is like durabilityNone. It overrides the type for a specific tablet to prefer. It is only meant to be used for testing purposes! type durabilityTest struct{} -// promotionRule implements the Durabler interface -func (d *durabilityTest) promotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { +// PromotionRule implements the Durabler interface +func (d *durabilityTest) PromotionRule(tablet *topodatapb.Tablet) promotionrule.CandidatePromotionRule { if topoproto.TabletAliasString(tablet.Alias) == "zone2-0000000200" { return promotionrule.Prefer } @@ -214,12 +214,12 @@ func (d *durabilityTest) promotionRule(tablet *topodatapb.Tablet) promotionrule. return promotionrule.MustNot } -// semiSyncAckers implements the Durabler interface -func (d *durabilityTest) semiSyncAckers(tablet *topodatapb.Tablet) int { +// SemiSyncAckers implements the Durabler interface +func (d *durabilityTest) SemiSyncAckers(tablet *topodatapb.Tablet) int { return 0 } -// isReplicaSemiSync implements the Durabler interface -func (d *durabilityTest) isReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { +// IsReplicaSemiSync implements the Durabler interface +func (d *durabilityTest) IsReplicaSemiSync(primary, replica *topodatapb.Tablet) bool { return false } diff --git a/go/vt/vtctl/reparentutil/durability_test.go b/go/vt/vtctl/reparentutil/durability_test.go index 857718174c5..c519817c312 100644 --- a/go/vt/vtctl/reparentutil/durability_test.go +++ b/go/vt/vtctl/reparentutil/durability_test.go @@ -268,7 +268,7 @@ func TestDurabilityTest(t *testing.T) { for _, testcase := range testcases { t.Run(topoproto.TabletAliasString(testcase.tablet.Alias), func(t *testing.T) { - rule := durabilityRules.promotionRule(testcase.tablet) + rule := durabilityRules.PromotionRule(testcase.tablet) assert.Equal(t, testcase.promotionRule, rule) }) } diff --git a/go/vt/vtctl/reparentutil/slack_cross_cell_shim.go b/go/vt/vtctl/reparentutil/slack_cross_cell_shim.go new file mode 100644 index 00000000000..64d0cb8eda0 --- /dev/null +++ b/go/vt/vtctl/reparentutil/slack_cross_cell_shim.go @@ -0,0 +1,9 @@ +package reparentutil + +import "github.com/slackhq/vitess-addons/go/durability" + +func init() { + RegisterDurability("slack_cross_cell", func() Durabler { + return &durability.SlackCrossCell{} + }) +} diff --git a/test/templates/cluster_endtoend_test.tpl b/test/templates/cluster_endtoend_test.tpl index 5b73f8f3783..6c97d8a1205 100644 --- a/test/templates/cluster_endtoend_test.tpl +++ b/test/templates/cluster_endtoend_test.tpl @@ -9,6 +9,9 @@ jobs: name: Run endtoend tests on {{.Name}} runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: {{"${{ secrets.GH_ACCESS_TOKEN }}"}} steps: - name: Check if workflow needs to be skipped @@ -48,6 +51,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/test/templates/cluster_endtoend_test_docker.tpl b/test/templates/cluster_endtoend_test_docker.tpl index 31efed9e506..2dee66849ed 100644 --- a/test/templates/cluster_endtoend_test_docker.tpl +++ b/test/templates/cluster_endtoend_test_docker.tpl @@ -6,6 +6,9 @@ jobs: name: Run endtoend tests on {{.Name}} runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: {{"${{ secrets.GH_ACCESS_TOKEN }}"}} steps: - name: Check if workflow needs to be skipped @@ -45,6 +48,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Tune the OS if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' run: | diff --git a/test/templates/cluster_endtoend_test_mysql57.tpl b/test/templates/cluster_endtoend_test_mysql57.tpl index fbb758ab931..713276eaed6 100644 --- a/test/templates/cluster_endtoend_test_mysql57.tpl +++ b/test/templates/cluster_endtoend_test_mysql57.tpl @@ -16,6 +16,9 @@ jobs: name: Run endtoend tests on {{.Name}} runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: {{"${{ secrets.GH_ACCESS_TOKEN }}"}} steps: - name: Check if workflow needs to be skipped @@ -55,6 +58,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' uses: actions/setup-python@v4 diff --git a/test/templates/cluster_endtoend_test_self_hosted.tpl b/test/templates/cluster_endtoend_test_self_hosted.tpl index 6c56544171c..7d96cb0b41f 100644 --- a/test/templates/cluster_endtoend_test_self_hosted.tpl +++ b/test/templates/cluster_endtoend_test_self_hosted.tpl @@ -9,6 +9,9 @@ jobs: name: Run endtoend tests on {{.Name}} runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: {{"${{ secrets.GH_ACCESS_TOKEN }}"}} steps: - name: Check if workflow needs to be skipped diff --git a/test/templates/unit_test.tpl b/test/templates/unit_test.tpl index 2185ecb30e9..8ab644dd30a 100644 --- a/test/templates/unit_test.tpl +++ b/test/templates/unit_test.tpl @@ -8,6 +8,9 @@ jobs: test: runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: {{"${{ secrets.GH_ACCESS_TOKEN }}"}} steps: - name: Check if workflow needs to be skipped @@ -47,6 +50,9 @@ jobs: with: go-version: 1.21.8 + - name: Setup github.com/slackhq/vitess-additions access token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + - name: Set up python if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.unit_tests == 'true' uses: actions/setup-python@v4 diff --git a/test/templates/unit_test_self_hosted.tpl b/test/templates/unit_test_self_hosted.tpl index b7eb0ff1506..bdc40f2c861 100644 --- a/test/templates/unit_test_self_hosted.tpl +++ b/test/templates/unit_test_self_hosted.tpl @@ -8,6 +8,9 @@ jobs: test: runs-on: group: vitess-ubuntu20 + env: + GOPRIVATE: github.com/slackhq/vitess-addons + GH_ACCESS_TOKEN: {{"${{ secrets.GH_ACCESS_TOKEN }}"}} steps: - name: Check if workflow needs to be skipped