-
Notifications
You must be signed in to change notification settings - Fork 7
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
IBMi-bob migration log #568
Comments
Hello @cosentino-smeup. Looks like the issue is because of the extra colons
The path which you see here in the log is simply where the command is being run in on the IBM i. This is controlled by the extension. In most cases, the user's home directory will be used unless the command needs to run in a specific directory. Could you clarify what you mean by |
Thanks @SanjulaGanepola for your fix. I will download and test it straightaway and I will give you a feedback as soon as I completed the tests. This is my first migration with IBMi-bob, so maybe I didn't get everything or misunderstood something even if I have read the documentation. That said, what I meant by "destination folder" is that I expect the migration will convert the source from the library I have chosen from the object browser and put the new source files in the "destination" folder "/SMEDOC/BOB/P_FENS" on IFS. To set the folder "/SMEDOC/BOB/P_FENS" as current directory, I used the PASE terminal and executed the following command:
In fact, this document says: "Converts all members in a source physical file to properly-named (Bob-compatible), UTF-8 encoded, LF-terminated source files in the current directory in the IFS. Generally speaking, the source member type will become the filename extension." |
I installed the version 2.11.1 of the library "Project Explorer extension". I don't get the previous error message anymore but another one comes out:
|
Please find attached the migration log. |
Hello @SanjulaGanepola, I was able to migrate some sources after I created the following files in my home folder: /home/COSANT/.bashrc: /home/COSANT/.profile:
|
That is great to hear. Yes, a After clicking # Generated by Code for IBM i
export PATH=/QOpenSys/pkgs/bin:$PATH:/QOpenSys/usr/bin:/usr/bin In some cases, due to caching, you may not see this prompt even though you do not have a
No worries, great to hear you are using this tool and happy to help 😄
As for this issue, the main purpose of this migration tool is to migrate source to your local workspace for local development. So while Project Explorer does use Is your goal to migrate source to the IFS or the local workspace? If you would like the source to also be in the IFS, after migrating the source to your local workspace, you can set your deploy directory and then deploy your entire project there. This is explained here
Changing directory in the PASE terminal will only apply for the terminal session which you are in. As mentioned previously, the current directory in which the commands are run in are controlled by the extension. |
Thank you very much @SanjulaGanepola for the explanation.
My goal in this migration phase is:
When I finished the migration, the workflow will be approximately the same:
So, according with what you said before, I think I don't need to use the deploy action from the project explorer, because I want Github to push the changes into IFS automatically. At the moment I still can't migrate some source files and I don't understand why. For example, in the file SRCDZ, there are 4 PF sources files. Only 3 over 4 get migrated. One of them gives a error, but I can't understand what is the problem.
Note: the source $DIZ_ED has been migrated. Is there a way to get a detailed log with the error descriptions in order to understand what the problems are? |
Also, I noticed that the migration didn't update the /COPY path. Is there a way to do it automatically? In my iproj.json I have set the "includePath" property
|
Hello @SanjulaGanepola I think I migrated everything. The problem was a parameter that changed the name of the source files to lowercase. |
Glad it is working now!
Based on what you described, you are right in that deploy from Project Explorer will not be needed.
In case you have not heard of @ibm/ibmi-ci, you should definitely check it out as it can be used for what you are trying to achieve here. Example of it being used in a GitHub action here as well.
At the moment, the current include/copy directive fixing involves updating the source to use Unix style paths instead of member styled paths. I believe there is no support as of right now for checking the |
Thank you @SanjulaGanepola, that's a great advise. I will definitely check it out!
What are my options to bypass the problem in the mean time that SourceOrbit considers whether to implement this feature or not? |
I brought up the idea to @worksofliam who manages source orbit and he agreed it would be a great feature. I have opened an issue to track the enhancement here. Until it is added, the only current option would be to do this manually. However, adding this feature will probably be looked at next week so hopefully it should be out soon. |
Thanks @SanjulaGanepola that will be a great improvement !!! I'll wait. |
Hello @SanjulaGanepola, I was checking out the documentation of ibm-ci but I don't understand if it must be installed on IBMi, the client or Github. Would you please suggest me a documentation about the procedure to install it? Thank you in advance for the advice |
@cosentino-smeup The main use case for this tool will however be in a GitHub action. In this case, you can create a yaml file with a step for the installation like this and then execute a deploy/build like this. Similar to running locally, note that environment variables will need to be set like this meaning that you will need to setup up GitHub repository secrets to store credentials to your IBM i. You can also checkout Liam's blog post on this tool here for more info. |
FYI @cosentino-smeup
|
I am migrating a library with IBMi-bob. I am using this documentation.
I tried with many SRC-PF but the migration always fails. There is just 1 error with code "1":
There is also another thing I don't understand: before to start the migration, I executed the following command to set the current path
cd /SMEDOC/BOB/P_FENS
which is my destination foldernevertheless in some messages I can see the path to my home folder:
/home/COSANT
For example:
Could you please help me to understand what is the problem?
I attached the log file.
migration.log
The text was updated successfully, but these errors were encountered: