Repository navigation
INFRA-1882: add a partition API acceptance suite and test package - #597
Open
rbcasperson wants to merge 4 commits into
Open
rbcasperson wants to merge 4 commits into
rbcasperson wants to merge 4 commits into
Conversation
Scaffold acceptance/ with @utic/acceptance-core 0.73.0 and add one scenario that partitions a PDF through the partition API and checks the first element is its title. It runs on staging; SND and the Transform environments are skipped. Publish the suite as @utic/unstructured-api-acceptance on push to main, so infra/acceptance can install and run it, and add the contract-only CI job (binds and lists scenarios, runs none) on pull_request. Add a root AGENTS.md with the acceptance trigger, and CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…blish workflow comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
GitHub does not let a public repo use actions from the internal github-workflows repo, so the contract job failed at setup. Inline the azure/login + az token steps, and skip the contract job on fork PRs, which get no OIDC token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rbcasperson
marked this pull request as ready for review
November 18, 2026 21:04
There was a problem hiding this comment.
All reported issues were addressed across 16 files
Shadow auto-approve: would not auto-approve because issues were found.
View guided diff | Re-trigger cubic
…olding the publisher token Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KceyiXKgcs5QtVfaL7HE3C
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Shadow auto-approve: would not auto-approve. This PR does not meet the repository auto-approval settings.
View guided diff | Re-trigger cubic
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.
Adds an acceptance suite for the partition API, built on
@utic/acceptance-core0.73.0. It ships as a test package thatinfra/acceptanceinstalls and runs (INFRA-1906). This repo's CI only checks that the suite binds; it runs no scenarios.What changed
acceptance/: scaffolded withacceptance-init. Every stamped file matches core's templates. Plus one scenario: partition the LayoutParser paper PDF withstrategy=fastand check that the response is a list of elements whose first element is the paper's title. The test PDF comes froms3://u10d-acceptance-test-data/unstructured-api/, pinned by SHA-256.@platform @freq-hourly @skip-snd @skip-transform-staging @skip-transform-prod. API keys don't work on SND, and the two Transform environments don't serve this API..github/workflows/cd_acceptance_package.yml: publishes@utic/unstructured-api-acceptancetounstructured-npmon pushes tomainthat touchacceptance/. Modelled on transform's workflow. The patch version is the number of commits that touchedacceptance/..github/workflows/ci-acceptance.yml: theAcceptance contractjob, copied from dataplane's. It builds the steps, runsbddgen, and lists the scenarios, but runs none. It triggers onpull_request, since this repo has no merge queue. It skips fork PRs, which get no OIDC token and so can't install the framework.azure/login+az account get-access-tokeninline, instead of the sharedazure-devops-oidc-tokenaction. This repo is public, and GitHub won't let a public repo use actions from the internalgithub-workflowsrepo. The first CI run failed at setup withUnable to resolve action unstructured-io/github-workflows.AGENTS.md: the acceptance trigger, which points agents atnpx acceptance-help update-for-product-changewhen a change touches the API's request/response behaviour. A rootCLAUDE.mdholds@AGENTS.md.Acceptance criteria
acceptance/AGENTS.md+acceptance/CLAUDE.md:CLAUDE.mdis exactly@AGENTS.md, and everything above## This repoinAGENTS.mdmatches core 0.73.0'stemplates/AGENTS.mdexactly (checked withdiff).AGENTS.mdnames the partition API's request/response behaviour and runsnpx acceptance-help update-for-product-change.@platformand skips the environments that don't run the API.playwright test --listcollects 1 test on staging, testing, prod and di-qa-env, and 0 on transform-staging.cd_acceptance_package.yml, andacceptance/package.jsoncarries theunstructured-acceptance-testskeyword. actionlint is clean.Acceptance contractis green on this PR (run 44377923843) and lists 1 scenario. The reader app's Azure login works from this repo.@utic/unstructured-api-acceptanceis installable fromunstructured-npm. Check withnpm view @utic/unstructured-api-acceptance versionsonce the publish workflow has run.Staging run log (
TEST_ENV=staging npm test, Node SDK warnings stripped)Deliberately not built
infra/acceptance(INFRA-1906).Session: 30576548-4fb6-4788-a16d-e2f61b15c339
🤖 Generated with Claude Code