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
macOS/arm64 e2e test improvements #5615
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start using the web console as readiness probe for e2e tests to ensure MinIO is fully ready to serve requests. Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
The reason for this is that the name becomes part of the Docker containers names. These are also hostnames and as defined in RFC 822, hostnames can only have alphanumeric characters, hyphen (`-`), and periods (`.`). Some software supports hostnames with underscores (`_`), but MinIO decided not to. Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Waiting for efficientgo/e2e#45 to be merged to complete the ARM64 fixes. |
Also the issue that made it need is now officially merged. Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Was also waiting on efficientgo/e2e#46. Will soon update this and mark it ready for review. |
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
douglascamata
force-pushed
the
arm64-e2e-test-fixes
branch
from
August 24, 2022 14:40
16546f0
to
5412255
Compare
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
douglascamata
changed the title
macOS/arm64 e2e test fixes
macOS/arm64 e2e test improvements
Aug 26, 2022
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
bwplotka
approved these changes
Aug 31, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
prajain12
pushed a commit
to prajain12/thanos
that referenced
this pull request
Sep 6, 2022
* MinIO upgrade and fixes Start using the web console as readiness probe for e2e tests to ensure MinIO is fully ready to serve requests. Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Change all Docker env names with `_` to `-` The reason for this is that the name becomes part of the Docker containers names. These are also hostnames and as defined in RFC 822, hostnames can only have alphanumeric characters, hyphen (`-`), and periods (`.`). Some software supports hostnames with underscores (`_`), but MinIO decided not to. Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix a missing invalid hostname Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix hostnames that are part of metrics Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Avoid underscore in minio's bucket name Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Replace underscore with hyphen in bucket name Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Replace underscore for hyphen in more buckets Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix groupcache_group config in tests Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Stop using avalanche fork without multi-arch Also the issue that made it need is now officially merged. Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Upgrade MinIO in unused (?) file Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Bump version of efficientgo/e2e Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix deps Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Update to official avalanche repo Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Retrigger CI Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Retrigger CI Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Retrigger CI Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Update e2e test prometheus image Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fixes after default Prometheus upgrade Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Retrigger CI Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * More fixes related to target api test Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix second target api test Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix another query test Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Retrigger CI Signed-off-by: GitHub <noreply@github.com> * Fix receive e2e test Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Remove prints and use logs Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix broken logic in compact test Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Skip preinfo api compatbility test on arm64 Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Improve multi-arch check Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Retrigger CI Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> Signed-off-by: GitHub <noreply@github.com> Signed-off-by: Prakul Jain <prakul.jain@udaan.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
If this works well, Minio is not ready even after
StartAndWaitReady
completes efficientgo/e2e#11 should be fixable and Thanos don't need its own function to set up MinIO for the e2e tests.This is a very interesting one. There are other limitations to hostnames, i.e. maximum 63 characters, shouldn't end in a period (
.
). Possibly something could be implemented in https://github.com/efficientgo/e2e with extra care to avoid a breaking change.Curiously all other software involved in the e2e tests doesn't seem to care about the underscores (
_
) that cause the non-compliance. I suppose Docker's networking is somehow managing it so it doesn't break things like DNS, but I am not sure._
).Verification
Ran e2e tests a few times in both an ARM64 Linux and macOS boxes. This PR has a lot of valid improvements, but still didn't manage to get a full run of
make e2e-test-local
to pass.macOS
Has issues with software to run Docker on Mac, causing random failures. Depending on the Docker platform being used, rerunning the failed tests will work.
Docker Desktop has issues running Avalanche. Rancher Desktop has issues with networking and ports. Podman can't build the Thanos container image.
Linux
Has some issues with
TestToolsBucketWebExternalPrefixAndRoutePrefix
.