Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Feb 13, 2023

We want to make sure that the value of ./clients/[python,cpp]/VERSION is the same than the one we use (i) in the gha file, and (ii) in docker compose (and transitively in the quick-start tests).

This PR adds:

  • A function to bump the tracked version of the cpp or the python submodule.
  • A check in GHA's that makes sure that the aforementioned versions are in sync.

I include the new check in the old formatting job, that I now re-factor to checks.

Whilst I am at it, I also include a check that makes sure that all submodules point to the main branch. On the down side, this means that a PR spanning multiple repos (as it happens often) will never be fully green until all submodules have been merged in. On the up side, this will prevent the very frequent issue of forgetting to update the branch after merge, which is quite non-intuitive.

new_ver = ver
bump_faasm_ver = (not python) and (not cpp)
if bump_faasm_ver:
old_ver = get_version()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Faasm's bumping logic is the same, just indented.

@csegarragonz csegarragonz changed the title Task to bump tracked submodule version Task to bump tracked submodule version and check submodule tracked branch Feb 13, 2023
runs-on: ubuntu-latest
container:
image: faasm/cpp-sysroot:0.2.0
image: faasm/cpp-sysroot:0.2.1
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The motivation for this PR is that I realised that these versions were out of sync, and I have been forgetting often lately 🤦

@csegarragonz csegarragonz self-assigned this Feb 13, 2023
@csegarragonz csegarragonz force-pushed the bump-submodules branch 3 times, most recently from 9515b1c to d8820f0 Compare February 13, 2023 17:54
@csegarragonz csegarragonz force-pushed the bump-submodules branch 3 times, most recently from 56cd596 to 4ca6399 Compare February 23, 2023 16:26
@csegarragonz csegarragonz merged commit dfba98f into main Feb 23, 2023
@csegarragonz csegarragonz deleted the bump-submodules branch February 23, 2023 19:12
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