codecov.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. # NOTE: If you change this, make sure to change `comment.after_n_builds` below as well.
  54. after_n_builds: 4
  55. backend:
  56. paths:
  57. - "src/sentry/**/*.py"
  58. carryforward: true
  59. # Do not send any status checks until n coverage reports are uploaded.
  60. # NOTE: If you change this, make sure to change `comment.after_n_builds` below as well.
  61. after_n_builds: 18
  62. # Read more here: https://docs.codecov.com/docs/pull-request-comments
  63. comment:
  64. # This is the addition of carry forward builds and fresh builds, thus, it's the addition
  65. # of the FE and BE builds
  66. after_n_builds: 22
  67. layout: "diff, files"
  68. # Update, if comment exists. Otherwise post new.
  69. behavior: default
  70. # Comments will only post when coverage changes. Furthermore, if a comment
  71. # already exists, and a newer commit results in no coverage change for the
  72. # entire pull, the comment will be deleted.
  73. require_changes: true
  74. require_base: true # must have a base report to post
  75. require_head: true # must have a head report to post