Skip to content

Conversation

lukaszstolarczuk
Copy link
Contributor

This PR was almost fully done with Copilot (Agent Mode).

Fixes: #619

@lukaszstolarczuk lukaszstolarczuk requested a review from a team as a code owner September 25, 2025 14:10
Apparently this file speeds up process of AI contributions
to this repository. It was fully generated by copilot.
@lukaszstolarczuk lukaszstolarczuk marked this pull request as draft September 26, 2025 08:28
While releasing UMF we should update VERSION file with the current version.
It will be used only if git is not available or tags were not fetched.

To underline it is not a "detailed version" we will add "-dev" in CMake version
parsing, so it will stand out (comparing to e.g. versions like "1.0.3-dev1-...").
@lukaszstolarczuk lukaszstolarczuk marked this pull request as ready for review September 26, 2025 08:52
- Verify if scanners/linters/checkers passed
- Verify if version is set properly, especially in `.dll` and `.so` files
- Create/update a VERSION file for GitHub ZIP downloads (users without git):
- `echo "$VERSION" > VERSION`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm actually, wondering - should it be rather $VERSION+1...? This would align with our vX.X.X-devX approach (where main is introduced as next release)

Copy link
Contributor

Choose a reason for hiding this comment

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

No, it has to be the correct version as this is included in a release (after this file edit, a tag is created).

```

### Version Management
- Version determined by: 1) `git describe` (preferred), 2) `VERSION` file fallback, 3) "0.0.0" default
Copy link
Contributor

Choose a reason for hiding this comment

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

Make points multi-line for clarity


### Code Formatting
- **Always format code before committing**: `make format-apply`
- Requires build with `-DUMF_FORMAT_CODE_STYLE=ON`
Copy link
Contributor

Choose a reason for hiding this comment

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

Add this to a full features example above

- Use `build_umf_test()` CMake function in `test/CMakeLists.txt`
- GPU tests require `UMF_BUILD_GPU_TESTS=ON` and hardware/drivers
- IPC tests use producer/consumer pattern with shell scripts
- Platform-specific tests: `.c` files for portability, `.cpp` for C++ features
Copy link
Contributor

Choose a reason for hiding this comment

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

C++ for utils/tests?

- Platform-specific tests: `.c` files for portability, `.cpp` for C++ features

### CI/CD Structure
- `pr_push.yml`: Main workflow calling reusable workflows
Copy link
Contributor

Choose a reason for hiding this comment

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

... called for each PR change

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.

Add support for versioning in git archive
2 participants