Code Monkey home page Code Monkey logo

Comments (15)

BanzaiMan avatar BanzaiMan commented on August 12, 2024

https://github.com/travis-ci/travis-rubies/blob/72bf25a562dbd0a05c0b4d4c44d4aab960e174ec/.travis.yml

language: c

script:
- unset JRUBY_OPTS
- ./build.sh

cache: ccache

matrix:
  include:
  - os: linux
    sudo: required
    dist: precise
    group: edge
    before_script: "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3"
  - os: linux
    before_script:
      - 'echo -e "gem-wrappers\nrubygems-bundler\nbundler\nrake\nrvm\n" >> ~/.rvm/gemsets/global.gems'
      - "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3"
      - "sudo apt-get install haveged"
      - "sudo service haveged start"
    services: docker
  - os: linux
    dist: xenial
    language: generic
    before_script:
      - 'echo -e "gem-wrappers\nrubygems-bundler\nbundler\nrake\nrvm\n" >> ~/.rvm/gemsets/global.gems'
      - "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3"
      - "sudo apt-get install haveged"
      - "sudo service haveged start"
  - os: osx
    before_install: sw_vers
    osx_image: xcode6.4
  - os: osx
    before_install: sw_vers
    osx_image: xcode7.2
  - os: osx
    before_install: sw_vers
    osx_image: xcode8.1

after_failure: find $rvm_path/log/ -type f | xargs ls -t | head -n 1 | xargs cat

notifications:
  email: false

from travis-yml.

joecorcoran avatar joecorcoran commented on August 12, 2024

Posting this to remind me where to start debugging. Looks like it's another missing error message key. Need to make this more robust.

https://sentry.io/travis-ci/travis-yml/issues/440886024/

from travis-yml.

carlad avatar carlad commented on August 12, 2024

It appears to not be recognising group: edge, which is in the first matrix job:

- os: linux
    sudo: required
    dist: precise
    group: edge
    before_script: "gpg --ke...

When I remove that, parsing succeeds:

config.travis-ci.org

Parsed and validated config
[info] on matrix.include.sudo: casting value required (:str) to true (:bool)

[info] on matrix.include.language: generic is an alias for shell, using shell

[info] on matrix.include.dist: xenial is experimental and might be removed in the future

[info] on matrix.include.osx_image: :osx_image is experimental and might be removed in the future
{
  "language": "c",
  "os": [
    "linux"
  ],
  "dist": "trusty",
  "sudo": false,
  "script": [
    "unset JRUBY_OPTS",
    "./build.sh"
  ],
  "cache": {
    "ccache": true
  },
  "matrix": {
    "include": [
      {
        "os": "linux",
        "sudo": true,
        "dist": "precise",
        "before_script": [
          "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3"
        ]
      },
      {
        "os": "linux",
        "before_script": [
          "echo -e \"gem-wrappers\\nrubygems-bundler\\nbundler\\nrake\\nrvm\\n\" >> ~/.rvm/gemsets/global.gems",
          "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3",
          "sudo apt-get install haveged",
          "sudo service haveged start"
        ],
        "services": [
          "docker"
        ]
      },
      {
        "os": "linux",
        "dist": "xenial",
        "language": "shell",
        "before_script": [
          "echo -e \"gem-wrappers\\nrubygems-bundler\\nbundler\\nrake\\nrvm\\n\" >> ~/.rvm/gemsets/global.gems",
          "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3",
          "sudo apt-get install haveged",
          "sudo service haveged start"
        ]
      },
      {
        "os": "osx",
        "before_install": [
          "sw_vers"
        ],
        "osx_image": "xcode6.4"
      },
      {
        "os": "osx",
        "before_install": [
          "sw_vers"
        ],
        "osx_image": "xcode7.2"
      },
      {
        "os": "osx",
        "before_install": [
          "sw_vers"
        ],
        "osx_image": "xcode8.1"
      }
    ]
  },
  "after_failure": [
    "find $rvm_path/log/ -type f | xargs ls -t | head -n 1 | xargs cat"
  ],
  "notifications": {
    "email": {
      "enabled": false
    }
  }
}

from travis-yml.

carlad avatar carlad commented on August 12, 2024

Wondering if group: edge has been deprecated...?
https://docs.travis-ci.com/user/build-environment-updates/2016-12-01/#Details

from travis-yml.

carlad avatar carlad commented on August 12, 2024

Seems like edge is in the spec.json:

"job":{
   "type":"map","map":{
      "group":{
        "key":"group","types":[{
          "name":"group","type":"fixed","defaults":[{
             "value":"stable"}],
        "downcase":true,"flagged":true,"values":[{
              "value":"stable"},
       {"value":"edge"}]}]}

from travis-yml.

carlad avatar carlad commented on August 12, 2024

So when I remove the include: from

matrix:
   include:

And include group: edge within any of the jobs, the config parses.

from travis-yml.

carlad avatar carlad commented on August 12, 2024

Okay, so It seems group: edge is also not working on the root level of the config.
@bogdanap pointed out an issue with config on the following builds:
https://travis-ci.org/travis-ci/worker/jobs/334524100/config
https://github.com/travis-ci/worker/blob/master/.travis.yml

https://travis-ci.org/travis-ci/packer-templates/jobs/333806822/config
https://github.com/travis-ci/packer-templates/blob/master/.travis.yml

Both these failed to parse until I removed group: edge from the top level of the config.

from travis-yml.

carlad avatar carlad commented on August 12, 2024

When I run travis-yml locally and use curl to send the config to the /parse endpoint, I get:
parse error: Invalid numeric literal at line 1 column 5

This doesn't happen when I remove group: edge from the config.

from travis-yml.

BanzaiMan avatar BanzaiMan commented on August 12, 2024

Unrecognized group values should be dropped, no?

from travis-yml.

carlad avatar carlad commented on August 12, 2024

Is edge and unrecognised group value?

from travis-yml.

BanzaiMan avatar BanzaiMan commented on August 12, 2024

I believe that is what the worker is doing now. Maybe others can confirm.

from travis-yml.

carlad avatar carlad commented on August 12, 2024

in any case - I think I've fixed it: #20

from travis-yml.

carlad avatar carlad commented on August 12, 2024

The message suggests that to use group you need a feature flag. Is this correct?

from travis-yml.

BanzaiMan avatar BanzaiMan commented on August 12, 2024

group should be accepted without the feature. The feature allows the matrix expansion of it:

group:
  - edge
  - stable

from travis-yml.

carlad avatar carlad commented on August 12, 2024

okay so that means this message is wrong:

[info] on group: your repository must be feature flagged for :group to be used

I'll open a separate ticket for this.

from travis-yml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.