Skip to content

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented May 24, 2024

Currently they are downloaded to $GITHUB_WORKSPACE, but the conda publish command expects them to be in $GITHUB_WORKSPACE/conda-package-*/etc where conda-package-* are the artifact names...

Removing the merge-multiple option (docs) makes the artifacts "be extracted into individual named directories", I assume (hope) the directory names will be the same as the artifact names, because that is what we want.

Currently they are downloaded to `$GITHUB_WORKSPACE`,
but the conda publish command expects them to be in
`$GITHUB_WORKSPACE/conda-package-*/etc`
where `conda-package-*` are the artifact names...
@jokasimr jokasimr requested a review from YooSunYoung May 24, 2024 16:20
@jokasimr jokasimr requested a review from MridulS May 27, 2024 07:42
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update the anaconda command to

anaconda --token ${{ secrets.ANACONDATOKEN }} upload --user scipp --label main $(find . -type f -name "*.tar.bz2")

This should get all the files out with the extension we are looking for.
Or we can come up with the right path looking at

path: conda/package/*/scipp*.tar.bz2

Copy link
Contributor Author

@jokasimr jokasimr May 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would probably also work, but I think it is also fine as it is now?

Without merge-multiple the artifacts will be downloaded in separate directories that are named with the same name as the artifact name. The docs were a bit fuzzy on this point, but looking at the code it seems that's what's happening, see here.

In our case the artifacts are named like conda-package-linux_64-py3.10 so the directory structure after download will be:

$GITHUB_WORKSPACE/conda-package-linux_64-py3.10/linux64/scipp-24.05.0-py310hf5249f7_0.tar.bz2
$GITHUB_WORKSPACE/conda-package-osx_64-py3.10 /osx_64/scipp-24.05.0-py310kj5b34fj87_0.tar.bz2
...etc

and then the $(ls conda-package-*/*/*.tar.bz2) should do the right thing.

I'm hesitant to make more changes than necessary 😅 that's why I'm a bit reluctant to add this. But if you think it will not work like it is, or if you think it would be better to change it for some other reason, I'll do that.

@jokasimr jokasimr enabled auto-merge May 27, 2024 12:47
@jokasimr jokasimr merged commit e82e076 into main May 27, 2024
@jokasimr jokasimr deleted the ci-release-fix branch May 27, 2024 12:58
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

Successfully merging this pull request may close these issues.

3 participants