Skip to content

Fix learner screenshot delivery and startup races - #4

Merged
a-a-ron merged 1 commit into
mainfrom
a-a-ron-add-activity-screenshots
Sep 30, 2026
Merged

a-a-ron merged 1 commit into
mainfrom
a-a-ron-add-activity-screenshots

Conversation

@a-a-ron

@a-a-ron a-a-ron commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • render repository-local activity images as learner-repository raw URLs before posting issue comments
  • serialize Step 0 runs and reuse the canonical open exercise issue to prevent duplicate initialization
  • correct the edge-failure and repair visuals to match literal pytest output and the graded quantized implementation

Validation

  • Actionlint and Ruby YAML parsing for all workflows
  • mechanically rendered all five URLs for octocat/learner-copy
  • python3 -m pytest -q (starter state)
  • completed-state notes, focused tests, edge tests, 19-test full suite, and PR-body graders
  • exact-case image paths and 1440x900 dimensions
  • git diff --check

Follow-up to #3, which was merged before these end-to-end learner-run findings were applied.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 18:38
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Cancelling active Step 0 runs can leave initialization partially completed.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Updates learner step delivery to render valid image URLs and reduce duplicate exercise initialization.

Changes:

  • Adds repository-local image URL rendering for Steps 1–5.
  • Reuses existing exercise issues during startup.
  • Adds Step 0 concurrency handling.
File Description
.github/​workflows/​0-start-exercise.yml Adds issue reuse, concurrency, and Step 1 rendering.
.github/​workflows/​1-step.yml Renders Step 2 image URLs.
.github/​workflows/​2-step.yml Renders Step 3 image URLs.
.github/​workflows/​3-step.yml Renders Step 4 image URLs.
.github/​workflows/​4-step.yml Renders Step 5 image URLs.
.github/​scripts/​render_step.py Converts local image paths to raw repository URLs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


concurrency:
group: start-exercise-${{ github.repository }}
cancel-in-progress: true
@a-a-ron
a-a-ron merged commit 448b954 into main Sep 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants