Stream: python

Topic: code coverage


view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 02 2023 at 19:11):

I'm fine with removing Coveralls but we should replace it with some other code coverage tool, right?

view this post on Zulip Oliver Bertuch (Dec 02 2023 at 19:35):

Maybe https://docs.sonarsource.com/sonarcloud/advanced-setup/languages/python/ ?

view this post on Zulip Jan Range (Dec 02 2023 at 19:53):

Great! I'll look into the options that are available and compile them. Thanks @Oliver Bertuch will check it :blush:

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 03 2023 at 12:37):

For a little more context, for the main Dataverse repo Oliver switched us from Travis to GitHub Actions.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 03 2023 at 12:38):

And I think he'd like to someday switch it from Coveralls to SonarCloud, but for now we're still using Coveralls.

view this post on Zulip Jan Range (Dec 04 2023 at 12:29):

Alright, would pyDataverse be a suitable primer for Sonarcloud?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 13:47):

Oliver already configured https://github.com/gdcc/xoai to push code coverage to SonarCloud, if that helps. Looks like it's at 73.4%.

view this post on Zulip Jan Range (Dec 04 2023 at 14:12):

Is there already an account we could link pyDataverse to? Or shall I create a new one?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:16):

I'm a little confused, to be honest. I get a 404 when I click the code coverage badge: https://sonarcloud.io/component_measures/metric/coverage/list?id=gdcc_xoai

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:17):

This link works: https://sonarcloud.io/project/overview?id=IQSS_dataverse (we've played a bit with Sonar in #9846.)

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:17):

Should we move this to a dedicated topic?

view this post on Zulip Notification Bot (Dec 04 2023 at 14:23):

12 messages were moved here from #python > PyDataverse Re-Vamp by Philip Durbin.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:28):

I'm not sure about gdcc but at https://sonarcloud.io/organizations/iqss/groups (iqss) there's an owner group that I'm part of.

view this post on Zulip Jan Range (Dec 04 2023 at 14:28):

Maybe those links are pointing towards a private page?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:28):

Yeah, I'll open an issue. :grinning: ... done: https://github.com/gdcc/xoai/issues/214

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:30):

I can see https://sonarcloud.io/project/information?id=gdcc_xoai at least, even in a private/incognito window.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:31):

I'm even an owner at https://sonarcloud.io/organizations/gdcc/groups

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 14:31):

@Jan Range so please just let me know what you need! :stuck_out_tongue_wink:

view this post on Zulip Jan Range (Dec 04 2023 at 14:38):

Great! I signed up via GitHub to SonarCloud, but I am not able to see the GDCC projects. I am able to see those for Dataverse (IQSS) though.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 15:02):

@Jan Range I just added you to "owners" for gdcc. Does that help?

view this post on Zulip Jan Range (Dec 04 2023 at 15:09):

That worked! Seeing GDCC now on SonarCloud, but I am not able to add pyDataverse. Can you configure the SonarCloud installation to include it?

https://github.com/organizations/gdcc/settings/installations

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 04 2023 at 15:10):

done!

view this post on Zulip Jan Range (Dec 04 2023 at 15:28):

Thanks :raised_hands:


Last updated: Nov 01 2025 at 14:11 UTC