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

pkg/topology: perform colonoscopy on testdata. #1005

Merged
merged 1 commit into from Apr 24, 2023

Conversation

klihub
Copy link
Contributor

@klihub klihub commented Apr 24, 2023

While we can use fake go.mod files to prevent golang tooling from descending into test data directories that contain files with a ':' in their name, this is not enough. There are other tools, unfortunately hosted on non-unix OSes, that do not like ':'s in file names. Cloning the repository fails on these and prevents the hosted tools from working at all.

As a workaround, hide offending (test data) files in tarballs and introduce unit test setup and cleanup hooks to extract these tarballs on demand.

While we can use fake go.mod files to prevent golang tooling
from descending into test data directories that contain files
with a ':' in their name, this is not enough. There are other
tools, unfortunately hosted on non-unix OSes that do not like
':'s in file names. Cloning the repository fails on these and
prevents the hosted tools from working at all.

As a workaround, hide offending (test data) files in tarballs
and introduce unit test setup and cleanup hooks to extract
these tarballs on demand.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@klihub klihub temporarily deployed to dev April 24, 2023 08:28 — with GitHub Actions Inactive
@klihub klihub temporarily deployed to dev April 24, 2023 08:28 — with GitHub Actions Inactive
@klihub klihub merged commit 49ad8ca into intel:master Apr 24, 2023
4 checks passed
@klihub klihub deleted the fixes/avoid-colon-in-testdata-files branch April 24, 2023 10:02
@marquiz marquiz mentioned this pull request Jan 8, 2024
18 tasks
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.

None yet

2 participants