clusterfuzz icon indicating copy to clipboard operation
clusterfuzz copied to clipboard

Make the immutable instance work properly as a bot.

Open javanlacerda opened this issue 2 months ago • 1 comments

Validate and performs a fine tunning on the changes for b/407497080.

This changes were needed to allow the immutable images to run bots properly.

I managed to validade it by creating a new instance group using an immutable image with this code version.

there's the logs of an sucessfull instance

The changes:

  • On the setup clusterfuzz scprit, the clusterfuzz source code is copied to the $INSTALL_DIRECTORY if it's a immutable image. This is required because in the current approach, the code is downloaded in the docker volume in /mnt/sractch0 during the startup script. As we copy the code in the build time now, we're not able to copy in the expected path, because the volume doesn't exist in build time.
  • Persist the manifest on src/appengine/resources/clusterfuzz-source.manifest. The immutable images pipeline generates it's own revision, and this change saves it on the expected file for providing this information in runtime (for strcutured logs, for instance)
  • Add a guard flag for the function update_source_code_if_needed that verifies if it's a immutable instance, and block updating the source code.

javanlacerda avatar Oct 15 '25 21:10 javanlacerda

The logs you linked as evidence are empty, probably since they were shared with relative time. Could you retrieve them and share with absolute time?

ViniciustCosta avatar Oct 16 '25 16:10 ViniciustCosta

This pull request has not had any activity for 60 days and will be automatically closed in two weeks

github-actions[bot] avatar Dec 15 '25 20:12 github-actions[bot]