-
Notifications
You must be signed in to change notification settings - Fork 9
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
#171 updating docker templates to fabric8 #188
Conversation
@@ -100,11 +104,16 @@ extension-pkg-whitelist = "pydantic" | |||
ignore-patterns = '.*pb2[\S]*.py' | |||
``` | |||
|
|||
### Upgrade Steps for Transitioning from Orphedomos to Fabric8 | |||
If any extra configurations were added to the `orphedomos-maven-plugin` in addition to the generated defaults, executing the migration **will result in loss of these extra configurations**. To facilitate the upgrade, the following steps should be taken: | |||
1. Before executing the baton migration, it is recommended to ensure some form of version control is in place to preserve your existing `orphedomos-maven-plugin` configurations. |
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.
looks like these bullets should be 1., 2., 3., instead of all 1's
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.
That is intentional. That way if we insert another point, we don't have to manually renumber. Markdown is smart enough to increment the numbers when the README is rendered
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.
oo good to know!
@@ -84,6 +84,18 @@ | |||
<version>${archetypeVersion}</version> | |||
<scope>provided</scope> | |||
</dependency> | |||
<dependency> |
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.
S: are we sure we need foundation-mda
? It's not really a maven plugin, but rather a dependency that is fed to fermenter. I would have though that the normal reactor would pick it up for the cache without explicitly being set.
If it is that the build cache isn't picking up dependencies listed within plugins, I might just note that so it's easier to know what it is here in the future.
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.
I believe it is indeed the latter case, because after adding these two dependencies, it resolved the inconsistent behavior with the archetype tests. I will add a comment to contextualize
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.
Will also make sure the additions are not part of the plugins comment block
DRAFT_RELEASE_NOTES.md
Outdated
@@ -100,11 +104,16 @@ extension-pkg-whitelist = "pydantic" | |||
ignore-patterns = '.*pb2[\S]*.py' | |||
``` | |||
|
|||
### Upgrade Steps for Transitioning from Orphedomos to Fabric8 |
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.
A: Maybe "Upgrade Steps for Projects with Customized Orphedomos Configurations"? Usually we try to convey what conditions would cause the instructions to be relevant to a project in these titles.
- updated archetype and foundation-mda templates to leverage fabric8 docker-maven-plugin in lieu of orphedomos - sagemaker antora documentation was updated to reflect updated configuration of ECR registry URL - machine learning pipeline and notifications to set the ECR registry URL has been updated - fixed null pointer exception bug with check for onnx conversion generation (MachineLearningPipelineGenerator) - release notes draft updated noting potential breaking changes regarding loss of extra orphedomos configs - added back skip config for templates and migration - added foundation-mda and foundation-upgrade for archetype tests dependencies workaround
4f9e404
to
8bd5f14
Compare
IMPORTANT NOTE
Please note that this PR disables fabric8's docker builds as part of a default build for a downstream project:
orphedomos
configuration, although not leveraging thisskip
behavior would have been preferredmvn clean install
rather thanmvn clean generate-sources
(which is how the archetype test script also does it) to create their project structure, the user may eventually encounter a broken build. Consider the following example:mvn clean install
callssdist
requirements.txt
from the inference pipeline step to be available in the docker build context/directory, but that ml pipeline inference step module has not yet been built yet-pipelines
module, and requires anothergenerate-sources
execution. Unfortunately, this source generation occurs after the aforementioned docker build.Therefore, there are two options to remedy this issue for the archetype test script and downstream projects:
skip
configuration as part of the default fabric8 docker build configurationfoundation-mda
's generation logic to automatically include sub-sub step modules as declared child modules in their respective pipeline parent poms. Namely this applies to machine learning pipelines, and any other pipelines that house child modules.Unfortunately, option 2 was not able to be incorporated in the scope of this ticket, however it is in the interest of the aiSSEMBLE team to eventually implement option 2 and revert the default skip behavior