Skip to content

[Binary provisioning] Exclude fallback path #4730

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

Merged
merged 4 commits into from
Apr 24, 2025

Conversation

codebien
Copy link
Contributor

@codebien codebien commented Apr 23, 2025

What?

Changes to improve the UX.

Why?

There is also a change that skips the launcher very early in the root code. As we are still early days, it might be better if we don't take a risk disrupting the stable execution path.

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)

@codebien codebien added this to the v1.0.0 milestone Apr 23, 2025
@codebien codebien self-assigned this Apr 23, 2025
@codebien codebien force-pushed the binp/general-improvements branch from 506e47e to d3a17d6 Compare April 23, 2025 16:17
@codebien codebien marked this pull request as ready for review April 23, 2025 16:48
@codebien codebien requested a review from a team as a code owner April 23, 2025 16:48
@codebien codebien requested review from mstoykov and removed request for a team April 23, 2025 16:48
reportIssues := "If you encounter any unexpected user experience or something doesn't go as planned," +
" please report it by creating an issue."

l.gs.Logger.Info("Experimental feature for Binary provisioning is enabled." +
Copy link
Contributor

Choose a reason for hiding this comment

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

In #4731 we removed this information message.

@codebien codebien force-pushed the binp/general-improvements branch from d3a17d6 to 3c5bb93 Compare April 24, 2025 10:28
@codebien codebien force-pushed the binp/general-improvements branch from 3c5bb93 to 504e761 Compare April 24, 2025 10:32
Error("Failed to provision a k6 binary with required dependencies." +
" Please, make sure to report this issue by opening a bug report.")
Error("Failed to provision a k6 binary with required dependencies. " +
reportIssues)
Copy link
Contributor

@pablochacin pablochacin Apr 24, 2025

Choose a reason for hiding this comment

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

We shouldn't reuse report Issues here as it will produce this weird message. We are reporting an error and still saying If you encounter any unexpected user experience or something didn't go as planned

ERRO[0000] Failed to provision a k6 binary with required dependencies. If you encounter any unexpected user experience or something didn't go as planned, please report it by creating an issue.  error="invalid build parameters: cannot satisfy dependency : k6/x/faker >0.5.0"
Suggested change
reportIssues)
" Please, make sure to report this issue by opening a bug report.")

Debug("Binary provisioning feature is enabled.")
Debug("Binary Provisioning feature is enabled.")

reportIssues := "If you encounter any unexpected user experience or something didn't go as planned," +
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this message made more sense when we had the INFO message about binary provisioning enable. Now I don't see we should use it. See my comments on the error messages.

Error("Binary provisioning is enabled but it failed to analyze the dependencies." +
" Please, make sure to report this issue by opening a bug report.")
Error("Binary Provisioning is enabled but it failed to analyze the dependencies. " +
reportIssues)
Copy link
Contributor

Choose a reason for hiding this comment

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

Seme problem here with reusing reportIssues

Suggested change
reportIssues)
" Please, make sure to report this issue by opening a bug report.")

@codebien codebien merged commit e6027d1 into feat/binary-provisioning Apr 24, 2025
28 checks passed
@codebien codebien deleted the binp/general-improvements branch April 24, 2025 12:49
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