Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Watch the GCD timing-improvement flow: OpenROAD, AI report analysis,
Naja-Scope inspection, NajaEDA editing, Kepler Formal SEC, and a second
OpenROAD run to compare the results.

[![GCD flow demo: click to play](examples/backend/gcd/reference/media/demo-preview.jpg)](examples/backend/gcd/reference/media/demo.mp4)
![GCD flow demo](examples/backend/gcd/reference/media/demo.webp)

Click the picture to play it: 48 seconds, no audio. [Download the MP4](https://github.com/keplertech/22b/raw/refs/heads/main/examples/backend/gcd/reference/media/demo.mp4)
if the player is unavailable.
48 seconds, no audio, playing in a loop. [Download the MP4](https://github.com/keplertech/22b/raw/refs/heads/main/examples/backend/gcd/reference/media/demo.mp4)
to pause it or step through it.

## Start

Expand Down
2 changes: 2 additions & 0 deletions examples/backend/gcd/reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ package change.
guards. Not a fresh model generation.
- [media/demo.mp4](media/demo.mp4): 48-second walk-through of this replay with the
pinned packages. Its numbers, log lines and layout images come from that run.
[media/demo.webp](media/demo.webp) is the same video as an animated image,
which the top-level README can play inline.
- [live_session.py](live_session.py): optional in-memory replay with two
cumulative edits, no design exports, and full SEC after each edit.
- [request.md](request.md): saved, solution-specific request for this reference.
Expand Down
Binary file added examples/backend/gcd/reference/media/demo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@


class RepositoryTests(unittest.TestCase):
def test_demo_plays_the_video_kept_in_the_repository(self):
# GitHub embeds a player only for a copy uploaded through its website, and that
# copy goes stale when the video changes. The preview picture links to the file
# in the repository instead, so every branch shows its own video.
def test_demo_plays_inline_from_the_repository(self):
# GitHub's README player accepts only a copy uploaded through its website, which
# goes stale when the video changes, and its file page does not play an MP4. The
# animated image kept beside the MP4 plays inline, on every branch.
readme = (ROOT / "README.md").read_text()
demo = readme.split("## Demo\n", 1)[1].split("\n## ", 1)[0]
media = "examples/backend/gcd/reference/media"
self.assertRegex(demo, rf"(?m)^\[!\[[^\]]+\]\({media}/demo-preview\.jpg\)\]\({media}/demo\.mp4\)$")
self.assertRegex(demo, rf"(?m)^!\[[^\]]+\]\({media}/demo\.webp\)$")
self.assertNotIn("user-attachments", demo)
self.assertNotIn("](examples/backend/gcd/media/demo.mp4)", demo)
with (ROOT / media / "demo-preview.jpg").open("rb") as stream:
self.assertEqual(stream.read(3), b"\xff\xd8\xff")
header = (ROOT / media / "demo.webp").read_bytes()[:64]
self.assertEqual((header[:4], header[8:12]), (b"RIFF", b"WEBP"))
self.assertIn(b"ANIM", header) # animated, not a still picture

def test_demo_has_repository_download_fallback(self):
readme = (ROOT / "README.md").read_text()
Expand Down
Loading