Open amomchilov opened 2 weeks ago
I wonder if a --skip-build
flag can be of use, it can be directly passed to swift build
by the benchmarking package.
I think It'll be valuable ... we can skip some CI time when we know that we have build the package in the previous step and there are no changes.
Yeah, this is frustrating - I believe this is a possible workaround as pointed out by @MahdiBM :
https://github.com/swiftlang/swift-package-manager/issues/7210#issuecomment-2440097567
(that case is about this specific problem, there should be no rebuild really - if that SPM case is fixed, it should "just work" AFAICT)
Having a skip flag is problematic, as the discovery of the benchmarks are done using the SPM API (we get the path to the executables from there).
Hey there,
It looks like the plugin does a full rebuild on every command, even when no code has changed. E.g. on the sample project, running
swift package benchmark baseline list
takes ~30 seconds, even on a repeated invocation.I'd be happy to contribute to fixing this, if you could point me in the right directiont ot start.