native-build-tools icon indicating copy to clipboard operation
native-build-tools copied to clipboard

Sending SIGINT to an agent run does not collect the JSON files correctly

Open vjovanov opened this issue 11 months ago • 0 comments

The problem was reported here: https://github.com/graalvm/native-build-tools/issues/550#issuecomment-1983920449

The agent collects metadata into intermediary folders and all the metadata is then merged. Since SIGINT interrupts the agent, then all the metadata merging is completely skipped.

We need to separate the metadata merging in a different task that can be invoked from the command line:

$ gradle metadataMerge

To make this task possible we need to keep a list of folders that are currently processed with the agent. When gradle is exited with SIGINT, we need to suggest to the user to execute metadataMerge to finish collecting the metadata.

This same issue needs to be fixed for the maven.

vjovanov avatar Mar 14 '24 13:03 vjovanov