Skip to content

🐛 use SUR date instead of the infostore one to have an update LastMod…#6121

Merged
bert-e merged 12 commits intodevelopment/9.1from
bugfix/CLDSRV-878/use-sur-date
Apr 2, 2026
Merged

🐛 use SUR date instead of the infostore one to have an update LastMod…#6121
bert-e merged 12 commits intodevelopment/9.1from
bugfix/CLDSRV-878/use-sur-date

Conversation

@DarkIsDude
Copy link
Copy Markdown
Contributor

@DarkIsDude DarkIsDude commented Mar 27, 2026

Issue: CLDSRV-878

Pull request template

Description

https://scality.atlassian.net/browse/CLDSRV-631 this PR introduce a regression. The associated cronjob was removed https://github.com/scality/zenko-operator/pull/540/changes#diff-c76a6b4555478f74e4c871dbf370d4e6e5ae54c4b8590b0581b1cc0894e83ae5R55 but the date used is still the one associated with it. The goal of this PR is to use the date from SUR.

curl -v --insecure https://10.160.99.90:8443/zenko/s3/test2/.system-d26a9498-cb7c-4a87-a44a-8ae204f5ba6c/capacity.xml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=FRFIWTEZRPYUSHVY6WEP%2F20260327%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260327T155955Z&X-Amz-Expires=900&X-Amz-Security-Token=eyJzYWx0IjoiQ0Z2bzd2Y29BY1ZZRHBZTXJ4Y0dpM2ExZ1NYcVBGaGpWdis5QThhU0NSMD0iLCJ0YWciOiJXaHNFWDUyMWlQWEFkWnV1WnRCOXNnPT0iLCJjaXBoZXJ0ZXh0IjoienBFRmpzeHMvYmRORzZZbU5mWFpJbGlHS01yWFliR3RaZW9NcUx0N3JXVjVJR1JnR0F1RExlZVdGSkUwdHVBNjBPbWpqeUhINkszWkp1Q1hkVWt5VGhrcUVsWStYTUpCdE5haWRjOHZBek9uUjJnc2p1L1pKRUdVUnZnMmVHMjRXS2JPZUQra1h0Q25nQWpFTjFWTWRsd25OcTBUMmw4WWNMaVBrY2owa1BaWnB2M2I0MEZCaVFsbFowOThnN2JSanhTZ2daVEtQNnNpY1hrYU0rK2tZbjMrMHhlS2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0hzalFsa29MUjFsWTJGQ2t1bHF3NTlCUjJkVzJaRmptdFQ3aTJkWnk5T2pWZFRDUFc2QXM5N1Q4T3d5SXlKUytVZ3Q2YzA2a1JVZ2dNVHhETFBpQ2FUbDFJbS9rZ3YxTmZzVWg0aFhabFBvdnkrYlJHTWFrRW5sMXdQYXVzSzlIZHMxR3FvcGVkSjlNK0svSXhqeHpkS3B4YU1ZZUcwSDBVbGVnSkRQSjl0TmRhVE15MXZqZ0F4VzlXWm9qSkpMSXNXWHhDQzlIai95MGoySFN5WGFLWGdqYnZtMlFOcWFLckFHN1lXRUVSQkdQeG1HWktwRHlhcmFLdGVaQzVNWXU4ckNVdVdTc1U3ekQrMFlHMU9CVWlMTTJyUXdWQmdSWFZ2QlRRUlVUZTJPbFplUVNZY1dZNUg2aWNON1dYZ3pEdndOUm5SeWIvVzM5R2hUMGFCL0diYTlYRVI0K0NLT1A5UXgifQ%3D%3D&X-Amz-Signature=4ca11d205c394debb177a26b8e292493a1478a91364ffd96b306628db0e0ddc2&X-Amz-SignedHeaders=host

With the fix < last-modified: Fri, 27 Mar 2026 16:04:16 GMT
Without the fix < last-modified: Wed, 25 Mar 2026 14:12:11 GMT

@DarkIsDude DarkIsDude self-assigned this Mar 27, 2026
@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Mar 27, 2026

Hello darkisdude,

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.

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Mar 27, 2026

Incorrect fix version

The Fix Version/s in issue CLDSRV-878 contains:

  • 9.1.14

  • 9.2.32

  • 9.3.6

  • 9.4.0

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 9.1.14

  • 9.2.33

  • 9.3.6

  • 9.4.0

Please check the Fix Version/s of CLDSRV-878, or the target
branch of this pull request.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
7694 1 7693 0
View the top 2 failed test(s) by shortest run time
should retrieve a part copied from an MPU after the original part was overwritten::GET object With default signature With PartNumber field uploadPartCopy overwrite should retrieve a part copied from an MPU after the original part was overwritten
Stack Traces | 40s run time
Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (.../test/object/get.js)
"before each" hook for "should retrieve a part that overwrote another part originally copied from an MPU"::GET object With default signature With PartNumber field uploadPartCopy overwrite "before each" hook for "should retrieve a part that overwrote another part originally copied from an MPU"
Stack Traces | 40s run time
Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (.../test/object/get.js)
View the full list of 2 ❄️ flaky test(s)
should get the body of part 2 when ordered MPU::GET object With v4 signature With PartNumber field should get the body of part 2 when ordered MPU

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.3s run time
Expected success, got error {"message":"The request has failed due to a temporary failure of the server.","code":"ServiceUnavailable","region":null,"time":"2026-04-02T14:49:37.941Z","requestId":"0d4c3d3c944b9ffd805b","extendedRequestId":"0d4c3d3c944b9ffd805b","statusCode":503,"retryable":true}
should overwrite an existing part by copying a part::Object Part Copy With v4 signature When copy source was put by MPU should overwrite an existing part by copying a part

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 40s run time
Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (.../test/object/copyPart.js)

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@DarkIsDude DarkIsDude force-pushed the bugfix/CLDSRV-878/use-sur-date branch from bb7499d to beee7a8 Compare March 27, 2026 14:03
@DarkIsDude DarkIsDude force-pushed the bugfix/CLDSRV-878/use-sur-date branch from beee7a8 to d9a5aed Compare March 27, 2026 14:10
@DarkIsDude DarkIsDude requested review from a team, delthas and francoisferrand March 27, 2026 14:47
@DarkIsDude DarkIsDude marked this pull request as ready for review March 27, 2026 14:47
Call UtilizationService.getUtilizationMetrics for capacity.xml on the
HEAD and LIST routes, mirroring the existing pattern from GET. This
ensures Last-Modified is derived from SUR metrics (not stale metadata)
on all three routes. Fall back to new Date() when metrics are
unavailable (404) or absent. Also use new Date() as the fallback in
GET instead of the stored LastModified value.

