Conversation
GitHub's contents API only carries the body of files up to 1MB. Above that the response comes back with `encoding: "none"` and an empty body, and PyGithub's `decoded_content` raises `AssertionError: unsupported encoding: none`. openedx-platform's `uv.lock` crossed that limit on 2026-09-14, going from 1043933 to 1089564 bytes, and the weekly upgrade job has failed on it every run since. The PR still gets created and the reviewers tagged, because the crash is in `verify_upgrade_packages` which runs after that, but the package comparison, the summary comments and the `Ready to Merge` label never happen and the job goes red. Read any file that comes back oversized through the git blobs API instead, which serves base64 up to 100MB. https://github.com/openedx/openedx-platform/actions/runs/35679465605/job/106593046814 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The upgrade workflow installs `edx-repo-tools[pull_request_creator]` from PyPI unpinned, so the uv.lock fix only reaches the repos that need it once a release goes out. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
openedx-platform's
uv.lockis 1089565 bytes, and GitHub's contents API only carries file bodies up to 1MB. Above that it returnsencoding: "none"with an empty body, sodecoded_contentraisesAssertionError: unsupported encoding: noneand_parse_uvdies. The weekly upgrade job has failed there since 2026-09-15. The PR still gets created, but the package comparison, the summary comment and theReady to Mergelabel don't happen._get_file_contentsnow resolves the path in the git tree and reads the blob. The blobs API handles any size up to 100MB.Tested by running
pull_request_creatoragainst openedx-platform with the real upgrade diff. It got through the failing step and posted the package comparison on openedx-platform#39138, since closed.Version bumped to 4.1.1 so this reaches repos through PyPI.
Failing run: https://github.com/openedx/openedx-platform/actions/runs/35679465605/job/106593046814