Skip to content

test: remove duplicate checkout in Verify resource_class config works #547

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

Merged

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Jul 2, 2025

Situation

Change

  • In the job Verify resource_class config works in .circleci/test-deploy.yml job, remove the parameter:

    pre-steps:
    - checkout

Verification

View the log of the "Verify resource_class config works" job and confirm that "Checkout code" only appears once, not twice.

@cypress-app-bot
Copy link
Collaborator

@MikeMcC399 MikeMcC399 added the type: bug 🐛 Something isn't working label Jul 2, 2025
@MikeMcC399 MikeMcC399 self-assigned this Jul 2, 2025
@MikeMcC399 MikeMcC399 force-pushed the fix/verify-resource-class-checkout branch 2 times, most recently from 6ad4657 to 562ac2d Compare July 2, 2025 14:08
@MikeMcC399 MikeMcC399 closed this Jul 2, 2025
@MikeMcC399 MikeMcC399 reopened this Jul 2, 2025
@MikeMcC399 MikeMcC399 force-pushed the fix/verify-resource-class-checkout branch from 562ac2d to ab2951a Compare July 2, 2025 14:23
@MikeMcC399 MikeMcC399 changed the title test: remove duplicate checkout in Verify resource_class config test: remove duplicate checkout in Verify resource_class config works Jul 2, 2025
@MikeMcC399

This comment was marked as outdated.

@MikeMcC399 MikeMcC399 force-pushed the fix/verify-resource-class-checkout branch from ab2951a to e6f0fb3 Compare July 2, 2025 15:14
@MikeMcC399 MikeMcC399 force-pushed the fix/verify-resource-class-checkout branch from e6f0fb3 to 15dfb37 Compare July 2, 2025 15:34
@MikeMcC399 MikeMcC399 marked this pull request as ready for review July 2, 2025 15:50
@MikeMcC399 MikeMcC399 requested a review from AtofStryker July 2, 2025 15:50
Copy link
Contributor

@AtofStryker AtofStryker left a comment

Choose a reason for hiding this comment

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

is this because the checkout is in the job above it here?

@MikeMcC399
Copy link
Collaborator Author

@AtofStryker

is this because the checkout is in the job above it here?

No, that's not the case. Each of these jobs runs separately. You can check this out if you view the logs.

@AtofStryker
Copy link
Contributor

@MikeMcC399 OK I can see it in the master branch here. I'm not too familiar with the orb code so where is the other checkout coming from?

@MikeMcC399
Copy link
Collaborator Author

@AtofStryker

OK I can see it in the master branch here. I'm not too familiar with the orb code so where is the other checkout coming from?

I don't know if I'm really the right person to be explaining the Cypress orb. I'm continually working at the edge of my comfort zone! This is what I see, attempting to analyze the hierarchy of calls:

In the master branch, the job "Verify resource_class config works"

- cypress/run:

uses the predefined Cypress orb job cypress/run which includes commands cypress/install and cypress/run-tests

The cypress/install command includes the step

- unless:
condition: << parameters.skip-checkout >>
steps:
- checkout

which includes the CircleCI checkout key.

@AtofStryker
Copy link
Contributor

@AtofStryker

OK I can see it in the master branch here. I'm not too familiar with the orb code so where is the other checkout coming from?

I don't know if I'm really the right person to be explaining the Cypress orb. I'm continually working at the edge of my comfort zone! This is what I see, attempting to analyze the hierarchy of calls:

In the master branch, the job "Verify resource_class config works"

- cypress/run:

uses the predefined Cypress orb job cypress/run which includes commands cypress/install and cypress/run-tests

The cypress/install command includes the step

- unless:
condition: << parameters.skip-checkout >>
steps:
- checkout

which includes the CircleCI checkout key.

@MikeMcC399 OK this makes sense now. Going to approve and merge this in. Thank you!

@MikeMcC399

This comment was marked as resolved.

@AtofStryker AtofStryker merged commit f23b77a into cypress-io:master Jul 3, 2025
24 of 25 checks passed
@MikeMcC399 MikeMcC399 deleted the fix/verify-resource-class-checkout branch July 3, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants