Skip to content

Conversation

@hunsche
Copy link
Contributor

@hunsche hunsche commented Oct 16, 2025

Description:

This PR fixes an issue where the :latest tag for legacy base images was being applied during the build but was not being pushed to the container registry.

The previous logic correctly added the latest tag during the image build step, but this tag was omitted from the final list of images sent to Google Cloud Build for pushing.

This change updates the base_builder function to explicitly add the :latest tagged images to the push list when the build version is legacy, ensuring they are available in the registry as intended.


Verification

The fix was verified by running a manual build and confirming the outcome.

1. Successful Cloud Builds:

2. GCR Tag Verification:
The gcr.io/oss-fuzz-base/base-builder image tags were inspected to confirm they were pushed by the builds above. The timestamps confirm the successful push of all tags, including latest for the legacy build.

$ gcloud container images list-tags gcr.io/oss-fuzz-base/base-builder --limit=5 --format="table(digest, tags, timestamp.datetime)"
DIGEST        TAGS                                      DATETIME
354a8acd657e  ubuntu-24-04,ubuntu-24-04-manifest-amd64  2025-10-16 11:33:36+00:00
b35dde0731e1  latest,v1,v1-manifest-amd64               2025-10-16 11:15:22+00:00
0ab0e33cc6a6  ubuntu-20-04,ubuntu-20-04-manifest-amd64  2025-10-16 11:14:36+00:00

hunsche and others added 2 commits October 16, 2025 07:08
The 'latest' tag was being applied to legacy images during the build
process but was not included in the list of images to be pushed to the
container registry.

This change ensures that the 'latest' tag is explicitly added to the
push list for the 'legacy' version, restoring the intended behavior.
@hunsche hunsche changed the title Revert "Revert "feat(infra): Implement parallel base image builds"" fix(base-images): Ensure 'latest' tag is pushed for legacy images Oct 16, 2025
@hunsche hunsche requested a review from vitaliset October 16, 2025 10:22
@hunsche
Copy link
Contributor Author

hunsche commented Oct 16, 2025

/gcbrun trial_build.py zlib bad_example --fuzzing-engines libfuzzer --sanitizers address

@hunsche
Copy link
Contributor Author

hunsche commented Oct 16, 2025

/gcbrun trial_build.py zlib bad_example --fuzzing-engines libfuzzer --sanitizers address

@hunsche hunsche requested a review from oliverchang October 16, 2025 18:14
@hunsche
Copy link
Contributor Author

hunsche commented Oct 16, 2025

/gcbrun trial_build.py zlib bad_example --fuzzing-engines libfuzzer --sanitizers address

@hunsche hunsche merged commit 3174fff into master Oct 16, 2025
19 checks passed
@hunsche hunsche deleted the revert-14138-revert-14112-feat/parallel-base-image-builds branch October 16, 2025 19:57
oliverchang added a commit that referenced this pull request Oct 19, 2025
The return type of `build_lib.run_build` was changed, without changing
all the callers. In particular, `build_project.run_build` was expected
to still return an ID.

```
> git grep build_project.run_build
infra/build/functions/project_experiment.py:  return build_project.run_build(project_name,
infra/build/functions/request_build.py:  build_id = build_project.run_build(oss_fuzz_project, build_steps, credentials,
infra/build/functions/target_experiment.py:  build_id = build_project.run_build(
infra/build/functions/trial_build.py:      build_ids[project_name] = (build_project.run_build(
infra/build/functions/trial_build_test.py:  @mock.patch('build_project.run_build')
```

Fixes #14153
oliverchang added a commit that referenced this pull request Oct 20, 2025
The return type of `build_lib.run_build` was changed, without changing
all the callers. In particular, `build_project.run_build` was expected
to still return an ID.

```
> git grep build_project.run_build
infra/build/functions/project_experiment.py:  return build_project.run_build(project_name,
infra/build/functions/request_build.py:  build_id = build_project.run_build(oss_fuzz_project, build_steps, credentials,
infra/build/functions/target_experiment.py:  build_id = build_project.run_build(
infra/build/functions/trial_build.py:      build_ids[project_name] = (build_project.run_build(
infra/build/functions/trial_build_test.py:  @mock.patch('build_project.run_build')
```

Fixes #14153
hunsche added a commit that referenced this pull request Oct 20, 2025
hunsche added a commit that referenced this pull request Oct 20, 2025
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.

3 participants