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

Fix functional test by dispatch trigger #5712

Merged
merged 2 commits into from
Jun 14, 2023
Merged

Conversation

youngbupark
Copy link

@youngbupark youngbupark commented Jun 13, 2023

Description

We need to use javascript syntax for github-actions, not bash commands.

Issue reference

Fixes: #issue_number

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 254cf6f

Summary

🛠️🧪🔄

Improved the functional-test workflow for pull requests by using a newer action and a built-in module. This change affects the .github/workflows/functional-test.yaml file.

We are the functional-test warriors
We use the latest github-script to fight
We set up the checkout target with fs
We test the pull requests in the night

Walkthrough

  • Simplify the uses field of the Set up checkout target (repository_dispatch) step to use the major version tag of the actions/github-script action (link)
  • Fix the environment variable setting for Windows runners by using the fs module instead of the echo command in the Set up checkout target (repository_dispatch) step (link)
  • Use the testPayload object to get the pull request information for the repository_dispatch event in the Set up checkout target (repository_dispatch) step (link)

@youngbupark youngbupark requested a review from a team as a code owner June 13, 2023 23:28
@youngbupark youngbupark changed the title fix functional test by dispatch trigger Fix functional test by dispatch trigger Jun 13, 2023
@github-actions
Copy link

github-actions bot commented Jun 13, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref 254cf6f
Unique ID 738529298b
Image tag pr-738529298b
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • 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-738529298b
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-738529298b
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-738529298b

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 samples functional tests...
⌛ Starting corerp functional tests...
⌛ Starting ucp functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ corerp functional tests succeeded

@github-actions
Copy link

github-actions bot commented Jun 13, 2023

Test Results

2 699 tests  ±0   2 692 ✔️ ±0   1m 55s ⏱️ -5s
   239 suites ±0          7 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit 88661c7. ± Comparison against base commit dc49de4.

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/82ee2fcc-2b90-47c9-a2d1-977783ee6da8
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/82ee2fcc-2b90-47c9-a2d1-977783ee6da8#01
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/4b357d2f-f928-4dd3-82f8-0e7c51f2db72
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/4b357d2f-f928-4dd3-82f8-0e7c51f2db72#01

♻️ This comment has been updated with latest results.

@github-actions
Copy link

63.8

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.8 %
  • main branch coverage: 63.8 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@github-actions
Copy link

github-actions bot commented Jun 13, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref 88661c7
Unique ID 0e875b6fcd
Image tag pr-0e875b6fcd
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • 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-0e875b6fcd
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-0e875b6fcd
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-0e875b6fcd

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
⌛ Starting corerp functional tests...
⌛ Starting samples functional tests...
⌛ Starting ucp functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ corerp functional tests succeeded

@github-actions
Copy link

63.8

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.8 %
  • main branch coverage: 63.8 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@youngbupark youngbupark merged commit bba2be0 into main Jun 14, 2023
@youngbupark youngbupark deleted the youngp/fix-ok-to-test branch June 14, 2023 00:28
nithyatsu pushed a commit that referenced this pull request Jun 21, 2023
# Description

We need to use javascript syntax for github-actions, not bash commands.

## Issue reference

<!--
We strive to have all PR being opened based on an issue, where the
problem or feature have been discussed prior to implementation.
-->

Fixes: #issue_number

## 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 254cf6f</samp>

### Summary
🛠️🧪🔄

<!--
1. 🛠️ - This emoji represents fixing or repairing something, which is
what the step did by using the latest action and the `fs` module to
avoid errors and bugs.
2. 🧪 - This emoji represents testing or experimenting, which is what the
functional-test workflow does by running tests on different platforms
and browsers.
3. 🔄 - This emoji represents updating or refreshing something, which is
what the step did by using the latest version of the action and the `fs`
module to ensure compatibility and performance.
-->
Improved the functional-test workflow for pull requests by using a newer
action and a built-in module. This change affects the
`.github/workflows/functional-test.yaml` file.

> _We are the functional-test warriors_
> _We use the latest `github-script` to fight_
> _We set up the checkout target with `fs`_
> _We test the pull requests in the night_

### Walkthrough
* Simplify the `uses` field of the `Set up checkout target
(repository_dispatch)` step to use the major version tag of the
`actions/github-script` action
([link](https://github.com/project-radius/radius/pull/5712/files?diff=unified&w=0#diff-c79f364a9293abaaa8595776b74674e24bec6287834e63ab8aa7aec6a42f0dbcL91-R91))
* Fix the environment variable setting for Windows runners by using the
`fs` module instead of the `echo` command in the `Set up checkout target
(repository_dispatch)` step
([link](https://github.com/project-radius/radius/pull/5712/files?diff=unified&w=0#diff-c79f364a9293abaaa8595776b74674e24bec6287834e63ab8aa7aec6a42f0dbcL97-R103))
* Use the `testPayload` object to get the pull request information for
the `repository_dispatch` event in the `Set up checkout target
(repository_dispatch)` step
([link](https://github.com/project-radius/radius/pull/5712/files?diff=unified&w=0#diff-c79f364a9293abaaa8595776b74674e24bec6287834e63ab8aa7aec6a42f0dbcL97-R103))
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