Skip to content

Read e2e logs and files with Probe's file action - #553

Merged
linyows merged 1 commit into
mainfrom
e2e-file-action
Nov 23, 2026
Merged

linyows merged 1 commit into
mainfrom
e2e-file-action

Conversation

@linyows

@linyows linyows commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Probe v1.39.0 adds a `file` action, and the e2e workflow now uses it wherever a step only reads or writes a local file. The CI workflow runs Probe v1.39.0 instead of v1.30.0.

  • Log checks count matching lines with `count(lines(res.content), ...)`, `any` and `none` instead of `grep -c`, so their results no longer depend on the shell step's stdout, which has intermittently come back empty.
  • The patterns that need a regular expression (`--drain-time` and `--health-timeout`) use `matches`.
  • The `Show log` steps echo `res.content` instead of running `cat`.
  • The checks that the socket and `.dewy/cache/blocked` are absent use `!res.exists`.
  • The socket variant prepares its envdir with `op: delete` and `op: write` steps before dewy starts, and rewrites `DEWY_E2E_VALUE` with `op: write` before the `SIGUSR1` restart.
  • The shared-cache checks of Phase 4 and 5 count the A log in one step and add the B log's count in the next.

Steps that need a process or a remote store (`kill`, `docker`/`podman`, `curl --unix-socket`, the S3/GCS listings and the `/proc//environ` reads) stay in shell. The no-error checks also require the log to exist, as the `grep` exit status did. The Phase 4 and 5 checks now fail when the A log is missing, where they previously counted it as zero.

`e2e/README.md` has the step graph regenerated with `probe dag --mermaid`. The job-level diagrams in the docs are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kxrqqw2Z6RFJ3utKsCSKD1

Probe v1.39.0 adds a file action that reads a file, reports whether
something is at a path, and writes or deletes files. The log checks
now count lines with lines() and count() instead of piping grep -c
into stdout, the envdir of the socket variant is written with op:
write, and the checks for a removed socket or block file use
res.exists. Commands that need a process or a remote store, such as
kill, docker, curl and the bucket listings, stay in shell steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kxrqqw2Z6RFJ3utKsCSKD1
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

main (af01190) #553 (fa1c89d) +/-
Coverage 58.6% 58.6% 0.0%
Code to Test Ratio 1:1.3 1:1.3 0.0
Test Execution Time 45s 45s 0s
Details
  |                     | main (af01190) | #553 (fa1c89d) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          58.6% |          58.6% | 0.0% |
  |   Files             |             70 |             70 |    0 |
  |   Lines             |           5051 |           5051 |    0 |
  |   Covered           |           2964 |           2964 |    0 |
  | Code to Test Ratio  |          1:1.3 |          1:1.3 |  0.0 |
  |   Code              |          11164 |          11164 |    0 |
  |   Test              |          14901 |          14901 |    0 |
  | Test Execution Time |            45s |            45s |   0s |

Reported by octocov

@linyows

linyows commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

/e2e

@github-actions

Copy link
Copy Markdown

❌ E2E test failed. View logs

@linyows
linyows merged commit 5e37a77 into main Nov 23, 2026
10 checks passed
@linyows
linyows deleted the e2e-file-action branch November 23, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant