-
Notifications
You must be signed in to change notification settings - Fork 4
SED-4713 isolated-automation-package-repository-canonical-plan-names-are-not-canonical #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -41,6 +41,12 @@ | |||||||||||||||||||||||||||||||
| public class MavenArtifactRepository extends AbstractArtifactRepository { | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| public static final String MAVEN_SETTINGS_PREFIX = ArtifactRepositoryConstants.MAVEN_SETTINGS_PREFIX; | ||||||||||||||||||||||||||||||||
| public static final Set<String> CANONICAL_REPOSITORY_PARAMETER_KEYS = Set.of(ArtifactRepositoryConstants.ARTIFACT_PARAM_GROUP_ID, | ||||||||||||||||||||||||||||||||
| ArtifactRepositoryConstants.ARTIFACT_PARAM_ARTIFACT_ID, ArtifactRepositoryConstants.ARTIFACT_PARAM_VERSION, | ||||||||||||||||||||||||||||||||
| ArtifactRepositoryConstants.PARAM_INCLUDE_PLANS, | ||||||||||||||||||||||||||||||||
| ArtifactRepositoryConstants.PARAM_EXCLUDE_PLANS, | ||||||||||||||||||||||||||||||||
| ArtifactRepositoryConstants.PARAM_INCLUDE_CATEGORIES, | ||||||||||||||||||||||||||||||||
| ArtifactRepositoryConstants.PARAM_EXCLUDE_CATEGORIES); | ||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would feel more consistent to remove the version and keep only groupId + artifactId |
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| private final ControllerSettingAccessor controllerSettingAccessor; | ||||||||||||||||||||||||||||||||
| private final File localRepository; | ||||||||||||||||||||||||||||||||
|
|
@@ -49,7 +55,7 @@ public class MavenArtifactRepository extends AbstractArtifactRepository { | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| public MavenArtifactRepository(AutomationPackageManager manager, FunctionTypeRegistry functionTypeRegistry, FunctionAccessor functionAccessor, Configuration configuration, | ||||||||||||||||||||||||||||||||
| ControllerSettingAccessor controllerSettingAccessor, ResourceManager resourceManager) { | ||||||||||||||||||||||||||||||||
| super(Set.of(ArtifactRepositoryConstants.ARTIFACT_PARAM_GROUP_ID, ArtifactRepositoryConstants.ARTIFACT_PARAM_ARTIFACT_ID, ArtifactRepositoryConstants.ARTIFACT_PARAM_VERSION), manager, functionTypeRegistry, functionAccessor, resourceManager); | ||||||||||||||||||||||||||||||||
| super(CANONICAL_REPOSITORY_PARAMETER_KEYS, manager, functionTypeRegistry, functionAccessor, resourceManager); | ||||||||||||||||||||||||||||||||
| localRepository = configuration.getPropertyAsFile(CONFIGURATION_MAVEN_FOLDER, new File(DEFAULT_MAVEN_FOLDER)); | ||||||||||||||||||||||||||||||||
| this.controllerSettingAccessor = controllerSettingAccessor; | ||||||||||||||||||||||||||||||||
| maxAge = Duration.ofMinutes(configuration.getPropertyAsLong(CONFIGURATION_MAVEN_MAX_AGE, DEFAULT_MAVEN_MAX_AGE)); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
CANONICAL_REPOSITORY_PARAMETER_KEYSset is missingPARAM_WRAP_PLANS_INTO_TEST_SETandPARAM_ROOT_TYPE. Since these parameters directly affect the structure, name, and type of the imported plan (as seen ingetArtefactInfoandisWrapPlansIntoTestSet), omitting them can lead to incorrect plan caching or resolution when these parameters differ between executions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree