Skip to content

Dependabot: urllib3 and boto3 updates - #55

Merged
jemaltahir merged 1 commit into
masterfrom
fix-dependabot-urllib3
Jan 20, 2026
Merged

jemaltahir merged 1 commit into
masterfrom
fix-dependabot-urllib3

Conversation

@trispera

@trispera trispera commented Jan 20, 2026 •

Copy link
Copy Markdown
Member

Summary by Sourcery

Update dependencies and container base images to support newer urllib3 and boto3 versions.

New Features:

  • Configure AWS checksum calculation and validation via environment variables for S3 mounts.

Enhancements:

  • Upgrade urllib3 and boto3 dependency versions in setup configuration.
  • Update filer and taskmaster container images to Alpine 3.19 and install Python and pip explicitly.
  • Adjust pip installation commands to be compatible with system package management constraints.

@sourcery-ai

sourcery-ai Bot commented Jan 20, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates base Alpine images and pip usage in Dockerfiles, upgrades urllib3 and boto3 dependency versions, and configures new AWS checksum-related environment variables required for the newer boto3/urllib3 stack.

Sequence diagram for S3 mount creation with AWS checksum configuration

sequenceDiagram
    participant Task as taskmaster
    participant Filer as filer_service
    participant Env as container_env
    participant Boto3 as boto3_client
    participant S3 as aws_s3

    Task->>Filer: request_add_s3_mount(bucket, path)
    Filer->>Env: getEnv()
    Env-->>Filer: env_list
    Filer->>Env: append AWS_CONFIG_FILE=/aws/config
    Filer->>Env: append AWS_REQUEST_CHECKSUM_CALCULATION=WHEN_REQUIRED
    Filer->>Env: append AWS_RESPONSE_CHECKSUM_VALIDATION=WHEN_REQUIRED
    Filer-->>Task: s3_mount_spec_with_env

    Task->>Boto3: perform_s3_operation(s3_mount_spec_with_env)
    Boto3->>Boto3: read checksum env settings
    Boto3->>S3: send_request_with_checksum
    S3-->>Boto3: response_with_checksum
    Boto3-->>Task: validated_response
Loading

File-Level Changes

Change Details Files
Modernize builder and runtime Docker images and pip usage.
  • Bump base image from alpine:3.10 to alpine:3.19 for both builder and runtime stages in filer and taskmaster Dockerfiles.
  • Install py3-pip alongside python3 via apk to rely on distro-provided pip.
  • Add --break-system-packages to pip install and pip upgrade commands to align with newer Python packaging behavior.
containers/filer.Dockerfile
containers/taskmaster.Dockerfile
Upgrade HTTP and AWS SDK dependencies to newer versions.
  • Update urllib3 from 1.26.19 to 2.6.3 in INSTALL_DEPS.
  • Update boto3 from 1.16.18 to 1.42.30 in INSTALL_DEPS.
setup.py
Configure AWS checksum behavior required by newer AWS SDK versions.
  • Add AWS_REQUEST_CHECKSUM_CALCULATION environment variable set to WHEN_REQUIRED in S3 mount configuration.
  • Add AWS_RESPONSE_CHECKSUM_VALIDATION environment variable set to WHEN_REQUIRED in S3 mount configuration.
src/tesk_core/filer_class.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • Given that py3-pip is now installed via apk, consider avoiding --break-system-packages (and possibly the pip upgrade) in the builder and runtime stages, or alternatively isolating installs in a virtualenv, to keep the system Python environment aligned with the package manager.
  • The new AWS checksum-related environment variables in add_s3_mount are currently hardcoded strings in-line; consider centralizing these env var names/values as constants to reduce the risk of typos and make future tweaks easier.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Given that `py3-pip` is now installed via `apk`, consider avoiding `--break-system-packages` (and possibly the pip upgrade) in the builder and runtime stages, or alternatively isolating installs in a virtualenv, to keep the system Python environment aligned with the package manager.
- The new AWS checksum-related environment variables in `add_s3_mount` are currently hardcoded strings in-line; consider centralizing these env var names/values as constants to reduce the risk of typos and make future tweaks easier.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@jemaltahir jemaltahir left a comment

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.

LGTM

@jemaltahir
jemaltahir merged commit 649d493 into master Jan 20, 2026
1 of 11 checks passed
@trispera
trispera deleted the fix-dependabot-urllib3 branch January 21, 2026 14:28
trispera added a commit to elixir-cloud-aai/TESK that referenced this pull request Jan 22, 2026
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