Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove location from scaffolded app #5600

Merged
merged 1 commit into from
May 25, 2023

Conversation

ytimocin
Copy link
Contributor

@ytimocin ytimocin commented May 25, 2023

Description

Removing location from scaffolded application. app.bicep has location but docs don't show location in the app.bicep.

Issue reference

Fixes: #5601

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Adds necessary unit tests for change
  • Adds necessary E2E tests for change
  • Unit tests passing
  • Extended the documentation / Created issue for it

Auto-generated summary

🤖 Generated by Copilot at ea6ec87

Summary

🗑️🛠️📝

Simplified and improved rad CLI setup command by removing unused field and fixing comment indentation in config templates.

rad-config.yaml
Simpler and clearer now
Autumn leaves of code

Walkthrough

  • Remove redundant location field from rad-config.yaml template (link)
  • Fix indentation of comment explaining trailing newline in rad.yaml template (link)

@ytimocin ytimocin requested a review from a team as a code owner May 25, 2023 19:46
@github-actions
Copy link

github-actions bot commented May 25, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref ea6ec87
Unique ID 383c75f6c9
Image tag pr-383c75f6c9
Click here to see the list of tools in the current test run
  • KinD: v0.18.0
  • Dapr: 1.10.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.0.0
  • recipe location radiusdev.azurecr.io/test/functional/corerp/recipes/<name>:pr-383c75f6c9
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-383c75f6c9
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-383c75f6c9

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting ucp functional tests...
⌛ Starting corerp functional tests...
⌛ Starting samples functional tests...
✅ ucp functional tests succeeded
✅ samples functional tests succeeded
❌ corerp functional test failed. Please check the logs for more details
⌛ Starting corerp functional tests...
❌ corerp functional test failed. Please check the logs for more details
⌛ Starting corerp functional tests...
✅ corerp functional tests succeeded

@github-actions
Copy link

Test Results

2 731 tests  ±0   2 724 ✔️ ±0   1m 54s ⏱️ -9s
   243 suites ±0          7 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit ea6ec87. ± Comparison against base commit 2352ce6.

This pull request removes 2 and adds 2 tests. Note that renamed tests count towards both.
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/c204960c-f42e-4d53-8f5e-8d4b1da596d8
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/c204960c-f42e-4d53-8f5e-8d4b1da596d8#01
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/33d926be-5dfc-4d71-b7b7-b6e80280b63f
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/33d926be-5dfc-4d71-b7b7-b6e80280b63f#01

@github-actions
Copy link

63.7

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 63.7 %
  • main branch coverage: 63.7 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@ytimocin ytimocin merged commit c715d39 into main May 25, 2023
@ytimocin ytimocin deleted the ytimocin/scaffoldAppRemoveLocation branch May 25, 2023 21:05
lakshmimsft pushed a commit that referenced this pull request May 26, 2023
# Description
Removing location from scaffolded application. `app.bicep` has location
but docs don't show location in the `app.bicep`.

## Issue reference
Fixes: #5601

## Checklist

Please make sure you've completed the relevant tasks for this PR, out of
the following list:

* [ ] Code compiles correctly
* [ ] Adds necessary unit tests for change
* [ ] Adds necessary E2E tests for change
* [ ] Unit tests passing
* [ ] Extended the documentation / Created issue for it

## Auto-generated summary

<!--
GitHub Copilot for docs will auto-generate a summary of the PR
-->

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at ea6ec87</samp>

### Summary
🗑️🛠️📝

<!--
1. 🗑️ - This emoji conveys the idea of removing or deleting something,
which is what the first change did by removing an unnecessary field from
the `rad-config.yaml` template.
2. 🛠️ - This emoji conveys the idea of fixing or repairing something,
which is what the second change did by fixing the comment indentation in
the `rad.yaml` template.
3. 📝 - This emoji conveys the idea of writing or editing something,
which is what both changes did by modifying the code of the templates.
-->
Simplified and improved `rad` CLI setup command by removing unused field
and fixing comment indentation in config templates.

> _`rad-config.yaml`_
> _Simpler and clearer now_
> _Autumn leaves of code_

### Walkthrough
* Remove redundant location field from rad-config.yaml template
([link](https://github.com/project-radius/radius/pull/5600/files?diff=unified&w=0#diff-1b0ac5c011aaaf6673a23365f05fe4d2ebdc793c135984d7b3410e59ef92fa75L33))
* Fix indentation of comment explaining trailing newline in rad.yaml
template
([link](https://github.com/project-radius/radius/pull/5600/files?diff=unified&w=0#diff-1b0ac5c011aaaf6673a23365f05fe4d2ebdc793c135984d7b3410e59ef92fa75L46-R49))

(cherry picked from commit c715d39)
@lakshmimsft lakshmimsft mentioned this pull request May 26, 2023
5 tasks
lakshmimsft added a commit that referenced this pull request May 26, 2023
# Description

Cherry Picking #5600 into v0.21 release


## Checklist

Please make sure you've completed the relevant tasks for this PR, out of
the following list:

* [ ] Code compiles correctly
* [ ] Adds necessary unit tests for change
* [ ] Adds necessary E2E tests for change
* [ ] Unit tests passing
* [ ] Extended the documentation / Created issue for it

## Auto-generated summary

<!--
GitHub Copilot for docs will auto-generate a summary of the PR
-->

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at 50aa7d5</samp>

### Summary
📝🐛🧪

<!--
1. 📝 - This emoji represents documentation, which is one of the aspects
that was updated in the workflow.
2. 🐛 - This emoji represents bug fixes, which is another aspect that was
addressed in the workflow by removing the location field and fixing the
newline issue.
3. 🧪 - This emoji represents testing, which is the third aspect that was
improved in the workflow by aligning the validation tool with the radius
CLI tool.
-->
Update workflow and templates to match radius CLI release/0.21. This
improves the project's documentation, validation, and configuration.

> _To keep the project in sync_
> _They updated the docs and the `rad` link_
> _They removed location_
> _And fixed newline creation_
> _In the setup package templates with a wink_

### Walkthrough
* Align documentation and sample code with release candidate version of
radius CLI tool
([link](https://github.com/project-radius/radius/pull/5604/files?diff=unified&w=0#diff-4f41a75886a1a479805bae1b7fb335479735aa7740e02b9e5c19992ead18f73eL40-R40),
[link](https://github.com/project-radius/radius/pull/5604/files?diff=unified&w=0#diff-4f41a75886a1a479805bae1b7fb335479735aa7740e02b9e5c19992ead18f73eL47-R47),
[link](https://github.com/project-radius/radius/pull/5604/files?diff=unified&w=0#diff-4f41a75886a1a479805bae1b7fb335479735aa7740e02b9e5c19992ead18f73eL60-R60))
* Remove location field from application.yaml template in setup package
([link](https://github.com/project-radius/radius/pull/5604/files?diff=unified&w=0#diff-1b0ac5c011aaaf6673a23365f05fe4d2ebdc793c135984d7b3410e59ef92fa75L30))
* Remove trailing newline in rad.yaml template in setup package
([link](https://github.com/project-radius/radius/pull/5604/files?diff=unified&w=0#diff-1b0ac5c011aaaf6673a23365f05fe4d2ebdc793c135984d7b3410e59ef92fa75L43-R46))

---------

Co-authored-by: Yetkin Timocin <[email protected]>
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.

Remove location from scaffolded application
4 participants