Remove this bridge when the action tests use the released Node.js #624 API.
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, javascript
Hướng nghiên cứu
Start with .github/workflows/__shared-ci.yml, especially the prepare-nodejs-reports bridge and its relationship to the checks and reports jobs. Read the linked Node.js pull request #624 to confirm when its released API supports the action tests; remove the bridge once that condition is met. Done when Common remains releasable and its CI reports are published correctly without the bridge.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Released Node.js CI still emits native reports; Common must remain releasable first.
https://github\.com/hoverkraft\-tech/ci\-github\-nodejs/pull/624
name: Internal - Common Continuous Integration tasks
on:
workflow_call:
permissions: {}
jobs:
checks:
uses: $/.github/workflows/__checks.yml
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: write
security-events: write
issues: write
statuses: write
# FIXME: Remove this bridge when the action tests use the released Node.js #624 API.
# Released Node.js CI still emits native reports; Common must remain releasable first.
# https://github.com/hoverkraft-tech/ci-github-nodejs/pull/624
prepare-nodejs-reports:
name: Normalize reports from released Node.js CI (${{ matrix.project }})
needs: checks
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- job: test-action-create-and-merge-pull-request
project: actions/create-and-merge-pull-request
- job: test-action-discard-report-fixtures
project: actions/quality/discard-report-fixtures
- job: test-action-distributions
project: actions/action-distributions
- job: test-action-download-artifact
project: actions/download-artifact
- job: test-action-lint-pull-request-title
project: actions/quality/lint-pull-request-title
- job: test-action-need-fix-to-issue
project: actions/need-fix-to-issue
- job: test-action-prepare-ci-reports
project: actions/quality/prepare-ci-reports
- job: test-action-publish-ci-reports
project: actions/quality/publish-ci-reports
- job: test-action-test-action-distribution
project: actions/quality/test-action-distribution
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Describe the native reports
id: native
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
PROJECT: ${{ matrix.project }}
OUTCOME: ${{ fromJSON(needs.checks.outputs.job-results || '{}')[matrix.job].result || 'failure' }}
with:
script: |-
const fs = require('node:fs');
const path = require('node:path');
const project = process.env.PROJECT;
const reports = [{kind: 'test'}, {kind: 'coverage', language: 'JavaScript'}];
core.setOutput('directory', fs.mkdtempSync(path.join(process.env.RUNNER_TEMP, 'nodejs-reports-')));
core.setOutput('pattern', `ci-reports-${process.env.GITHUB_RUN_ATTEMPT}-*-${project.replaceAll('/', '-')}-*`);
core.setOutput('definition', {name: 'Node.js action checks', project, reports});
core.setOutput('outcome', process.env.OUTCOME);
- name: Download the reports produced by Node.js CI
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: ${{ steps.native.outputs.pattern }}
path: ${{ steps.native.outputs.directory }}
merge-multiple: true
- name: Normalize and retain native reports
uses: $/actions/quality/prepare-ci-reports
with:
directory: ${{ steps.native.outputs.directory }}
definition: ${{ steps.native.outputs.definition }}
outcome: ${{ steps.native.outputs.outcome }}
- name: Clean downloaded native reports
if: ${{ always() && steps.native.outputs.directory != '' }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
DIRECTORY: ${{ steps.native.outputs.directory }}
with:
script: await io.rmRF(process.env.DIRECTORY);
reports:
needs:
- checks
- prepare-nodejs-reports
if: always()
uses: $/.github/workflows/publish-ci-reports.yml
permissions:
actions: read
contents: read
pull-requests: write
code-quality: write
id-token: write
security-events: write
with:
job-results: ${{ needs.checks.outputs.job-results || toJSON(needs) }}
lint-reporters: |
annotations
code-scanning
test-workflow-publish-ci-reports:
if: ${{ !cancelled() && needs.reports.result == 'success' }}
needs: reports
uses: $/.github/workflows/__test-workflow-publish-ci-reports.yml
permissions:
actions: read
with:
artifact-id: ${{ needs.reports.outputs.artifact-id }}
markdown: ${{ needs.reports.outputs.markdown }}
complete:
name: CI complete
if: always()
needs:
- checks
- prepare-nodejs-reports
- reports
- test-workflow-publish-ci-reports
uses: $/.github/workflows/check-jobs.yml
permissions: {}
with:
job-results: ${{ toJSON(needs) }}
- Ngôn ngữ chính
- JavaScript
- Star
- 5
- Fork
- 1
- Merge trung bình
- 5 giờ 25 phút
- Pull request đã merge (30 ngày)
- 60
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hoverkraft-tech/ci-github-common
-
bug need-fix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
hoverkraft-tech/ci-github-common#694 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
hoverkraft-tech/ci-github-common#691 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
hoverkraft-tech/ci-github-common#690 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
hoverkraft-tech/ci-github-common#688 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
hoverkraft-tech/ci-github-common#695 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hoverkraft-tech/ci-github-common
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
TheOdinProject/curriculum#31596 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
solana-foundation/solana-com#2579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
vercel-labs/agent-skills#385 ·
-
documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
danielcuesta007/skeptic#73 ·
Maintainer thường phản hồi trong vòng 1 ngày