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(tests): ensure e2e tests use updated plugins #1047

Merged
merged 5 commits into from
Feb 27, 2022

Conversation

tlinford
Copy link
Contributor

@tlinford tlinford commented Feb 8, 2022

Spent some time debugging some strange test failures in #1045 with @RobWalt, and we realized that currently
the e2e tests are using the pre-built plugins from the assets folder. Also they are installed into a directory inside the container
that persists between runs when testing locally, so even updating the plugins in assets was not giving reliable results.

Solve this issue by:

  • launching zellij with --data-dir flag in e2e tests, to avoid using prebuilt
    plugins from assets dir, and instead use the ones from the docker
    mount.
  • making the tests use plugins built in release mode to avoid some test
    failures due to timing issues.

Other changes are auto-formatting of Makefile.toml.

- launch zellij with --data flag in e2e tests, to avoid using prebuilt
  plugins from assets dir, and instead use the ones from the docker
  mount.
- make the tests use plugins built in release mode to avoid some test
  failures due to timing issues.
- format Makefile.toml.
@tlinford
Copy link
Contributor Author

tlinford commented Feb 9, 2022

note: had to change the config for the ssh service to use UID 1001 to match the runner's UID

@TheLostLambda
Copy link
Member

Thrilled to hear this fix is finally possible! I tried this ages ago with @imsnif in #676, but we were encountering some bizarre behaviors and never sorted it out. Thanks for wrapping this up!

@tlinford tlinford merged commit 3765aa3 into main Feb 27, 2022
@tlinford tlinford deleted the fix/e2e-tests-not-using-current-plugins branch February 27, 2022 21:05
@RobWalt
Copy link
Contributor

RobWalt commented Feb 27, 2022

🎉 nice, congrats :)

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