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

feat(STONEINTG-901): added debugging page for integration tests #93

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

chipspeak
Copy link
Contributor

  • Added a new page for debugging integration tests via console
  • Added supporting screenshots
  • Updated nav accordingly
  • Tested via local build

Copy link

🚀 Preview is available at https://pr-93--konflux-docs.netlify.app

Comment on lines 13 to 14
. Identify the IntegrationTestScenario that has failed. This can be found in the console by navigating to
Applications/your_application_name/activity and select "Pipeline Runs" under "Activity By". Your view should be similar to the below image.
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to separate these steps out similar to how the verification steps have been listed for other integration test pages?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing! Just to make sure I have it right, more like a single sentence per step?

+
image::testfailed.png[role="border" alt="Test Failed"]

. In the above example the output suggests that the pipelineRun is missing an expected parameter, "username". To edit the integration test, scroll down to the "Integration Test" field and click on the listed test. This should take you to a view similar to the one seen below.
Copy link
Member

Choose a reason for hiding this comment

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

Are there different types of failure mechanisms? Are you only trying to show users how to debug and resolve missing parameter issues?

I feel like this needs to be more generic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The intention was to provide a step-by-step resolution of an example issue but is it the case where broader is better here? I could instead point to the editing page for clarity or else make clearer that this is just one example of an issue and how to resolve it?

Comment on lines 29 to 35
. Click on the "Actions" button seen above and select "Edit". This should take you to the below view.

+
image::edittest.png[role="border" alt="Edit Test"]

. In this example we will need to click on the "Parameters" dropdown and add the parameter expected by the pipeline run.
In this case it's "username" and we will set the value to "testuser". Once you've completed your edits, click "Save Changes" at the bottom of the screen to update the integration test.
Copy link
Member

Choose a reason for hiding this comment

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

This is at least partially invalidated by the recent PR #92. Can we instead integrate that in here and/or add additional information to that page related to these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it feels like the logical thing to do would be to point to link to the editing for the relevant steps and elaborate as needed if that makes sense?

. In this example we will need to click on the "Parameters" dropdown and add the parameter expected by the pipeline run.
In this case it's "username" and we will set the value to "testuser". Once you've completed your edits, click "Save Changes" at the bottom of the screen to update the integration test.

. Return to the activity view mentioned in step 1 and click on the 3 verticle dots on the right side of the pipeline run. Within this expanded menu, click "rerun". This will rerun the integration test with our updated parameter. This should result in a success as seen in the below image. For a more comprehensive, CLI-focused explanation of rerunning tests, click xref:/how-tos/testing/integration/rerunning.adoc[here].
Copy link
Member

Choose a reason for hiding this comment

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

Can we instead add information on how to rerun from the UI to https://konflux-ci.dev/docs/how-tos/testing/integration/rerunning/? Then we can just simply link users there to rerun the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that makes total sense. I can add the supporting text to those steps as an alternate approach to CLI. I was wondering though, is there an argument in situations like this for a separate subpage for CLI and UI respectively? To me that would provide a bit more clarity for a user.

@Chr1st1anSears Chr1st1anSears requested a review from missmesss July 24, 2024 16:44
@Chr1st1anSears
Copy link
Contributor

Chr1st1anSears commented Jul 24, 2024

@dirgim I added a fellow writer, Oss (@missmesss) as a reviewer. She'll provide a docs team review 👍

@missmesss
Copy link
Contributor

@Chr1st1anSears @gtrivedi88 I'll review this one, no worries.

@dirgim Oftentimes writers' reviews come last, after the tech reviews. I see Andrew suggests some changes to the procedures, so I'll keep an eye on this PR and review the changes when they're closer to being finalized, if you don't mind.

Copy link

🚀 Preview is available at https://pr-93--konflux-docs.netlify.app

Copy link

🚀 Preview is available at https://pr-93--konflux-docs.netlify.app

.vscode/settings.json Outdated Show resolved Hide resolved
Copy link

🚀 Preview is available at https://pr-93--konflux-docs.netlify.app

Copy link

🚀 Preview is available at https://pr-93--konflux-docs.netlify.app

Copy link
Contributor

@dirgim dirgim left a comment

Choose a reason for hiding this comment

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

LGTM from my point of view

Copy link
Member

@arewm arewm left a comment

Choose a reason for hiding this comment

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

Thanks!

@arewm arewm merged commit 17bea26 into konflux-ci:main Aug 1, 2024
2 checks passed
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.

6 participants