refactor(build script): rewrite the main build script#2319
Merged
Conversation
Get rid of annoying file reading/writing logics Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
3575651 to
5f4d0f6
Compare
Signed-off-by: onur-ozkan <work@onurozkan.dev>
onur-ozkan
commented
Jan 13, 2025
Author
There was a problem hiding this comment.
We need to revise our docs... This is extremely outdated.
onur-ozkan
commented
Jan 13, 2025
Author
There was a problem hiding this comment.
Since this is re-written from scratch, I suggest you to review this by opening the file directly as the diff view will make it likely impossible to understand the logic.
shamardy
reviewed
Jan 20, 2025
borngraced
previously approved these changes
Jan 20, 2025
borngraced
left a comment
There was a problem hiding this comment.
Thanks. I tested it locally and it's clean.
| // if there is MM_VERSION file, that means CI wants to put a tag to version | ||
| if !v_file.is_empty() { | ||
| version = format!("{}_{}", version, v_file.trim()); | ||
| fn version_tag() -> Result<String, String> { |
There was a problem hiding this comment.
not important get_version_tag seems like better naming
Signed-off-by: onur-ozkan <work@onurozkan.dev>
shamardy
approved these changes
Jan 21, 2025
Collaborator
shamardy
left a comment
There was a problem hiding this comment.
LGTM! Please open docs issue @onur-ozkan
Author
will do, thank you for reminding |
shamardy
pushed a commit
that referenced
this pull request
Jan 28, 2025
This commit makes the build script straightforward and more stable without causing cache invalidation. The final versioning output remains as is, but the implementation side is robust than ever.
shamardy
pushed a commit
that referenced
this pull request
Jan 30, 2025
This commit makes the build script straightforward and more stable without causing cache invalidation. The final versioning output remains as is, but the implementation side is robust than ever.
shamardy
pushed a commit
that referenced
this pull request
Jan 30, 2025
This commit makes the build script straightforward and more stable without causing cache invalidation. The final versioning output remains as is, but the implementation side is robust than ever.
dimxy
pushed a commit
to dimxy/komodo-defi-framework
that referenced
this pull request
Feb 4, 2025
* dev: fix(hash-types): remove panic, enforce fixed-size arrays (GLEECBTC#2279) fix(ARRR): store unconfirmed change output (GLEECBTC#2276) feat(tendermint): staking/delegation (GLEECBTC#2322) chore(deps): `timed-map` migration (GLEECBTC#2247) fix(mem-leak): `running_swap` never shrinks (GLEECBTC#2301) chore(dep-bump): libp2p (GLEECBTC#2326) refactor(build script): rewrite the main build script (GLEECBTC#2319)
dimxy
pushed a commit
to dimxy/komodo-defi-framework
that referenced
this pull request
Feb 4, 2025
* dev: fix(hash-types): remove panic, enforce fixed-size arrays (GLEECBTC#2279) fix(ARRR): store unconfirmed change output (GLEECBTC#2276) feat(tendermint): staking/delegation (GLEECBTC#2322) chore(deps): `timed-map` migration (GLEECBTC#2247) fix(mem-leak): `running_swap` never shrinks (GLEECBTC#2301) chore(dep-bump): libp2p (GLEECBTC#2326) refactor(build script): rewrite the main build script (GLEECBTC#2319)
dimxy
pushed a commit
that referenced
this pull request
Feb 16, 2025
* dev: fix(derive_key_from_path): check length of current_key_material (#2356) chore(release): bump mm2 version to 2.4.0-beta (#2346) fix(tests): add additional testnet sepolia nodes to test code (#2358) fix(swaps): maintain legacy compatibility for negotiation messages (#2353) refactor(SwapOps): impl defaults for protocol specific swapops fns (#2354) feat(tpu-v2): provide swap protocol versioning (#2324) feat(wallet): add change mnemonic password rpc (#2317) fix(tpu-v2): fix tpu-v2 wait for payment spend and extract secret (#2261) feat(tendermint): unstaking/undelegation (#2330) fix(utxo-withdraw): get hw ctx only when `PrivKeyPolicy` is trezor (#2333) feat(event-streaming): API-driven subscription management (#2172) fix(hash-types): remove panic, enforce fixed-size arrays (#2279) fix(ARRR): store unconfirmed change output (#2276) feat(tendermint): staking/delegation (#2322) chore(deps): `timed-map` migration (#2247) fix(mem-leak): `running_swap` never shrinks (#2301) chore(dep-bump): libp2p (#2326) refactor(build script): rewrite the main build script (#2319)
dimxy
pushed a commit
that referenced
this pull request
Feb 16, 2025
* dev: fix(derive_key_from_path): check length of current_key_material (#2356) chore(release): bump mm2 version to 2.4.0-beta (#2346) fix(tests): add additional testnet sepolia nodes to test code (#2358) fix(swaps): maintain legacy compatibility for negotiation messages (#2353) refactor(SwapOps): impl defaults for protocol specific swapops fns (#2354) feat(tpu-v2): provide swap protocol versioning (#2324) feat(wallet): add change mnemonic password rpc (#2317) fix(tpu-v2): fix tpu-v2 wait for payment spend and extract secret (#2261) feat(tendermint): unstaking/undelegation (#2330) fix(utxo-withdraw): get hw ctx only when `PrivKeyPolicy` is trezor (#2333) feat(event-streaming): API-driven subscription management (#2172) fix(hash-types): remove panic, enforce fixed-size arrays (#2279) fix(ARRR): store unconfirmed change output (#2276) feat(tendermint): staking/delegation (#2322) chore(deps): `timed-map` migration (#2247) fix(mem-leak): `running_swap` never shrinks (#2301) chore(dep-bump): libp2p (#2326) refactor(build script): rewrite the main build script (#2319)
DeckerSU
added a commit
to DeckerSU/jenkins-ci-atomicdex
that referenced
this pull request
May 5, 2025
According to changes in: GLEECBTC/komodo-defi-framework#2319
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previous build script were highly unstable and relied on the
MM_DATETIMEandMM_VERSIONfiles which was very annoying. These files caused cargo to invalidate the build cache, so even if you rancargo buildmultiple times without changing anything, it would still rebuild because the build script triggered cache invalidation.This PR makes the build script straightforward and more stable without causing cache invalidation. The final versioning output remains as is, but the implementation side is robust than ever.
Major effects:
MM_VERSIONandMM_DATETIMEfiles are no longer needed in the project root.MM_DATETIMEfile could become outdated as it wasn't consistently updated.