-
Notifications
You must be signed in to change notification settings - Fork 0
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
Don't send results to queue when using PAT #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
3dd8952
to
aa8cb1a
Compare
72d877d
to
47ba6f5
Compare
24bc25a
to
17115ab
Compare
Rwx cloud returns the type of access token used so that we can modify the behavior of the runner strategy to noop instead of sending results to the queue.
* Require that remote queues discover an access token * Indicate the usage of a flag, envvar or abq login
Avoids blocking in debug builds of the async executor.
a69b903
to
17b3c40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
crates/abq_cli/tests/snapshots/cli__retries_displays_retry_banners.snap
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant to comment without explicit approval - my bad!
* Passing an ABQ_CONFIG_FILE during abq login is now an error. * Improve worker repro message * Misc rustisms
05958be
to
efbdfc8
Compare
674ca59
to
a2b8060
Compare
a2b8060
to
018caf2
Compare
This reverts commit b640072.
Benchmarks:
Fuzz result sizes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incredible work here Tony, congrats!! And thanks for this great feature!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this @tonywok and @ayazhafiz!
Rwx cloud returns the type of access token used so that we can modify the behavior of the runner strategy to noop instead of sending results to the queue.
In addition, we add a new command
abq login
to store a config file at~/.abq/config.toml
RWX Access Tokens are sourced in the order of flag, env var, and then config file.
End users can explicitly supply the location of the config file via
ABQ_CONFIG_FILE
. By supplying a value of""
, you opt-out of sourcing the access token from a config file (This is used mostly by our tests to avoid sourcing an access token from the host machine).abq test
(w/ PAT)abq test
(w/ OrgAT)abq login
QA Plan
1. ✅ Create test run w/ org access token, observe instruction to run locally
2. ✅ Run ABQ report, observe report (`target/debug/abq report --run-id tonytest2`)
3. ✅ Run locally w/ PAT (using abq login omitted)
4. ✅ Run ABQ report w/ PAT, observe no retries
5. ✅ Run locally w/ Org Token (using abq login omitted)
6. ✅ Run ABQ report w/ Org Token, observe retries