Skip to content

Fix/tts service sends no http security headers no he - #1261

Open
Olisachukwuma1 wants to merge 2 commits into
solutions-plug:fix/tts-service-sends-no-http-security-headers-no-hefrom
Olisachukwuma1:fix/tts-service-sends-no-http-security-headers-no-he
Open

Fix/tts service sends no http security headers no he#1261
Olisachukwuma1 wants to merge 2 commits into
solutions-plug:fix/tts-service-sends-no-http-security-headers-no-hefrom
Olisachukwuma1:fix/tts-service-sends-no-http-security-headers-no-he

Conversation

@Olisachukwuma1

Copy link
Copy Markdown
Contributor

Description

Type of Change

  • Bug fix
  • New feature
  • Refactor / code cleanup
  • Documentation update
  • CI / tooling change
  • Breaking change

Testing Done

Bundle Size

Chunk Before After
vendor.js
main*.js
pages/_app*.js

Checklist

  • Tests pass locally
  • Documentation updated (if applicable)
  • No breaking changes, or breaking changes are documented above
  • If you added or changed an API endpoint, regenerated the OpenAPI spec and committed the result:
    cd services/api && cargo run --bin generate-openapi > openapi.yaml
    git add openapi.yaml && git commit -m "chore: regenerate openapi.yaml"
  • If you changed system architecture (new service, database, external dependency, or network boundary), updated docs/architecture.md
  • Bundle size checked (if frontend changes)

Related Issues

Closes #1219

Olisachukwuma1 and others added 2 commits July 28, 2026 19:36
tsconfig included src with no exclude, so src/__tests__ was compiled
into dist/__tests__. Jest then matched the emitted server.test.d.ts as
a suite with no tests, failing the run even though all 16 tests passed:

    FAIL dist/__tests__/server.test.d.ts
      - Your test suite must contain at least one test.

Exclude tests from the build, and add testPathIgnorePatterns for /dist/
so a stale dist cannot break the suite again. Tests remain typechecked:
ts-jest typechecks them at run time.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`npx tsc --noEmit` and `npm run build` were already failing on main:

    src/tracing.ts(21,19): error TS2693: 'Resource' only refers to a
      type, but is being used as a value here.
    src/tracing.ts(28,9): error TS2353: 'ignoreIncomingPaths' does not
      exist in type 'HttpInstrumentationConfig'.

The installed OTel v2 packages dropped both APIs: @opentelemetry/resources
now exports Resource as a type only (use resourceFromAttributes), and
instrumentation-http replaced ignoreIncomingPaths with the
ignoreIncomingRequestHook predicate. Port both call sites.

Unrelated to the security-headers change, but required for the PR
checklist's zero-warning build.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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