clusterfuzz
clusterfuzz copied to clipboard
Make the immutable instance work properly as a bot.
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_neededthat verifies if it's a immutable instance, and block updating the source code.
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?
This pull request has not had any activity for 60 days and will be automatically closed in two weeks