On 13/01/2025 19:30, Werner Pamler via lazarus wrote:
Am 13.01.2025 um 02:59 schrieb Kostas Michalopoulos via lazarus:
Would it be possible to do some periodic 'smoke tests' where all
packages are compiled against latest (main) Lazarus (preferably with
latest/main FPC too, at least as an extra pass - i.e. main branch
Lazarus compiled with main branch FPC) to find any packages that
won't compile and even run automated tests for those packages that
provide them?
Good idea but cannot be done manually (there are 280 repository
packages with 350 lpk files at the moment). "Somebody" should write a
script for that. On a local PC, it would probably require a dedicated
test installation of Lazarus for this sole purpose because I don't
know if Lazarus would still be usable with so many packages installed.
Or maybe "github actions" or similar to run the job on a remove
server? Experienced volonteers are welcome...
You don't need to install them all.
Just compile each package against the lazarus directory (e.g. using
lazbuild).
That checks that the package can be build with a given LCL + IdeIntf =>
meaning it would be compilable as part of the IDE.
Of course package that are already tested as dependency of another don't
need to be done by themself again.
Running it is of course a different beast.
I don't know how much time that would need to build them all. In terms
of available CI minutes on gitlab => it is possible to have tasks that
run only on request => but if it failed it would need several reruns...
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus