Skip to content

[pull] main from radius-project:main - #300

Merged
pull[bot] merged 1 commit into
TheTechOddBug:mainfrom
radius-project:main
Aug 18, 2026
Merged

[pull] main from radius-project:main#300
pull[bot] merged 1 commit into
TheTechOddBug:mainfrom
radius-project:main

Conversation

@pull

@pull pull Bot commented Aug 18, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…ple (#12697)

## Root cause

The repo-wide `Functional Tests - samples-noncloud` job is failing on
`main` since the samples repo was updated
[radius-project/samples#2645](radius-project/samples#2645)
("Modernize demo sample to Radius.* resource types").

radius CI checks out the samples repo at `refs/heads/edge`
(`.github/workflows/functional-test-noncloud.yaml`). That samples PR
merged into `edge`, so CI now pulls a modernized
`samples/demo/app.bicep` that:

- uses `Radius.Core/applications` + `Radius.Compute/containers` at
`2025-08-01-preview` (was `Applications.Core`),
- has **no** `application` parameter (only `environment`),
- names the app/container `demo-${environmentName}` → `demo-tutorial`
for the `tutorial` environment,
- removes the inline `Applications.Datastores/redisCaches` resource
(redis now lives in a separate `app-redis.bicep` this test does not
deploy).

The consuming `Test_FirstApplicationSample` still used the legacy
`Applications.Core` types and app name `demo`, and passed
`--application`, producing a deploy 404 (container created under
`Radius.Compute/containers/demo-tutorial`, app looked up under
`Applications.Core/applications/demo-tutorial`).

## Changes

**`testdata/tutorial-environment.bicep`**
- Modernized to `Radius.Core/environments@2025-08-01-preview` named
`tutorial` with `properties.providers.kubernetes.namespace: 'tutorial'`.
- Removed the redis recipe registration and the now-unused
`registry`/`version` params. `rad deploy` injects the default recipe
pack, which supplies the `Radius.Compute/containers` recipe, so no
explicit pack is needed.

**`tutorial_test.go` (`Test_FirstApplicationSample`)**
- Env-deploy executor no longer passes `registry`/`version` bicep
params.
- App-deploy step drops `.WithApplication(...)`; keeps
`.WithEnvironment("tutorial")`.
- Expected `RPResources` updated: application `demo-tutorial`
(`radius.core/applications`) and container `demo-tutorial`
(`radius.compute/containers`); removed the redis `db` expectation.
- Pod port-forward + K8s validation now target the `demo-tutorial`
resource selector in the environment namespace `tutorial` (recipe-driven
`Radius.Compute/containers` pods land in the env's Kubernetes namespace,
matching existing modern container tests).

This unblocks the repo-wide `samples-noncloud` functional test failure.

## Validation

- `go build ./test/...` passes.
- `go vet ./test/functional-portable/samples/...` passes.
- End-to-end run requires a kind cluster with Radius installed and
`RADIUS_SAMPLES_REPO_ROOT` pointing at a samples `edge` checkout; the
logic mirrors the modernized sample and existing modern
`Radius.Compute/containers` functional tests.

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Aug 18, 2026
@pull pull Bot added the ⤵️ pull label Aug 18, 2026
@pull
pull Bot merged commit 5ba29da into TheTechOddBug:main Aug 18, 2026
3 of 13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant