スキル一覧に戻る
navikt

gh-test-results

by navikt

End-to-end tester for Melosys. Kjører opp hele systemet via Docker Compose og kjører Playwright-tester mot applikasjonene.

0🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: gh-test-results description: Download and analyze GitHub Actions E2E test results from melosys-e2e-tests. Use when user asks about test results, CI failures, flaky tests, or wants to download artifacts from GitHub Actions runs.

GitHub Actions Test Results Analyzer

Analyze E2E test results from GitHub Actions runs on navikt/melosys-e2e-tests.

When to Use

  • User asks about test results or CI status
  • User wants to download artifacts from a GitHub Actions run
  • User asks about flaky tests or test failures
  • User mentions a branch and wants to see test results

Workflow

1. Find Runs

List recent runs, optionally filtered by branch:

# All recent runs
gh run list --repo navikt/melosys-e2e-tests --limit 10 --json databaseId,headBranch,status,conclusion,createdAt,name

# Specific branch
gh run list --repo navikt/melosys-e2e-tests --branch <branch-name> --limit 5 --json databaseId,headBranch,status,conclusion,createdAt

2. View Run Details

Get run info including artifacts and annotations:

gh run view <run-id> --repo navikt/melosys-e2e-tests

Key info from output:

  • JOBS section: Job status and duration
  • ANNOTATIONS: Test failures, flaky tests, pass counts
  • ARTIFACTS: Available downloads (playwright-results, test-summary, etc.)

3. Download Artifacts

mkdir -p /tmp/gh-artifacts
cd /tmp/gh-artifacts
rm -rf playwright-results test-summary 2>/dev/null
gh run download <run-id> --repo navikt/melosys-e2e-tests --name playwright-results --name test-summary

4. Analyze Results

Read these files in order of importance:

Primary: test-summary.json

Location: /tmp/gh-artifacts/test-summary/test-summary.json

{
  "status": "passed|failed|flaky",
  "tests": [{
    "title": "test name",
    "status": "passed|failed|flaky",
    "totalAttempts": 2,
    "failedAttempts": 1,
    "duration": 56494,
    "dockerErrors": null
  }],
  "tags": {
    "melosys-api": "image-tag",
    "melosys-web": "latest"
  }
}

Secondary: test-summary.md

Location: /tmp/gh-artifacts/test-summary/test-summary.md

Human-readable summary with pass/fail counts and per-run results table.

For Flaky Tests: flaky-test-summary.md

Location: /tmp/gh-artifacts/playwright-results/playwright-report/flaky-test-summary.md

Shows success rate across multiple runs (used for flaky test stability checks).

For Failures: error-context.md

Location: /tmp/gh-artifacts/playwright-results/test-results/<test-name>-chromium/error-context.md

Contains page snapshot at failure time - useful for understanding UI state when test failed.

5. Present Summary

Always include:

MetricValue
Statuspassed/failed/flaky
Total AttemptsN
Failed AttemptsN
DurationXs

For flaky tests, include stability info:

  • Pass rate (e.g., 5/5 = 100%)
  • Which runs passed/failed

For failures, include:

  • Error message from annotations
  • Relevant snippet from error-context.md

Always mention:

  • Docker image tags used (from tags in JSON)
  • Artifact location: /tmp/gh-artifacts/

Available Artifacts

ArtifactContents
test-summarytest-summary.md, test-summary.json
playwright-resultsHTML report, traces, videos, screenshots, docker logs
playwright-videosTest execution videos
playwright-tracesPlaywright trace files for debugging

Docker Logs

Complete logs from all services are in: /tmp/gh-artifacts/playwright-results/playwright-report/<service>-complete.log

Services: melosys-api, melosys-web, melosys-mock, faktureringskomponenten, melosys-dokgen, melosys-trygdeavgift-beregning, melosys-trygdeavtale

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です