Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update query names for better logging #25514

Merged
merged 3 commits into from
Jan 19, 2023

Conversation

warrensplayer
Copy link
Contributor

@warrensplayer warrensplayer commented Jan 19, 2023

User facing changelog

n/a

Additional details

The GQL query names for the new relevant run datasources had copy/paste names for the query names. This made the analytics tracking in Honeycomb confusing because different queries had the same name, that was also poorly named. This update gives each query a unique name that matches up with the datasource and operation it represents.

This PR also updates the logic for calculating the spec counts shown when a run is RUNNING in the cloud. The new logic sums up the groupIds for each spec to count them individually.

Steps to test

Use the App to access the Debug page against production Cloud.

Check the logging in honeycomb to confirm that the new GQL query names are being logged

How has the user experience changed?

n/a

PR Tasks

  • [ n/a] Have tests been added/updated?
  • [ n/a] Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • [ n/a] Has a PR for user-facing changes been opened in cypress-documentation?
  • [ n/a] Have API changes been updated in the type definitions?

@warrensplayer warrensplayer marked this pull request as ready for review January 19, 2023 14:12
@warrensplayer warrensplayer changed the title bug: update query names for better logging fix: update query names for better logging Jan 19, 2023
@warrensplayer warrensplayer marked this pull request as draft January 19, 2023 14:15
@cypress
Copy link

cypress bot commented Jan 19, 2023



Test summary

26532 1 1180 0Flakiness 48


Run details

Project cypress
Status Failed
Commit 0646f20
Started Jan 19, 2023 3:36 PM
Ended Jan 19, 2023 3:56 PM
Duration 19:50 💡
OS Linux Debian -
Browser Multiple

View run in Cypress Dashboard ➡️


Failures

cypress/e2e/e2e/origin/commands/waiting.cy.ts Failed
1 cy.origin waiting > alias > waits for the route alias to have a response

Flakiness

create-from-component.cy.ts Flakiness
1 ... > runs generated spec
2 ... > runs generated spec
commands/net_stubbing.cy.ts Flakiness
1 network stubbing > intercepting request > can delay and throttle a StaticResponse
2 network stubbing > intercepting request > can delay and throttle a StaticResponse
3 ... > with `times` > only uses each handler N times
This comment includes only the first 5 flaky tests. See all 48 flaky tests in the Cypress Dashboard.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@warrensplayer warrensplayer marked this pull request as ready for review January 19, 2023 15:24
@@ -10,7 +10,7 @@ import { Poller } from '../polling'
const debug = debugLib('cypress:data-context:sources:RelevantRunsDataSource')

const RELEVANT_RUN_OPERATION_DOC = gql`
query RelevantRunsDataSource_latestRunUpdateSpecData(
query RelevantRunsDataSource_RunsByCommitShas(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@warrensplayer warrensplayer merged commit be5e534 into feature/IATR-M0 Jan 19, 2023
@warrensplayer warrensplayer deleted the stokes/run_datasource_naming branch January 19, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants