Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,27 @@ jobs:
- name: build
run: make build

unit:
name: unit
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v5
- name: install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: unit
run: make test
- name: report coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
files: ./coverage.out
flags: unit
name: unit
verbose: true
fail_ci_if_error: false
# unit:
# name: unit
# runs-on: ubuntu-latest
# steps:
# - name: checkout code
# uses: actions/checkout@v5
# - name: install Go
# uses: actions/setup-go@v5
# with:
# go-version: ${{ env.GO_VERSION }}
# - name: unit
# run: make test
# - name: report coverage
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
# files: ./coverage.out
# flags: unit
# name: unit
# verbose: true
# fail_ci_if_error: false

integration:
name: integration
Expand All @@ -83,4 +83,4 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: integration
run: make test-integration
run: ARGS="-test.v" make test-registration-integration
2 changes: 1 addition & 1 deletion test/integration-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ build-work-integration:

test-registration-integration: ensure-kubebuilder-tools
go test -c ./test/integration/registration -o ./registration-integration.test
./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast ${ARGS}
./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast --ginkgo.focus "Joining Process for aws flow" ${ARGS}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

🧩 Analysis chain

Use -ginkgo.focus with the compiled test binary (single dash).

--ginkgo.focus is for the ginkgo CLI; the compiled test binary expects -ginkgo.focus. Using the wrong form risks ignoring the filter or flag-parsing errors.

Apply this diff:

-	./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast --ginkgo.focus "Joining Process for aws flow" ${ARGS}
+	./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast -ginkgo.focus="Joining Process for aws flow" ${ARGS}

Run to confirm the focus pattern matches an actual spec title:


🏁 Script executed:

#!/bin/bash
# Verify the focused spec exists (case/spacing sensitive).
rg -nP -C2 'Joining Process.*aws flow' test/integration/registration --type go || {
  echo "No exact match found. Nearby candidates:" >&2
  rg -nP -C2 'Joining Process|aws flow' test/integration/registration --type go
}

Length of output: 565


Use -ginkgo.focus with the compiled test binary (single dash).
Spec found at test/integration/registration/spokecluster_aws_joining_test.go:28 — change the flag so the compiled test binary receives the focus.

-	./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast --ginkgo.focus "Joining Process for aws flow" ${ARGS}
+	./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast -ginkgo.focus="Joining Process for aws flow" ${ARGS}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast --ginkgo.focus "Joining Process for aws flow" ${ARGS}
./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast -ginkgo.focus="Joining Process for aws flow" ${ARGS}
🤖 Prompt for AI Agents
In test/integration-test.mk around line 34, the Makefile passes the Ginkgo focus
flag to the compiled test binary as "--ginkgo.focus" but the compiled binary
expects the single-dash form; replace "--ginkgo.focus" (or "-ginkgo.focus") with
"-focus" and keep the existing quoted pattern and other flags intact so the
command becomes the compiled test binary receiving -focus "Joining Process for
aws flow" ${ARGS}.

.PHONY: test-registration-integration

test-work-integration: ensure-kubebuilder-tools build-work-integration
Expand Down
Loading