Skip to content

Do not skip the launcher from e2e tests #4680

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

Draft
wants to merge 44 commits into
base: master
Choose a base branch
from

Conversation

codebien
Copy link
Contributor

What?

Why?

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link
  • I have updated or added an issue to the k6-documentation: grafana/k6-docs#NUMBER if applicable
  • I have updated or added an issue to the TypeScript definitions: grafana/k6-DefinitelyTyped#NUMBER if applicable

Related PR(s)/Issue(s)

olegbespalov and others added 19 commits April 8, 2025 16:31
Decision mechanics if custom k6 build required
Signed-off-by: Pablo Chacin <[email protected]>
Signed-off-by: Pablo Chacin <[email protected]>
Signed-off-by: Pablo Chacin <[email protected]>
Signed-off-by: Pablo Chacin <[email protected]>
Signed-off-by: Pablo Chacin <[email protected]>
Signed-off-by: Pablo Chacin <[email protected]>
@codebien codebien self-assigned this Apr 10, 2025
@@ -20,6 +20,20 @@ func Execute() {
gs.OSExit(newLauncher(gs).launch())
}

func ExecuteForTesting(gs *state.GlobalState) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would pass a testintg.T argument and make the functions fail instead of panic because panic output tends to be very verbose.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. However, I don't plan to keep it in this form, I mostly did it for simplicity. As soon as we have a final version for #4671 then I will move to a real mock directly to some test package. In the end, it is what the component is doing.

But before, I wanted to finish the review of other parts.

@codebien codebien force-pushed the binary-p-run-all-tests branch from 457730f to 65144a1 Compare April 22, 2025 21:08
Base automatically changed from feat/binary-provisioning to master May 2, 2025 11:14
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