Skip to content

Ci/tests and postman - #1

Merged
ashutoshg-2005 merged 4 commits into
mainfrom
ci/tests-and-postman
Nov 9, 2026
Merged

ashutoshg-2005 merged 4 commits into
mainfrom
ci/tests-and-postman

Conversation

@ashutoshg-2005

Copy link
Copy Markdown
Owner

No description provided.

- credits: allow for floating-point noise before rounding up, so a cost of
  exactly 7 credits is no longer charged as 8 (0.07 / 0.01 = 7.000000000000001)
- editFile: pass the replacement as a function so "$$", "$&" and "$1" in the
  new text are written literally
- sandbox: reject only ".." or paths starting with "../", so a file named
  "..notes.md" inside the project is allowed
- grep: pass the pattern with -e so a pattern starting with "-" is not read
  as an option
The CLI imports @codeflow/shared but did not list it, so a fresh clone could
not resolve it and the CLI tests failed to load. It only worked on machines
that still had an old node_modules link.
- 87 bun tests (unit and integration) covering billing, the credit gate, the
  chat request gate, the file tools, model registry and CLI helpers
- Postman collections run by Newman against the real server with Clerk, Polar,
  the database and the model stubbed: 21 requests plus a 22-row data-driven
  run of the chat gate
Runs on pushes to main and on pull requests (windows-latest, Bun 1.3.14):
install with the frozen lockfile, bun test with coverage and a JUnit report,
the Newman API tests, and upload of the result files. Results are reported to
TestCollab only when a TESTCOLLAB_TOKEN repository secret exists.
@ashutoshg-2005
ashutoshg-2005 merged commit 845a96a into main Nov 9, 2026
1 check 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.

1 participant