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
Copy Markdown
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
perryqh added a commit that referenced this pull request Apr 17, 2026
The x86_64-linux smoke test in CD called CodeOwnership.for_file, which
requires config/code_ownership.yml in the CWD. This repo intentionally
does not ship that config (removed in e9f29ac), so the step failed with
"Can't open config file" on the first real dispatch after #157.

Replace the call with CodeOwnership.version, which exercises the
cross-compiled Rust native extension (loads the .so, calls into Rust)
without depending on a project config — the right check for a
platform-gem smoke test.

Prior smoke test (pre-#157) called a non-existent method with `|| true`,
so it silently no-op'd. #157 switched to a real method and dropped the
suppression, exposing the latent missing-config problem once CD next
ran on workflow_dispatch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
perryqh added a commit that referenced this pull request Apr 17, 2026
)

The x86_64-linux smoke test in CD called CodeOwnership.for_file, which
requires config/code_ownership.yml in the CWD. This repo intentionally
does not ship that config (removed in e9f29ac), so the step failed with
"Can't open config file" on the first real dispatch after #157.

Replace the call with CodeOwnership.version, which exercises the
cross-compiled Rust native extension (loads the .so, calls into Rust)
without depending on a project config — the right check for a
platform-gem smoke test.

Prior smoke test (pre-#157) called a non-existent method with `|| true`,
so it silently no-op'd. #157 switched to a real method and dropped the
suppression, exposing the latent missing-config problem once CD next
ran on workflow_dispatch.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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