codecov.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. codecov:
  2. notify:
  3. # The minimum amount of codecov reporting checks that need to complete
  4. # For FE we have 5 checks and for BE we have 11
  5. # TODO: Remove this when we have support of after_n_builds per flag
  6. after_n_builds: 5
  7. # Setting coverage targets per flag
  8. coverage:
  9. status:
  10. project:
  11. default: false
  12. patch:
  13. default: false
  14. frontend:
  15. # codecov will not fail status checks for master
  16. only_pulls: true
  17. # This will be needed until codecov supports after_n_builds for flags
  18. informational: true # Do not fail the check
  19. target: 60%
  20. flags:
  21. - frontend
  22. backend:
  23. # codecov will not fail status checks for master
  24. only_pulls: true
  25. # This will be needed until codecov supports after_n_builds for flags
  26. informational: true # Do not fail the check
  27. target: 90%
  28. flags:
  29. - backend
  30. ignore:
  31. - src/*/migrations/
  32. - src/bitfield/
  33. - src/sentry/debug/
  34. - src/sentry/lint/
  35. - src/sentry/runner/
  36. - src/social_auth/
  37. - static/app/routes.tsx
  38. - tests/
  39. component_management:
  40. individual_components:
  41. # Profiling team components
  42. - component_id: "profiling_views"
  43. name: "Profiling Views"
  44. paths:
  45. - "static/app/views/profiling/**"
  46. - component_id: "profiling_components"
  47. name: "Profiling Components"
  48. paths:
  49. - "src/sentry/static/sentry/app/components/profiling/**"
  50. - component_id: "profiling_utils"
  51. name: "Profiling Utils"
  52. paths:
  53. - "src/sentry/static/sentry/app/utils/profiling/**"
  54. flags:
  55. frontend:
  56. paths:
  57. - "static/app/"
  58. carryforward: true
  59. backend:
  60. paths:
  61. - "src/sentry/**/*.py"
  62. carryforward: true
  63. # This will add a comment to PRs
  64. # This is useful until the diff target check does not trigger early
  65. # Read more here: https://docs.codecov.com/docs/pull-request-comments#layout
  66. comment:
  67. layout: "diff, files"
  68. behavior: default # Update, if comment exists. Otherwise post new.
  69. # Comments will now only post when coverage changes. Furthermore, if a comment
  70. # already exists, and a newer commit results in no coverage change for the
  71. # entire pull, the comment will be deleted.
  72. require_changes: true
  73. require_base: yes # must have a base report to post
  74. require_head: yes # must have a head report to post