Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Missing Head Report" but CircleCI passes #1606

Open
b10n1k opened this issue Oct 10, 2024 · 0 comments
Open

"Missing Head Report" but CircleCI passes #1606

b10n1k opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@b10n1k
Copy link

b10n1k commented Oct 10, 2024

I have sporadic issues on github where the Codecov report is missing[0]. I have checked the circleCI jobs and looks just fine to me[2]. I noticed only that the "Starting create commit process" log line in the "Upload Coverage Results" provides different data than the ones which do not have the problem[1].

I read the documentation but I cant say it help me in this case[3]

{"commit_sha": "b6c7ac4cc198b159179897ac622b46609ccd9c66", "parent_sha": null, "pr": "5944", "branch": "pull/5944", "slug": "os-autoinst/openQA", "token": "0******************", "service": "github", "enterprise_url": null} and I dont know why this is happening or if it is the actual issue.

Our codecov.yml

codecov:
  branch: master
comment:
  behavior: default
  require_changes: true
# https://progress.opensuse.org/issues/88594
fixes:
  - "/home/circleci/openQA::"
coverage:
  status:
    changes: false
    project:
      default:
        target: 98
      tests:
        target: 100.0
        paths:
          - t/
    patch:
      default:
        target: 100.0
        branches: null

and in the .circleci/config.yml

version: 2.1

orbs:
  codecov: codecov/[email protected]
  [....]
  jobs:
  [...]
  codecov:
    docker:
      - <<: *base
    steps:
      - checkout
      - run: *chown_hack_for_cache
      - restore_cache: *restore_cache
      - run: *check_cache
      - store_artifacts: *store_logs
      - run: *install_cached_packages
      - restore_cache: *restore_npm_cache
      - attach_workspace:
          at: .
      - run:
          name: Merge coverage databases
          command: |
            cover -write cover_db cover_db*
            ls cover_db/*cov*
      - run: make coverage-report-html
      - store_artifacts: *store_cover_db
      - run: make coverage-report-codecov
      - run:
          # https://github.com/codecov/codecov-circleci-orb/issues/157
          name: codecov gpg workaround for gpg 2.4 as included in Leap 15.6
          command: mkdir -p ~/.gnupg
      - codecov/upload:
          file: cover_db/codecov.json
          cli_args: -v

I dont know where else I can look for to solve this and it is harder considering that this a sporadic incident. Could you assist? Have you seen this before?

[0] os-autoinst/openQA#5944
[1] https://app.codecov.io/github/os-autoinst/openQA/commit/b6c7ac4cc198b159179897ac622b46609ccd9c66
[2] https://app.circleci.com/pipelines/gh/os-autoinst/openQA/14690/workflows/efc4f8d7-1ecd-4c92-8742-ed90ec81f673/jobs/139558
[3] https://docs.codecov.com/docs/error-reference#section-missing-head-commit

@rohan-at-sentry rohan-at-sentry added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants