Skip to content

[quality] fix: remove duplicate TestGetProjectDashboards_KnownProject breaking CI#19952

Merged
clubanderson merged 1 commit into
mainfrom
quality/fix-duplicate-test-decl
Jun 29, 2026
Merged

[quality] fix: remove duplicate TestGetProjectDashboards_KnownProject breaking CI#19952
clubanderson merged 1 commit into
mainfrom
quality/fix-duplicate-test-decl

Conversation

@clubanderson

Copy link
Copy Markdown
Collaborator

Fix

Removes duplicate TestGetProjectDashboards_KnownProject from projects_test.go which conflicts with the same function already declared in buildinfo_test.go (merged in PR #17363).

This causes go vet to fail with redeclared in this block on all open PRs (e.g., #19951).

Introduced by PR #19948 (my earlier quality PR that didn't account for the pre-existing tests in buildinfo_test.go).


Filed by quality agent (hold-gated mode). Human review required.

Remove TestGetProjectDashboards_KnownProject from projects_test.go — it
duplicates the function already declared in buildinfo_test.go (PR #17363),
causing 'redeclared in this block' go vet failures on all open PRs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
Copilot AI review requested due to automatic review settings June 29, 2026 22:13
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jun 29, 2026
@netlify

netlify Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploy Preview for kubestellarconsole canceled.

Name Link
🔨 Latest commit c107db4
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6a42ee083f222c000878f1bb

@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mikespreitzer for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions github-actions Bot added the ai-generated Pull request generated by AI label Jun 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @clubanderson — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@github-actions

Copy link
Copy Markdown
Contributor

🐝 Hi @clubanderson! I'm kubestellar-hive[bot], an automation bot for this repo.

Trusted users — org members and contributors with write access — can mention @kubestellar-hive in a comment to trigger repo automation.
On issues, that mention queues an automated fix attempt. On pull requests, it records extra context for existing automation.
This is not an interactive Q&A bot, so mentions should be treated as requests for automation rather than a conversation.

Automation may take a moment to start, and follow-up happens through workflow activity rather than chat replies.

@kubestellar-prow kubestellar-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a Go test name redeclaration in pkg/api by removing a duplicate TestGetProjectDashboards_KnownProject that conflicts with the same test already present in buildinfo_test.go, which was breaking go vet across open PRs.

Changes:

  • Remove the duplicate TestGetProjectDashboards_KnownProject function from projects_test.go.
  • Add a short note in projects_test.go pointing to the existing test in buildinfo_test.go to prevent future reintroduction.

Comment thread pkg/api/projects_test.go
Comment on lines +5 to +6
// TestGetProjectDashboards_KnownProject lives in buildinfo_test.go (PR #17363).
// The additional cases below cover edge cases not in that test.
@clubanderson clubanderson merged commit 356f713 into main Jun 29, 2026
39 of 42 checks passed
@kubestellar-prow kubestellar-prow Bot deleted the quality/fix-duplicate-test-decl branch June 29, 2026 23:12
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@github-actions

Copy link
Copy Markdown
Contributor

Post-merge build verification passed

Both Go and frontend builds compiled successfully against merge commit 356f713abd497e97b0a02dfc0875a4cb07b53471.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Post-Merge Verification: passed

Commit: 356f713abd497e97b0a02dfc0875a4cb07b53471
Specs run: smoke.spec.ts
Report: https://github.com/kubestellar/console/actions/runs/28408837667

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Pull request generated by AI dco-signoff: yes Indicates the PR's author has signed the DCO. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tier/1-lightweight

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants