Compare commits

...

2 Commits

3 changed files with 33 additions and 10 deletions
+4 -5
View File
@@ -1,6 +1,6 @@
# Tessera GUI workflows
[ci.yml](ci.yml) verifies this project on main pushes, pull requests and manual dispatch. It runs on ces-control, with a 60-minute timeout. HTTPS checkout and job token details are in [the parent README](../README.md).
[ci.yml](ci.yml) verifies this project on main pushes and manual dispatch from main. It runs on ces-control, with a 60-minute timeout. HTTPS checkout and job token details are in [the parent README](../README.md).
There is no production service deployment in this workflow.
@@ -21,17 +21,16 @@ fractional scale, multiline bounds, Unicode truncation and antialiased opacity.
## Incremental verification
Gitea 1.26 concurrency groups cancel superseded runs on the same ref. Markdown-only
pushes and pull requests skip verification; executable Endor examples and Rust
pushes to main skip verification; pull requests do not trigger this workflow; executable Endor examples and Rust
files (including embedded guide strings) still trigger checks. Manual dispatch
always runs verification. Existing queued runs created from older workflow
runs verification only when main is selected. Existing queued runs created from older workflow
revisions retain their old behavior.
The workflow invokes [verify-ci.sh](../../scripts/verify-ci.sh). Docker builds the
Rust 1.91.1/system/font toolchain from Dockerfile.ci over stdin, without sending a
source build context. The checkout is mounted read-only at /build. Named volumes
persist Cargo registry/git downloads and /cargo-target across container removal,
including failed tests and cancelled runs. Main/manual runs and each PR have
separate cache scopes. Changing Rust/toolchain compatibility requires updating
including failed tests and cancelled runs. Main push and manual runs use the main cache scope. Changing Rust/toolchain compatibility requires updating
the image and cache prefix in the script. Cargo lockfiles and fingerprints decide
which dependencies/artifacts are reusable; caches do not bypass checks.
+1 -2
View File
@@ -4,8 +4,6 @@ on:
push:
branches: [main]
paths-ignore: ["**/*.md"]
pull_request:
paths-ignore: ["**/*.md"]
workflow_dispatch:
concurrency:
@@ -14,6 +12,7 @@ concurrency:
jobs:
verify:
if: gitea.ref == 'refs/heads/main'
runs-on: ces-control
timeout-minutes: 60
env:
+28 -3
View File
@@ -207,8 +207,10 @@ page.render(Column(0,8,Column(0,8,paragraph,tail),Column(50,8,paragraph)))
})
.collect();
assert_eq!(commands.len(), 2);
assert_eq!(commands[0][0], 240.0);
assert_eq!(commands[1][0], 140.0);
// The 240px window reserves 56px for the rail and 8px for its inset.
// The second occurrence additionally has 50px padding on each side.
assert_eq!(commands[0][0], 176.0);
assert_eq!(commands[1][0], 76.0);
assert!(commands[1][1] > commands[0][1]);
let tail = initial
.frame
@@ -236,6 +238,20 @@ page.render(Column(0,8,Column(0,8,paragraph,tail),Column(50,8,paragraph)))
.map(|m| m.id)
.collect::<Vec<_>>()
);
let widths: Vec<_> = resized
.frame
.commands
.iter()
.filter_map(|command| match command {
RenderCommand::Text {
value,
wrap_bounds: Some(bounds),
..
} if value == &text => Some(bounds[0]),
_ => None,
})
.collect();
assert_eq!(widths, [336.0, 236.0]);
let heights: Vec<_> = resized
.frame
.commands
@@ -1758,6 +1774,15 @@ fn viewport_resize_changes_constraints_and_preserves_mount_identity_without_sour
}),
)
.unwrap();
// Page content excludes the 56px rail, 8px inset and 24px root padding
// on each side, both initially and after resizing the outer window.
assert!(
initial
.frame
.mounts
.iter()
.any(|mount| mount.width == 688.0 && mount.height == 24.0)
);
let ids: Vec<_> = initial.frame.mounts.iter().map(|mount| mount.id).collect();
let document = session
.resize(Some(crate::layout::Size {
@@ -1780,7 +1805,7 @@ fn viewport_resize_changes_constraints_and_preserves_mount_identity_without_sour
.frame
.mounts
.iter()
.any(|mount| mount.width == 312.0 && mount.height == 24.0)
.any(|mount| mount.width == 248.0 && mount.height == 24.0)
);
assert_eq!(session.inputs, 0);
assert!(