Skip to content

test(ingest-epcis): data-free placeholders instead of invented EPCIS fixtures - #3566

Merged
PetrefiedThunder merged 1 commit into
mainfrom
hermes/remove-epcis-fake-fixture
Oct 24, 2026
Merged

PetrefiedThunder merged 1 commit into
mainfrom
hermes/remove-epcis-fake-fixture

Conversation

@PetrefiedThunder

@PetrefiedThunder PetrefiedThunder commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Real data only in tests. In frontend/src/tests/pages/ingest-epcis.test.tsx: SINGLE_EVENT (invented 2026-03-01 eventTime, offset, bizStep) becomes {}; EPCIS_XML drops the invented ObjectEvent/eventTime and keeps an empty structural <EventList />; the two derived batches with edited eventTime become [{ ...SINGLE_EVENT }, { ...SINGLE_EVENT }]. Routing is shape-based (object → single, array → batch, .xml → XML endpoint), so passthrough, counts and endpoint routing are still exercised. Top-of-file sample import left untouched to avoid conflicting with #3561.

Local: vitest ingest-epcis.test.tsx 10/10 passed.


Note

Low Risk
Test-only fixture cleanup in one Vitest file; no application or API behavior changes.

Overview
Replaces invented EPCIS field values in ingest-epcis.test.tsx with minimal placeholders so routing tests do not imply fake domain data.

SINGLE_EVENT is now an empty {} (typed as Record<string, unknown>), batch cases use two copies of that object instead of differing eventTimes, and EPCIS_XML keeps document structure with an empty <EventList />. A short comment documents that ingest routing depends on JSON shape (single object vs array vs .xml filename), not event contents. The sample file test still uses sample_epcis_2.0.json for realistic multi-event coverage.

Reviewed by Cursor Bugbot for commit 7ceedf2. Bugbot is set up for automated code reviews on this repo. Configure here.

…ree placeholders

Signed-off-by: Christopher Sellers <1@christophersellers.com>
@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
regengine Ready Ready Preview Oct 24, 2026 5:33am UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T05:32:29.777310Z 7ceedf2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between f177122 and 7ceedf2.

Files selected for processing: 1
  • frontend/src/__tests__/pages/ingest-epcis.test.tsx

Limit details: You’ve used all 10 included reviews currently available.

Walkthrough

The EPCIS JSON fixture now uses an empty event object, and the XML fixture has an empty EventList. The batch-ingestion and batch-validation tests now use two identical placeholder events. Existing assertions remain unchanged.

Priority: Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Merge Risk: Minimal · up to 7ceed

No actionable merge-blocking risk was identified in the fixture-only test changes.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the code changes and reports test results, but it omits the required Summary, Type of Change, Test Plan, Checklist, and Related Issues sections from the repository template. Update the description to include all template sections. Mark applicable Type of Change and Test Plan items, complete the Checklist, and state related issues or N/A.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the test change: replacing invented EPCIS fixtures with data-free placeholders.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 1
  • Waived: $0.25 (charged $0.00)
  • View usage details

Note

This review exceeded your plan’s limits and used usage-based reviews—free during trial, billed after paid activation unless disabled. Manage usage-based reviews.

Comment @coderabbitai help to get the list of available commands.

@PetrefiedThunder PetrefiedThunder left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Formal review at 7ceedf2. The head matches and the branch is up to date with main.

Scope: one commit, touching only ingest-epcis.test.tsx (+6/-15).

  • SINGLE_EVENT becomes {}.
  • EPCIS_XML now has an empty <EventList />.
  • Both two-event lists are now [{ ...SINGLE_EVENT }, { ...SINGLE_EVENT }].

It doesn't touch #3561's block: the sample import, the sample-link test and the epcisDocument body are unchanged. git merge-tree against #3561's head dd871b5 merges cleanly.

No invented data left in these fixtures: all of the dates (2026-03-01), the CBV bizStep URN and the XML event values are gone. The remaining mock strings are UI and error text (Missing bizLocation, EPCIS_XML_2.0) and an index or status code. They're not invented IDs or numbers.

The tests still check real behavior:

  • A single object goes to ingestEpcisEvent.
  • An array goes to ingestEpcisBatch with the exact events.
  • .xml goes to ingestEpcisXml with the exact XML.
  • Validate-only reports a failure for each event ("Event 2: ...").
  • The non-matching endpoints are asserted not called.

Local run: vitest on ingest-epcis.test.tsx passed 10 of 10.

CI was still running at review time (5 pass, 28 pending, 6 skipping, none failing).

REVIEW: PASS codex 7ceedf2

@PetrefiedThunder
PetrefiedThunder enabled auto-merge (squash) October 24, 2026 05:37
@github-actions

Copy link
Copy Markdown
Contributor

PR Blocker Checklist

Head SHA: 7ceedf25c7f60f2b43d0b274e3feee5e3d9c3397

Status: Ready

  • All review threads resolved
  • No reviews requesting changes
  • No blocked review engines

@github-actions

Copy link
Copy Markdown
Contributor

✅ Bundle Size Report

Metric Size
Total JS 6340.2KB (6.19MB)
Total CSS 149.7KB
Limit 10.0MB

Bundle is within the 10.0MB limit.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Vercel preview access note removed (A-2177 secret-hygiene cleanup).
Access is via Vercel login (Deployment Protection).

@PetrefiedThunder
PetrefiedThunder merged commit 7fdeb22 into main Oct 24, 2026
60 of 65 checks passed
@PetrefiedThunder
PetrefiedThunder deleted the hermes/remove-epcis-fake-fixture branch October 24, 2026 07:55
PetrefiedThunder added a commit that referenced this pull request Oct 25, 2026
…page and sample CSV

- Resolve conflicts with #3543/#3561/#3566/#3572: take main's 'No data yet' case-studies page, main's walkthrough package details (EPCIS kept as Preview), main's EPCIS rejection tests, drop ARCHIVE_EXPORT_JOBS
- InflowLabClient stays deleted (Inflow Lab retired by this PR)
- Delete frontend/src/app/proof/recall-drill/page.tsx, its page test and frontend/public/samples/sample_recall_drill.csv (recall drill simulation removed per C.Lee, Oct 23)
- routes.json: /proof/recall-drill moves to expectRedirectOr404 (same edit as #3551)
- Drill simulator (Load Sample Data, generateSampleCSV) untouched; #3549 not merged so no baseline.json change

Signed-off-by: Christopher <131207452+PetrefiedThunder@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — 7ceedf25 Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant