Skip to content
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

Fix panic when determining cluster domain. #115

Merged
merged 5 commits into from
Dec 5, 2023
Merged

Conversation

thallgren
Copy link
Contributor

@thallgren thallgren commented Dec 5, 2023

This PR also upgrades all dependencies and fixes broken integration tests.

- The tests would always test version 1.0.0, not the current version.
- The test would always fail some tests on first run. Second attempt
  succeeded due to cached results of the first test.
- Tests were divided into separate package (and hence separate
  executables) and ran in parallel using the same namespace. This caused
  lots of intermittent failures.
- Test cleanup happened at the wrong time.

It's truly amazing that the tests did succeed at the second run.

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren force-pushed the thallgren/fix-panic branch from 4d51429 to d588a15 Compare December 5, 2023 07:41
Updates all dependencies using `go get -u ./...`.

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren force-pushed the thallgren/fix-panic branch from d588a15 to 6955feb Compare December 5, 2023 07:44
@thallgren thallgren self-assigned this Dec 5, 2023
@thallgren thallgren force-pushed the thallgren/fix-panic branch 15 times, most recently from 17ce730 to f1efc5f Compare December 5, 2023 11:55
Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren force-pushed the thallgren/fix-panic branch from f1efc5f to 49b30c4 Compare December 5, 2023 12:10
@LanceEa LanceEa self-requested a review December 5, 2023 13:45
Copy link
Contributor

@LanceEa LanceEa left a comment

Choose a reason for hiding this comment

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

lgtm...I just one small question and mental note for myself.

@@ -609,6 +608,8 @@ func TestWatchErrorSendingSnapshot(t *testing.T) {
cancel()
t.Fatal("Timed out waiting for report to complete.")
}
ts.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

Since there are t.Fatal calls in the select case wont this fail to be called now that it is no longer a defer?

env:
A8R_AGENT_VERSION: ${{ steps.build.outputs.version }}
AMBASSADOR_AGENT_DOCKER_IMAGE: localhost:5000/ambassador-agent:${{ steps.build.outputs.version }}
KAT_SERVER_DOCKER_IMAGE: docker.io/datawiredev/kat-server:3.0.1-0.20220817135951-2cb28ef4f415
Copy link
Contributor

Choose a reason for hiding this comment

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

random thought:

I'm not too familiar with the Agent code base beyond knowing it was historically in emissary-ingress repo and just scrapes Edgissary for data and forwards it on to Ambassador Cloud. But, I was surprised to see references to the kat-server so I will take it as a mental note to investigate this further during cooldown.

@thallgren thallgren merged commit fff99fe into master Dec 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants