codecov.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Setting coverage targets per flag
  2. coverage:
  3. status:
  4. project:
  5. default: false
  6. patch:
  7. default: false
  8. frontend:
  9. # codecov will not fail status checks for master
  10. only_pulls: true
  11. informational: false # Fail the check
  12. target: 60%
  13. flags:
  14. - frontend
  15. backend:
  16. # codecov will not fail status checks for master
  17. only_pulls: true
  18. informational: false # Fail the check
  19. target: 90%
  20. flags:
  21. - backend
  22. ignore:
  23. - src/*/migrations/
  24. - src/bitfield/
  25. - src/sentry/debug/
  26. - src/sentry/lint/
  27. - src/sentry/runner/
  28. - src/social_auth/
  29. - static/app/routes.tsx
  30. - tests/
  31. component_management:
  32. individual_components:
  33. # Profiling team components
  34. - component_id: "profiling_views"
  35. name: "Profiling Views"
  36. paths:
  37. - "static/app/views/profiling/**"
  38. - component_id: "profiling_components"
  39. name: "Profiling Components"
  40. paths:
  41. - "src/sentry/static/sentry/app/components/profiling/**"
  42. - component_id: "profiling_utils"
  43. name: "Profiling Utils"
  44. paths:
  45. - "src/sentry/static/sentry/app/utils/profiling/**"
  46. flags:
  47. frontend:
  48. paths:
  49. - "static/app/"
  50. carryforward: true
  51. # FE uploads 4 coverage reports. This property ensures codecov waits
  52. # for all reports to be uploaded before creating a GitHub status check.
  53. after_n_builds: 4
  54. backend:
  55. paths:
  56. - "src/sentry/**/*.py"
  57. carryforward: true
  58. # Do not send any status checks until N coverage reports are uploaded
  59. after_n_builds: 16
  60. # Read more here: https://docs.codecov.com/docs/pull-request-comments
  61. comment:
  62. # This is the addition of carry forward builds and fresh builds, thus, it's the addition
  63. # of the FE and BE builds
  64. after_n_builds: 20
  65. layout: "diff, files"
  66. # Update, if comment exists. Otherwise post new.
  67. behavior: default
  68. # Comments will only post when coverage changes. Furthermore, if a comment
  69. # already exists, and a newer commit results in no coverage change for the
  70. # entire pull, the comment will be deleted.
  71. require_changes: true
  72. require_base: yes # must have a base report to post
  73. require_head: yes # must have a head report to post