Skip to content

build(deps): remove testify replace, bump go to 1.25.7#11177

Merged
DariuszPorowski merged 3 commits intomainfrom
testify
Feb 6, 2026
Merged

build(deps): remove testify replace, bump go to 1.25.7#11177
DariuszPorowski merged 3 commits intomainfrom
testify

Conversation

@DariuszPorowski
Copy link
Member

Description

This pull request makes a minor change to the go.mod file, specifically by removing a replace directive for the github.com/stretchr/testify dependency. This streamlines the module's dependency management.

Type of change

  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
    • Yes
    • Not applicable
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
    • Yes
    • Not applicable
  • The design document has been reviewed and approved by Radius maintainers/approvers.
    • Yes
    • Not applicable
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
    • Yes
    • Not applicable
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
    • Yes
    • Not applicable
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.
    • Yes
    • Not applicable

@DariuszPorowski DariuszPorowski self-assigned this Feb 5, 2026
@DariuszPorowski DariuszPorowski requested review from a team as code owners February 5, 2026 02:19
@DariuszPorowski DariuszPorowski requested a deployment to external-contributor-approval February 5, 2026 02:19 — with GitHub Actions Waiting
sylvainsf added a commit that referenced this pull request Feb 5, 2026
The approval-gate job was incorrectly requiring approval for PRs from org members
(like PR #11177 from DariuszPorowski).

Root cause: The conditional environment expression evaluated to an empty string ''
for trusted users. However, GitHub Actions treats an empty string as a valid
environment reference (creating an empty-named environment), NOT as 'skip using
an environment'.

Fix: Skip the approval-gate job entirely for trusted users via the 'if' condition,
rather than using a conditional environment. Update the setup job to also allow
needs.approval-gate.result == 'skipped' so downstream jobs proceed correctly.

Signed-off-by: Sylvain Niles <sylvainniles@microsoft.com>
DariuszPorowski pushed a commit that referenced this pull request Feb 5, 2026
…11189)

# Description

Fix the approval-gate job in functional-test-cloud.yaml that was
incorrectly gating PRs from org members (like PR #11177 from
DariuszPorowski).

**Root cause:** The expression `environment: ${{ <condition> && '' ||
'external-contributor-approval' }}` evaluates to an empty string `''`
for trusted users. However, GitHub Actions treats an empty string as a
valid environment reference (creating an empty-named environment), NOT
as "skip using an environment."

**Fix:** Changed the approach to skip the `approval-gate` job entirely
for trusted users via `if` condition, rather than using a conditional
environment. Updated the `setup` job to also allow
`needs.approval-gate.result == 'skipped'` so downstream jobs proceed
correctly.

## Type of change

- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and does not change the functionality of
Radius (issue link optional).

## Contributor checklist
Please verify that the PR meets the following requirements, where
applicable:

- An overview of proposed schema changes is included in a linked GitHub
issue.
    - [ ] Yes <!-- TaskRadio schema -->
    - [x] Not applicable <!-- TaskRadio schema -->
- A design document PR is created in the [design-notes
repository](https://github.com/radius-project/design-notes/), if new
APIs are being introduced.
    - [ ] Yes <!-- TaskRadio design-pr -->
    - [x] Not applicable <!-- TaskRadio design-pr -->
- The design document has been reviewed and approved by Radius
maintainers/approvers.
    - [ ] Yes <!-- TaskRadio design-review -->
    - [x] Not applicable <!-- TaskRadio design-review -->
- A PR for the [samples
repository](https://github.com/radius-project/samples) is created, if
existing samples are affected by the changes in this PR.
    - [ ] Yes <!-- TaskRadio samples-pr -->
    - [x] Not applicable <!-- TaskRadio samples-pr -->
- A PR for the [documentation
repository](https://github.com/radius-project/docs) is created, if the
changes in this PR affect the documentation or any user facing updates
are made.
    - [ ] Yes <!-- TaskRadio docs-pr -->
    - [x] Not applicable <!-- TaskRadio docs-pr -->
- A PR for the [recipes
repository](https://github.com/radius-project/recipes) is created, if
existing recipes are affected by the changes in this PR.
    - [ ] Yes <!-- TaskRadio recipes-pr -->
    - [x] Not applicable <!-- TaskRadio recipes-pr -->

Signed-off-by: Sylvain Niles <sylvainniles@microsoft.com>
@DariuszPorowski DariuszPorowski changed the title build(deps): remove testify replace build(deps): remove testify replace, bump go to 1.25.7 Feb 5, 2026
Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
…ration

Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
…workflow

Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
@DariuszPorowski DariuszPorowski merged commit 28a1147 into main Feb 6, 2026
50 checks passed
@DariuszPorowski DariuszPorowski deleted the testify branch February 6, 2026 20:11
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