Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #5692

Closed
Open
Created Nov 26, 2013 by Administrator@rootOwner

Add validation of yml files on startup and proper error reporting

Created by: vasilievip

We've made typo (wrong amount of spaces before preference) in gitlab.yml and this caused issues with startup of application with veeery strange error messages. Like this one:

/usr/local/lib/ruby/site_ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): did not find expected key while parsing a block mapping at line 16 column 3 (Psych::SyntaxError)
    from /usr/local/lib/ruby/site_ruby/1.9.1/psych.rb:203:in `parse_stream'
    from /usr/local/lib/ruby/site_ruby/1.9.1/psych.rb:151:in `parse'
    from /usr/local/lib/ruby/site_ruby/1.9.1/psych.rb:127:in `load'

It would be really great if all config files will be validated at least for readability (with dropping invalid preferences) or even better for correctness (via schema to report on incorrect preferences) before startup.

http://stackoverflow.com/questions/287346/yaml-validation http://stackoverflow.com/questions/5060086/yaml-schema-validation

Assignee
Assign to
Time tracking