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

[DO NOT MERGE] v050 testplan backport #3439

Closed
wants to merge 14 commits into from

Conversation

MarcoPolo
Copy link
Contributor

Description

Updates the test implementation to follow the new spec.

Updates the dockerfile so it can be built by anyone, not just linux folks

In draft to fiddle with CI.

@MarcoPolo MarcoPolo marked this pull request as ready for review February 9, 2023 01:56
@MarcoPolo
Copy link
Contributor Author

@thomaseizinger Can you take a look? If this looks good we should port the relevant changes to the master branch.

Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Couple of questions, otherwise LGTM. I already have backport PRs open. Do you mind just opening a PR to master? We can merge that separately and I'll backport it to the releases later.

interop-tests/ping-version.json Show resolved Hide resolved
WORKDIR /workspace
ADD . .
RUN --mount=type=cache,target=./target \
--mount=type=cache,target=/usr/local/cargo/registry \
Copy link
Contributor

Choose a reason for hiding this comment

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

What exactly is the cache referenced here? Old layers that don't match exactly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a fairly new cool feature. It is a cache that is saved separate from layers. So even if the earlier layers get rebuilt we still persist our cargo and build cache. So builds will be just be fast without any tricks. https://docs.docker.com/engine/reference/builder/#run---mount

Copy link
Contributor

Choose a reason for hiding this comment

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

This is amazing! Thank for your introducing me to this feature, that is indeed a godsend for Rust-based containers!

@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1.5-labs
FROM rust:1.67.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be a multi-stage dockerfile?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, but why? We aren't pushing this to a registry or uploading/downloading the image somewhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right and we need to pull all layers anyway so I guess it doesn't matter!

.github/workflows/interop-test.yml Outdated Show resolved Hide resolved
interop-tests/Dockerfile Outdated Show resolved Hide resolved
MarcoPolo and others added 2 commits February 9, 2023 09:16
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
@MarcoPolo
Copy link
Contributor Author

Do you mind just opening a PR to master? We can merge that separately and I'll backport it to the releases later.

Sounds good

@thomaseizinger thomaseizinger deleted the branch release/v0.50.0 February 10, 2023 05:58
@thomaseizinger thomaseizinger deleted the marco/rust-v050-testplan branch February 24, 2023 14:47
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.

2 participants