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

executors section dropped when example is published #1076

Open
MikeMcC399 opened this issue Oct 2, 2024 · 2 comments
Open

executors section dropped when example is published #1076

MikeMcC399 opened this issue Oct 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@MikeMcC399
Copy link

MikeMcC399 commented Oct 2, 2024

Meta:

CircleCI CLI Version:

0.1.30995+77b1f51 (release)

Operating System:

Ubuntu 22.04.5 LTS

CircleCI CLI Diagnostic:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /home/mike-circleci/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API...
Unable to make a query against the GraphQL API, please check your settings
Error: failure calling GraphQL API: 401 Unauthorized

Note that I am an external contributor to the https://github.com/cypress-io/circleci-orb orb, so I don't have full access, which is why I am unauthorized.


Current behavior:

The example CircleCI configuration file in https://github.com/cypress-io/circleci-orb/blob/master/src/examples/edge.yml which consists of

description: >
  Run Cypress tests in Microsoft Edge.
usage:
  version: 2.1
  orbs:
    cypress: cypress-io/cypress@3
  executors:
    cypress-browsers:
      docker:
        - image: cypress/browsers:node-20.17.0-chrome-129.0.6668.70-1-ff-130.0.1-edge-129.0.2792.52-1
  jobs:
    edge-test:
      executor: cypress-browsers
      steps:
        - cypress/install
        - cypress/run-tests:
            start-command: "npm run start:dev"
            cypress-command: 'npx cypress run --browser edge'
  workflows:
    use-my-orb:
      jobs:
        - edge-test

is packed into the orb with the executors section missing:

  executors:
    cypress-browsers:
      docker:
        - image: cypress/browsers:node-20.17.0-chrome-129.0.6668.70-1-ff-130.0.1-edge-129.0.2792.52-1

The development orb preview on
https://circleci.com/developer/orbs/orb/cypress-io/cypress?version=dev:fab347ff110b7fe66cf9adeb586d856852174583#usage-edge shows

image

The behavior is the same whether it is done by the lint-pack workflow of .circleci/config.yml shown on https://app.circleci.com/pipelines/github/cypress-io/circleci-orb/1974/workflows/6bea899f-82b4-4755-8869-8636dcfed543 or whether the following is run locally:

circleci orb pack ./src

Expected behavior:

The complete configuration, including the executors section, should be packed into the orb for publication of the example.

When did this begin / Was this previously working?:

This has never worked. The example is new.

Additional Information:

The configuration in the usage section has been tested and works when run.

I also tried using the following example from https://circleci.com/docs/configuration-reference/ and when this example is packed / published the executors section is also dropped:

version: 2.1
executors:
  my-executor:
    docker:
      - image: cimg/ruby:3.0.3-browsers

jobs:
  my-job:
    executor: my-executor
    steps:
      - run: echo "Hello executor!"
@MikeMcC399
Copy link
Author

@christian-stephen

Please excuse the ping! Do bug reports need to be submitted as a support request or will somebody from the CircleCI team be able to look at this issue sometime soon?

@MikeMcC399
Copy link
Author

Confirmed that this bug still occurs using latest release:

0.1.31151+591d7b2 (release)

still waiting for feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant