Repository navigation
Run the plugin tests in CI - #6
Merged
Merged
Conversation
The workflow fetches Agent Zero and the plugin index at the commits of the local source lock.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This repository had no workflow on push or pull request, only CodeQL's default setup. Dependabot updates were checked by hand before merging. This adds
.github/workflows/ci.yml, which runs the checks intests/README.mdon every push to main and on each pull request.What it runs
One job on
ubuntu-latestwith Python 3.12, the versiontests/README.mdasks for:.coding-agent/upstreamand.coding-agent/a0-plugins. Each is a shallow fetch at the commit of the local source lock: agent-zeroba9b67df, a0-pluginsc4d90b79. The source lock itself is gitignored, so the workflow pins the two commits inenv.pip install -r tests/requirements.txt.python -m playwright install chromium.python -m pytest -v -rP -p no:cacheprovider --basetemp=.coding-agent/tmp/pytest tests, which runs the layout tests, the upstream index validator and the browser tests at desktop and phone widths.permissions: contents: read.tests/requirements.txt.The README gains a CI badge in its badge row and one line about CI.
tests/README.mdsays that CI fetches the same two commits. The brand header is otherwise unchanged.Checked locally
Fresh shallow fetches of both repositories at those commits took 3 s and 1 s. Then the same install and pytest command with Python 3.12 gave 12 passed in 1.80 s.
Measured on this PR
The job passed in 21 s on the first run and 24 s on a re-run. Fetching both repositories took 2 to 3 s, the Chromium download 8 s and pytest 1 to 2 s. The re-run restored the 61 MB pip cache in about 2 s. The install still took 4 s, so the cache saves nothing at this size. The browser download is left uncached. It is 8 s, and caching it would cost a restore of similar length.
ci-speedup
The repository has no run history, so only the static scan applies. Before this change it found nothing, because there was no workflow. On the new workflow:
pathsfilter, rated high risk by the tool. Not added. The tests read the docs and the submission files too, so a filter would skip changes that can fail them.playwright test. This is a false positive. The browser test drives Playwright from pytest throughplaywright.sync_api.