-
Notifications
You must be signed in to change notification settings - Fork 135
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
Migration - Migration loadmodule : need a CopyMode.LOAD in migrate.groovy script #164
Comments
Hi @FALLAI-Denis , As the documentation points out, the difference between the LOAD and BINARY copy is that LOAD is preserving ALIAS and ISPF data. Is this a requirement for your migration of load modules? I don't know how Git will treat the additional information and if these are preserved, when you add them to the git repo. I am not aware of any tests performed in this area with load modules. (Please keep us updated about your results of this investigation). What about working with a deputy member in the git repository, which points to the binary a binary artifact repository like Artifactory (including versioning) or a protected PDS? I am struggling to understand the reason why you want to store the load module in git. Can you elaborate a bit more on your use case? Anyway, the migrate.groovy script is located in the DBB toolkit installation, and you can obviously create a copy for your own use and modify it to your needs and change the copy mode in case a binary file is detected. As you will notice, the existing mappingRule and mappings don't let you specify a BINARY file, while the purpose of the migrate script is to migrate source code. I have a concern, that the migration script is the correct place to insert this logic. You might want to create an idea on ideas.ibm.com to either extend or ship a migration script for load modules/object decks. |
Hi @dennis-behm, I think the documentation is not exhaustive. We must manage by reference components that only exist in the form of loadmodule (we also have objects in the sense of compilation result). We considered using Artifactory to manage binaries (loadmodules or others), but this required a very complex implementation. Using Git to manage both the versioning of these loadmodules (and other binaries) components and the provisioning for (static) linkedits seemed to us to be the simplest and most relevant solution. At the Git level, these components are declared in .gitattributes with a binary mode. During Git merge operations, loadmodules files (like other binary files) are treated as a complete / non-breaking element, (no line type management as with text sources) Our (current) .gitattributes:
Sequence of build and packaging operations: |
Hi, Problem also on DBRM member:
It may not be useful to list each non-convertible character? The script could stop at the 1st non-convertible character, or after a few non-convertible characters, but not all? (to avoid filling the logs). Is there a way to prevent the script from testing character conversion and force it to do binary processing? (and for the record to also force it to do a load processing). |
Hi,
We need to migrate loadmodule to Git... (even if Git is not really made to manage binaries).
It seems that the
migrate.groovy
procedure delivered with DBB does not provide thecopyMode(CopyMode.LOAD)
... only thecopyMode(CopyMode.BINARY)
.Is it possible to upgrade the
migrate.groovy
script so that it manages the loadmodule type, or tell us what changes we need to apply to it ourselves.Thanks.
The text was updated successfully, but these errors were encountered: