Skip to content
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

[Feature request] Report the contents of the produced artefacts to the logs #1696

Open
jaimergp opened this issue Nov 20, 2022 · 1 comment

Comments

@jaimergp
Copy link
Member

As @dhirschfeld mentioned in conda/conda-package-handling#5 (comment):

One trick that might help would be to have a separate CI job which unpacked the contents of the just-built package and called tree on it. With GitHub Actions you could even output the result as a job summary - something like:

cph x mypkg.conda
contents=$(tree ./mypkg)
echo "### Package Contents" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "${contents}"  >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY

The idea is to have the logs report the contents of the artefacts (and their sizes) to easily check what has been included in the conda package. Very useful for staged-recipes reviews (did a package named tests got included?) and in-feedstock debugging (where's my library?!).

@leofang
Copy link
Member

leofang commented Dec 22, 2022

This would be great. It avoids the hassle of storing build artifacts for human inspection, which involves several steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants