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

Add cocotb testbench runner #222

Draft
wants to merge 126 commits into
base: master
Choose a base branch
from
Draft

Add cocotb testbench runner #222

wants to merge 126 commits into from

Conversation

jsouter
Copy link

@jsouter jsouter commented Jan 16, 2025

Rebasing Jacob's work on the cocotb testbench runner on master and fixing up the git history a bit (WIP).
I've added a few commits on top to use the pytest runner and upload "cobertura" style coverage from nvc to codecov.

Opening this PR as a draft while I work on fixing up the CI etc

@jsouter jsouter force-pushed the cocotb branch 8 times, most recently from 7c86ed5 to 472d3ef Compare January 16, 2025 14:29
@jsouter jsouter force-pushed the cocotb branch 2 times, most recently from 05986f2 to 63b5659 Compare January 17, 2025 08:42
@jsouter
Copy link
Author

jsouter commented Jan 17, 2025

Note to self: codecov step still shows as passing even when it fails to upload

==> Running command '/__w/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/__w/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github -C 63b56592eb3e2eb435da254df7f86976bd4e2df2
[PYI-22035:ERROR] Failed to load Python shared library '/tmp/_MEI4gkdDU/libpython3.11.so.1.0': dlopen: /lib64/libm.so.6: version `GLIBC_2.[29](https://github.com/PandABlocks/PandABlocks-FPGA/actions/runs/12825589516/job/35763849910?pr=222#step:7:31)' not found (required by /tmp/_MEI4gkdDU/libpython3.11.so.1.0)

Currently using the container from this PR PandABlocks/PandABlocks-rootfs#67, may need to change the python version or something.

The coverage file generated uses absolute paths which only work inside the container (prefixed by /repos/PandABlocks-FPGA) so using a sed command to make these relative so we can hopefully get line by line breakdowns of coverage.

edit: apparently when this was working the codecov-action was running on ubuntu-latest instead of inside the container, and the cocotb tests were done inside a docker run command...

Copy link

codecov bot commented Jan 30, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

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