Skip to content

CI: Fix sdk dependency in server-test job - #676

Merged
s-heppner merged 1 commit into
eclipse-basyx:developfrom
rwth-iat:fix/662
Oct 23, 2026
Merged

s-heppner merged 1 commit into
eclipse-basyx:developfrom
rwth-iat:fix/662

Conversation

@hpoeche

@hpoeche hpoeche commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Currently, there is no way to declare the basyx-python-sdk as dependency of the server package with matching version numbers, so the pyproject.toml defines only a lower constraint basyx-python-sdk>=1.0.0 (see #592 for details).

Previously, this lead in the server-test job to the situation, that pip install .[dev] installed the sdk again from PyPI, because the locally build sdk (pip install ../sdk) is flagged as version 0.1.dev1+g<sha> and therefore does not fulfill the requirement. This is caused by the GitHub Action actions/checkout that by default only checks out the last commit, not including any tags, so setuptools_scm assigns the sdk a wrong version number.

These changes apply the same workaround that we already used for the server-static-analysis job. It checks out the full depth of the repo, including the tags, so the sdk package is built with a version >=1.0.0.

Fixes #662

Currently, there is no way to declare the `basyx-python-sdk` as dependency
of the `server` package with matching version numbers, so the
`pyproject.toml` defines only a lower constraint `basyx-python-sdk>=1.0.0`
(see eclipse-basyx#592 for details).

Previously, this lead in the `server-test` job to the situation, that
`pip install .[dev]` installed the `sdk` again from PyPI, because the
locally build `sdk` (`pip install ../sdk`) is flagged as version
`0.1.dev1+g<sha>` and therefore does not fulfill the requirement.
This is caused by the GitHub Action `actions/checkout` that by default
only checks out the last commit, not including any tags, so `setuptools_scm`
assigns the sdk a wrong version number.

These changes apply the same workaround that we already used for the
`server-static-analysis` job. It checks out the full depth of the repo,
including the tags, so the `sdk` package is built with a version `>=1.0.0`.

Fixes eclipse-basyx#662

@s-heppner s-heppner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@s-heppner
s-heppner merged commit a29d190 into eclipse-basyx:develop Oct 23, 2026
20 checks passed
@s-heppner
s-heppner deleted the fix/662 branch October 23, 2026 09:21
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.

2 participants