Skip to content

Conversation

@leif-scality
Copy link
Contributor

@leif-scality leif-scality commented Oct 20, 2025

Extract fields to be used by cloudserver to write the server access logs

@bert-e
Copy link
Contributor

bert-e commented Oct 20, 2025

Hello leif-scality,

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
Contributor

bert-e commented Oct 20, 2025

Incorrect fix version

The Fix Version/s in issue ARSN-531 contains:

  • None

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

  • 8.2.34

  • 8.3.0

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

@leif-scality leif-scality force-pushed the improvement/ARSN-531-export-server-access-log-fields branch 3 times, most recently from 99b4780 to 7176cb3 Compare October 20, 2025 14:34
@codecov
Copy link

codecov bot commented Oct 20, 2025

Codecov Report

❌ Patch coverage is 63.63636% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.36%. Comparing base (2a414c8) to head (6c46d6c).

Files with missing lines Patch % Lines
lib/auth/AuthInfo.ts 40.00% 15 Missing ⚠️
lib/s3routes/routesUtils.ts 82.60% 4 Missing ⚠️
lib/s3routes/routes.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           development/8.2    #2554      +/-   ##
===================================================
- Coverage            71.40%   71.36%   -0.04%     
===================================================
  Files                  221      221              
  Lines                17816    17865      +49     
  Branches              3681     3691      +10     
===================================================
+ Hits                 12721    12750      +29     
- Misses                5091     5111      +20     
  Partials                 4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@leif-scality leif-scality force-pushed the improvement/ARSN-531-export-server-access-log-fields branch 6 times, most recently from d1b8054 to 77e1009 Compare October 23, 2025 17:03
@leif-scality leif-scality force-pushed the improvement/ARSN-531-export-server-access-log-fields branch from 5ee5876 to 17459f7 Compare November 6, 2025 14:38
@bert-e
Copy link
Contributor

bert-e commented Nov 6, 2025

Incorrect fix version

The Fix Version/s in issue ARSN-531 contains:

  • None

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

  • 8.2.38

  • 8.3.0

  • 8.4.0

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

// called if 'end' is.
currentStream = readable;

storeServerAccessLogFields(response, process.hrtime.bigint());
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is not in the correct place.
It is inside the eachSeries for location, so if there are multiple locations, it will be called multiple times.

It may be better to place it inside:

if (!response.headersSent) {
    response.writeHead(httpCodeOnSucess);
}
`

Copy link
Contributor

Choose a reason for hiding this comment

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

Also (more important), shouldn't this include bytesSent? It is used by objectGet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, calculated the bytesSent using _computeContentLengthFromLocation

@leif-scality leif-scality force-pushed the improvement/ARSN-531-export-server-access-log-fields branch from 17459f7 to d16b7b7 Compare November 14, 2025 15:17
@leif-scality leif-scality force-pushed the improvement/ARSN-531-export-server-access-log-fields branch from d16b7b7 to 6c46d6c Compare November 14, 2025 15:25
storeServerAccessLogFields(
response,
first_byte_sent_timestamp,
err?.name || undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we use err.name instead of err.message that we do in other cases?

_destroyReadable(currentStream);
});

let first_byte_sent_timestamp: bigint = process.hrtime.bigint();
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't here too early to set a value to first_byte_sent_timestamp ?

@bert-e
Copy link
Contributor

bert-e commented Nov 17, 2025

Incorrect fix version

The Fix Version/s in issue ARSN-531 contains:

  • None

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

  • 8.2.39

  • 8.3.0

  • 8.4.0

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

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