Skip to content

fix(ci): repair lint/codecov, upgrade and SHA-pin actions - #5

Merged
gofreight-jackyeh merged 2 commits into
support-bs-3from
fix/ci-self-hosted-runners-and-pinned-actions
May 15, 2026
Merged

gofreight-jackyeh merged 2 commits into
support-bs-3from
fix/ci-self-hosted-runners-and-pinned-actions

Conversation

@gofreight-jackyeh

@gofreight-jackyeh gofreight-jackyeh commented May 15, 2026

Copy link
Copy Markdown

Summary

Address the failing CI run #25102891860 (2 errors, 10 warnings) without altering the runner setup — this repo is public, so self-hosted runners are off the table.

Linting failure

  • @angular-eslint/no-host-metadata-property no longer exists in newer @angular-eslint. Three components carried inline eslint-disable-next-line directives for it, and src/datepicker/.eslintrc.json set the rule itself — both produced Definition for rule … was not found. Removed the dead references.

Unit-test (codecov) failure

  • The unmaintained codecov npm package crashed with TypeError: result.split is not a function against the current Codecov response format. Replaced npx codecov with codecov/codecov-action (still continue-on-error: true). Optionally set CODECOV_TOKEN repo secret to enable uploads.

Node 20 deprecation warnings (10 jobs)

  • actions/checkout@v3@v4
  • actions/cache@v3@v4
  • actions/upload-artifact@v4
  • styfle/cancel-workflow-action@0.11.0@0.12.1

Supply-chain hardening

  • Every uses: now pinned to commit SHA with the floating tag preserved as a trailing comment. Notably fixes s0/git-publish-subdir-action@develop which was tracking a moving branch.

Out of scope (intentionally reverted)

Earlier drafts included runs-on: [self-hosted, general, *] and a swap to hardcoretech/action-s3-cache. Both reverted in 8e53d8f — public repo + fork PRs would expose the internal EC2 fleet (IMDS access, etc.). Keeping GitHub-hosted ubuntu-22.04 / ubuntu-latest.

Test plan

  • Workflow YAML parses (GitHub rejects malformed YAML on push)
  • linting job passes (no more no-host-metadata-property errors)
  • unit_tests_with_coverage job passes; Codecov upload runs without TypeError (or fails gracefully via continue-on-error)
  • No Node 20 deprecation annotations

🤖 Generated with Claude Code

@gofreight-jackyeh
gofreight-jackyeh requested a review from a team as a code owner May 15, 2026 04:49
@gofreight-jackyeh gofreight-jackyeh changed the title fix(ci): repair workflow, migrate to self-hosted runners fix(ci): repair lint/codecov, upgrade and SHA-pin actions May 15, 2026
@gofreight-jackyeh
gofreight-jackyeh force-pushed the fix/ci-self-hosted-runners-and-pinned-actions branch 2 times, most recently from 66f7ca9 to 60dad4b Compare May 15, 2026 04:57
Address the failing CI run (linting + unit_tests_with_coverage) and
the Node.js 20 deprecation warnings across all three workflows.

- Remove dead `@angular-eslint/no-host-metadata-property` references
  (rule was removed upstream; inline disables broke linting)
- Replace unmaintained `npx codecov` (TypeError on upload) with
  `codecov/codecov-action`
- Upgrade deprecated actions (checkout/cache/upload-artifact/
  cancel-workflow-action) to Node 20-supported versions
- Pin every action to commit SHA with the floating tag preserved
  as a trailing comment (notably s0/git-publish-subdir-action,
  which was tracking a moving branch)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@gofreight-jackyeh
gofreight-jackyeh force-pushed the fix/ci-self-hosted-runners-and-pinned-actions branch from 60dad4b to 1f4a503 Compare May 15, 2026 04:58
Playwright 1.35.1 (June 2023) predates Ubuntu 24.04. Its `install-deps`
step apt-installs `libasound2`, which on noble was renamed to
`libasound2t64`, causing `E: Package 'libasound2' has no installation
candidate` and failing all e2e jobs once `ubuntu-latest` rolled to 24.04.

Pinning the two e2e jobs to `ubuntu-22.04` is the minimal fix and keeps
the rest of the workflow on `ubuntu-latest`. A future Playwright bump
can revert this.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gofreight-jackyeh
gofreight-jackyeh enabled auto-merge (squash) May 15, 2026 07:30
@gofreight-jackyeh
gofreight-jackyeh merged commit 543dad0 into support-bs-3 May 15, 2026
11 checks passed
@gofreight-jackyeh
gofreight-jackyeh deleted the fix/ci-self-hosted-runners-and-pinned-actions branch May 15, 2026 07:34
@CJHwong CJHwong added the gobuilders:N/A GoBuilders classification: not applicable / non-requirement PR label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gobuilders:N/A GoBuilders classification: not applicable / non-requirement PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants