-
Notifications
You must be signed in to change notification settings - Fork 992
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
[question] Parallel jobs and independent caches #17545
Comments
Hi @maitrey happy new year to you too!
There are a couple of strategies here:
Both have advantages and disadvantages, for example the later is a bit more fragile in terms of random errors, as it might need to repeat all builds for all configurations if something crashes, while the former will allow to relaunch only the jobs that are minimally necessary as it already stored in a more permanent location the binary packages. |
Understood, I am anyhow trying to understand the CI Tutorial. I use conan build and conan export-pkg from the game application example. I use python-3.12.4 and in Windows context. I use in multi configuration context following the guidelines as in: https://docs.conan.io/2/ci_tutorial/packages_pipeline/multi_configuration.html. The only difference is I use conan build/conan export-pkg instead of conan create.
What have I udnerstood wrong or doing it incorrectly? |
This is unexpected, I don't know where it could come from. This seems like some file with an unexpected encoding is being loaded. Maybe running with |
There are two issues meanwhile, it looks like with VScode + powershell-5.1 terminal conan commands are not working with the redirect command.
With windows command prompt it works with conan create + conan list but not with conan build and conan export-pkg which is our use-case . It seems to come from the fact that the graph.json generated during conan build point to -of instead of cache. conan list seems to return a empty list with detecting nothing from local cache. |
And I forgot the trace output from the conan list command:
|
Thanks for the feedback, this explains it:
The default powershell encoding is not utf-8, which Conan expects it to be. I think this can be configured in powershell like with Another alternative would be to use the new |
I could get it working with conan build and conan export-pkg as well. I was using it wrongly but figured out the correct commands. Since, we use conan build with -of the generated graph contains references to the output folder. The correct way is to generate the graphs when using conan export-pkg. So like this:
I think this time I am doing it correctly. |
Yes, this is how it should be. So this is not failing now with the encoding issue? |
It fails if I use powershell , with windows command prompt it works! |
Ok, yes, this is the encoding issue. As the default powershell encoding is cp1512, then the This is what can be fixed by some of the above suggestions. |
But one point is the error message is not very inituitive :(. But may be it will be handled better when written to out file instead of redirecting. |
I agree that a more complete error message could help. It would be useful to have the full output of the command that is producing that stack trace with the |
And I have the next problem , when I use conan build/conan export-pkg , it complains that the Lockfile doesnot exist
Also the same with conan build the lockfile does not exist. |
I'd need the exact commands and the output of those commands. I guess that you have some |
So here is the commands that I tried:
Without specifying lock for conan build but specifying it for conan export-pkg also fails:
I am following the documentation as in : https://docs.conan.io/2/ci_tutorial/packages_pipeline/multi_configuration_lockfile.html |
Sorry, I need to run the conan lock creat ecommand before build/export-pkg. |
Yes, this might be important. Think that you might |
After reading the tutorial, I have a few questions:
|
The integration strategy might differ from org to org (or team to team), depending on the project size, number of developers, build times, CI capabilities and cost, etc. For example:
It depends on how you define your consumers
With "floating versions" you mean version ranges? |
It is unclear How does products pipeline get automatic notification that a new version of ai is available in the products repository. The nightly build is like a cron job that I thought of. |
What is your question?
Dear Conan Folks,
First of all Happy New Year!
I have a question, in the documentation I have read: " that the cache is still not concurrent, so parallel jobs or tasks should use independent caches."
If I have a package with multiple platform and variant combination and if I run these cobinations parallely on CI infrastructure(using seperate caches), how shall I collect and upload all the different combinations together?
Right now, I do them sequentially, and so it takes time but its easy to upload.
Is there an example that I can follow ?
Thanks!
Br,
Maitrey
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: