Repository navigation
Open
Labels
P1: will dopriority 7-9[Epic]this label is used to mark issues as epicsdeprioritizedWork is deprioritized for current quarterin discoveryThe design, product, and specifications require refinement
Description
Problem to solve
Today, when a developer configures a repository with Codecov, the process begins on the Codecov app. However, this experience often requires users to navigate between the app, documentation, their CI provider, and their repository provider, resulting in a fragmented workflow. During user testing, we noticed that users can become overwhelmed by extensive blocks of text and may even anticipate a simpler "on switch" solution. The challenge lies in the fact that relying solely on written documentation and multiple steps is not conducive to a fast and efficient setup process.
Solution
Offer users a smoother "learn-by-doing" configuration experience, where we provide a lower-friction setup process with an intuitive "on switch" approach.
- On the repository guide page, we can include a clear call-to-action (CTA) that allows users to configure their repository with ease, starting with a pull request (PR).
- The system can then automatically generate a PR on behalf of the user, which adds the necessary YAML input to the corresponding YAML file (such as the GitHub workflow file, CircleCI YAML, etc.).
- To minimize the chances of incorrect placement and optimize for successful configuration in the majority of cases, the input is placed at the end of the YAML file.
- To ensure visibility and prevent breaking changes merging, the PR can be labeled as "Work in Progress" (WIP), and a note can be added to the description, guiding reviewers to review the input placement before merging the changes.
Open questions
- What is the expected time and effort investment for implementation work?
- What ux and/or configuration challenges might developers encounter during this process?
- Can we track the frequency of YAML file edits after setting up a PR? Is it possible to measure the time between PR creation and PR merge?
Prototype:
Screen.Recording.2023-09-07.at.5.37.47.AM.mov
### Tasks
- [ ] https://github.com/codecov/platform-team/issues/155
- [ ] https://github.com/codecov/platform-team/issues/150
- [ ] https://github.com/codecov/platform-team/issues/151
- [ ] https://github.com/codecov/platform-team/issues/152
Reacted by Joe Becher
Metadata
Metadata
Assignees
Labels
P1: will dopriority 7-9[Epic]this label is used to mark issues as epicsdeprioritizedWork is deprioritized for current quarterin discoveryThe design, product, and specifications require refinement
Type
Projects
- StatusShow more project fieldsSolution Discovery
Activity
nicholas-codecov commentedon Jun 9, 2023
So imo this ticket should be moved to probably
codecov-apias 99% of the work will need to be done there, and a simple API call will need to be done in Gazebo.This is definitely something we're gonna have to learn how to tackle if we move over to GitHub issues as we do not have a monorepo where everything lives and we can just throw things in there.
codecovdesign commentedon Jun 12, 2023
@nicholas-codecov makes sense, I'll move it over there. As the issue creator, there is a "transfer issue" action that sends it to another repo. Though it requires write access to do so; I'll make the request and transfer it over there.
In terms of feedback about the issue and implementation investigation; should we also rope in Scott? Or were you going to comment on that separately?
nicholas-codecov commentedon Jun 13, 2023
I don't have much knowledge on the API side of things, so I would recommend @scott-codecov, @adrian-codecov, or @RulaKhaled, they should be able to help out with the estimation and implementation on the API side of things.
Frontend wise, this is a fairly simple exercise as we're just making a mutation request on an event, then have the API return the URL for the pull request then direct the user to that location once the API response is successful.
tnt-sentry commentedon Aug 2, 2023
Moved this to platform as 95% of the work will be done there.
5 remaining items
giovanni-guidini commentedon Sep 13, 2023
Just throwing this out there cause it doesn't exactly match the design that we have on the ticket. I discussed this both with @dana-yaish and @adrian-codecov , and we kinda come to the agreement that (1) it's hard to produce a useful workflow file, but we think it can be done AND (2) producing a codecov.yml is very nice and useful.
We kinda envisioned a part of the UI where you have forms or buttons or toggles or things of the nature that you can edit and see a real-time template example of what your PR comment will look like with those settings, for example.
Also things like flags and components and what not.
Then we create a codecov.yml that reflects those choices and open a PR with it
giovanni-guidini commentedon Sep 19, 2023
Allow me to express my opinions on this question
TL;DR
From an implementation perspective we should do this incrementally. We should select 1-3 CI providers to be the supported ones (at least to start). I imagine GH Actions and CircleCI.
Long version
Depends on the level of accuracy you want the end result to have. That is, assuming no mods on the part of the user, how useful do you want the proposed PR to be?
There's a lot of complexity that goes into modifying CI files automatically, for example:
So we should probably take on this effort incrementally. Some example stages:
Have a set of templates, one per CI provider we want to support. Each template creates a new workflow with the steps (I) download project code; (II) placeholder for building the project; (III) placeholder for running tests; (IV) upload to codecov. We might make educated guesses in the placeholders, but make it very clear that the user needs to edit those steps to match their needs. When the user clicks the action button there will be a dropdown to choose the CI used by them.
Same as 1, but we try to detect the user's CI provider automatically by checking their repo file structure (looking for some specific folder or file).
Here we start parsing the user's existing CI files to try and figure out where they test their code. Then we add the upload to Codecov step below the test step. This is a complex step, but it's where we propose really meaningful changes with minimal user interaction.
So... we start with GitHub Actions and CircleCI I assume?
aj-codecov commentedon Sep 19, 2023
@giovanni-guidini Thank you for the write up!
I agree the complexity of this is more than we anticipated - based on our conversation in Slack and the above, this initiative sounds like:
I am comfortable with less than 100% accuracy, my hunch is that most sane engineers aren't going to just blindly push merge on something without at least giving it a glance first. In this case I would strive to not let perfect be the enemy of good enough.
I'm not sure I fully understand the template piece - are you able to give me a little more info there?
giovanni-guidini commentedon Sep 20, 2023
A template is some generic configuration that we could use as the changes to propose.
We propose that in a new file instead of trying to modify any of the user's existing files.
For example, for GH Actions (and a python project) we could propose
katia-sentry commentedon Oct 24, 2023
[Applications] Deprioritized for Q3