Skip to content

squid: Unpin botocore - #71207

Closed
adamemerson wants to merge 6 commits into
ceph:squidfrom
adamemerson:wip-rgw-unpin-botocore-squid
Closed

adamemerson wants to merge 6 commits into
ceph:squidfrom
adamemerson:wip-rgw-unpin-botocore-squid

Conversation

@adamemerson

Copy link
Copy Markdown
Contributor

Unpin Squid's s3-tests botocore dependency. The pinned version is interfering with the ability to backport some tests.

This is not a backport from Ceph. The fixes come from the s3-tests repository.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions github-actions Bot added this to the squid milestone Aug 20, 2026
@adamemerson adamemerson added rgw tests wip-aemerson2-testing More testing by adamemerson and removed rgw tests labels Aug 20, 2026
@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 20, 2026
…ts()

> botocore.exceptions.ParamValidationError: Parameter validation failed:
> Unknown parameter in input: "Bucket", must be one of: MaxBuckets, ContinuationToken, Prefix, BucketRegion

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 41b7297e7af6c1c794c075249732ebd6d8845f98)

Conflicts:
	src/test/rgw/s3-tests/s3tests_boto3/functional/test_iam.py
 - Renamed

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
work around sns failures due to default region_name='':

> ERROR s3tests_boto3/functional/test_sns.py::test_account_topic_publish - botocore.exceptions.EndpointResolutionError: Invalid region: region was not a valid DNS name.
> ERROR s3tests_boto3/functional/test_sns.py::test_cross_account_topic_publish - botocore.exceptions.EndpointResolutionError: Invalid region: region was not a valid DNS name.

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 48068f427dfbac7bf4f9286cee26e9d19ac43e6e)

Conflicts:
	src/test/rgw/s3-tests/s3tests_boto3/functional/__init__.py
 - Renamed
	src/test/rgw/s3-tests/s3tests_boto3/functional/test_sns.py
 - Renamed

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 25a502872b7043222ae5c37e1a2ce31e4cef5000)

Conflicts:
	src/test/rgw/s3-tests/s3tests_boto3/functional/test_s3.py
 - Renamed
 - squid predates the upstream split of test_bucket_policy_put_obj_s3_noenc()
   into a separate test_bucket_policy_put_obj_s3_incorrect_algo_sse_s3(), so
   that hunk is dropped and the surviving _noenc() is converted in place

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit e786aa4f4279e23cd510dd404321c575c64a3425)

Conflicts:
	src/test/rgw/s3-tests/s3tests_boto3/functional/test_headers.py
 - Renamed
	src/test/rgw/s3-tests/s3tests_boto3/functional/test_s3.py
 - Renamed
 - squid lacks test_cors_presigned_{get,put}_object{,_tenant}_v2(), so those
   four hunks are dropped; only the two test_headers.py marks apply

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
…_create_bad_contentlength_negative

if tls is enabled, boto will switch to STREAMING-UNSIGNED-PAYLOAD-TRAILER
and omit the provided content-length header. this leads to test failure:

> ________________ test_object_create_bad_contentlength_negative _________________
>       e = assert_raises(ClientError, client.put_object, Bucket=bucket_name, Key=key_name, ContentLength=-1)
> AssertionError: ClientError not raised

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit a40c28fcc35a363f3320de9ce6586c4ca7fe09ef)

Conflicts:
	src/test/rgw/s3-tests/s3tests_boto3/functional/test_headers.py
 - Renamed

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 88daca5095c6163b2a98f524a094b788418bf64c)

Conflicts:
	src/test/rgw/s3-tests/requirements.txt
 - squid dropped boto2 before its snapshot, so the upstream hunk context
   (boto >=2.6.0) is absent; applied by hand

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
@adamemerson
adamemerson force-pushed the wip-rgw-unpin-botocore-squid branch from 5687c44 to 758d791 Compare August 20, 2026 21:44
@adamemerson adamemerson removed the wip-aemerson2-testing More testing by adamemerson label Aug 26, 2026
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@cbodley

cbodley commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

thanks @adamemerson, i pulled these commits into #65932

@adamemerson
adamemerson deleted the wip-rgw-unpin-botocore-squid branch August 26, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase releng-audit-fail Release engineering: failed backport verification audit. rgw tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants