Skip to content

test(controller): pass the init container user in the FUSE storage tests - #2277

Merged
Defilan merged 1 commit into
defilantech:mainfrom
Defilan:fix/storage-config-test-args
Oct 27, 2026
Merged

Defilan merged 1 commit into
defilantech:mainfrom
Defilan:fix/storage-config-test-args

Conversation

@Defilan

@Defilan Defilan commented Oct 27, 2026

Copy link
Copy Markdown
Member

What

The four buildModelStorageConfig calls that #2276 added to internal/controller/model_storage_fuse_test.go now pass DefaultInitContainerUser. That matches the existing call in the same file.

Why

main does not compile the controller tests. The Lint job on 6c7c1fe3 and 2fe250bb fails with:

internal/controller/model_storage_fuse_test.go:402:146: not enough arguments in call to buildModelStorageConfig
internal/controller/model_storage_fuse_test.go:459:147: not enough arguments in call to buildModelStorageConfig
internal/controller/model_storage_fuse_test.go:558:146: not enough arguments in call to buildModelStorageConfig
internal/controller/model_storage_fuse_test.go:665:150: not enough arguments in call to buildModelStorageConfig

#2273 added an initContainerUser parameter to buildModelStorageConfig and updated the callers that existed on its base. #2276 added these four calls with the old signature. The two PRs merged without a textual conflict, and each passed CI on its own base, but together they don't compile.

How

The change is test-only and touches four lines. go vet ./... (including GOOS=linux for internal/controller) is clean, and make gate passes: regen, drift, fmt, vet, lint and the full test suite.

AI assistance: this change was AI-assisted. I reviewed the diffs and supervised the build.

Checklist

  • Tests added/updated
  • make test passes locally
  • make lint passes locally
  • Commit messages follow conventional commits
  • All commits are signed off (git commit -s) per DCO
  • AI assistance (if any) is disclosed above, per CONTRIBUTING.md
  • Documentation updated (if user-facing change)

defilantech#2273 added an initContainerUser parameter to buildModelStorageConfig and
updated the callers it knew about. defilantech#2276 added four calls in
model_storage_fuse_test.go with the old signature. Each PR passed CI on
its own base, but main no longer compiles the controller tests (Lint
fails with "not enough arguments in call to buildModelStorageConfig").
The four calls now pass DefaultInitContainerUser, as the existing call
in the same file does.

Signed-off-by: Christopher Maher <chris@mahercode.io>
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant