Skip to content

Main CI red post-#1220: golangci-lint flood, npm audit, internal/config integration failures #1223

Description

@cristim

Main's CI - Build & Test workflow still fails on the current HEAD (4108e51, post #1220 "fix/main-ci-failing-jobs"), run 27325319311. Every open PR inherits these failures, so CI is red regardless of the PR's content. Three independent breakages:

  1. Lint Code ("Run golangci-lint" step): a flood of findings across long-unchanged files, e.g. errcheck on cmd/cleanup-lambda/main.go:78 and cmd/configure_azure.go, errorlint on internal/config/store_postgres.go (many lines) and internal/api/handler_purchases.go:1383, godot on internal/testutil/testutil.go. The breadth suggests linter version or config drift (new linters becoming active) rather than new code. Note the repo rule to pin CI tool versions.

  2. Security Scanning ("Run npm audit (frontend)" step): the job now fails at the frontend npm audit step (the Go scanners pass).

  3. Integration Tests ("Run integration tests" step): real failures in internal/config:

    • TestPostgresStore_UpsertRecommendations_AccountScopedEviction
    • TestPostgresStore_UpsertRecommendations_AmbientAndRegisteredCoexist
    • TestPostgresStore_PurchaseExecutions/Get_execution_by_ID_-_not_found followed by panic: runtime error: invalid memory address or nil pointer dereference, failing the whole package.

The pre-commit workflow on main is also red; that one is the gocyclo breakage tracked separately in #1222.

Suggested split: pin/align golangci-lint and reconcile its config; triage the npm audit advisory (upgrade or documented exemption, no blanket --audit-level loosening without justification); fix the internal/config integration tests (the nil-pointer panic looks related to the recent (nil, nil) not-found contract change in 1017f66).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions