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

circleci 2.1 executors not supported #627

Closed
lqueryvg opened this issue Jan 30, 2019 · 8 comments
Closed

circleci 2.1 executors not supported #627

lqueryvg opened this issue Jan 30, 2019 · 8 comments
Labels
help wanted issue:bug Report errors or unexpected behavior (auto-generated by issue forms)

Comments

@lqueryvg
Copy link

Example taken from: https://circleci.com/docs/2.0/configuration-reference/#executors-requires-version-21

version: 2.1
executors:
  my-executor:
    docker:
      - image: circleci/ruby:2.5.1-node-browsers

jobs:
  my-job:
    executor: my-executor
    steps:
      - run: echo outside the executor

The current result in vscode is that my-job gets highlighted as an error with the tool tip: Missing property "docker".

@chaz8080
Copy link

chaz8080 commented May 9, 2019

Issue in file: https://github.com/SchemaStore/schemastore/blob/dd5a38ce426e2f1ee2be13cfe4f20b6c3051d127/src/schemas/json/circleciconfig.json

lines 421-428

        "oneOf": [
          {
            "type": "object",
            "required": ["docker"],
            "properties": {
              "docker": {
                "description":
                  "Options for [docker executor](https://circleci.com/docs/2.0/configuration-reference/#docker)",

I'm not sure if anything else needs to happen, but it looks like the "required": ["docker"], field just needs to be removed? Or maybe a check for docker or executor block?

@nakkurt
Copy link

nakkurt commented Aug 28, 2019

Any updates on this issue?

@kkarimi
Copy link

kkarimi commented Sep 9, 2019

+1

1 similar comment
@heiwais25
Copy link

+1

@chaz8080
Copy link

Related to #515

@miqm
Copy link
Contributor

miqm commented Sep 29, 2020

I created a PR #1266 that most probably fixes this issue, although I didn't test it (yet) with vscode.

@hyperupcall hyperupcall added bug issue:bug Report errors or unexpected behavior (auto-generated by issue forms) help wanted and removed bug labels Aug 5, 2023
@jrdnbradford
Copy link
Contributor

@lqueryvg and @hyperupcall this appears to have been fixed by #1266 and can be closed.

@hyperupcall
Copy link
Member

I tested the code snippet, and it passes validation locally, so it doesn't appear to be an issue with unsupported executors. The issue likely seems to be due to a buggy schema validator - the "required": ["docker"] seemed to be "cascading up" to the oneOf block. I don't think it's related to #1266, though

I'm still closing this issue since this issue is old, and i'm not able to reproduce it anymore - it's likely to be an implementation issue. I did consider removing the required: ["docker"] (and similar properties) from the schema, but this sort of required pattern is used throughout the schema, and removing it would make things more irregular.

If people are still encountering this issue in 2024, please let me know, and I'll reopen.

@hyperupcall hyperupcall closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted issue:bug Report errors or unexpected behavior (auto-generated by issue forms)
Projects
None yet
Development

No branches or pull requests

8 participants