From 1979f8054ceb553b80ffad5f98be3d731c1a1475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 20 Oct 2026 18:30:20 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20show=20a=20real=20build=20i?= =?UTF-8?q?dentity=20(commit,=20date)=20for=20server=20and=20runners?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Embeds the git short sha and commit date at build time (forge-ci build.rs, env fallback, then unknown). forge --version, /admin/server and /admin/health show it. Runners report it on claim and heartbeat, it is stored (migration 0056), and /admin/runners and the runner page show it with an up to date, outdated or unknown badge. --- crates/forge-ci/build.rs | 44 ++++++++++++ crates/forge-ci/src/build.rs | 67 +++++++++++++++++++ crates/forge-ci/src/lib.rs | 1 + crates/forge-ci/src/proto.rs | 7 ++ .../migrations/0056_runner_build.sql | 4 ++ crates/forge-core/src/ci.rs | 2 + crates/forge-core/src/store/ci.rs | 9 ++- crates/forge-core/src/store/migrate.rs | 1 + crates/forge-runner/src/cli.rs | 2 +- crates/forge-runner/src/client.rs | 6 +- crates/forge-runner/src/runner.rs | 2 +- crates/forge-web/src/ci/api.rs | 11 ++- crates/forge-web/src/ci/api_tests.rs | 62 +++++++++++++++++ crates/forge-web/src/main.rs | 6 +- crates/forge-web/src/pages/admin_health.rs | 9 ++- crates/forge-web/src/pages/admin_runners.rs | 33 +++++++++ crates/forge-web/src/pages/admin_server.rs | 1 + 17 files changed, 252 insertions(+), 15 deletions(-) create mode 100644 crates/forge-ci/build.rs create mode 100644 crates/forge-ci/src/build.rs create mode 100644 crates/forge-core/migrations/0056_runner_build.sql diff --git a/crates/forge-ci/build.rs b/crates/forge-ci/build.rs new file mode 100644 index 0000000..c73ed62 --- /dev/null +++ b/crates/forge-ci/build.rs @@ -0,0 +1,44 @@ +//! Emits the build identity: the git commit short sha, whether the tree was dirty, and the commit +//! date. It falls back to the FORGE_BUILD_COMMIT and FORGE_BUILD_DATE environment variables when +//! there is no git (a source tarball, a sandbox without the binary), and then to "unknown". +//! The dirty flag is only re-evaluated when HEAD or its ref moves. + +use std::{env, process::Command}; + +fn git(args: &[&str]) -> Option { + let out = Command::new("git").args(args).output().ok()?; + if !out.status.success() { + return None; + } + let text = String::from_utf8(out.stdout).ok()?.trim().to_owned(); + (!text.is_empty()).then_some(text) +} + +fn main() { + println!("cargo:rerun-if-env-changed=FORGE_BUILD_COMMIT"); + println!("cargo:rerun-if-env-changed=FORGE_BUILD_DATE"); + println!("cargo:rerun-if-changed=build.rs"); + if let Some(head) = git(&["rev-parse", "--git-path", "HEAD"]) { + println!("cargo:rerun-if-changed={head}"); + } + if let Some(full) = git(&["symbolic-ref", "-q", "HEAD"]) + && let Some(path) = git(&["rev-parse", "--git-path", &full]) + { + println!("cargo:rerun-if-changed={path}"); + } + + let sha = git(&["rev-parse", "--short=7", "HEAD"]) + .or_else(|| { + env::var("FORGE_BUILD_COMMIT") + .ok() + .filter(|s| !s.is_empty()) + }) + .unwrap_or_else(|| "unknown".into()); + let date = git(&["show", "-s", "--format=%cs", "HEAD"]) + .or_else(|| env::var("FORGE_BUILD_DATE").ok().filter(|s| !s.is_empty())) + .unwrap_or_else(|| "unknown".into()); + let dirty = git(&["status", "--porcelain", "--untracked-files=no"]).is_some(); + println!("cargo:rustc-env=FORGE_GIT_SHA={sha}"); + println!("cargo:rustc-env=FORGE_GIT_DATE={date}"); + println!("cargo:rustc-env=FORGE_GIT_DIRTY={}", u8::from(dirty)); +} diff --git a/crates/forge-ci/src/build.rs b/crates/forge-ci/src/build.rs new file mode 100644 index 0000000..743b7f3 --- /dev/null +++ b/crates/forge-ci/src/build.rs @@ -0,0 +1,67 @@ +//! The build identity of this binary: version, git commit, commit date. Shared by the server and +//! the runner, which are the same binary, so a runner can be compared to the server it talks to. + +/// The crate version. +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); +/// Short git sha of the commit built, or "unknown". +pub const COMMIT: &str = env!("FORGE_GIT_SHA"); +/// Commit date (YYYY-MM-DD), or "unknown". +pub const DATE: &str = env!("FORGE_GIT_DATE"); +/// True when the tree had uncommitted changes to tracked files at build time. +pub const DIRTY: bool = matches!(env!("FORGE_GIT_DIRTY").as_bytes(), b"1"); + +/// `0.1.0 (cf8e648, 2026-10-20)`, with `cf8e648-dirty` for a dirty tree. +pub fn display() -> String { + format_build(VERSION, COMMIT, DATE, DIRTY) +} + +pub fn format_build(version: &str, commit: &str, date: &str, dirty: bool) -> String { + let dirty = if dirty { "-dirty" } else { "" }; + format!("{version} ({commit}{dirty}, {date})") +} + +/// The commit sha out of a build string made by [`display`], `None` when it is unknown or the +/// string is not in that shape. +pub fn commit_of(build: &str) -> Option<&str> { + let inner = build.split_once('(')?.1; + let commit = inner.split([',', ')']).next()?.trim(); + let commit = commit.strip_suffix("-dirty").unwrap_or(commit); + (!commit.is_empty() && commit != "unknown").then_some(commit) +} + +/// How a runner's build compares with the server's. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Freshness { + UpToDate, + Outdated, + /// The runner reported nothing usable (an old runner), or this server's own commit is unknown. + Unknown, +} + +/// Compares by commit, ignoring the dirty marker. +pub fn compare(runner: Option<&str>, server: &str) -> Freshness { + match (runner.and_then(commit_of), commit_of(server)) { + (Some(r), Some(s)) if r == s => Freshness::UpToDate, + (Some(_), Some(_)) => Freshness::Outdated, + _ => Freshness::Unknown, + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn up_to_date_compares_the_commit_only() { + let server = format_build("0.1.0", "cf8e648", "2026-10-20", false); + assert_eq!(server, "0.1.0 (cf8e648, 2026-10-20)"); + let same = format_build("0.1.0", "cf8e648", "2026-10-20", true); + assert_eq!(compare(Some(&same), &server), Freshness::UpToDate); + let older = format_build("0.1.0", "4d21658", "2026-10-19", false); + assert_eq!(compare(Some(&older), &server), Freshness::Outdated); + assert_eq!(compare(None, &server), Freshness::Unknown); + assert_eq!(compare(Some("0.1.0"), &server), Freshness::Unknown); + let unknown = format_build("0.1.0", "unknown", "unknown", false); + assert_eq!(compare(Some(&same), &unknown), Freshness::Unknown); + } +} diff --git a/crates/forge-ci/src/lib.rs b/crates/forge-ci/src/lib.rs index b02eaf5..fbb80a5 100644 --- a/crates/forge-ci/src/lib.rs +++ b/crates/forge-ci/src/lib.rs @@ -1,6 +1,7 @@ //! CI workflow config (`.forge/ci.toml`), the runner protocol, and log masking. Shared by //! forge-web and forge-runner. +pub mod build; pub mod config; pub mod cron; pub mod error; diff --git a/crates/forge-ci/src/proto.rs b/crates/forge-ci/src/proto.rs index 440d1e4..a5c00f2 100644 --- a/crates/forge-ci/src/proto.rs +++ b/crates/forge-ci/src/proto.rs @@ -61,8 +61,14 @@ pub struct ClaimRequest { /// Total memory of the runner's host, in bytes. #[serde(default, skip_serializing_if = "Option::is_none")] pub memory_bytes: Option, + /// The runner's build identity (`0.1.0 (cf8e648, 2026-10-20)`). Absent from an older runner. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub build: Option, } +/// Request header on a heartbeat: the runner's build identity, same value as `ClaimRequest::build`. +pub const BUILD_HEADER: &str = "Forge-Runner-Build"; + /// Response header on a claim: the concurrency an admin set for this runner in the web UI. Absent /// when there is no override, which means the runner uses the value from its own `runner.toml`. pub const CONCURRENCY_HEADER: &str = "Forge-Runner-Concurrency"; @@ -192,6 +198,7 @@ mod tests { version: Some("1.0.0".into()), cpus: Some(8), memory_bytes: Some(1 << 33), + build: Some("0.1.0 (cf8e648, 2026-10-20)".into()), }; let back: ClaimRequest = serde_json::from_str(&serde_json::to_string(&new).unwrap()).unwrap(); diff --git a/crates/forge-core/migrations/0056_runner_build.sql b/crates/forge-core/migrations/0056_runner_build.sql new file mode 100644 index 0000000..6f3efc3 --- /dev/null +++ b/crates/forge-core/migrations/0056_runner_build.sql @@ -0,0 +1,4 @@ +-- The build identity a runner last reported ("0.1.0 (cf8e648, 2026-10-20)"). NULL for a runner +-- that does not report one. Applied by store/migrate.rs. + +ALTER TABLE ci_runners ADD COLUMN reported_build TEXT NULL; diff --git a/crates/forge-core/src/ci.rs b/crates/forge-core/src/ci.rs index 496ea2b..da24fce 100644 --- a/crates/forge-core/src/ci.rs +++ b/crates/forge-core/src/ci.rs @@ -340,6 +340,8 @@ pub struct RunnerReport { pub version: Option, pub cpus: Option, pub memory_bytes: Option, + /// The runner's build identity, like `0.1.0 (cf8e648, 2026-10-20)`. + pub build: Option, } /// The smallest and largest concurrency an admin may set. diff --git a/crates/forge-core/src/store/ci.rs b/crates/forge-core/src/store/ci.rs index 363ea7b..6ca3ff5 100644 --- a/crates/forge-core/src/store/ci.rs +++ b/crates/forge-core/src/store/ci.rs @@ -29,7 +29,8 @@ const RUN_COLS: &str = "id, repo_id, number, trigger, git_ref, commit_oid, pull_ const RUNNER_COLS: &str = "id, name, labels, created_at, last_seen_at, disabled, \ concurrency_override, reported_concurrency, reported_version, reported_cpus, \ reported_memory_bytes, reported_config, config_overrides, \ - (SELECT COUNT(*) FROM ci_jobs WHERE ci_jobs.runner_id = ci_runners.id AND ci_jobs.state = 'running')"; + (SELECT COUNT(*) FROM ci_jobs WHERE ci_jobs.runner_id = ci_runners.id AND ci_jobs.state = 'running'), \ + reported_build"; const ARTIFACT_COLS: &str = "id, job_id, name, size, sha256, created_at"; /// Longest runner name, in bytes. @@ -76,6 +77,7 @@ fn map_runner(row: &Row) -> Result { version: col_opt_text(row, 8)?, cpus: opt_u32(row, 9)?, memory_bytes: opt_int(row, 10)?.and_then(|n| u64::try_from(n).ok()), + build: col_opt_text(row, 14)?, }, running_jobs: opt_u32(row, 13)?.unwrap_or(0), reported_config: json_map(row, 11)?, @@ -725,19 +727,21 @@ impl Store { version: report.version.clone().or(current.reported.version.clone()), cpus: report.cpus.or(current.reported.cpus), memory_bytes: report.memory_bytes.or(current.reported.memory_bytes), + build: report.build.clone().or(current.reported.build.clone()), }; if merged == current.reported { return Ok(false); } conn.execute( "UPDATE ci_runners SET reported_concurrency = ?2, reported_version = ?3, \ - reported_cpus = ?4, reported_memory_bytes = ?5 WHERE id = ?1", + reported_cpus = ?4, reported_memory_bytes = ?5, reported_build = ?6 WHERE id = ?1", ( id.to_string(), opt_int_value(merged.concurrency.map(i64::from)), opt_text(merged.version.as_deref()), opt_int_value(merged.cpus.map(i64::from)), opt_int_value(merged.memory_bytes.and_then(|n| i64::try_from(n).ok())), + opt_text(merged.build.as_deref()), ), ) .await @@ -1903,6 +1907,7 @@ mod tests { version: Some("0.9.1".into()), cpus: Some(8), memory_bytes: Some(16 << 30), + build: Some("0.1.0 (cf8e648, 2026-10-20)".into()), }; assert!( fx.store diff --git a/crates/forge-core/src/store/migrate.rs b/crates/forge-core/src/store/migrate.rs index bea319f..2ced58e 100644 --- a/crates/forge-core/src/store/migrate.rs +++ b/crates/forge-core/src/store/migrate.rs @@ -95,6 +95,7 @@ pub const MIGRATIONS: &[(u32, &str)] = &[ 55, include_str!("../../migrations/0055_user_suspensions.sql"), ), + (56, include_str!("../../migrations/0056_runner_build.sql")), ]; /// The highest migration version this binary knows about. diff --git a/crates/forge-runner/src/cli.rs b/crates/forge-runner/src/cli.rs index 86e8382..9386d24 100644 --- a/crates/forge-runner/src/cli.rs +++ b/crates/forge-runner/src/cli.rs @@ -29,7 +29,7 @@ const GC_INTERVAL: Duration = Duration::from_secs(24 * 60 * 60); #[derive(Parser)] #[command( name = "forge-runner", - version, + version = forge_ci::build::display(), about = "Runs forge CI jobs in a rootless sandbox (builtin) or rootless podman" )] struct Cli { diff --git a/crates/forge-runner/src/client.rs b/crates/forge-runner/src/client.rs index f4a5b1f..96d8ddb 100644 --- a/crates/forge-runner/src/client.rs +++ b/crates/forge-runner/src/client.rs @@ -7,8 +7,8 @@ use std::path::Path; use std::time::Duration; use forge_ci::proto::{ - CONCURRENCY_HEADER, ClaimRequest, FinishRequest, HeartbeatResponse, JobAssignment, - RegisterRequest, RegisterResponse, RunnerConfigOverrides, RunnerConfigReport, + BUILD_HEADER, CONCURRENCY_HEADER, ClaimRequest, FinishRequest, HeartbeatResponse, + JobAssignment, RegisterRequest, RegisterResponse, RunnerConfigOverrides, RunnerConfigReport, }; use reqwest::StatusCode; use reqwest::header::{CONTENT_LENGTH, HeaderMap}; @@ -125,6 +125,7 @@ impl ForgeClient { version: Some(env!("CARGO_PKG_VERSION").to_owned()), cpus: host.cpus, memory_bytes: host.memory_bytes, + build: Some(forge_ci::build::display()), }; let target = format!("{}-{}", std::env::consts::ARCH, std::env::consts::OS); let resp = self @@ -272,6 +273,7 @@ impl ForgeClient { if let Some(n) = concurrency { req = req.header(CONCURRENCY_HEADER, n.to_string()); } + req = req.header(BUILD_HEADER, forge_ci::build::display()); json_or_error(req.send().await?).await } diff --git a/crates/forge-runner/src/runner.rs b/crates/forge-runner/src/runner.rs index 6e0b90f..6e21544 100644 --- a/crates/forge-runner/src/runner.rs +++ b/crates/forge-runner/src/runner.rs @@ -255,7 +255,7 @@ impl Runner { &tx, format!( "forge-runner {}: job {} on runner {}, image {}, commit {}", - env!("CARGO_PKG_VERSION"), + forge_ci::build::display(), job.job_name, self.config.name, job.image, diff --git a/crates/forge-web/src/ci/api.rs b/crates/forge-web/src/ci/api.rs index 64cec02..5649b4e 100644 --- a/crates/forge-web/src/ci/api.rs +++ b/crates/forge-web/src/ci/api.rs @@ -9,8 +9,9 @@ use forge_ci::config::JobSpec; use forge_ci::mask::Masker; use forge_ci::proto::{ - CONCURRENCY_HEADER, ClaimRequest, FinishRequest, HeartbeatResponse, JobAssignment, Outcome, - RegisterRequest, RegisterResponse, RunnerConfigOverrides, RunnerConfigReport, + BUILD_HEADER, CONCURRENCY_HEADER, ClaimRequest, FinishRequest, HeartbeatResponse, + JobAssignment, Outcome, RegisterRequest, RegisterResponse, RunnerConfigOverrides, + RunnerConfigReport, }; use forge_core::Error as CoreError; use forge_core::ci::{CiJob, CiRun, CiRunner, JobState, RunState, RunnerReport}; @@ -192,6 +193,7 @@ async fn claim(cx: &Cx, body: Body) -> topcoat::Result { version: request.version.filter(|v| v.len() <= 64), cpus: request.cpus, memory_bytes: request.memory_bytes, + build: request.build.filter(|v| v.len() <= 64), }, ) .await; @@ -515,6 +517,11 @@ async fn heartbeat(cx: &Cx) -> topcoat::Result { runner_id, &RunnerReport { concurrency: said, + build: headers(cx) + .get(BUILD_HEADER) + .and_then(|v| v.to_str().ok()) + .filter(|v| v.len() <= 64) + .map(str::to_owned), ..RunnerReport::default() }, ) diff --git a/crates/forge-web/src/ci/api_tests.rs b/crates/forge-web/src/ci/api_tests.rs index f3a48c0..23b22c3 100644 --- a/crates/forge-web/src/ci/api_tests.rs +++ b/crates/forge-web/src/ci/api_tests.rs @@ -1173,3 +1173,65 @@ fn cache_scope_needs_a_pull_number_for_pull_requests_and_a_known_trigger() { ); assert!(cache_scope("bogus", "refs/heads/main", None, None, "main").is_none()); } + +#[tokio::test] +async fn claim_and_heartbeat_store_the_runner_build() { + let env = bare(|_| {}).await; + let (_runner, secret) = runner(&env, &[]).await; + make_run(&env, "push", None, COMMIT, &[job("a", spec(&[], &[]))]).await; + + // An older runner sends no build: nothing is stored. + let old = claim(&env.router, &secret).await; + assert_eq!(old.status, 200); + assert_eq!( + env.store.list_runners().await.unwrap()[0].reported.build, + None + ); + let assignment = old.json(); + + // The claim body carries the build. + let body = serde_json::json!({ "labels": [], "build": "0.1.0 (cf8e648, 2026-10-20)" }); + send( + &env.router, + "POST", + "/api/v1/ci/runners/claim", + &[bearer(&secret)], + json_body(&body), + ) + .await; + assert_eq!( + env.store.list_runners().await.unwrap()[0] + .reported + .build + .as_deref(), + Some("0.1.0 (cf8e648, 2026-10-20)") + ); + + // The heartbeat header updates it, e.g. after the runner restarted on a new binary. + let uri = format!( + "/api/v1/ci/jobs/{}/heartbeat", + assignment["job_id"].as_str().unwrap() + ); + let token = assignment["job_token"].as_str().unwrap(); + send( + &env.router, + "POST", + &uri, + &[ + bearer(token), + ( + "Forge-Runner-Build", + "0.1.0 (4d21658, 2026-10-19)".to_owned(), + ), + ], + Vec::new(), + ) + .await; + assert_eq!( + env.store.list_runners().await.unwrap()[0] + .reported + .build + .as_deref(), + Some("0.1.0 (4d21658, 2026-10-19)") + ); +} diff --git a/crates/forge-web/src/main.rs b/crates/forge-web/src/main.rs index 9deff48..c3675de 100644 --- a/crates/forge-web/src/main.rs +++ b/crates/forge-web/src/main.rs @@ -147,11 +147,7 @@ async fn real_main() -> ExitCode { let outcome: Result<(), BoxError> = match parts.as_slice() { [] | ["serve"] => serve(&config_path).await, ["--version"] => { - println!( - "forge {} {}", - env!("CARGO_PKG_VERSION"), - env!("FORGE_BUILD_SHA") - ); + println!("forge {}", forge_ci::build::display()); return ExitCode::SUCCESS; } ["hook", stage] => hook_cmd::run(stage).await.map_err(Into::into), diff --git a/crates/forge-web/src/pages/admin_health.rs b/crates/forge-web/src/pages/admin_health.rs index a5029d6..58095b0 100644 --- a/crates/forge-web/src/pages/admin_health.rs +++ b/crates/forge-web/src/pages/admin_health.rs @@ -271,8 +271,13 @@ async fn tiles(state: &AppState, lang: Lang, tz: &str) -> Result> { )); out.push(tile( at(lang, A::Version), - env!("CARGO_PKG_VERSION"), - env!("FORGE_BUILD_SHA"), + forge_ci::build::VERSION, + format!( + "{}{}, {}", + forge_ci::build::COMMIT, + if forge_ci::build::DIRTY { "-dirty" } else { "" }, + forge_ci::build::DATE + ), )); Ok(out) } diff --git a/crates/forge-web/src/pages/admin_runners.rs b/crates/forge-web/src/pages/admin_runners.rs index 232f42b..f22e46b 100644 --- a/crates/forge-web/src/pages/admin_runners.rs +++ b/crates/forge-web/src/pages/admin_runners.rs @@ -6,6 +6,7 @@ //! only place the token ever appears. The list never shows a token. Creating a token and deleting a //! runner are audited; the token itself is never written to the audit log. +use forge_ci::build::{self, Freshness}; use forge_core::AuditAction; use forge_core::ci::{CiRunner, FieldKind, RUNNER_FIELDS, runner_field}; use serde::Deserialize; @@ -132,6 +133,20 @@ struct RunnerRow { concurrency_source: &'static str, has_override: bool, running: u32, + /// The build the runner reported, or empty for an older runner. + build: String, + /// "up to date", "outdated" or "unknown", with the `.ci-state` class that colours it. + build_label: &'static str, + build_class: &'static str, +} + +/// How the runner's reported build compares with this server's, as a badge label and class. +fn build_badge(lang: Lang, runner: &CiRunner) -> (&'static str, &'static str) { + match build::compare(runner.reported.build.as_deref(), &build::display()) { + Freshness::UpToDate => (s(lang, "up to date", "güncel"), "ci-success"), + Freshness::Outdated => (s(lang, "outdated", "eski"), "ci-queued"), + Freshness::Unknown => (s(lang, "unknown", "bilinmiyor"), "runner-disabled"), + } } /// The effective concurrency as a number to show, and where it comes from. @@ -169,6 +184,7 @@ fn runner_row(runner: &CiRunner, tz: &str, lang: Lang, now: i64) -> RunnerRow { None => (i18n::t(lang, Key::Never).to_owned(), String::new()), }; let (concurrency, concurrency_source) = concurrency_of(runner); + let (build_label, build_class) = build_badge(lang, runner); RunnerRow { name: runner.name.clone(), labels: runner.labels.clone(), @@ -183,6 +199,9 @@ fn runner_row(runner: &CiRunner, tz: &str, lang: Lang, now: i64) -> RunnerRow { concurrency_source, has_override: runner.concurrency_override.is_some(), running: runner.running_jobs, + build: runner.reported.build.clone().unwrap_or_default(), + build_label, + build_class, } } @@ -246,6 +265,7 @@ async fn runners_view( (g::t(lang, K::TableLabels)) (s(lang, "Concurrency", "Eşzamanlılık")) (s(lang, "Running", "Çalışan")) + (s(lang, "Version", "Sürüm")) (g::t(lang, K::LastSeen)) (g::t(lang, K::TableState)) @@ -266,6 +286,12 @@ async fn runners_view( concurrency_form(lang: lang, csrf: csrf.as_str(), action: row.config_action.as_str(), key: "concurrency", value: row.concurrency.as_str(), source: row.concurrency_source, has_override: row.has_override, back: "list") (row.running.to_string()) + + if !row.build.is_empty() { + (row.build.as_str()) + } + (row.build_label) + (row.last_seen.as_str()) if row.disabled { @@ -631,6 +657,13 @@ async fn runner_detail_view(
(s(lang, "Running jobs", "Çalışan işler"))
(row.running.to_string())
(g::t(lang, K::LastSeen))
(row.last_seen.as_str())
+
(s(lang, "Build", "Derleme"))
+
+ if !row.build.is_empty() { + (row.build.as_str()) + } + (row.build_label) +
if !host_version.is_empty() {
(s(lang, "Runner version", "Çalıştırıcı sürümü"))
(host_version.as_str())
} diff --git a/crates/forge-web/src/pages/admin_server.rs b/crates/forge-web/src/pages/admin_server.rs index 94c1b5e..aceed2c 100644 --- a/crates/forge-web/src/pages/admin_server.rs +++ b/crates/forge-web/src/pages/admin_server.rs @@ -177,6 +177,7 @@ async fn server_view(

(g::t(lang, K::ServerSettings))

(g::t(lang, K::ServerSettingsIntro))

+

(match lang { Lang::Tr => "Sürüm", _ => "Version" }) " " (forge_ci::build::display())