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

Depend on the cargo-ament-build Python wheel #27

Merged
merged 6 commits into from
Oct 17, 2024

Conversation

esteve
Copy link
Collaborator

@esteve esteve commented Oct 15, 2024

No description provided.

Signed-off-by: Esteve Fernandez <esteve@apache.org>
Signed-off-by: Esteve Fernandez <esteve@apache.org>
@esteve
Copy link
Collaborator Author

esteve commented Oct 15, 2024

This should fail now because the cargo-ament-build PyPI wheel is not uploaded yet.

@luca-della-vedova
Copy link
Member

If we are installing cargo-ament-build from Pypi, should we remove the action step that installs it manually from cargo?

@esteve
Copy link
Collaborator Author

esteve commented Oct 16, 2024

@luca-della-vedova yeah, that makes sense

@esteve
Copy link
Collaborator Author

esteve commented Oct 16, 2024

@luca-della-vedova whoa, maturin is magic:

https://pypi.org/project/cargo-ament-build/

Signed-off-by: Esteve Fernandez <esteve@apache.org>
@esteve esteve force-pushed the depend-on-ament-build-pypi branch from 233e079 to dd4c5aa Compare October 16, 2024 10:47
Signed-off-by: Esteve Fernandez <esteve@apache.org>
@esteve esteve force-pushed the depend-on-ament-build-pypi branch from dd4c5aa to 05c65a4 Compare October 16, 2024 10:48
@esteve
Copy link
Collaborator Author

esteve commented Oct 16, 2024

Looks like CI is failing because the cargo-ament-build wheel is only available for Python 3.8+ and the colcon CI requires Ubuntu 20.04 and Python 3.6 for one of the targets. @cottsay is there a way to provide a custom strategy.json file or should I just override the matrix.os? I tried putting a stategy.json file in different places but it doesn't seem to work. Thanks

@luca-della-vedova
Copy link
Member

Hi @esteve

This is really good stuff, thanks a lot! We can use matrix-filter for that purpose, I opened a PR to your branch that introduces it to remove Ubuntu 20.04, it also removes the vendored action since it was introduced purely to install cargo-ament-build through cargo, but this is not needed anymore so we can just rely on the upstream workflow.
You need to approve my action to your repo since I'm a first time contributor, but a run of that branch on my own fork shows green CI and Ubuntu 20.04 being skipped so I'm pretty confident it will be ok

@esteve
Copy link
Collaborator Author

esteve commented Oct 17, 2024

@luca-della-vedova awesome, thank you!

Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@a1c4900). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage        ?   62.11%           
=======================================
  Files           ?        8           
  Lines           ?      388           
  Branches        ?       50           
=======================================
  Hits            ?      241           
  Misses          ?      138           
  Partials        ?        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@esteve esteve merged commit 7a8aa2e into colcon:main Oct 17, 2024
16 checks passed
@esteve esteve deleted the depend-on-ament-build-pypi branch October 17, 2024 13:35
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