Skip to content

ci: configure the snapshot expiry rule without jq - #147

Merged
cbeauchesne merged 2 commits into
mainfrom
cbeauchesne/snapshot-expiry-no-jq
Nov 19, 2026
Merged

cbeauchesne merged 2 commits into
mainfrom
cbeauchesne/snapshot-expiry-no-jq

Conversation

@cbeauchesne

Copy link
Copy Markdown
Contributor

Overview

Use the AWS CLI's --query instead of jq, which the aws-cli image doesn't have.

Motivation

configure-branch-snapshot-expiry fails on main with jq: command not found (job 2276020898). It never ran before #146: the pipeline always stopped earlier on devcontainer_to_ghcr.

Additional Notes

A lifecycle read error other than NoSuchLifecycleConfiguration now stops the job. Before, it was read as "no rules", and the put would have replaced every rule of the bucket.

Tested locally with a fake aws (existing rules, empty list, no config, null, AccessDenied). The job's AWS permissions are unknown, as it never got to run.

References

Jira ticket:

Contributor Checklist

  • I am the author of this pull request and I own it.
  • I reviewed every line of this pull request.
  • This pull request follows the Contributing Guidelines.

🤖 Generated with Claude Code

The aws-cli image has no jq, so configure-branch-snapshot-expiry fails
with "jq: command not found". It never ran before: the pipeline always
stopped earlier on devcontainer_to_ghcr, removed in #146.

Use the AWS CLI's --query instead. A read error other than
NoSuchLifecycleConfiguration now stops the job, instead of being read
as "no rules" and replacing every rule of the bucket.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 54.64% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: b688798 | Docs | Give us feedback!

@pawelchcki
pawelchcki marked this pull request as ready for review November 19, 2026 14:31
@pawelchcki
pawelchcki requested a review from a team as a code owner November 19, 2026 14:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T14:32:11.046493Z 64325a0 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-19T14:33:31.714057Z 64325a0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cbeauchesne
cbeauchesne merged commit 5206d20 into main Nov 19, 2026
39 of 40 checks passed
@cbeauchesne
cbeauchesne deleted the cbeauchesne/snapshot-expiry-no-jq branch November 19, 2026 15:13
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