Skip to content

Ruby: Address testFailures in inline expectations tests (part 3)#22105

Open
geoffw0 wants to merge 2 commits into
github:mainfrom
geoffw0:rubyinline3
Open

Ruby: Address testFailures in inline expectations tests (part 3)#22105
geoffw0 wants to merge 2 commits into
github:mainfrom
geoffw0:rubyinline3

Conversation

@geoffw0

@geoffw0 geoffw0 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Annotations should always be updated so that the testFailures section of the .expected file is empty.

@hvitved apologies, I missed this one case in the two initial PRs. It's just a missing SPURIOUS tag.

Copilot AI review requested due to automatic review settings July 1, 2026 15:49
@geoffw0 geoffw0 requested a review from a team as a code owner July 1, 2026 15:49
@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Ruby labels Jul 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates a Ruby ActiveSupport inline-expectations dataflow library test to clear the testFailures section by marking a known unexpected value-flow result as spurious.

Changes:

  • Adds a SPURIOUS inline-expectation marker for the multi.sole sink case in hash_extensions.rb.
  • Updates the generated .expected file offsets to reflect the inserted line and to remove the testFailures entry.
Show a summary per file
File Description
ruby/ql/test/library-tests/frameworks/active_support/hash_extensions.rb Adds a SPURIOUS inline-expectation marker for the known unexpected flow through sole.
ruby/ql/test/library-tests/frameworks/active_support/ActiveSupportDataFlow.expected Regenerates expected edges/nodes and removes the testFailures entry for the sole case.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread ruby/ql/test/library-tests/frameworks/active_support/hash_extensions.rb Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Ruby

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants