Skip to content

chore: remove some comment about dashboard#174

Merged
ronething merged 1 commit into
release-v2-devfrom
chore/polish_some_comment
Jun 23, 2025
Merged

chore: remove some comment about dashboard#174
ronething merged 1 commit into
release-v2-devfrom
chore/polish_some_comment

Conversation

@ronething
Copy link
Copy Markdown
Contributor

@ronething ronething commented Jun 23, 2025

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Signed-off-by: ashing <axingfly@gmail.com>
@ronething ronething requested a review from Copilot June 23, 2025 06:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Clean up dashboard-related comments and consolidate test certificate fixtures across e2e tests.

  • Simplify error assertion message when listing SSL resources
  • Move embedded test certificate and key into a single constants file (apisix_consts.go) and remove duplication in api7_consts.go
  • Refine comments in ADC translator regarding wildcard hostnames and SSL object ID generation

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
test/e2e/gatewayapi/gateway.go Simplified the error message context for SSL listing
test/e2e/framework/apisix_consts.go Added embedded test server certificate and key constants
test/e2e/framework/api7_consts.go Removed duplicated embedded test certificate and key
internal/provider/adc/translator/gateway.go Updated comments about wildcard hostnames and duplicate SSL IDs
Comments suppressed due to low confidence (2)

internal/provider/adc/translator/gateway.go:119

  • [nitpick] Clarify this comment to specify that you're using the certificate fingerprint or a unique hash as the SSL object ID, e.g.: 'Use certificate fingerprint as the SSL object ID to prevent duplicates.'
				// Note: use cert as id to avoid duplicate certificate across ssl objects

test/e2e/gatewayapi/gateway.go:289

  • [nitpick] Provide a more descriptive error message context, for example: 'list SSL resources from dataplane', to make test failures easier to diagnose.
				Expect(err).NotTo(HaveOccurred(), "list ssl")

Key: string(key),
})
// Dashboard doesn't allow wildcard hostname
// we doesn't allow wildcard hostname
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

Fix grammatical error in comment: change 'we doesn't allow wildcard hostname' to 'we don't allow wildcard hostnames' or 'wildcard hostnames are not allowed'.

Suggested change
// we doesn't allow wildcard hostname
// wildcard hostnames are not allowed

Copilot uses AI. Check for mistakes.
TestServerKey string
)

const (
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

[nitpick] Embedding large PEM blocks inline can reduce readability; consider loading these certificate fixtures from external files or a shared test helper.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

conformance test report

apiVersion: gateway.networking.k8s.io/v1
date: "2025-06-23T06:19:40Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
  contact: null
  organization: APISIX
  project: apisix-ingress-controller
  url: https://github.com/apache/apisix-ingress-controller.git
  version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
    result: partial
    skippedTests:
    - HTTPRouteHTTPSListener
    statistics:
      Failed: 0
      Passed: 32
      Skipped: 1
  name: GATEWAY-HTTP
  summary: Core tests partially succeeded with 1 test skips.

@github-actions
Copy link
Copy Markdown
Contributor

conformance test report

apiVersion: gateway.networking.k8s.io/v1
date: "2025-06-23T06:20:54Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
  contact: null
  organization: APISIX
  project: apisix-ingress-controller
  url: https://github.com/apache/apisix-ingress-controller.git
  version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
    result: partial
    skippedTests:
    - HTTPRouteHTTPSListener
    statistics:
      Failed: 0
      Passed: 32
      Skipped: 1
  name: GATEWAY-HTTP
  summary: Core tests partially succeeded with 1 test skips.

@ronething ronething merged commit a9b3a09 into release-v2-dev Jun 23, 2025
13 checks passed
@ronething ronething deleted the chore/polish_some_comment branch June 23, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants