Skip to content

fix(RELEASE-12379): use completion_time instead of buildTimestamp#2329

Draft
theflockers wants to merge 7 commits into
konflux-ci:developmentfrom
theflockers:konflux-12379
Draft

fix(RELEASE-12379): use completion_time instead of buildTimestamp#2329
theflockers wants to merge 7 commits into
konflux-ci:developmentfrom
theflockers:konflux-12379

Conversation

@theflockers

Copy link
Copy Markdown
Contributor

Replace the buildTimestamp parameter/result with completion_time extracted directly from the IIB build info JSON response. This ensures timestamp consistency with the actual build completion time and adds support for conditional timestamped tags in FBC releases.

Changes:

  • add-fbc-contribution: Extract completion_time from IIB build response (updated_by field), validate it's an 11-digit epoch timestamp, and create target_index_with_timestamp field that avoids duplicate timestamps for hotfix/pre-GA releases
  • collect-index-images: Use target_index_with_timestamp to conditionally include timestamped tags (2 tags for regular releases, 1 for hotfix/pre-GA)
  • publish-index-image: Publish both target_index and target_index_with_timestamp tags only when they differ
  • extract-index-image: Remove unused buildTimestamp parameter
  • prepare-fbc-snapshot: Update comment to clarify timestamp is arbitrary until build completion
  • fbc-release pipeline: Remove buildTimestamp parameter passing

For regular releases, both v4.14 and v4.14- tags are published. For hotfix/pre-GA releases (which already include timestamps in target_index), only a single tag is published to avoid duplication.

This change also fixes RELEASE-2666 by ensuring the timestamped image is properly created and available for signing.

All integration tests updated to reflect the new behavior.

Assisted-By: Claude Code

Describe your changes

Relevant Jira

Checklist before requesting a review

  • I have marked as draft or added do not merge label if there's a dependency PR
    • If you want reviews on your draft PR, you can add reviewers or add the release-service-maintainers handle if you are unsure who to tag
  • My commit message includes Signed-off-by: My name <email>
  • I read CONTRIBUTING.MD and commit formatting
  • I have run the README.md generator script in .github/scripts/readme_generator.sh and verified the results using .github/scripts/check_readme.sh
  • If an AI agent was used, I marked that via a commit footer like Assisted-By: Cursor

@theflockers theflockers force-pushed the konflux-12379 branch 7 times, most recently from 41e144e to cc73756 Compare June 26, 2026 16:11
@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@theflockers theflockers force-pushed the konflux-12379 branch 5 times, most recently from ed554cb to 5bcc094 Compare June 29, 2026 16:02
@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

1 similar comment
@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@theflockers theflockers force-pushed the konflux-12379 branch 2 times, most recently from 46aa511 to 47d33a3 Compare June 30, 2026 14:20
@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@theflockers theflockers force-pushed the konflux-12379 branch 3 times, most recently from 31ac6b6 to 6544d08 Compare July 1, 2026 09:19
@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

Replace the buildTimestamp parameter/result with completion_time
extracted directly from the IIB build info JSON response. This
ensures timestamp consistency with the actual build completion
time and adds support for conditional timestamped tags in FBC
releases.

Changes:
- add-fbc-contribution: Extract completion_time from IIB build
  response (updated_by field), validate it's a 10-digit epoch
  timestamp, and create target_index_with_timestamp field that
  avoids duplicate timestamps for hotfix/pre-GA releases
- collect-index-images: Use target_index_with_timestamp to
  conditionally include timestamped tags (2 tags for regular
  releases, 1 for hotfix/pre-GA)
- publish-index-image: Publish both target_index and
  target_index_with_timestamp tags only when they differ
- extract-index-image: Remove unused buildTimestamp parameter
- prepare-fbc-snapshot: Update comment to clarify timestamp is
  arbitrary until build completion
- fbc-release pipeline: Remove buildTimestamp parameter passing

For regular releases, both v4.14 and v4.14-<timestamp> tags are
published. For hotfix/pre-GA releases (which already include
timestamps in target_index), only a single tag is published to
avoid duplication.

This change also fixes RELEASE-2666 by ensuring the timestamped
image is properly created and available for signing.

All integration tests updated to reflect the new behavior.

Assisted-By: Claude Code
Signed-off-by: Leandro Mendes <lmendes@redhat.com>
Signed-off-by: Leandro Mendes <lmendes@redhat.com>
Signed-off-by: Leandro Mendes <lmendes@redhat.com>
- inspect-target-index-task: add missing targetIndex parameter to skopeo
- collect-index-images: fix IMAGE_DIGESTS handling
  - Save original digests from IIB build before loop
  - Reset to original digests at start of each iteration
  - Inspect base tag only (not timestamped tag) for regular releases
  - Extract InternalRequest result properly from kubectl
  - Base tag gets fresh digests, timestamped tag uses original

Assisted-By: Claude
Signed-off-by: Leandro Mendes <lmendes@redhat.com>
@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@theflockers theflockers mentioned this pull request Jul 1, 2026
5 tasks
…images

Fixed jq expressions for digest extraction and comparison:
- Use jq -r '.[0]' to extract built digest from array
- Use jq -r '.digest' to extract current digest from object
- Match lowercase 'digest' field from inspect-target-index output

Assisted-By: Claude
Signed-off-by: Leandro Mendes <lmendes@redhat.com>
@theflockers

Copy link
Copy Markdown
Contributor Author

/ok-to-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant