Skip to content
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

chore(release): nextnet hotfix default network selection #5327

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

brianp
Copy link
Contributor

@brianp brianp commented Apr 14, 2023

Description

Features is now a frequently used build dep in most our crates. Common actually also needs to be feature aware during build time. This means tari-features should have little to no dependencies, and especially none from our own crates.

Motivation and Context

Related to #5326
Development fix: #5333

How Has This Been Tested?

Manually

What process can a PR reviewer use to test or verify this change?

Run cargo build with the desired network type (nextnet):
TARI_NETWORK=nextnet cargo build --bin tari_base_node

Run the bin directly without using cargo. It's important not to use cargo during the testing as the bin will likely rebuild when using run and change the previous TARI_NETWORK compilation settings:
./target/tari_base_node

See that the default network is NextNet.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

@brianp brianp force-pushed the fix-default-networks branch from a1b0784 to f475e35 Compare April 17, 2023 13:03
@brianp brianp changed the title Remove common as dependency form tari-features fix: default network selection Apr 17, 2023
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Apr 17, 2023
@brianp brianp force-pushed the fix-default-networks branch from f475e35 to 57e8ce3 Compare April 17, 2023 13:34
@brianp brianp changed the title fix: default network selection chore(release): hotfix default network selection Apr 17, 2023
@brianp brianp marked this pull request as ready for review April 17, 2023 13:42
@brianp brianp changed the title chore(release): hotfix default network selection chore(release): nextnet hotfix default network selection Apr 17, 2023
@brianp brianp mentioned this pull request Apr 17, 2023
4 tasks
SWvheerden pushed a commit that referenced this pull request Apr 17, 2023
Description
---
Features is now a frequently used build dep in most our crates. Common
actually also needs to be feature aware during build time. This means
tari-features should have little to no dependencies, and especially none
from our own crates.

Motivation and Context
---
Related to issue #5326 
Related to nextnet hotfix #5327 

How Has This Been Tested?
---
Manually

What process can a PR reviewer use to test or verify this change?
---
Run cargo build with the desired network type (nextnet):
`TARI_NETWORK=nextnet cargo build --bin tari_base_node`

Run the bin directly without using cargo. It's important not to use
cargo during the testing as the bin will likely rebuild when using `run`
and change the previous `TARI_NETWORK` compilation settings:
`./target/tari_base_node` 

See that the default network is NextNet.

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify
brianp added 2 commits April 17, 2023 23:24
Remove common as dependency form tari-features

Features is now a frequently used build dep in most of our crates. Common
actually also needs to be feature aware during build time. This means
tari-features should have little to no dependencies, especially none
from our own crates.

This caused a bug with the default network selection, as tari-feature
wasn't successfully included in tari-common, causing the default network
selection to downgrade its selection to TestNet regardless of the
build.
@brianp brianp force-pushed the fix-default-networks branch from 57e8ce3 to 2b507c2 Compare April 17, 2023 21:29
@SWvheerden
Copy link
Collaborator

This looks good, just needs to be updated to include: #5329

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Apr 18, 2023
@SWvheerden SWvheerden merged commit 12503cc into tari-project:nextnet Apr 18, 2023
@brianp brianp deleted the fix-default-networks branch October 2, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants