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

fixup test runner #8

Merged
merged 9 commits into from
Nov 3, 2023
Merged

fixup test runner #8

merged 9 commits into from
Nov 3, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Nov 2, 2023

This one got lost in the commit cleanups:

  • run tests by ENTRYPOINT, not RUN

These I'm slipping in as well:

@turadg turadg requested review from dckc and iomekam November 2, 2023 23:59
@turadg turadg enabled auto-merge November 3, 2023 00:20
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

good stuff.

@@ -4,7 +4,6 @@
source /usr/src/upgrade-test-scripts/env_setup.sh

# Enable debugging
set -x

Copy link
Member

Choose a reason for hiding this comment

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

the "Enable debugging" comment stays? on purpose?
not a big deal...

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, will remove. (CI's not passing anyway)

@@ -29,7 +29,7 @@ ENV UPGRADE_TO=${to} THIS_NAME=${agZeroUpgrade}
# put env functions into shell environment
RUN echo '. /usr/src/upgrade-test-scripts/env_setup.sh' >> ~/.bashrc

COPY --chmod=755 ./upgrade-test-scripts /usr/src/upgrade-test-scripts
COPY --link --chmod=755 ./upgrade-test-scripts /usr/src/upgrade-test-scripts
Copy link
Member

Choose a reason for hiding this comment

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

fs.writeFileSync('Dockerfile', contents);
}

if (require.main === module) {
Copy link
Member

Choose a reason for hiding this comment

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

I thought we used ES modules and node doesn't support this idiom in that context.

Does .ts not get compiled to ES modules?

Copy link
Member Author

Choose a reason for hiding this comment

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

Node only uses ESM if package.json has "type": "module". But there's no package.json here so it defaults to CJS

@turadg turadg merged commit c8c186e into main Nov 3, 2023
1 check passed
@turadg turadg deleted the ta/fixup-test-runner branch November 3, 2023 20:55
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