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(app-testing): snapshot failure capture #15211

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

github-actions[bot]
Copy link
Contributor

This PR is an automated snapshot update request. Please review the changes and merge if they are acceptable or find you bug and fix it.

@github-actions github-actions bot requested a review from a team as a code owner May 17, 2024 07:31
@github-actions github-actions bot force-pushed the app-testing/edge-from-edge branch 6 times, most recently from 855ab38 to 0c554b7 Compare May 23, 2024 07:35
@github-actions github-actions bot force-pushed the app-testing/edge-from-edge branch 5 times, most recently from 55837fe to 48bd802 Compare May 30, 2024 07:35
@github-actions github-actions bot force-pushed the app-testing/edge-from-edge branch from 48bd802 to a66cb46 Compare May 31, 2024 07:35
@y3rsh y3rsh self-assigned this May 31, 2024
@github-actions github-actions bot force-pushed the app-testing/edge-from-edge branch 7 times, most recently from bd7a503 to 0b04c7f Compare June 8, 2024 07:35
@github-actions github-actions bot force-pushed the app-testing/edge-from-edge branch 2 times, most recently from e808f52 to 8ee0f1b Compare June 12, 2024 07:35
@github-actions github-actions bot force-pushed the app-testing/edge-from-edge branch from 8ee0f1b to 912a463 Compare June 13, 2024 07:35
sanni-t added a commit that referenced this pull request Jun 13, 2024
Closes AUTH-486

# Overview

Fixes the issues caught in #15211 

Previously, RTP validation occurred as part of a simulating runner's run
process. This run process executes the protocol inside a separate task,
and any errors raised while running the task are wrapped and presented
in the 'Rune result" as an analysis error.

Now that RTP validation is happening as part of the runner load process,
we have to handle the error raised in the load process in a similar way
as well. This PR adds this missing error handling in `analyze` cli
function.

# Test Plan

- [ ] Upload a protocol with incorrect RTP definition and verify that
the in-app analysis fails with the correct error and no traceback in the
error pop-up window.
- [ ] Verify that the static data of the above protocol- metadata,
requirements and files are populated in the failed analysis
- [ ] Verify that any other, non-RTP-related errors raised during the
runner load process are handled just like they would have in the
previous stable software.

# Risk assessment

Medium. Updates a critical part of in-app analysis, but is a fix and is
isolated to error handling of `runner.load` only.
@github-actions github-actions bot force-pushed the app-testing/edge-from-edge branch from 912a463 to 7e1b9a0 Compare June 13, 2024 17:19
Copy link
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed with @y3rsh, @sanni-t, and @CaseyBatten in Slack.

test_analysis_snapshot[baf79d9b4a][Flex_S_v2_15_P1000S_None_SimpleNormalizeLongRight].json has tip length differences that @CaseyBatten is looking into.

@SyntaxColoring SyntaxColoring merged commit 4c88402 into edge Jun 13, 2024
@SyntaxColoring SyntaxColoring deleted the app-testing/edge-from-edge branch June 13, 2024 19:09
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.

3 participants