-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate the ci/ and hack/ directories #10589
Changes from all commits
981c920
60d77ac
8dabc6d
876e31a
15379b5
f04b904
c7f504d
ac53637
d84b895
1b8851f
50374ad
290d8c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,20 +36,9 @@ runs: | |
ISTIO_VERSION: ${{ inputs.istio-version }} | ||
shell: bash | ||
run: make go-test | ||
- name: Summarize tests | ||
# Print out a summary of ALL tests run under this action. In the future we can use this tool | ||
# with the --json flag to export the results for centralized processing. | ||
shell: bash | ||
run: go run ./ci/github-actions/go-test-summary | ||
- name: Archive bug report directory on failure | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bug-report-${{ inputs.cluster-name }}-${{ inputs.matrix-label }}-attempt-${{ github.run_attempt }} | ||
path: ./_test/bug_report/${{ inputs.cluster-name }} | ||
- name: Archive test results | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this removed? |
||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: go-test-summary-${{ inputs.cluster-name }}-${{ inputs.matrix-label }}-attempt-${{ github.run_attempt }} | ||
path: ./_test/test_log/go-test-summary |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,6 @@ | |
# name: Prepare Environment | ||
# runs-on: ubuntu-22.04 | ||
# timeout-minutes: 5 | ||
# outputs: | ||
# should-auto-succeed-kube-tests: ${{ steps.run-strategy.outputs.auto_succeed }} | ||
# steps: | ||
# - name: Cancel Previous Actions | ||
# uses: styfle/[email protected] | ||
|
@@ -25,17 +23,6 @@ | |
# # We require gathering the branch and tag history since we rely on a `git diff` | ||
# # which compares the state of two branches | ||
# fetch-depth: 0 | ||
# - id: process-skip-directives | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. related to above comment - are we sure we want to remove this now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My preference would be to remove it -- even if we adopt the current changelog process from the solo-io organization, I'd rather decouple release notes from controlling CI. Happy to do that in a follow-up if it's easiest. |
||
# uses: ./.github/actions/process-skip-directives | ||
# with: | ||
# base-ref: ${{ github.base_ref }} | ||
# - id: run-strategy | ||
# name: Determine Test Run Strategy | ||
# run: | | ||
# skip_kube_tests=${{ steps.process-skip-directives.outputs.skip-kube-tests }} | ||
# if [[ ! -z $skip_kube_tests && $skip_kube_tests = true ]] ; then | ||
# echo "auto_succeed=true" >> $GITHUB_OUTPUT | ||
# fi | ||
|
||
# end_to_end_tests: | ||
# name: End-to-End (${{ matrix.test.cluster-name }}) | ||
|
@@ -95,26 +82,19 @@ | |
# version-files: | ||
# - file: './.github/workflows/.env/pr-tests/versions.env' | ||
# steps: | ||
# - id: auto-succeed-tests | ||
# if: needs.prepare_env.outputs.should-auto-succeed-kube-tests == 'true' | ||
# run: | | ||
# echo "Regression tests auto-succeeded" | ||
# - uses: actions/checkout@v4 | ||
# - name: Prep Go Runner | ||
# uses: ./.github/actions/prep-go-runner | ||
# if: needs.prepare_env.outputs.should-auto-succeed-kube-tests != 'true' | ||
# # The dotenv action is used to load key-value pairs from files. | ||
# # In this case, the file is specified in the matrix and will contain the versions of the tools to use | ||
# - name: Dotenv Action | ||
# uses: falti/[email protected] | ||
# if: needs.prepare_env.outputs.should-auto-succeed-kube-tests != 'true' | ||
# id: dotenv | ||
# with: | ||
# path: ${{ matrix.version-files.file }} | ||
# log-variables: true | ||
# - id: setup-kind-cluster | ||
# name: Setup KinD Cluster | ||
# if: needs.prepare_env.outputs.should-auto-succeed-kube-tests != 'true' | ||
# uses: ./.github/actions/setup-kind-cluster | ||
# with: | ||
# cluster-name: ${{ matrix.test.cluster-name }} | ||
|
@@ -124,7 +104,6 @@ | |
# helm-version: ${{ steps.dotenv.outputs.helm_version }} | ||
# istio-version: ${{ steps.dotenv.outputs.istio_version }} | ||
# - id: run-tests | ||
# if: needs.prepare_env.outputs.should-auto-succeed-kube-tests != 'true' | ||
# uses: ./.github/actions/kubernetes-e2e-tests | ||
# with: | ||
# cluster-name: ${{ matrix.test.cluster-name }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,6 @@ jobs: | |
name: Prepare Environment | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
outputs: | ||
should-auto-succeed-regression-tests: ${{ steps.run-strategy.outputs.auto_succeed }} | ||
steps: | ||
- name: Cancel Previous Actions | ||
uses: styfle/[email protected] | ||
|
@@ -27,17 +25,6 @@ jobs: | |
# We require gathering the branch and tag history since we rely on a `git diff` | ||
# which compares the state of two branches | ||
fetch-depth: 0 | ||
- id: process-skip-directives | ||
uses: ./.github/actions/process-skip-directives | ||
with: | ||
base-ref: ${{ github.base_ref }} | ||
- id: run-strategy | ||
name: Determine Test Run Strategy | ||
run: | | ||
skip_kube_tests=${{ steps.process-skip-directives.outputs.skip-kube-tests }} | ||
if [[ ! -z $skip_kube_tests && $skip_kube_tests = true ]] ; then | ||
echo "auto_succeed=true" >> $GITHUB_OUTPUT | ||
fi | ||
|
||
# regression_tests: | ||
# name: k8s regression tests (${{matrix.kube-e2e-test-type}}) | ||
|
@@ -63,12 +50,7 @@ jobs: | |
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - id: run-tests | ||
# if: needs.prepare_env.outputs.should-auto-succeed-regression-tests != 'true' | ||
# uses: ./.github/actions/regression-tests | ||
# - id: auto-succeed-tests | ||
# if: needs.prepare_env.outputs.should-auto-succeed-regression-tests == 'true' | ||
# run: | | ||
# echo "Regression tests auto-succeeded" | ||
|
||
kube_gateway_api_conformance_tests: | ||
name: kubernetes gateway api conformance tests (${{matrix.image-variant}}) | ||
|
@@ -86,10 +68,5 @@ jobs: | |
- standard | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: auto-succeed-tests | ||
if: needs.prepare_env.outputs.should-auto-succeed-regression-tests == 'true' | ||
run: | | ||
echo "Kubernetes Gateway API conformance tests auto-succeeded" | ||
- id: run-tests | ||
if: needs.prepare_env.outputs.should-auto-succeed-regression-tests != 'true' | ||
uses: ./.github/actions/kube-gateway-api-conformance-tests |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,7 @@ fmt-changed: | |
|
||
# must be a separate target so that make waits for it to complete before moving on | ||
.PHONY: mod-download | ||
mod-download: check-go-version | ||
mod-download: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is check-go-version not useful anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it's strictly needed anymore with Go 1.21+ being out for a while. |
||
go mod download all | ||
|
||
.PHONY: check-format | ||
|
@@ -280,6 +280,10 @@ clean-test-logs: | |
# Generated Code and Docs | ||
#---------------------------------------------------------------------------------- | ||
|
||
.PHONY: verify | ||
verify: generate-all ## Verify that generated code is up to date | ||
git diff -U3 --exit-code | ||
|
||
.PHONY: generate-all | ||
generate-all: generated-code | ||
|
||
|
@@ -293,7 +297,6 @@ generate-all-debug: generate-all | |
|
||
# Generates all required code, cleaning and formatting as well; this target is executed in CI | ||
.PHONY: generated-code | ||
generated-code: check-go-version | ||
generated-code: go-generate-all getter-check mod-tidy | ||
generated-code: update-licenses | ||
# generated-code: generate-crd-reference-docs | ||
|
@@ -317,11 +320,6 @@ getter-check: | |
mod-tidy: | ||
go mod tidy | ||
|
||
# Validates that local Go version matches go.mod | ||
.PHONY: check-go-version | ||
check-go-version: | ||
./ci/check-go-version.sh | ||
|
||
#---------------------------------------------------------------------------------- | ||
# Generate CRD Reference Documentation | ||
# | ||
|
@@ -503,21 +501,19 @@ docker-push-%: | |
docker push $(IMAGE_REGISTRY)/$*:$(VERSION) | ||
|
||
.PHONY: docker-standard | ||
docker-standard: check-go-version ## Build docker images (standard only) | ||
docker-standard: kgateway-docker | ||
docker-standard: kgateway-docker ## Build docker images (standard only) | ||
docker-standard: envoy-wrapper-docker | ||
docker-standard: sds-docker | ||
|
||
.PHONY: docker-distroless | ||
docker-distroless: check-go-version ## Build docker images (distroless only) | ||
docker-distroless: kgateway-distroless-docker | ||
docker-distroless: kgateway-distroless-docker ## Build docker images (distroless only) | ||
docker-distroless: envoy-wrapper-distroless-docker | ||
docker-distroless: sds-distroless-docker | ||
|
||
IMAGE_VARIANT ?= all | ||
# Build docker images using the defined IMAGE_REGISTRY, VERSION | ||
.PHONY: docker | ||
docker: check-go-version ## Build all docker images (standard and distroless) | ||
docker: ## Build all docker images (standard and distroless) | ||
docker: # Standard images | ||
ifeq ($(IMAGE_VARIANT),$(filter $(IMAGE_VARIANT),all standard)) | ||
docker: docker-standard | ||
|
@@ -578,7 +574,7 @@ CLUSTER_NAME ?= kind | |
INSTALL_NAMESPACE ?= kgateway-system | ||
|
||
kind-setup: | ||
VERSION=${VERSION} CLUSTER_NAME=${CLUSTER_NAME} ./ci/kind/setup-kind.sh | ||
VERSION=${VERSION} CLUSTER_NAME=${CLUSTER_NAME} ./hack/kind/setup-kind.sh | ||
|
||
kind-load-%-distroless: | ||
kind load docker-image $(IMAGE_REGISTRY)/$*:$(VERSION)-distroless --name $(CLUSTER_NAME) | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some context in the git commit message -- from my perspective, I think we can remove this and re-introduce over time if there's some pain points that this type of approach solves.