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

ci: bring back testing on alpine #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

ci: bring back testing on alpine #47

wants to merge 2 commits into from

Conversation

robertgzr
Copy link
Member

Ref: #31

Signed-off-by: Robert Günzler [email protected]

@dsanders11
Copy link
Contributor

This needs some larger testing refactoring to work - the test binaries are built during build-<os>, so the test binaries from linux won't work on test-alpine.

@robertgzr robertgzr force-pushed the test-alpine branch 9 times, most recently from da134cc to 05b5ff4 Compare September 29, 2022 16:50
Copy link
Contributor

@RaisinTen RaisinTen left a comment

Choose a reason for hiding this comment

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

Shouldn't this purely be a circleci config edit?

the test binaries are built during build-<os>, so the test binaries from linux won't work on test-alpine

Why not? When I copy the the dist directory generated in build-linux on my macOS, it does work when I run npm test.

@robertgzr
Copy link
Member Author

@RaisinTen, we're running the test binary:
https://github.com/postmanlabs/postject/blob/main/test/cli.mjs#L66

how does that work with a linux binary on macos?

@RaisinTen
Copy link
Contributor

Ah I see your point, I was referring to the WASM binary that was getting tested, not the ./build/test/cpp_test binary.

Looks like there are some failures that needs addressing?

@robertgzr robertgzr force-pushed the test-alpine branch 2 times, most recently from 378cf54 to 8d30425 Compare October 12, 2022 09:26
await fs.copy("../src/cli.js", "../dist/cli.js");
await fs.copy("../postject-api.h", "../dist/postject-api.h");

cd("..");
Copy link
Member Author

Choose a reason for hiding this comment

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

didn't expect the directory change to persist after exiting the function scope :/ a defer instruction would be useful here

Copy link
Contributor

Choose a reason for hiding this comment

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

yea, seems to be a quirk of zx that would feel a little unexpected to folks who are used to writing these using sh

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.

3 participants