Repository navigation
Bump requests from 2.25.0 to 2.31.0 in /test - #143
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [requests](https://github.com/psf/requests) from 2.25.0 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.25.0...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
|
1 task done
bhouse-nexthop
added a commit
that referenced
this pull request
Nov 14, 2026
#### Why I did it Adds Renovate to sonic-restapi, set up as in sonic-mgmt-common and sonic-gnmi, as described in the [dependency hygiene HLD](sonic-net/SONiC#2531). Third party Go modules and GitHub Actions here are updated by hand, so security fixes arrive late. Replaces #193, Renovate's onboarding PR, which should be closed without merging. #### How I did it - **`renovate.json`:** extends the shared preset, and ignores the `go` directive and the in-repository `swsscommon` module. The `dockerfile` manager is off: no Dockerfile here ships (sonic-buildimage builds the REST API container from its own), `Dockerfile.build` and `Dockerfile.test` follow the build container's distribution, and the rest are unused. Renovate updates `go.sum` itself: `go.mod` replaces `swsscommon` with `../swsscommon`, which is in this repository, and no module is patched or copied into `vendor/`. - **`Dockerfile.build`:** builds in the `sonic-slave-trixie` container for the target branch with `GOTOOLCHAIN=local`, instead of `debian:bookworm` with a downloaded Go 1.25.9. A `go.mod` that needs a newer Go than the container's then fails. The bookworm container's Go is too old for `go.mod`, and sonic-buildimage builds the REST API container on trixie. - **`Dockerfile.test`, `dependencies.conf`:** the test image and the downloaded sonic-buildimage debs move to trixie, to run what the trixie build produces. - **`azurepipeline.yml`, `build.sh`:** pass the target branch to the build; a feature branch push, which has no sonic-slave container of its own, uses master's. A push to a `renovate/*` branch starts no branch build: Renovate's branches build as pull requests, and a branch build would report under the same `Azure.sonic-restapi` check name. The job frees disk on the hosted agent for the sonic-slave container, and stops archiving the build image, which is now several GB of sonic-slave layers that nothing downloads. #### How to verify it - `renovate-config-validator --strict` passes. - CI here builds in `sonic-slave-trixie:master` and passes. - In `sonic-slave-trixie:master`, the build uses the container's Go and downloads none, and `go get` of a module update updates `go.mod` and `go.sum`. #### Which release branch to backport (provide reason below if selected) None. Release branches carry no Renovate configuration yet. #### Tested branch - [x] master #### Description for the changelog Add Renovate configuration, and build with the sonic-slave container's Go only. #### Before merging: repository admin steps 1. **Prerequisite PR:** sonic-net/sonic-pipelines#255 (pins GitHub Actions to digests; without it every Actions update fails the required Semgrep check). 2. **Reviewer team:** Settings → Collaborators and teams → add `sonic-net/sonic-security-wg` with **Read**. Renovate requests its review on every PR, and a review can only be requested from a team with access. 3. **Dependabot:** Leave Dependabot alerts **and** Dependabot security updates on. Renovate does not take Python packages yet, so Python security fixes (`test/requirements.txt`) still come from Dependabot; a fix for an Action or Go module may come from both bots, and the reviewer closes Dependabot's. 4. **Robot merge on `master`:** Settings → Branches → the `master` rule → under "Require a pull request before merging", make sure "Allow specified actors to bypass required pull requests" lists `sonic-net/sonic-automation` (its only member is `mssonicbld`); add it if not. The merge robot merges a patch or minor security update without a review; anything else waits for a reviewer. 5. **Renovate branches:** A classic branch protection rule matches every branch (Renovate's `renovate/configure` branch shows as protected, requiring EasyCLA, also for administrators). It rejects every commit Renovate adds to an existing branch, so Renovate can open a PR but never rebase or update it. Replace it with a ruleset that covers only what it covered: Settings → Rules → Rulesets → New branch ruleset; enforcement Active; target **Include all branches**; **Exclude by pattern** `renovate/**` and `dependabot/**` (Dependabot keeps opening Python security updates here, and the rule blocks its rebases the same way), `master`, and `20*` (the release branches 201911 to 202605, which have their own rules). A ruleset applies on top of classic rules rather than giving way to a more specific one, so a branch left in would get both. Rules: require status check EasyCLA, and whatever review or force-push settings the classic rule has. Bypass list: the `sonic-automation` team, **For pull requests only**; the classic rule applies to administrators today, so add the **Repository admin** role only if admins should bypass it. Then delete the classic rule. 6. **Onboarding PR:** close #193 ("Configure Renovate") without merging. After merging: Renovate opens a Dependency Dashboard issue. The one open Dependabot PR (#143) is a pip update, which stays with Dependabot. Signed-off-by: Brad House <bhouse@nexthop.ai>
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.
Bumps requests from 2.25.0 to 2.31.0.
Release notes
Sourced from requests's releases.
... (truncated)
Changelog
Sourced from requests's changelog.
... (truncated)
Commits
147c851v2.31.074ea7cfMerge pull request from GHSA-j8r2-6x86-q33q3022253test on pypy 3.8 and pypy 3.9 on windows and macos (#6424)b639e66test on py3.12 (#6448)d3d5044Fixed a small typo (#6452)2ad18e0v2.30.0f2629e9Remove strict parameter (#6434)87d63dev2.29.051716c4enable the warnings plugin (#6416)a7da1abtry on ubuntu 22.04 (#6418)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.