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
Add python packages to dockerfile #14997
Conversation
Thank you for your contribution to the Solidity compiler! A team member will follow up shortly. If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother. If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix. |
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.
@r0qs can you please check the rest.
Hi @Tim-Tscheppe thanks for your contribution. However, there are still some additional tasks that require attention. You can find further details in the comments section of the issue you referenced: #14847 (comment) Basically, we also need to identify what packages are commonly used in our CI and can be moved to our Linux docker images (I believe they are For instance, see: https://github.com/ethereum/solidity/blob/develop/.circleci/config.yml#L936 and https://github.com/ethereum/solidity/blob/develop/.circleci/config.yml#L999. |
Hi @r0qs ,
Note that I kept them in for the windows pyscripts config.yml file. I only removed from the linux based versions that I added to the images. Please let me know if there is any other work needed. Also, is there some guides to ramp on this project? I am interested in getting more involved with open source and specifically Ethereum Edit: It looks like removing the packages from the config.yml file is causing the pipeline to fail |
name: Install gas_diff_stats.py dependencies | ||
command: python3 -m pip install --user parsec tabulate |
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.
parsec
and tabulate
should be removed from t_ubu_pyscripts
since now they are installed in the images.
name: Install gas_diff_stats.py dependencies | |
command: python3 -m pip install --user parsec tabulate |
Also, there still some things that we could move to the ubuntu image. For instance, the test_lsp command installs deepdiff
and colorama
as well. So we could remove that step (i.e. Install dependencies
), since test_lsp
is only used on the Ubuntu machines.
And indeed @cameel was right, and the same applies for chk_pylint
, so we can remove the install_python3 step from chk_pylint
and install all those packages in the Ubuntu images.
Hi @Tim-Tscheppe, thank you for your contribution. I've taken a look at our CircleCI config and left a comment regarding what still needs to be done.
You can check our contribution guide at https://docs.soliditylang.org/en/latest/contributing.html
yes, the pipeline will fail because we will need to rebuild the images and it cannot be done from a fork. I will copy your branch and see if we can still reuse this PR or if we will need to create a new one ourselves. Usually, when we update the docker images, we have one PR changing only the images and another changing the CI configs. For instance see: #14964 and #14962. |
@Tim-Tscheppe I just created other two PRs with the changes, since it was much faster to do that in that way. For future reference, kindly refrain from merging new features directly into the Thanks for your contribution anyway :) See this section of our contribution guide: https://docs.soliditylang.org/en/latest/contributing.html#workflow-for-pull-requests for further details. |
Fixing issue
#14847