Skip to content

test: Add packed SDK HTTP end-to-end checks to CI - #779

Merged
AaronDDM merged 10 commits into
mainfrom
codex/nodejs-packed-e2e-ci
Nov 4, 2026
Merged

AaronDDM merged 10 commits into
mainfrom
codex/nodejs-packed-e2e-ci

Conversation

@AaronDDM

@AaronDDM AaronDDM commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Install a freshly packed SDK into a clean consumer and exercise its public methods over native HTTP/fetch. Cover CJS/ESM consumers, attachment wire bytes and upload references/headers, pagination, serialization, interrupted responses, deadlines, and sensitive error redaction. Run the suite across the existing Node 18/20/24/25 CI matrix, separately from Jest.

Validation: 565 Jest tests pass. Packed E2E/safety checks: Node 24 has 62 passes; Node 18 has 61 passes and one intentional environment-parser skip. Build, lint, formatting and package checks pass. SDK/fetch/FormData are not mocked. The upload fixture rejects incorrect required header names, which reproduced NYL-476 before its fix.

Live Google validation covered Buffer/base64/unknown-size-stream draft create/update and three one-time sends to the same test mailbox, with exact attachment length/SHA256 verification. Test drafts were deleted; all three sent messages were verified in Trash with no Inbox label, matching the default soft-delete API contract. Microsoft-only upload sessions and transactional domains require separate live configuration; their wire flows are covered by HTTP fixtures.

The live runner is separate and requires explicit opt-in, a valid self-addressed test account and an allow-listed API origin. CI never makes live provider calls. Private bounded recovery manifests support cleanup failures. These checks protect the fixes tracked by NYL-458 through NYL-466, NYL-469 through NYL-473, and NYL-476.

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.69%. Comparing base (4be7083) to head (ca073a0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #779   +/-   ##
=======================================
  Coverage   98.69%   98.69%           
=======================================
  Files          43       43           
  Lines        1073     1073           
  Branches      101      101           
=======================================
  Hits         1059     1059           
  Misses         12       12           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@qasim-nylas qasim-nylas 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.

LGTM 👍

@AaronDDM
AaronDDM merged commit ac68ee2 into main Nov 4, 2026
10 checks passed

This branch was successfully deployed

1 active deployment
sdk-reference — ca073a0a Deployed Nov 4, 2026 by AaronDDM via docs #808
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