Bug(lint): [error] on dist: dropping unknown value: noble

1. Summary

Despite the Noble Numbat distribution were announced on March 17, more than a month later Travis returns the error [error] on dist: dropping unknown value: noble, if a file .travis.yml contains the line dist: noble.

2. API request

2.1. Command

I tried to validate any valid .travis.yml file:

https api.travis-ci.com/lint @.travis.yml Content-Type:"application/yaml" Travis-API-version:3 --body

2.2. Behavior

2.2.1. Expected

No errors and warnings.

2.2.2. Current
{
    "@type": "lint",
    "warnings": [
        {
            "key": [],
            "message": "[error] on dist: dropping unknown value: noble"
        }
    ]
}

3. Travis dashboard

3.1. Steps to reproduce

I pushed to any GitHub repository integrated to Travis CI any valid .travis.yml file.

3.2. Behavior

3.2.1. Expected

No errors and warnings.

3.2.2. Current

Example:

`dist`: unknown value `noble`

Thanks.

Hi @Kristinita,

Can I see the entire .travis.yml?

Type: Addition :plus:

4. Schema validation

4.1. Steps to reproduce

I tried to validate .travis.yml use v8r:

v8r .travis.yml -vvv

4.2. Behavior

4.2.1. Expected

No errors and warnings.

4.2.2. Current
ℹ Processing .\.travis.yml
ℹ Searching for schema in .v8rrc.yaml …
ℹ Cache miss: calling https://www.schemastore.org/api/json/catalog.json
ℹ Cache miss: calling https://json.schemastore.org/schema-catalog.json
ℹ Searching for schema in https://www.schemastore.org/api/json/catalog.json …
ℹ Found schema in https://www.schemastore.org/api/json/catalog.json …
ℹ Cache miss: calling https://json.schemastore.org/travis.json
ℹ Validating .\.travis.yml against schema from https://json.schemastore.org/travis.json …
strict mode: required property "email" is not defined at "https://json.schemastore.org/travis.json#/allOf/1/oneOf/1/oneOf/0" (strictRequired)
strict mode: required property "api_key" is not defined at "https://json.schemastore.org/travis.json#/allOf/1/oneOf/1/oneOf/0" (strictRequired)
strict mode: required property "email" is not defined at "https://json.schemastore.org/travis.json#/allOf/1/oneOf/1/oneOf/1" (strictRequired)
strict mode: required property "api_token" is not defined at "https://json.schemastore.org/travis.json#/allOf/1/oneOf/1/oneOf/1" (strictRequired)
✖ .\.travis.yml is invalid

.\.travis.yml#/dist must be equal to one of the allowed values

Travis schema on Schemastore isn’t updated:

"dist": {
	"description": "The Ubuntu distribution to use",
	"enum": ["precise", "trusty", "xenial", "bionic", "focal", "jammy"]
},

Thanks.

Type: Reply :speech_balloon:

@Montana, my post already contains the link to example .travis.yml.

I reproduced the problem for any .travis.yml with dist: noble:

  1. Example 2:

    cache:
      directories:
      # - $HOME/.npm
      - $HOME/.cache/pip
      - $HOME/.cache/pipenv
    
    dist: noble
    
    git:
      depth: 1
    
    install:
    - pip install pipenv
    - pipenv install --dev
    
    language: python
    
    os: linux
    
    python: 3.13
    
    script:
    - python installation_scripts/gh_release_install.py
    - pipenv run fd --version
    - pipenv run tidy --version
    
    
  2. Example 3:

    cache:
      directories:
      - $HOME/.npm
      # - $HOME/.cache/pip
      # - $HOME/.cache/pipenv
    
    deploy:
      on:
        branch: KiraGhPages
      provider: script
      script: grunt shell:gh-pages
    
    dist: noble
    
    env:
      secure: HBDSH8hC7C4uuyui/+uBI2Skd3/612q5K65csZBwbNfAWv8+sYkdXjvIe3MPiz9TKPMWh4WwUB/r5JKQh033MBSJO4ExwgpgCnHyhnlEwj68+6eZl/8fmqQj8/P/tWBIwD6dAVVx1AEyGwCvUgsDQf861o6pUt1oyu9RsUDChYszANwnFaawCJrQjBmwyotHXrq4vuYd2qvAquAqR604zfHpyabGdBiJPqd4mtvG0DHqVBOWS7V/X2++h8H1+/7I4vIrFQbUK4x9hhJ/JtvGJh/vB8R+Cqv539T94TB0uW2wp4C75XS8m60jiMrSuqz9asrDpxAj1cCRJS76x9JuZ9yxul7b1dcAMhaPbco/wpFSs0zmx8e3xy0x2C63TKNnlpczyy4Ra0uQwhSWlEs6Z7sWIzMLyL7bZ2aU8Za1lgsaxAVpbtUbcL6ZqZsoEwImIFe45wNzXyt3Hrl1La+sq9c9VQxOpxG6lZeAAyq4ck5wfG3dlwMw/sEM28Vyy4eHgT3rPPNHs1CBF5Jh8FQWaHgGUTcy2spIdv4OdFklBji1mLfQi0+aLBxP8KT8SHSSpSd1wknbkF/UEryGaXXkX5rMxmn9WoVDSgYeL22tPHCuf/PAMIFu5A6qsG2Eg/WCcZa9M0S2O0/RrIHH6j3a0EFainhGmmkDTLgTkx8HZJ4=
    
    git:
      depth: 1
    
    install:
    - npm install --global grunt-cli
    - npm install
    
    language: node_js
    
    node_js: node
    
    os: linux
    
    script:
    - npx gh-pages --version
    
    

When I replaced dist: noble to dist: jammy, I don’t get the error.

Thanks.

https://json.schemastore.org/travis.json is missing the value noble in the dist enum, causing the linter on VSCode to error. I’m assuming this is related to your issue. This should be added to the travis.json, no?