-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
When using the test-visibility-github-action with Vitest. The test steps are instrumentation simply as per the action documentation
The action only seems to work on the unit test step. The other test steps run as normal in CI, but their runs are not visible in Datadog test optimization, the additional DD_TAGS for those runs are not visible as filterable facets either increasing the likelihood they are not getting pulled in at all.
Any suggestions as to why this could be?
We have tests running in CI in this structure:
CI Pipeline Structure
┌─────────────────────────────────────────────────────────────────────────┐
│ GitHub Actions Workflow │
└─────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ Build & Test Job │
└─────────────────────────────────────────────────────────────────────────┘
│
┌───────────────┴───────────────┐
│ │
▼ ▼
┌─────────────────────────────┐ ┌─────────────────────────────┐
│ Setup Environment │ │ Install Dependencies │
└─────────────────────────────┘ └─────────────────────────────┘
│ │
└───────────────┬───────────────┘
│
┌───────────────┴───────────────┐
│ │
▼ ▼
┌─────────────────────────────┐ ┌─────────────────────────────┐
│ Unit Tests │ │ Integration Tests │
│ ┌─────────────────────┐ │ │ ┌─────────────────────┐ │
│ │ Vitest Test Suite │ │ │ │ API Tests │ │
│ └─────────────────────┘ │ │ └─────────────────────┘ │
│ ┌─────────────────────┐ │ │ ┌─────────────────────┐ │
│ │ Component Tests │ │ │ │ E2E Tests │ │
│ └─────────────────────┘ │ │ └─────────────────────┘ │
└─────────────────────────────┘ └─────────────────────────────┘
│ │
└───────────────┬───────────────┘
│
┌───────────────┴───────────────┐
│ │
▼ ▼
┌─────────────────────────────┐ ┌─────────────────────────────┐
│ Build Application │ │ Deploy Preview │
└─────────────────────────────┘ └─────────────────────────────┘
Legend:
├─ Job
├─ Step
└─ Test Suite
Test Execution Flow
- Unit tests run in parallel with integration tests
- Build only proceeds if all tests pass
- Preview deployment occurs after successful build
- Each test suite runs in isolation to prevent interference
Metadata
Metadata
Assignees
Labels
No labels