Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1fb6dc3b8f | |||
| 714d257058 |
@@ -1,6 +1,6 @@
|
|||||||
# Tessera GUI workflows
|
# 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.
|
There is no production service deployment in this workflow.
|
||||||
|
|
||||||
@@ -21,17 +21,16 @@ fractional scale, multiline bounds, Unicode truncation and antialiased opacity.
|
|||||||
## Incremental verification
|
## Incremental verification
|
||||||
|
|
||||||
Gitea 1.26 concurrency groups cancel superseded runs on the same ref. Markdown-only
|
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
|
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.
|
revisions retain their old behavior.
|
||||||
|
|
||||||
The workflow invokes [verify-ci.sh](../../scripts/verify-ci.sh). Docker builds the
|
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
|
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
|
source build context. The checkout is mounted read-only at /build. Named volumes
|
||||||
persist Cargo registry/git downloads and /cargo-target across container removal,
|
persist Cargo registry/git downloads and /cargo-target across container removal,
|
||||||
including failed tests and cancelled runs. Main/manual runs and each PR have
|
including failed tests and cancelled runs. Main push and manual runs use the main cache scope. Changing Rust/toolchain compatibility requires updating
|
||||||
separate cache scopes. Changing Rust/toolchain compatibility requires updating
|
|
||||||
the image and cache prefix in the script. Cargo lockfiles and fingerprints decide
|
the image and cache prefix in the script. Cargo lockfiles and fingerprints decide
|
||||||
which dependencies/artifacts are reusable; caches do not bypass checks.
|
which dependencies/artifacts are reusable; caches do not bypass checks.
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths-ignore: ["**/*.md"]
|
paths-ignore: ["**/*.md"]
|
||||||
pull_request:
|
|
||||||
paths-ignore: ["**/*.md"]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -14,6 +12,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify:
|
verify:
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
runs-on: ces-control
|
runs-on: ces-control
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -207,8 +207,10 @@ page.render(Column(0,8,Column(0,8,paragraph,tail),Column(50,8,paragraph)))
|
|||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
assert_eq!(commands.len(), 2);
|
assert_eq!(commands.len(), 2);
|
||||||
assert_eq!(commands[0][0], 240.0);
|
// The 240px window reserves 56px for the rail and 8px for its inset.
|
||||||
assert_eq!(commands[1][0], 140.0);
|
// 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]);
|
assert!(commands[1][1] > commands[0][1]);
|
||||||
let tail = initial
|
let tail = initial
|
||||||
.frame
|
.frame
|
||||||
@@ -236,6 +238,20 @@ page.render(Column(0,8,Column(0,8,paragraph,tail),Column(50,8,paragraph)))
|
|||||||
.map(|m| m.id)
|
.map(|m| m.id)
|
||||||
.collect::<Vec<_>>()
|
.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
|
let heights: Vec<_> = resized
|
||||||
.frame
|
.frame
|
||||||
.commands
|
.commands
|
||||||
@@ -1758,6 +1774,15 @@ fn viewport_resize_changes_constraints_and_preserves_mount_identity_without_sour
|
|||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.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 ids: Vec<_> = initial.frame.mounts.iter().map(|mount| mount.id).collect();
|
||||||
let document = session
|
let document = session
|
||||||
.resize(Some(crate::layout::Size {
|
.resize(Some(crate::layout::Size {
|
||||||
@@ -1780,7 +1805,7 @@ fn viewport_resize_changes_constraints_and_preserves_mount_identity_without_sour
|
|||||||
.frame
|
.frame
|
||||||
.mounts
|
.mounts
|
||||||
.iter()
|
.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_eq!(session.inputs, 0);
|
||||||
assert!(
|
assert!(
|
||||||
|
|||||||
Reference in New Issue
Block a user