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

chore: swap deprecated tenv linter for usetesting #3534

Merged
merged 3 commits into from
Feb 18, 2025

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Feb 17, 2025

Swap the deprecated tenv linter for usetesting, and fix lint excluding e2e/ files.

The e2e test code is excluded as:

  • The usetesting linter shows a lot of lint on e2e code for tempdir handling. The e2e-tests are written, and have helper functions, designed around keeping temp directories inside a single per-run outer directory, often with somewhat useful naming. This would be broken by a switch to t.TempDir.

  • The usetesting linter shows a lot of lint on e2e code for env var handling. It's not often simple to switch to t.Setenv - the scope of env vars is more complex due to the e2e.Singularitycmd construct etc.

The usetesting linter shows a lot of lint on e2e code for tempdir
handling. The e2e-tests are written, and have helper functions,
designed around keeping temp directories inside a single per-run outer
directory, often with somewhat useful naming. This would be broken by
a switch to t.TempDir.

The usetesting linter shows a lot of lint on e2e code for env var
handling. It's not often simple to switch to t.Setenv - the scope of
env vars is more complex due to the e2e.Singularitycmd construct etc.
@dtrudg dtrudg self-assigned this Feb 17, 2025
@dtrudg dtrudg force-pushed the additional-linter-swaps branch from 580da7c to 9314d86 Compare February 17, 2025 11:15
@dtrudg dtrudg marked this pull request as ready for review February 17, 2025 13:24
@dtrudg dtrudg merged commit 2fcb7ac into sylabs:main Feb 18, 2025
1 check passed
@dtrudg dtrudg deleted the additional-linter-swaps branch February 18, 2025 15:46
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.

2 participants