Testing with nearly all packages in code.dlang.org

Jonathan M Davis newsgroup.d at jmdavisprog.com
Mon Oct 2 03:48:52 UTC 2023


On Friday, September 29, 2023 2:00:15 AM MDT Andrea Fontana via Digitalmars-d 
wrote:
> On Tuesday, 19 September 2023 at 21:37:32 UTC, Atila Neves wrote:
> > In the spirit of avoiding any further breakage, I wrote a
> > little D script to get a list of all dub packages that still
> > build since projects get stale. It took ~44min on my laptop
> > using 20 threads to try and build all 2381 (as of yesterday)
> > dub packages. This included downloading all of them, I did an
> > `rm -rf ~/.dub/packages` just before.
> >
> > 1362 of them returned 0 for `dub build`, or about 57%. It's
> > probably a good idea to actually do `dub build
> > --build=unittest` since that'll include more D code.
> >
> > I don't know if some of them fail because they need custom
> > build/CI; I think it's safe to ignore them even if that's the
> > case, since a dub package needs to just build with dub.
> >
> > The list and the code is at
> > https://github.com/atilaneves/all-dub-packages.
>
> What if some of them contain malicious code in the pre-build
> phase or in unit tests? I wouldn't run that massive
> indiscriminate build :)

If there are concerns about that sort of thing, then it's easy enough to do
it all in an appropriately restricted environment where malicious stuff
won't matter, because it won't impact anything outside of that environment.

- Jonathan M Davis





More information about the Digitalmars-d mailing list