Issue: CLDSRV-878
@DarkIsDude DarkIsDude force-pushed the bugfix/CLDSRV-878/use-sur-date branch from bed3bca to 4a70cf7 Compare March 31, 2026 13:30
Move the shared UtilizationService call pattern (bucket key derivation,
404 warn/fallback, error logging) into a single fetchCapacityMetrics
helper in utils.js, used by GET, HEAD, and LIST routes.

Issue: CLDSRV-878
@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 1, 2026

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

@DarkIsDude DarkIsDude force-pushed the bugfix/CLDSRV-878/use-sur-date branch from 48e4d3e to 63a33eb Compare April 1, 2026 09:52
@DarkIsDude DarkIsDude force-pushed the bugfix/CLDSRV-878/use-sur-date branch from 24af2da to 9524559 Compare April 1, 2026 11:47
@DarkIsDude DarkIsDude force-pushed the bugfix/CLDSRV-878/use-sur-date branch from fb85c7f to 7258a79 Compare April 1, 2026 14:32
@DarkIsDude DarkIsDude force-pushed the bugfix/CLDSRV-878/use-sur-date branch from 7258a79 to 78fd519 Compare April 1, 2026 14:49

try {
const result = await buildVeeamFileData(request, bucketMd, log);
return responseContentHeaders(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
return responseContentHeaders(
return await responseContentHeaders(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

😬 🙏

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@francoisferrand that's not an async method ?

@DarkIsDude
Copy link
Copy Markdown
Contributor Author

/create_integration_branches

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 2, 2026

Conflict

A conflict has been raised during the creation of
integration branch w/9.2/bugfix/CLDSRV-878/use-sur-date with contents from bugfix/CLDSRV-878/use-sur-date
and development/9.2.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 git fetch
 git checkout -B w/9.2/bugfix/CLDSRV-878/use-sur-date origin/development/9.2
 git merge origin/bugfix/CLDSRV-878/use-sur-date
 # <intense conflict resolution>
 git commit
 git push -u origin w/9.2/bugfix/CLDSRV-878/use-sur-date

The following options are set: create_integration_branches

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 2, 2026

Conflict

A conflict has been raised during the creation of
integration branch w/9.3/bugfix/CLDSRV-878/use-sur-date with contents from w/9.2/bugfix/CLDSRV-878/use-sur-date
and development/9.3.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 git fetch
 git checkout -B w/9.3/bugfix/CLDSRV-878/use-sur-date origin/development/9.3
 git merge origin/w/9.2/bugfix/CLDSRV-878/use-sur-date
 # <intense conflict resolution>
 git commit
 git push -u origin w/9.3/bugfix/CLDSRV-878/use-sur-date

The following options are set: create_integration_branches

@DarkIsDude
Copy link
Copy Markdown
Contributor Author

/create_pull_requests

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 2, 2026

Conflict

A conflict has been raised during the creation of
integration branch w/9.4/bugfix/CLDSRV-878/use-sur-date with contents from w/9.3/bugfix/CLDSRV-878/use-sur-date
and development/9.4.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 git fetch
 git checkout -B w/9.4/bugfix/CLDSRV-878/use-sur-date origin/development/9.4
 git merge origin/w/9.3/bugfix/CLDSRV-878/use-sur-date
 # <intense conflict resolution>
 git commit
 git push -u origin w/9.4/bugfix/CLDSRV-878/use-sur-date

The following options are set: create_pull_requests, create_integration_branches

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 2, 2026

Integration data created

I have created the integration data for the additional destination branches.

The following branches will NOT be impacted:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.8
  • development/9.0

Follow integration pull requests if you would like to be notified of
build statuses by email.

The following options are set: create_pull_requests, create_integration_branches

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 2, 2026

Waiting for approval

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

  • the author

  • 2 peers

The following options are set: create_pull_requests, create_integration_branches

@DarkIsDude
Copy link
Copy Markdown
Contributor Author

/approve

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 2, 2026

Build failed

The build for commit did not succeed in branch bugfix/CLDSRV-878/use-sur-date

The following options are set: approve, create_pull_requests, create_integration_branches

@bert-e
Copy link
Copy Markdown
Contributor

bert-e commented Apr 2, 2026

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/9.1

  • ✔️ development/9.2

  • ✔️ development/9.3

  • ✔️ development/9.4

The following branches have NOT changed:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.8
  • development/9.0

Please check the status of the associated issue CLDSRV-878.

Goodbye darkisdude.

The following options are set: approve, create_pull_requests, create_integration_branches

@bert-e bert-e merged commit dbedc1f into development/9.1 Apr 2, 2026
86 of 95 checks passed
@bert-e bert-e deleted the bugfix/CLDSRV-878/use-sur-date branch April 2, 2026 16:31
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.

4 participants