You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two scenarios related to Git that the Runs and Debug pages are not currently warning about:
The local developer environment is running Cypress without Git
The App is sending the list of Git hashes to the Cloud to fetch relevant runs in RelevantRunsDatasource, but no runs are returned from the Cloud.
The Runs and Debug page will add appropriate warnings to let the user know and give them help in correcting the situation.
No Git data in local project
The frontend should determine if Git is setup locally and the Cypress app can read the Git data. One possible way to do this is to see if the Git branch is available. [In GQL under currentProject.branch]
If Git is not setup, then show the following messages:
Debug page
The <DebugError /> component was created when the Debug page was released but never wired up correctly. Confirm this component aligns with the current designs and show instead of the empty state for recording runs.
On the runs page, the warning about not detecting local git information will be shown as an alert at the top of the page. The new algorithm implemented with [Insert GH link here] will show the latest 10 runs associated with the local Git tree. If no Git information is detected, then the original page behavior of just returning the 10 most recent runs for the entire project will be used as a fallback so that the page still shows some information.
If the alert is closed via the "X" button, the app should record that it has been closed for this project and not show it again. Moved to separate issue: #26808
No runs returned from the Cloud for a list of Git hashes
This scenario could happen for more than one reason:
CI for the project is not sending Git information to Cypress Cloud, so the recorded runs do not contain Git hashes to look up
There are no recorded runs found in the last 100 Git hashes of the developer's local environment (most likely scenario is that this is a new project without many recorded runs or CI is not run on the "base" branch as configured in Cypress cloud)
The App will show a warning message on the Debug and Runs page indicating that there may be an issue that the developer needs to correct in order to show the expected information for these pages.
The logic for showing these messages should be:
Git information can be detected locally
the Cloud returns no runs for the set of Git hashes it sends
there is at least 1 run for the project overall
Debug page
Show same layout as <DebugError /> with different copy. Learn more link should be https://on.cypress.io/git-info with UTM params:
The Runs page will show a similar alert at the top of the page as above. Learn more link should be https://on.cypress.io/git-info with UTM params:
source = Binary: App
medium = Runs Tab
campaign = 'No Runs Found`
If the alert is closed via the "X" button, the app should record that it has been closed for this project and not show it again. Moved to separate issue: #26808
The text was updated successfully, but these errors were encountered:
warrensplayer
changed the title
ACI - Updated Git related messages for Runs and Debug page
[WRITE UP IN PROGRESS] ACI - Updated Git related messages for Runs and Debug page
May 5, 2023
warrensplayer
changed the title
[WRITE UP IN PROGRESS] ACI - Updated Git related messages for Runs and Debug page
ACI - Updated Git related messages for Runs and Debug page
May 8, 2023
ClickUp
There are two scenarios related to Git that the Runs and Debug pages are not currently warning about:
RelevantRunsDatasource
, but no runs are returned from the Cloud.The Runs and Debug page will add appropriate warnings to let the user know and give them help in correcting the situation.
No Git data in local project
The frontend should determine if Git is setup locally and the Cypress app can read the Git data. One possible way to do this is to see if the Git branch is available. [In GQL under
currentProject.branch
]If Git is not setup, then show the following messages:
Debug page
The
<DebugError />
component was created when the Debug page was released but never wired up correctly. Confirm this component aligns with the current designs and show instead of the empty state for recording runs.Figma - https://www.figma.com/file/pY9VgDO8ZWye0qDeVpp49r/Debug%2C-v1.2-%40latest?type=design&node-id=621-135888&t=jlOWOWDS3rcYu56y-0
Runs Page
On the runs page, the warning about not detecting local git information will be shown as an alert at the top of the page. The new algorithm implemented with [Insert GH link here] will show the latest 10 runs associated with the local Git tree. If no Git information is detected, then the original page behavior of just returning the 10 most recent runs for the entire project will be used as a fallback so that the page still shows some information.
If the alert is closed via the "X" button, the app should record that it has been closed for this project and not show it again.Moved to separate issue: #26808Figma - https://www.figma.com/file/2OOJAfoCGBUct1RRImottI/Runs-Page-v1.0-%40latest?type=design&node-id=436%3A49883&t=Vw50UhmgtuZHFKYe-1
No runs returned from the Cloud for a list of Git hashes
This scenario could happen for more than one reason:
The App will show a warning message on the Debug and Runs page indicating that there may be an issue that the developer needs to correct in order to show the expected information for these pages.
The logic for showing these messages should be:
Debug page
Show same layout as
<DebugError />
with different copy. Learn more link should behttps://on.cypress.io/git-info
with UTM params:Binary: App
Debug Tab
Figma - https://www.figma.com/file/pY9VgDO8ZWye0qDeVpp49r/Debug%2C-v1.2-%40latest?type=design&node-id=621%3A135886&t=TuOsQ3aKMC9tjXv0-1
Runs page
The Runs page will show a similar alert at the top of the page as above. Learn more link should be
https://on.cypress.io/git-info
with UTM params:Binary: App
Runs Tab
If the alert is closed via the "X" button, the app should record that it has been closed for this project and not show it again.Moved to separate issue: #26808Figma - https://www.figma.com/file/2OOJAfoCGBUct1RRImottI/Runs-Page-v1.0-%40latest?type=design&node-id=463%3A31650&t=Vw50UhmgtuZHFKYe-1
The text was updated successfully, but these errors were encountered: