Skip to content

Don't auto register all modules, and add command-creation test#1855

Open
rain-on wants to merge 3 commits intomainfrom
tmm/fix_autofac
Open

Don't auto register all modules, and add command-creation test#1855
rain-on wants to merge 3 commits intomainfrom
tmm/fix_autofac

Conversation

@rain-on
Copy link
Copy Markdown
Contributor

@rain-on rain-on commented Mar 31, 2026

A bug was introduced in a 50f5038 whereby the "Register all modules" was removed (as it was a little dirty) - however this meant one single module was never loaded (PackageRetention) - this in turn caused issues with the inability to instantiate certain commands.

This change removes the auto-registration, but manually registers the PackageRetentionModule.

A test was included to ensure all commands are instantiable from the autofac container.

⚠️ Does this change require a corresponding Server Change?
⚠️ If so - please add a "Requires Server Change" label to this PR!

@rain-on rain-on requested a review from flin-8 March 31, 2026 05:21
Copy link
Copy Markdown
Contributor

@flin-8 flin-8 left a comment

Choose a reason for hiding this comment

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

Looks good, shall we add them to the other test projects too? like Calamari.Terraform.Tests etc.

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.

2 participants