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

Made new config for e2e tests having a non alpine image with cgo enabled #5066

Closed
wants to merge 6 commits into from
Closed

Made new config for e2e tests having a non alpine image with cgo enabled #5066

wants to merge 6 commits into from

Conversation

tend2infinity
Copy link
Contributor

@tend2infinity tend2infinity commented Jan 15, 2022

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • Added a new Dockerfile specifically for performing e2e tests using a non alpine image
  • Added a new promu configuration for enabling cgo and race flags
  • Specified targets in the makefile

Verification

  • Tested locally

Part of

Issue #4664

@tend2infinity tend2infinity changed the title Made new config for e2e tests with a non alpine image with cgo enabled Made new config for e2e tests having a non alpine image with cgo enabled Jan 15, 2022
Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

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

This looking nicely 👏 I added few comments + just please make sure you signed your commits (see section 'Signing your work' in https://github.com/thanos-io/thanos/blob/main/CONTRIBUTING.md#pull-request-process), so that we can kick start the CI as well!

.promue2e.yml Outdated Show resolved Hide resolved
Dockerfile.e2e-tests Outdated Show resolved Hide resolved
Dockerfile.e2e-tests Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Signed-off-by: soumya <somu12.ss@gmail.com>
Signed-off-by: soumya <somu12.ss@gmail.com>
Signed-off-by: soumya <somu12.ss@gmail.com>
Signed-off-by: soumya <somu12.ss@gmail.com>
@tend2infinity
Copy link
Contributor Author

@matej-g made the required changes

Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

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

Looking good, thanks @tend2infinity! Let's ping maintainers to make CI run for this PR.

@@ -0,0 +1,20 @@
# By default we pin to amd64 sha. Use make docker to automatically adjust for arm64 versions.
Copy link
Member

Choose a reason for hiding this comment

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

We need to update this comment, i think:

Suggested change
# By default we pin to amd64 sha. Use make docker to automatically adjust for arm64 versions.
# By default we pin to amd64 sha. Use make docker-e2e to automatically adjust for arm64 versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gotcha! will update this

.promu.e2e.yml Outdated
crossbuild:
platforms:
- linux/amd64
- darwin/amd64
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need anything other than Linux for the e2e tests? All of the tests run inside of a container, which means that the will run on Linux, and thus need a Linux binary, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, makes sense , we can remove the other platforms for sure

Makefile Outdated
@echo ">> building Thanos binary in $(PREFIX)"
@$(PROMU) --config=".promu.e2e.yml" build --prefix $(PREFIX)


Copy link
Member

Choose a reason for hiding this comment

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

Nit

Suggested change

Makefile Outdated Show resolved Hide resolved
Signed-off-by: soumya <somu12.ss@gmail.com>
@pull-request-size pull-request-size bot added size/S and removed size/M labels Feb 11, 2022
@tend2infinity
Copy link
Contributor Author

Hey @matej-g can you review it once ;)

matej-g
matej-g previously approved these changes Feb 14, 2022
Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

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

I think this is looking good 👍 One more cleanup suggestion 🧹

Makefile Outdated Show resolved Hide resolved
Signed-off-by: soumya <somu12.ss@gmail.com>
@tend2infinity
Copy link
Contributor Author

Changes done, works alright!

@matej-g
Copy link
Collaborator

matej-g commented Mar 2, 2022

Thanks @tend2infinity and sorry for the delayed answer! Looks like everything is working fine, we are actually already catching some data races. Did you hit these during local runs? I think we should fix them before we merge this (otherwise E2E tests will be broken). What I found based on test logs on my local machine:

@stale
Copy link

stale bot commented May 1, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 1, 2022
@stale stale bot closed this Jun 12, 2022
@matej-g
Copy link
Collaborator

matej-g commented Jun 13, 2022

Still relevant but not finished, on my to-do list...

@matej-g matej-g reopened this Jun 13, 2022
@stale stale bot removed the stale label Jun 13, 2022
@stale stale bot removed the stale label Jun 13, 2022
@tend2infinity
Copy link
Contributor Author

Hey @matej-g sorry for the delay, I will look into these issues that you've mentioned and will let you know the progress

@stale
Copy link

stale bot commented Sep 21, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Sep 21, 2022
@stale stale bot closed this Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants