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

Fix e2e and integration tests #339

Merged
merged 4 commits into from
Dec 17, 2024
Merged

Conversation

2opremio
Copy link
Contributor

No description provided.

@2opremio 2opremio changed the title Fix e2e tests Fix e2e and integration tests Dec 16, 2024
@aditya1702 aditya1702 merged commit 5ab1975 into stellar:main Dec 17, 2024
19 checks passed
@2opremio 2opremio deleted the fix-system-tests branch December 17, 2024 12:30
@2opremio
Copy link
Contributor Author

I think it’s fine that you merged this (since you were blocked) but the last commit (the default protocol stuff) was a bit of a hack.

I am still waiting for @sreuland and @leighmcculloch to get to a conclusion on how to best solve this. The problem seems to stem from the system tests “stealling” QuickStart’s start script.

@@ -111,7 +114,8 @@ jobs:
build
- name: Run system test scenarios
run: |
docker run --rm -t --name e2e_test stellar/system-test:dev \
docker run -e PROTOCOL_VERSION_DEFAULT=$PROTOCOL_VERSION_DEFAULT \
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be un-necessary to set at runtime, the image built in prior step should now have the proto version coded into it, and quickstart startup will just reference that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that it's not really provided during runtime. I may be wrong, but can you point to were it's provided?

It is provided during build time, but AFAIU, it isn't saved anywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To clarify this even further. The quickstart image does this to make the default protocol permanent https://github.com/stellar/quickstart/blob/master/Dockerfile#L55-L57 but the system-test image AFAIU doesn't do that, it just borrows the start script from quickstart.

Copy link
Contributor

Choose a reason for hiding this comment

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

systest image uses the qs image as the base/parent image, and invokes the qs start script from that base layer, so the image should have DEFAULT_PROTOCOL_VERSION hard coded as an ENV per latest on qs docker file

I need to do a PR that removes DEFAULT_PROTOCOL_VERSION from the run step only and see what the system test results are.

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