external-dns icon indicating copy to clipboard operation
external-dns copied to clipboard

Consider ProviderSpecific when sorting Endpoints

Open olemarkus opened this issue 3 years ago • 2 comments

Description

I had the master branch failing tests due to being on the wrong end of the unstable sorting:

$ go test sigs.k8s.io/external-dns/internal/testutils            
--- FAIL: ExampleSameEndpoints (0.00s)
got:
abc.com 0 IN A test-set-1 1.2.3.4 []
abc.com 0 IN TXT  something []
bbc.com 0 IN CNAME  foo.com []
cbc.com 60 IN CNAME  foo.com []
example.org 0 IN   load-balancer.org [{foo bar}]
example.org 0 IN   load-balancer.org []
example.org 0 IN TXT  load-balancer.org []
want:
abc.com 0 IN A test-set-1 1.2.3.4 []
abc.com 0 IN TXT  something []
bbc.com 0 IN CNAME  foo.com []
cbc.com 60 IN CNAME  foo.com []
example.org 0 IN   load-balancer.org []
example.org 0 IN   load-balancer.org [{foo bar}]
example.org 0 IN TXT  load-balancer.org []
FAIL
FAIL    sigs.k8s.io/external-dns/internal/testutils     0.003s
FAIL

There is a test that verifies Endpoints with ProviderSpecific is sorted after those that don't. Since we use unstable sorting, we need to consider ProviderSpecific to ensure intended behavior

Checklist

  • [x] Unit tests updated (fixed anyway)

olemarkus avatar Sep 10 '22 06:09 olemarkus

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: olemarkus Once this PR has been reviewed and has the lgtm label, please assign szuecs for approval by writing /assign @szuecs in a comment. For more information see:The Kubernetes Code Review Process.

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

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

k8s-ci-robot avatar Sep 10 '22 06:09 k8s-ci-robot

/kind bug

olemarkus avatar Sep 10 '22 06:09 olemarkus

@olemarkus: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Dec 01 '22 02:12 k8s-ci-robot

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Mar 01 '23 03:03 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Mar 31 '23 04:03 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-triage-robot avatar Apr 30 '23 04:04 k8s-triage-robot

@k8s-triage-robot: Closed this PR.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Apr 30 '23 04:04 k8s-ci-robot