Skip to content

Commit 144fa64

Browse files
committed
make
1 parent 27ea63d commit 144fa64

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

docs/install/releases/feature-stages.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you encounter an issue with any Coder feature, please submit a
1010
## Feature stages
1111

1212
| Feature stage | Stable | Production-ready | Support | Description |
13-
| -------------------------------------- | ------ | ---------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
13+
|----------------------------------------|--------|------------------|-----------------------|-------------------------------------------------------------------------------------------------------------------------------|
1414
| [Early Access](#early-access-features) | No | No | GitHub issues | For staging only. Not feature-complete or stable. Disabled by default. |
1515
| [Beta](#beta) | No | Not fully | Docs, Discord, GitHub | Publicly available. In active development with minor bugs. Suitable for staging; optional for production. Not covered by SLA. |
1616
| [GA](#general-availability-ga) | Yes | Yes | License-based | Stable and tested. Enabled by default. Fully documented. Support based on license. |
@@ -66,7 +66,7 @@ You can opt-out of a feature after you've enabled it.
6666
<!-- BEGIN: available-experimental-features -->
6767

6868
| Feature Flag | Name | Available in |
69-
| ----------------- | -------------------------- | ---------------------- |
69+
|-------------------|----------------------------|------------------------|
7070
| `dev-containers` | Dev Containers Integration | main, mainline, stable |
7171
| `securing-agents` | Securing AI Agents | main, mainline, stable |
7272

@@ -108,7 +108,7 @@ available in the documentation.
108108
<!-- BEGIN: beta-features -->
109109

110110
| Feature Flag | Name | Available in |
111-
| --------------------- | ------------------- | ---------------------- |
111+
|-----------------------|---------------------|------------------------|
112112
| `agentic-chat` | AI Coding Agents | main, mainline, stable |
113113
| `coder-desktop` | Coder Desktop | main, mainline, stable |
114114
| `workspace-prebuilds` | Prebuilt workspaces | main, mainline, stable |

scripts/release/docs_update_experiments.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ echo_latest_stable_version() {
4040
echo "stable"
4141
return
4242
fi
43-
43+
4444
# Try to get latest stable version, fallback to "stable" if it fails
4545
version=$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/coder/coder/releases/latest 2>/dev/null || echo "error")
4646
if [[ "${version}" == "error" || -z "${version}" ]]; then
4747
log "Warning: Failed to fetch latest stable version. Using 'stable' as placeholder."
4848
echo "stable"
4949
return
5050
fi
51-
51+
5252
version="${version#https://github.com/coder/coder/releases/tag/v}"
5353
echo "v${version}"
5454
}
@@ -58,23 +58,23 @@ echo_latest_mainline_version() {
5858
echo "mainline"
5959
return
6060
fi
61-
61+
6262
# Try to get the latest mainline version, fallback to "mainline" if it fails
6363
local version
64-
version=$(curl -fsSL -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/coder/coder/releases 2>/dev/null |
64+
version=$(curl -fsSL -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/coder/coder/releases 2>/dev/null |
6565
awk -F'"' '/"tag_name"/ {print $4}' |
6666
tr -d v |
6767
tr . ' ' |
6868
sort -k1,1nr -k2,2nr -k3,3nr |
6969
head -n1 |
7070
tr ' ' . || echo "")
71-
71+
7272
if [[ -z "${version}" ]]; then
7373
log "Warning: Failed to fetch latest mainline version. Using 'mainline' as placeholder."
7474
echo "mainline"
7575
return
7676
fi
77-
77+
7878
echo "v${version}"
7979
}
8080

@@ -86,7 +86,7 @@ sparse_clone_codersdk() {
8686
echo ""
8787
return
8888
fi
89-
89+
9090
# Always return success with a placeholder directory
9191
echo "${1}/${2}"
9292
}
@@ -140,13 +140,13 @@ EOT
140140
extract_version_experiment_info() {
141141
local dir=$1
142142
local version=$2
143-
143+
144144
if [[ "${GH_AVAILABLE}" == "false" || -z "${dir}" ]]; then
145145
# If GitHub isn't available, just set all features to the same version
146146
extract_local_experiment_info | jq --arg version "${version}" '[.[] | . + {"versions": [$version]}]'
147147
return
148148
fi
149-
149+
150150
# For simplicity and stability, let's just use the local experiments
151151
# and mark them as available in the specified version.
152152
# This avoids the complex Go module replacement that can be error-prone
@@ -158,42 +158,42 @@ combine_experiment_info() {
158158
local workdir=$1
159159
local stable_version=$2
160160
local mainline_version=$3
161-
161+
162162
# Extract information from different versions
163163
local local_info stable_info mainline_info
164164
local_info=$(extract_local_experiment_info)
165-
165+
166166
if [[ "${GH_AVAILABLE}" == "true" ]]; then
167167
# Create sparse clones and extract info
168168
local stable_dir mainline_dir
169-
169+
170170
stable_dir=$(sparse_clone_codersdk "${workdir}" "stable" "${stable_version}")
171171
if [[ -n "${stable_dir}" ]]; then
172172
stable_info=$(extract_version_experiment_info "${stable_dir}" "stable")
173173
else
174174
# Fallback if sparse clone failed
175175
stable_info=$(extract_local_experiment_info | jq '[.[] | . + {"versions": ["stable"]}]')
176176
fi
177-
177+
178178
mainline_dir=$(sparse_clone_codersdk "${workdir}" "mainline" "${mainline_version}")
179179
if [[ -n "${mainline_dir}" ]]; then
180180
mainline_info=$(extract_version_experiment_info "${mainline_dir}" "mainline")
181181
else
182182
# Fallback if sparse clone failed
183183
mainline_info=$(extract_local_experiment_info | jq '[.[] | . + {"versions": ["mainline"]}]')
184184
fi
185-
185+
186186
# Cleanup
187187
rm -rf "${workdir}"
188188
else
189189
# If GitHub isn't available, just mark everything as available in all versions
190190
stable_info=$(extract_local_experiment_info | jq '[.[] | . + {"versions": ["stable"]}]')
191191
mainline_info=$(extract_local_experiment_info | jq '[.[] | . + {"versions": ["mainline"]}]')
192192
fi
193-
193+
194194
# Add 'main' version to local info
195195
local_info=$(echo "${local_info}" | jq '[.[] | . + {"versions": ["main"]}]')
196-
196+
197197
# Combine all info
198198
echo '[]' | jq \
199199
--argjson local "${local_info}" \
@@ -215,20 +215,20 @@ combine_experiment_info() {
215215
# Generate the early access features table
216216
generate_experiments_table() {
217217
local experiment_info=$1
218-
218+
219219
echo "| Feature Flag | Name | Available in |"
220220
echo "|-------------|------|--------------|"
221-
221+
222222
echo "${experiment_info}" | jq -r '.[] | select(.stage=="early access") | "| `\(.value)` | \(.description) | \(.versions | join(", ")) |"'
223223
}
224224

225225
# Generate the beta features table
226226
generate_beta_table() {
227227
local experiment_info=$1
228-
228+
229229
echo "| Feature Flag | Name | Available in |"
230230
echo "|-------------|------|--------------|"
231-
231+
232232
echo "${experiment_info}" | jq -r '.[] | select(.stage=="beta") | "| `\(.value)` | \(.description) | \(.versions | join(", ")) |"'
233233
}
234234

@@ -315,4 +315,4 @@ rm -f /tmp/ea_content.md /tmp/beta_content.md
315315
rm -f "${dest}.bak"
316316

317317
# Format the file with prettier
318-
(cd site && pnpm exec prettier --cache --write ../"${dest}")
318+
(cd site && pnpm exec prettier --cache --write ../"${dest}")

0 commit comments

Comments
 (0)