Skip to content

CI Status Indicator Shows False Positives #1406

Closed
codecov/gazebo
#2776

Description

@nicholas-codecov

Problem to solve

Description

Currently our CIStatus component defaults to showing a "Processing" state in the even if there is no CI being used. This is an issue because it seems like something is still happening in the background when there really isn't. Here's an example of the commit page when using bundle analysis locally:

Screenshot 2024-03-13 at 07 21 41

You can view an example here

Possible solution

We currently send the service name alongside some other information to the API (at least in the bundle analysis plugins). If this service name is Local we can safely assume that the user probably isn't user CI for this upload, and therefore we should remove this indicator altogether. We should update the current CI status field in the API to not just be a boolean value because that does not represent the possible states. We should instead move to a GraphQL Enum that represents the different possible states, that way we can handle the case where the user has uploaded something locally where there is no CI state that will ever be set, and we can just hide this element in the UI.

Screenshot 2024-03-28 at 9 44 00 AM

Figma: link

### Related issue

Activity

  1. added
    in discovery
    on Mar 13, 2024
  2. Adal3n3 commented on Mar 21, 2024

    @Adal3n3

    Adding figma file here for review. The review 🧵is on slack.

  3. Adal3n3 commented on Mar 22, 2024

    @Adal3n3

    @nicholas-codecov @katia-sentry

    Design updated 3/22: (Figma file is same as above)

    1. Pending emoji updated.
    2. Added arial labels:
      ✅ aria-label="complete"
      ⏳ aria-label="pending"
      ❌ aria-label="error"
    3. Added CI status icons on the dropdown selection for consistency.

    Screenshot 2024-03-22 at 11 46 10 AM

  4. added
    Dev-Ready
    and removed
    in discovery
    on Mar 22, 2024
  5. nicholas-codecov commented on Mar 22, 2024

    @nicholas-codecov
    Author

    My understanding is that we do not currently record the CI Status, we only track internal processing status, so we will need to work with the platform team on that. Also adding in these selects for the updated CI status, and bundles will need API work as well.

  6. Adal3n3 commented on Mar 22, 2024

    @Adal3n3

    Thanks @nicholas-codecov for the note. Sounds like only the "Coverage upload status" filter can move forward the rest need to wait.

    @giovanni-guidini how can we record the CI status?

  7. nicholas-codecov commented on Mar 27, 2024

    @nicholas-codecov
    Author

    Just wondering what the actual expectation is for this ticket atm, are we adding in another column to the pulls and commits table?

    If there hasn't been a coverage upload, we already have messaging to indicate that in the coverage, patch, and change columns

  8. codecovdesign commented on Mar 27, 2024

    @codecovdesign
    Contributor

    @katia-sentry @nicholas-codecov @Adal3n3 wdyt? 🤔

    Screenshot 2024-03-27 at 8 50 15 AM
  9. 2 remaining items

  10. nicholas-codecov commented on Mar 27, 2024

    @nicholas-codecov
    Author

    I believe that's it yes

  11. Adal3n3 commented on Mar 27, 2024

    @Adal3n3

    @codecovdesign @nicholas-codecov

    the initial step could be updating the copy ("upload status" vs "CI status"). This one issue has been slipping; so could something like this be our intro here?

    Based on the definition of each state below:

    • Complete: Upload completed
    • Pending: we have received the report, but haven’t started processing it.
    • Error: Error would be something wrong with the report, it’s empty, it’s got an unsupported format
    • Skipped: the CI skipped running for that commit. No tests run, no reports where uploaded (probably)

    We can update the copy to "Coverage upload status", and show "complete", "pending", "error", remove the "skipped" bc it doesn't belong to the upload status.

    Screenshot 2024-03-27 at 11 26 34 AM

    and then drop the CI status filter bc it's misleading, we don't record the CI status.

  12. codecovdesign commented on Mar 27, 2024

    @codecovdesign
    Contributor

    @Adal3n3 makes sense - looks good!
    What issue should be used for the above iteration? We could use https://github.com/codecov/internal-issues/issues/121 (or close), based on this update or create sub-issue here to resolve; just looks like there are other areas still under exploration.

  13. Adal3n3 commented on Mar 27, 2024

    @Adal3n3

    @codecovdesign Thanks for calling this out. I should have used https://github.com/codecov/internal-issues/issues/121 for the "Coverage upload status" filter and use this issue for updating the copy and status icon from "processing" to "no status"(on below screenshot)

    Screenshot 2024-03-27 at 2 44 54 PM

  14. codecovdesign commented on Mar 28, 2024

    @codecovdesign
    Contributor

    @Adal3n3 so 121 confirms the dropdown copy changes and this one will do the status seen on individual commits / pr + PR > pulls? The other exploration I was mentioning was the question about CI checks etc - maybe that is a separate issue? Any way sounds good just wanting to capture the dev ready changes for handoff vs later exploration items.

  15. katia-sentry commented on Mar 28, 2024

    @katia-sentry
    Contributor
  16. katia-sentry commented on Mar 28, 2024

    @katia-sentry
    Contributor

    @codecovdesign @Adal3n3 how is this issue different from 121? cc. @nicholas-codecov

  17. added
    in discovery
    and removed
    Dev-Ready
    on Mar 28, 2024
  18. Adal3n3 commented on Mar 28, 2024

    @Adal3n3

    @katia-sentry @codecovdesign Sorry all for the confusion. To clarify, the difference between this issue and issue 121 is the location of the copy change/fix.

    This issue is for updating the copy and status icon from "processing" to "no status" or like @nicholas-codecov suggested above on the description, hiding the UI element when where there is no CI state.

    Screenshot 2024-03-28 at 9 44 00 AM

    I bring this issue back in-discovery, and will tag you all to review the change on slack.

    I think we should create separate issues for CI status checking, bundle upload status, etc as they require some API works.

  19. added
    Dev-Ready
    and removed
    in discovery
    on Apr 2, 2024
  20. Adal3n3 commented on Apr 9, 2024

    @Adal3n3

    No action item. Just want to add another example to this issue.

    As long as we remove/hide the "processing" status, or change it to "No status" we will prevent further confusion.

    https://sentry.zendesk.com/agent/tickets/117502
    Screenshot 2024-04-09 at 10 49 51 AM

  21. nicholas-codecov commented on Apr 9, 2024

    @nicholas-codecov
    Author

    Ignore my previous comment, I'm just now seeing your ticket for the API changes.

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

Metadata

Metadata

Labels

Dev-Ready

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions