Skip to content

Conversation

@ViniciustCosta
Copy link
Collaborator

Cherry-pick from of #4647 into chrome branch.

Decouple the chrome-tests-syncer code releases from the rest of
clusterfuzz, in order to enable it to be deployed independently of the
clusterfuzz instances by the chrome fuzzing team .

* Extended the butler deploy script to produce a dedicated deployment
package for "--release=chrome-tests-syncer" and to produce both the prod
and tests-syncer packages when releasing to prod.
* Changed chrome-tests-syncer Dockerfile/start.sh to pull from this
dedicated deployment package.
* Moved and edited the tests-syncer code to be executed as a k8s
cronjob.
* (side effect) Updated unit test to account for deploying the
chrome-tests-syncer manifest.

* Deployed a chrome-tests-syncer release using this PR and produced the
dedicated artifact
(https://screenshot.googleplex.com/8W88DmYwFKPkSfZ.png).
* Built an updated chrome-tests-syncer image that pulls from this
artifact (https://screenshot.googleplex.com/8HqEvV7bnBggBPj.png).

* Created the chrome-tests-syncer cronjob (along with PR in
clusterfuzz-config: 2428107) pulling from this updated image, applied it
to the GKE and it ran successfully:

![image](https://github.com/user-attachments/assets/b32441f1-daae-4c12-9476-97583fad3982)

* Mocked a deployment with --release=prod (by printing the command
instead of actually uploading to gcs):
<img width="960" alt="Screenshot 2025-02-05 at 11 48 31"
src="https://github.com/user-attachments/assets/bd035374-07d1-453a-9db4-2ed0cd39d92f"
/>

Bug: b/389048599
@ViniciustCosta ViniciustCosta marked this pull request as ready for review February 10, 2025 13:59
Copy link
Collaborator

@vitorguidi vitorguidi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, already tested on top of master

@vitorguidi vitorguidi merged commit 2c697b3 into chrome Feb 10, 2025
3 checks passed
@vitorguidi vitorguidi deleted the tests-syncer-k8s branch February 10, 2025 14:32
ViniciustCosta added a commit that referenced this pull request Feb 10, 2025
Fix a bug inserted in #4675, which was deleting the manifest file before
uploading it to the GCP during deployment.
ViniciustCosta added a commit that referenced this pull request Feb 10, 2025
Fix a bug inserted in #4675, which was deleting the manifest file before
uploading it to the GCP during deployment.
vitorguidi pushed a commit that referenced this pull request Feb 10, 2025
Fix a bug inserted in #4675, which was deleting the manifest file before
uploading it to the GCP during deployment.

Cherry-pick from #4683 into `master`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants