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

Clean case directory during preparation step #176

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

ytsarev
Copy link
Member

@ytsarev ytsarev commented Jan 18, 2024

Description of your changes

  • Cleaning directory is crutial to avoid unexpected uptest behavior when the cases are changing between uptest run
  • The cases contents can change during the uptest version upgrade and when we use --skip-delete option
  • Without this change the uptest behavior is confusing the user, e.g. the --skip-delete option does not effectively work after the standard run because 03-delete.yaml case is not getting removed from the case directory
  • Fixes since v0.6.0 temp folders with not cleaned up #159

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

updating local cache with test build version in sample configuration of https://github.com/upbound/configuration-aws-eks-karpenter/

running make e2e

then running make e2e SKIP_DELETE=--skip-delete

Observe that /var/folders/sx/0tlfb9ys20bbqnszv3lw12m40000gn/T/uptest-e2e/case is getting properly cleaned now, and 03-delete.yaml is not there anymore

* Cleaning directory is crutial to avoid unexpected uptest behavior when
the cases are changing between uptest run
* The cases contents can change during the uptest version upgrade
  and when we use `--skip-delete` option
* Without this change the uptest behavior is confusing the user, e.g.
  the `--skip-delete` option does not effectively work after the
  standard run because `03-delete.yaml` case is not getting removed from
  the case directory

Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ytsarev LGTM!

@ytsarev ytsarev merged commit 6a53f0c into upbound:main Jan 18, 2024
6 checks passed
@ytsarev ytsarev deleted the clean-case-dir branch January 18, 2024 10:56
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.

since v0.6.0 temp folders with not cleaned up
3 participants