adds in skip logic for probes that isAlreadyMirrored identifies as already published.
changes the name of buildProbesForKernelPackageName -> process1KernelPackage as not all kernel packages will require building each time.
adds a helper function for identifying the driver version. I've run this outside the kernel package loop so we run it once rather than 67 times. The added struct means the build function can still use the name rather than just the driver.
improves the log message consistency.
adds some comments for increased readability.
Updates //pkg/repository/ghreleases/ghreleases.go to improve the log message consistency.
Removes the test-is-already-mirrored workflow from //.github/workflows & //build/github/test-is-already-mirrored.
In doing this PR @VJftw and I discussed some future improvements:
it seems like there is alot of unexpected repetition occurring as some driver_version x kernel_package combinations seem to have the script run against them multiple times. Adding a unit test to check would be advantageous.
we could refactor falcodriverbuilder.BuildEBPFProbe to take falcoDriverBuilderImg and driverVersion as parameters to reduce having to generate these twice. Possibly falcoDriverBuilderImg could be added to the new struct?
Updates //build/github/build-and-publish-probes-for-operating-system/main.go:
Updates //pkg/repository/ghreleases/ghreleases.go to improve the log message consistency.
Removes the test-is-already-mirrored workflow from //.github/workflows & //build/github/test-is-already-mirrored.
In doing this PR @VJftw and I discussed some future improvements: