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

feat: make the latest channel point to beta-4 #506

Merged
merged 5 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions docs/src/concepts/channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

| Channel | Source | Integration Tested | Update Frequency | Available |
| ------------- | --------------- | -------------------- | ------------------------ | --------- |
| **[latest]** | published bins | ✔️ | checked every 30 minutes | ✔️ |
| **[nightly]** | `master` branch | ➖ | nightly (1:00 AM UTC) | ✔️ |
| **[beta-3]** | published bins | ➖ | only when necessary | ✔️ |
| **[latest]** | published bins | ✔️ | only when necessary | ✔️ |
| **[nightly]** | `master` branch | ➖ | nightly (1:00 AM UTC) | ✔️ |
| **[beta-3]** | published bins | ➖ | only when necessary | ✔️ |
| **[beta-4-rc]** | published bins | ➖ | only when necessary | ✔️ |
| **[beta-4-rc2]** | published bins | ➖ | only when necessary | ✔️ |
| **[beta-4]** | published bins | ➖ | only when necessary | ✔️ |
Expand Down Expand Up @@ -50,17 +50,12 @@ Keep in mind that compatibility between `forc` and `fuel-core` is not guaranteed

<!-- This section should give an overview of the latest channel -->
<!-- latest:example:start -->
The `latest` channel is updated by a scheduled GitHub workflow that **runs every 30 minutes** and checks for new, compatible releases of `forc` and `fuel-core`.

The `latest` channel is `fuelup`'s default channel. It provides access to the latest compatible, published releases of `forc` and `fuel-core`.
The `latest` channel is pointing to our latest beta network. This toolchain should be used to interact with and build on the latest testnet. This is also the default channel for `fuelup`.
<!-- latest:example:end -->

When installing the `latest` channel, fuelup will refer to the `channel-fuel-latest.toml` file published within the fuelup repository in the [gh-pages] branch to determine the set of `forc` and `fuel-core` versions to retrieve. The versions in this file are updated by a scheduled GitHub workflow that runs once every 30 minutes and performs the following steps:

1. Checks for newly published versions of forc and fuel-core.
2. Tests compatibility of new versions against a set of integration tests.
3. Selects the latest set of versions that successfully pass the tests.
4. Publishes the selected versions to the channel-fuel-latest.toml manifest.
> **Note**
>
> The `latest` channel used to point latest compatible versions of `forc` and `fuel-core`, after version v0.20.0 latest is changed to point latest network. This is a breaking change and should be taken into account for existing workflows.
kayagokalp marked this conversation as resolved.
Show resolved Hide resolved

## Developer Guide

Expand Down Expand Up @@ -103,4 +98,3 @@ You may also use [nektos/act](https://github.com/nektos/act) to run the workflow
[beta-4-rc]: #the-beta-4-rc-channel
[beta-4-rc2]: #the-beta-4-rc2-channel
[beta-4]: #the-beta-4-channel
[gh-pages]: https://github.com/FuelLabs/fuelup/tree/gh-pages
4 changes: 2 additions & 2 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ pub const FUEL_TOOLCHAIN_TOML_FILE: &str = "fuel-toolchain.toml";
pub const FUELS_VERSION_FILE: &str = "fuels_version";

pub const CHANNEL_LATEST_URL: &str =
"https://raw.githubusercontent.com/FuelLabs/fuelup/gh-pages/channel-fuel-latest.toml";
pub const CHANNEL_LATEST_FILE_NAME: &str = "channel-fuel-latest.toml";
"https://raw.githubusercontent.com/FuelLabs/fuelup/gh-pages/channel-fuel-beta-4.toml";
pub const CHANNEL_LATEST_FILE_NAME: &str = "channel-fuel-beta-4.toml";
kayagokalp marked this conversation as resolved.
Show resolved Hide resolved
pub const CHANNEL_NIGHTLY_FILE_NAME: &str = "channel-fuel-nightly.toml";
pub const CHANNEL_BETA_1_FILE_NAME: &str = "channel-fuel-beta-1.toml";
pub const CHANNEL_BETA_2_FILE_NAME: &str = "channel-fuel-beta-2.toml";
Expand Down
Loading