-
Notifications
You must be signed in to change notification settings - Fork 42
Add backward compatibility workflow and tests #1063
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
Conversation
b4226c3 to
a341c50
Compare
b4edc5c to
6baaa70
Compare
2a23695 to
be7dbb6
Compare
be7dbb6 to
51391d7
Compare
143d33a to
965b918
Compare
49a57f5 to
3ecbe58
Compare
.github/workflows/pr_push.yml
Outdated
| tag: ["v0.10.1"] | ||
| with: | ||
| tag: ${{matrix.tag}} | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing EOF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| working-directory: ${{github.workspace}}/tag_version | ||
| run: | | ||
| VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
| echo "tag version: $VERSION" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why "cut it"? Just running git describe --tags should suffice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| run: > | ||
| cmake | ||
| -B ${{github.workspace}}/tag_version/build | ||
| -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/tag_version/build/install" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe drop "build" in the path here, so the installation will be sep. from build?
also, do we even use this install_prefix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
| working-directory: ${{github.workspace}}/latest_version | ||
| run: | | ||
| VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
| echo "checked version: $VERSION" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| run: > | ||
| cmake | ||
| -B ${{github.workspace}}/latest_version/build | ||
| -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/latest_version/build/install" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| -DCMAKE_C_COMPILER=cl | ||
| -DCMAKE_CXX_COMPILER=cl | ||
| -DUMF_BUILD_SHARED_LIBRARY=ON | ||
| -DUMF_BUILD_TESTS=ON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
|
||
| # NOTE: exclude umf-provider_coarse, umf-disjointCoarseMallocPool, | ||
| # umf-jemalloc_coarse_file, umf-scalable_coarse_file as they use Coarse | ||
| # NOTE2: on Windows we simply overwrite the umf.dll |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh, this NOTE2 should be moved a little down, I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/memory_pool.c
Outdated
|
|
||
| assert(ops->version == UMF_VERSION_CURRENT); | ||
| if (ops->version != UMF_POOL_OPS_VERSION_CURRENT) { | ||
| LOG_WARN("memory pool ops version \"%d\" is different than current " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...then the current..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/memory_provider.c
Outdated
|
|
||
| umf_memory_provider_ops_t ops_current_ver; | ||
| if (ops->version != UMF_PROVIDER_OPS_VERSION_CURRENT) { | ||
| LOG_WARN("Memory Provider ops version \"%d\" is different than current " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. (pls apply in all messages)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| /// @brief Version of the Memory Pool ops structure. | ||
| /// NOTE: This is equal to the latest UMF version, in which the ops structure | ||
| /// has been modified. | ||
| #define UMF_POOL_OPS_VERSION_CURRENT UMF_MAKE_VERSION(0, 11) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should RELEASE_STEPS include this info..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all that code in 1 commit? ;-) Consider splitting or, at least, describing it a little more in the commit msg, pls.
5aafd9a to
5fa5a8b
Compare
done |
Add backward compatibility workflow and tests.
Suppose we have umfFunc_0_11 and umfFunc_0_10. With this PR:
Major changes:
fixes #908