Repository navigation
fix(browser): bind the Press action before borrowing it in the approval-target test - #7879
Conversation
Restructure the press approval assertion to bind the action to a local variable before passing it to approval_target, avoiding a temporary that outlives the borrow. Auto-committed-on: dragonfly
Tiny Sweeper reviewTiny Sweeper completed its review; deterministic results follow. State: Ready for maintainer review Review snapshot
Completeness: Complete FeaturesNone identified with supported citations. TestsNo supported feature-to-test mapping was produced. Test execution is not inferred. FindingsNo active actionable findings. Before mergeNone. How this fits togetherflowchart LR
n0["...al_describes_selector_and_locator_targets<br/>changed"]:::changed
n1["session_entry"]:::impacted
n2["format"]:::impacted
n3["Role"]:::impacted
n4["idle_and_oldest_sessions_are_bounded"]:::impacted
n5["approval_target"]:::impacted
n0 -->|uses| n3
n0 -->|calls| n5
n0 -->|tests| n5
n4 -->|calls| n1
n4 -->|tests| n1
n4 -->|calls| n2
n4 -->|tests| n2
n5 -->|calls| n2
classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 1
Comment |
There was a problem hiding this comment.
tinysweeper found nothing blocking. Approving.
$0.0021 · 51,535 in / 5,359 out · 0 cached (0%) · ladder/vectors-oai3, glm-5.3-flash · 49 embedded
critique: $0.0001 · 13,712 in / 292 out · 0 cached (0%) · glm-5.3-flash
security: $0.0001 · 13,468 in / 373 out · 0 cached (0%) · glm-5.3-flash
tests: $0.0006 · 12,263 in / 320 out · 0 cached (0%) · glm-5.3-flash
description: $0.0010 · 9,931 in / 3,360 out · 0 cached (0%) · glm-5.3-flash
Summary
#7863 (tinycomputer v0.14.0 bump) added a test that does
approval_target(&Action::Press { .. }).approval_targetreturns anOption<&str>that borrows from the action, and the temporaryActionis dropped at the end of the statement. Socargo check -p openhuman --all-targetsfails on main (8ca0456) with E0716, which breaks every lib-test build.This binds the action to a local first. Test-only, no behaviour change.
Tests
On upstream/main 8ca0456:
cargo check -p openhuman --all-targetsand--features e2e-test-support --all-targetsboth compile.cargo test -p openhuman --lib browser::: 61 passed.Refs #7801, #7523