-
Notifications
You must be signed in to change notification settings - Fork 1
fix(OPENFRAM-006-16): CU-86akbhh82 3 review findings across 2 files #133
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,9 +136,7 @@ impl Connector { | |
| } | ||
|
|
||
| tracing::error!("Auth URL callback failed or not configured, propagating authorization violation error"); | ||
| self.events_tx | ||
| .try_send(Event::ClientError(ClientError::Other(error.to_string()))) | ||
| .ok(); | ||
| return Err(error); | ||
| } | ||
| ConnectErrorKind::AuthCallbackReconnect => { | ||
| // Auth callback succeeded and we need to reconnect with new credentials | ||
|
|
@@ -152,6 +150,7 @@ impl Connector { | |
| self.events_tx | ||
| .try_send(Event::ClientError(ClientError::Other(other.to_string()))) | ||
| .ok(); | ||
| return Err(error); | ||
| } | ||
| }, | ||
| } | ||
|
Comment on lines
150
to
156
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🦩 🔴 handle_auth_error / auth_url_callback: reconnect loop silently reuses server list on parse failure without dropping obsolete auth state In 🤖 Prompt for AI agentsfix confidence: 🔴 55 low — review closely — react 👍/👎 to teach the reviewer
Comment on lines
150
to
156
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🦩 🟠 connect() error loop discards MaxReconnects/AuthorizationViolation errors as fire-and-forget events instead of returning them In 🤖 Prompt for AI agentsfix confidence: 🟡 85 medium — react 👍/👎 to teach the reviewer |
||
|
|
||
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.
🦩 🔴 async-nats/nats.rs contains no auth_url_callback fork feature; sync workflow merges upstream unconditionally
In the
Syncstep of thesyncjob in.github/workflows/sync-upstream.yml, added a post-merge verification gate that greps the repo (.rsfiles) forauth_url_callbackaftergit merge --no-ff --no-edit upstream/mainsucceeds; if the string is absent, the workflow logs an::error::, resets the branch back toorigin/main, deletes the local sync branch, and exits with failure instead of proceeding to push/PR. Added a newBuild and test fork feature gatestep runningcargo check --workspace --all-featuresandcargo test --workspace --all-features -- auth_url_callbackscoped to run only when the marker is present, and moved thegit push/gh pr createinto a finalPush branch and open PRstep so the PR is only opened after both the presence check and the build/test gate pass. This is a heuristic, grep-based proxy for "the fork feature still exists/compiles" since I have no visibility into the actual source files, function names, or test names in this repo — a complete fix would require knowing the real file(s)/API surface implementingauth_url_callback(e.g., a specific struct/trait method inasync-natsornats.rs) so the check and test invocation target it precisely rather than a raw string grep, and would require confirmingcargo test ... -- auth_url_callbackactually maps to real test names in this crate.🤖 Prompt for AI agents
fix confidence: 🔴 55 low — review closely — react 👍/👎 to teach the reviewer