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

test: remove tmux from upgrade-tests #8393

Merged
merged 2 commits into from
Sep 27, 2023
Merged

test: remove tmux from upgrade-tests #8393

merged 2 commits into from
Sep 27, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Sep 27, 2023

refs: #8361

Description

While iterating on #8361, tmux was more hindrance than help. It truncated the scrollback and made viewing it difficult.

The primary purpose of the tests is to run the chain and succeed/fail. Thus the entrypoint should be the chain runner. Docker makes it easy to attach a shell to a running container, so instead of complicating the entrypoint we should just use that. (Now documented in the README)

Security Considerations

n/a

Scaling Considerations

n/a

Documentation Considerations

Not outside this repo

Testing Considerations

--

Upgrade Considerations

n/a

use `exec -it` to get a shell
@turadg turadg requested review from raphdev and iomekam September 27, 2023 13:35
Copy link
Contributor

@iomekam iomekam left a comment

Choose a reason for hiding this comment

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

Nice! I'm glad that we are moving away from TMUX

packages/deployment/upgrade-test/Readme.md Outdated Show resolved Hide resolved
@mhofman
Copy link
Member

mhofman commented Sep 27, 2023

Wondering if we could make exec into a the running container easier by having a make command, It could either default the name of the container, or lookup the container somehow.

Co-authored-by: Ikenna Omekam <ikenna@agoric.com>
@turadg
Copy link
Member Author

turadg commented Sep 27, 2023

easier by having a make command

I'm also for easier. I was reluctant to put more into the Makefile as I think we should move away from it, but this is enough of a time saver that's it shouldn't have to wait for that. 0ecffd2

@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Sep 27, 2023
@@ -74,4 +69,7 @@ run_test:
run_bash:
$(RUN) --entrypoint /bin/bash $(REPOSITORY):$(dockerLabel)

shell:
docker exec -it `docker ps --latest --format json | jq -r .Names` bash
Copy link
Contributor

@raphdev raphdev Sep 27, 2023

Choose a reason for hiding this comment

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

A possible alternative here could be something like:

docker exec -ti $(docker ps -q -f ancestor=agoric/upgrade-test:agoric-upgrade-11) bash

Where you replace agoric-upgrade-11 with TARGET similar to other commands. This way you always target the correct container, and not one launched after you did make run (e.g. vscode devcontainer or something).

Copy link
Member

Choose a reason for hiding this comment

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

latest is a problem for me, I'm a heavy docker user and this definitely might not be my latest container

Copy link
Member Author

Choose a reason for hiding this comment

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

I figure latest will be what most people want and those who don't (because they use Docker extensively) are sophisticated enough to something else.

Thanks for the simpler way to get the container name, @raphdev . I looked but didn't find it.

I don't think we want to hard-code the ancestor, because it's something to have to remember to change and it's not always the target wanted.

this works,

shell:
	docker exec -it `docker ps -q -f ancestor=agoric/upgrade-test:$(TARGET)` bash

but then it requires the user to specify the target.

Copy link
Member

Choose a reason for hiding this comment

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

we can always iterate on this if/when it becomes a problem

Copy link
Contributor

@raphdev raphdev left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'm for the experience that enables rather than hinders.

@mergify mergify bot merged commit 4ffd2ad into master Sep 27, 2023
80 checks passed
@mergify mergify bot deleted the drop-tmux branch September 27, 2023 21:15
@turadg turadg mentioned this pull request Oct 6, 2023
5 tasks
mhofman pushed a commit that referenced this pull request Nov 8, 2023
test: remove tmux from upgrade-tests
mhofman pushed a commit that referenced this pull request Nov 10, 2023
test: remove tmux from upgrade-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants