Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9addac8c91 | ||
|
|
cee45bb962 | ||
|
|
5ccb524366 | ||
|
|
c05e2cb6ef |
No files matched your search
@@ -3,6 +3,19 @@
|
||||
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
||||
until 1.0, minor versions may contain breaking changes.
|
||||
|
||||
## [v202611-00079] – 2026-11-21
|
||||
|
||||
### Changed
|
||||
|
||||
- **Server binary keeps its symbols and line tables** (`strip = "none"`, `debug = "line-tables-only"` in the release profile), so a stack sample of the running server can be resolved to functions. The binary is a few tens of MB larger.
|
||||
|
||||
## [v202611-00078] – 2026-11-21
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Zombie processes:** the compose files start the containers with `init: true`, so children left behind by agents (Chromium, bwrap, npm) are reaped – a long-running container had collected about 1000 zombies.
|
||||
- **Telegram:** request errors no longer contain the URL, which includes the bot token, so the token does not end up in the server log.
|
||||
|
||||
## [v202611-00077] – 2026-11-20
|
||||
|
||||
### Added
|
||||
|
||||
@@ -4,6 +4,10 @@ members = ["core", "server", "cli"]
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
# Symbols and line tables stay in the binary, so a hot thread can be resolved with eu-stack / addr2line
|
||||
# on the running server (the file grows by a few tens of MB).
|
||||
strip = "none"
|
||||
debug = "line-tables-only"
|
||||
|
||||
# The command line client is small and self-contained.
|
||||
[profile.release.package.codecraft-cli]
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img alt="Version v202611-00077" src="https://img.shields.io/badge/version-v202611--00077-d69e2e?style=flat-square">
|
||||
<img alt="Version v202611-00079" src="https://img.shields.io/badge/version-v202611--00079-d69e2e?style=flat-square">
|
||||
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-689d6a?style=flat-square">
|
||||
<img alt="Rust backend" src="https://img.shields.io/badge/backend-Rust-b7410e?style=flat-square&logo=rust">
|
||||
<img alt="React PWA" src="https://img.shields.io/badge/frontend-React%20PWA-2d81ff?style=flat-square&logo=react">
|
||||
|
||||
@@ -18,6 +18,8 @@ services:
|
||||
# Pin a version (e.g. :v202611-00001) or follow :latest.
|
||||
image: git.familie-zink.org/zink/codecraft:${CODECRAFT_VERSION:-latest}
|
||||
container_name: codecraft
|
||||
# PID 1 reaps the children the agents leave behind (chromium, bwrap, npm …) instead of keeping them as zombies.
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
# Same UID/GID as the owner of your project files.
|
||||
user: "${UID:-1000}:${GID:-1000}"
|
||||
@@ -65,6 +67,7 @@ services:
|
||||
image: git.familie-zink.org/zink/codecraft:${CODECRAFT_VERSION:-latest}
|
||||
command: ["testrunner"]
|
||||
container_name: codecraft-testrunner
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
user: "${UID:-1000}:${GID:-1000}"
|
||||
# Group that owns /var/run/docker.sock on the host: stat -c %g /var/run/docker.sock
|
||||
|
||||
@@ -14,6 +14,8 @@ services:
|
||||
GIT_COMMIT: ${GIT_COMMIT:-}
|
||||
image: codecraft:latest
|
||||
container_name: codecraft
|
||||
# PID 1 reaps the children the agents leave behind (chromium, bwrap, npm …) instead of keeping them as zombies.
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
# Same UID/GID as the owner of your project files.
|
||||
user: "${UID:-1000}:${GID:-1000}"
|
||||
@@ -61,6 +63,7 @@ services:
|
||||
image: codecraft:latest
|
||||
command: ["testrunner"]
|
||||
container_name: codecraft-testrunner
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
user: "${UID:-1000}:${GID:-1000}"
|
||||
# Group that owns /var/run/docker.sock on the host: stat -c %g /var/run/docker.sock
|
||||
|
||||
@@ -130,7 +130,7 @@ impl Bot {
|
||||
}
|
||||
|
||||
async fn call(&self, method: &str, body: Value) -> Result<Value> {
|
||||
let resp = crate::provider::http_client().post(self.url(method)).timeout(Duration::from_secs(60)).json(&body).send().await.context("telegram request failed")?;
|
||||
let resp = crate::provider::http_client().post(self.url(method)).timeout(Duration::from_secs(60)).json(&body).send().await.map_err(|e| e.without_url()).context("telegram request failed")?;
|
||||
let status = resp.status();
|
||||
let v: Value = resp.json().await.unwrap_or_else(|_| json!({}));
|
||||
if v["ok"].as_bool() != Some(true) {
|
||||
@@ -174,7 +174,7 @@ impl Bot {
|
||||
if let Some(c) = caption {
|
||||
form = form.text("caption", c.chars().take(1000).collect::<String>());
|
||||
}
|
||||
let v: Value = crate::provider::http_client().post(self.url("sendPhoto")).timeout(Duration::from_secs(120)).multipart(form).send().await?.json().await?;
|
||||
let v: Value = crate::provider::http_client().post(self.url("sendPhoto")).timeout(Duration::from_secs(120)).multipart(form).send().await.map_err(|e| e.without_url())?.json().await.map_err(|e| e.without_url())?;
|
||||
if v["ok"].as_bool() != Some(true) {
|
||||
bail!("telegram sendPhoto: {}", v["description"].as_str().unwrap_or("error"));
|
||||
}
|
||||
@@ -186,7 +186,7 @@ impl Bot {
|
||||
let f = self.call("getFile", json!({"file_id": file_id})).await?;
|
||||
let path = f["file_path"].as_str().context("telegram file without path")?.to_string();
|
||||
let url = format!("{}/file/bot{}/{path}", api_base(), self.token);
|
||||
let bytes = crate::provider::http_client().get(url).timeout(Duration::from_secs(120)).send().await?.error_for_status()?.bytes().await?;
|
||||
let bytes = crate::provider::http_client().get(url).timeout(Duration::from_secs(120)).send().await.map_err(|e| e.without_url())?.error_for_status().map_err(|e| e.without_url())?.bytes().await.map_err(|e| e.without_url())?;
|
||||
Ok((bytes.to_vec(), path))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
||||
*/
|
||||
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
||||
"202611-00079": {
|
||||
en: ["The server binary keeps its symbols (for diagnosing a high CPU load); no change in behaviour"],
|
||||
de: ["Das Server-Binary behält seine Symbole (zur Diagnose einer hohen CPU-Last); keine Änderung im Verhalten"],
|
||||
},
|
||||
"202611-00078": {
|
||||
en: ["Fixed: leftover zombie processes in the container; the Telegram bot token no longer appears in error logs"],
|
||||
de: ["Behoben: übrig gebliebene Zombie-Prozesse im Container; der Telegram-Bot-Token taucht nicht mehr in Fehlerlogs auf"],
|
||||
},
|
||||
"202611-00077": {
|
||||
en: ["Factory test runner: shared base image (Node 24, Python, gcc, Chromium/Playwright) for acceptance containers; logs start time, cache hits and installed packages"],
|
||||
de: ["Factory-Test-Runner: gemeinsames Basis-Image (Node 24, Python, gcc, Chromium/Playwright) für Abnahme-Container; protokolliert Startzeit, Cache-Treffer und installierte Pakete"],
|
||||
|
||||
Reference in new issue
Block a user