Skip to content

Add CTST coverage for Days=0 lifecycle expiration#2461

Draft
delthas wants to merge 2 commits into
development/2.16from
improvement/ZENKO-5314/days-0-expiration-ctst
Draft

Add CTST coverage for Days=0 lifecycle expiration#2461
delthas wants to merge 2 commits into
development/2.16from
improvement/ZENKO-5314/days-0-expiration-ctst

Conversation

@delthas

@delthas delthas commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What does this PR do, and why do we need it?

Adds end-to-end (CTST) coverage for S3 lifecycle Expiration rules with Days=0 ("delete all matching objects as soon as backbeat runs"), and bumps the component images that ship the feature.

  • Bumps solution/deps.yaml: backbeat 9.5.0-preview.19.5.0-preview.3 (BB-791), cloudserver 9.4.0-preview.29.4.0-preview.4 (CLDSRV-928, arsenal 8.5.6), pensieve-api 1.10.11.11.0-preview.1 (PSVAPI-128).
  • Adds features/lifecycleExpiration.feature with two @PreMerge scenarios using the direct S3 PutBucketLifecycleConfiguration API:
    • non-versioned bucket + Expiration Days=0 → all objects deleted;
    • versioned bucket + Expiration Days=0 + NoncurrentVersionExpiration NoncurrentDays=0 → all versions and delete markers removed.
  • Factors the shared lifecycle-config PUT-with-retry logic out of the transition workflow helper into putBucketLifecycleConfigurationWithRetry, and adds an addExpirationWorkflow helper.

Days=0 makes objects immediately eligible (backbeat lists with no BeforeDate), so the test needs no time-progression or one-day-earlier tricks and is not tagged @Flaky.

The backbeat index-skip heuristic (BB-779) is intentionally out of scope — it is not yet merged and is covered by backbeat unit tests, not e2e.

Which issue does this PR fix?

ZENKO-5314

Special notes for your reviewers:

The new scenarios follow tests/functional/ctst/HOW_TO_WRITE_TESTS.md: unique per-scenario buckets, external-state-only assertions (via ListObjectVersions), poll-based assertions (idempotent after waits), automatic teardown via the global After hook, and no @Flaky.

Issue: ZENKO-5314

…ration

backbeat 9.5.0-preview.1 -> 9.5.0-preview.3 (BB-791)
cloudserver 9.4.0-preview.2 -> 9.4.0-preview.4 (CLDSRV-928, arsenal 8.5.6)
pensieve-api 1.10.1 -> 1.11.0-preview.1 (PSVAPI-128)

Issue: ZENKO-5314
@bert-e

bert-e commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Hello delthas,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@scality scality deleted a comment from bert-e Jul 8, 2026
@bert-e

bert-e commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

Add an end-to-end test using the S3 PutBucketLifecycleConfiguration API
with two scenarios: a non-versioned bucket where Expiration Days=0 deletes
all objects, and a versioned bucket where Expiration Days=0 combined with
NoncurrentVersionExpiration NoncurrentDays=0 removes all versions and
delete markers.

Factor the lifecycle-config PUT-with-retry logic shared with the transition
workflow helper into putBucketLifecycleConfigurationWithRetry, and add an
addExpirationWorkflow helper. Days=0 makes objects immediately eligible, so
the test needs no time-progression or one-day-earlier tricks.

Issue: ZENKO-5314
@delthas delthas force-pushed the improvement/ZENKO-5314/days-0-expiration-ctst branch from edabef9 to 9061fa1 Compare July 8, 2026 09:51
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