Skip to content

Fix smoke test to use existing CodeOwnership method#157

Merged
joemsak merged 1 commit intomainfrom
fix/smoke-test-method
Feb 16, 2026
Merged

Fix smoke test to use existing CodeOwnership method#157
joemsak merged 1 commit intomainfrom
fix/smoke-test-method

Conversation

@joemsak
Copy link
Contributor

@joemsak joemsak commented Jan 26, 2026

Summary

Fixes the CD smoke test which was calling a non-existent method.

Problem

The smoke test was calling CodeOwnership.file_owner_team_names('lib/code_ownership.rb') but this method doesn't exist in the CodeOwnership API.

The test had || true at the end so it didn't fail the build, but it was silently erroring:

-e:1:in '<main>': undefined method 'file_owner_team_names' for module CodeOwnership (NoMethodError)

Fix

Replace with CodeOwnership.for_file('lib/code_ownership.rb') which is the actual API method for getting the owning team of a file.

The smoke test was calling `file_owner_team_names` which doesn't exist.
Replace with `for_file` which is the actual API method for getting
the owning team of a file.
@github-project-automation github-project-automation bot moved this to Triage in Modularity Jan 26, 2026
@joemsak joemsak requested a review from a team January 26, 2026 20:04
@joemsak joemsak merged commit f1625cb into main Feb 16, 2026
12 checks passed
@joemsak joemsak deleted the fix/smoke-test-method branch February 16, 2026 15:39
@github-project-automation github-project-automation bot moved this from Triage to Done in Modularity Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants