Skip to content

dist: include all files within tests/data - #22688

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:am-simple-data-dist
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:am-simple-data-dist

Conversation

@vszakats

Copy link
Copy Markdown
Member

To avoid merge conflicts and maintaining a long, manual, list of
individual test data files. Replace by distributing the complete
directory.

Cherry-picked from #22666

@bagder

bagder commented Aug 26, 2026

Copy link
Copy Markdown
Member

This assumes the person that runs the maketgz script never has any lingering old crap in that directory...

@vszakats

Copy link
Copy Markdown
Member Author

This assumes the person that runs the maketgz script never has any lingering old crap in that directory...

It's the downside, yes. I have no data on this, intuitively it seems like
something to avoid for anyone doing dists, because projects may do
the same. But I don't know. It makes maintenance much simpler here,
so perhaps if the downside is minor, it's something to consider?

The only file in .gitignore is DISABLE.local, so that may be
a theoretical leftover that's actually used by tests, if someone explicitly
created one before dist.

@vszakats
vszakats force-pushed the am-simple-data-dist branch from 57e07c1 to ba048e6 Compare August 26, 2026 11:09
@bagder

bagder commented Aug 26, 2026

Copy link
Copy Markdown
Member

it seems like something to avoid for anyone doing dists

I've done all the releases so far. I typically do them in my main curl dev directory. In there I work on curl stuff every day and part of that is creating test cases. Not all test cases end up good or "worthy", The result is that I often have various "remainders" left in all directories in the curl tree, including tests/data/.

This change will force me to change my way of working or it will lead to leftover files getting included in future release. And I rather not do any of those...

@vszakats

Copy link
Copy Markdown
Member Author

it seems like something to avoid for anyone doing dists

I've done all the releases so far. I typically do them in my main curl dev directory. In there I work on curl stuff every day and part of that is creating test cases. Not all test cases end up good or "worthy", The result is that I often have various "remainders" left in all directories in the curl tree, including tests/data/.

This change will force me to change my way of working or it will lead to leftover files getting included in future release. And I rather not do any of those...

Ah OK, I had the false impression the Docker image (and/or dist script) sorts
this out automatically.

It's just an idea to save on bookkeeping, not insisting on it.

@vszakats vszakats closed this Aug 26, 2026
@vszakats
vszakats deleted the am-simple-data-dist branch August 26, 2026 12:02
@bagder

bagder commented Aug 26, 2026

Copy link
Copy Markdown
Member

The docker environment sets up exactly what runs to generate the tarball, but it still mounts the local directory as the source to generate the build from.

@dfandrich

dfandrich commented Aug 26, 2026 via email

Copy link
Copy Markdown
Contributor

@vszakats

Copy link
Copy Markdown
Member Author

Would it perhaps help to make runtests.pl support an alternate
data directory for private/draft/local tests? E.g. tests/data-private
or similar? Maybe also run on a separate id range, e.g. 9000-9999.

(just a brainstorm idea)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants