Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
S
Software Quality Assurance
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • id2
    • S
      Software
    • S
      services
  • FAIR
  • Software Quality Assurance
  • Issues
  • #29

Closed
Open
Created May 27, 2020 by Hannes Fuchs@hfuchsOwner

running local failed with KeyError

Tried to run a report locally as described in https://gitext.gfz-potsdam.de/software/services/fair/ci-services/-/blob/master/doc/doc_usage_local.md

$ docker run -v $(pwd):/repo gitext.gfz-potsdam.de:5000/software/services/fair/ci-services/ci-services:latest --generate-report
Traceback (most recent call last):
  File "/services/generate-report/generate-report.py", line 106, in <module>
    md.write("**Software Name:** {}\n\n".format(report_dict_ordered['name']))
KeyError: 'name'

.ci-services.yml

# SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
#
# SPDX-License-Identifier: CC0-1.0
list-used-licenses:
  # exclude patterns for license check
  exclude:
    - 'env-docker-compose/.*' # documentation
  # matching of imported name to name in pkg manager
  rename:
    lib:
      Python:
        yaml: 'PyYAML'
        stdlib_list: 'stdlib-list'
  # mark local imports to exclude from license check
  local_imports:
    Python:
      - 'functions'
apply-license:
  description: 'This Software provides services to check and improve the source code quality of software-projects'
  copyright: 'Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)'
  time: '2020'
  maintainer:
    name: 'Maximilian Dolling'
    mail: 'mdolling@gfz-potsdam.de'
  licenses:
    data:
      spdx-identifier: 'CC-BY-4.0'
      copyright: 'GFZ-Potsdam'
    software:
      spdx-identifier: 'GPL-3.0-or-later'
      copyright: 'GFZ-Potsdam'
    pictures:
      spdx-identifier: 'CC-BY-4.0'
      copyright: 'GFZ-Potsdam'
    insignificant:
      spdx-identifier: 'CC0-1.0'
      copyright: 'GFZ-Potsdam'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None