Coder Social home page Coder Social logo

check_modulemd's People

Contributors

bgoncalv avatar jscotka avatar karstenhopp avatar kparal avatar mmathesius avatar phracek avatar ralphbean avatar rasibley avatar submachine avatar tomastomecek avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

check_modulemd's Issues

don't put dynamic data into testcase name

Hello, recently check_modulemd started to report results into resultsdb with testcases like this:

dist.modulemd.check_modulemd.ModulemdTest.test_dependencies;run-0404 
dist.modulemd.check_modulemd.ModulemdTest.test_dependencies;run-0672 	
dist.modulemd.check_modulemd.ModulemdTest.test_dependencies;run-09bd 	
dist.modulemd.check_modulemd.ModulemdTest.test_dependencies;run-0b2b 	
dist.modulemd.check_modulemd.ModulemdTest.test_dependencies;run-0c0a 	
dist.modulemd.check_modulemd.ModulemdTest.test_dependencies;run-0f64

See more currently at https://taskotron.fedoraproject.org/resultsdb/testcases?page=4 .

Please don't put dynamic data into testcases. They are not meant for that. If you dump thousand or more values into testcases, we will not be able e.g. to autocomplete them in the search UI.

The testcase should be dist.modulemd.check_modulemd.ModulemdTest.test_dependencies and anything more you need should be an additional keyval in results.

taskotron task is crashing in dev due to invalid copr repo

[libtaskotron:shell_directive.py:119] 2017-06-27 21:44:33 INFO    Executing shell: dnf copr -y enable phracek/modularity-testing-framework
Error: Such repository does not exist.

http://taskotron-dev.fedoraproject.org/taskmaster/builders/x86_64/builds/514404/steps/runtask/logs/stdio

Hint: When you're making changes and want to verify it works, it's quite easy, e.g.:

runtask -i 'modules/shared-userspace#29be9141f4f91adb2f22513963bb587ceeaaaa6f' -t dist_git_commit runtask.yml

in a VM with libtaskotron installed.

Traceback issue

Well, I have a GitHub repository https://github.com/container-images/memcached/ with the modulemd file.

Once I run command <full_path_to_clone_your_github_repository>/check_modulemd.py
then I get traceback:

~/work/programming/container-images/memcached # /home/phracek/work/programming/check_modulemd/check_modulemd.py 
found extension EntryPoint.parse('journal = avocado.plugins.journal:JournalResult')
found extension EntryPoint.parse('tap = avocado.plugins.tap:TAPResult')
found extension EntryPoint.parse('human = avocado.plugins.human:Human')
found extension EntryPoint.parse('jobscripts = avocado.plugins.jobscripts:JobScripts')
Command line: /home/phracek/work/programming/check_modulemd/check_modulemd.py

Avocado version: 43.0

Config files read (in order):
/etc/avocado/avocado.conf
/etc/avocado/conf.d/gdb.conf
/home/phracek/.config/avocado/avocado.conf

Avocado config:
Section.Key                             Value
datadir.paths.base_dir                  /usr/share/avocado
datadir.paths.test_dir                  /usr/share/avocado/tests
datadir.paths.data_dir                  /usr/share/avocado/data
datadir.paths.logs_dir                  ~/avocado/job-results
sysinfo.collect.enabled                 True
sysinfo.collect.installed_packages      False
sysinfo.collect.profiler                False
sysinfo.collect.locale                  C
sysinfo.collectibles.commands           /etc/avocado/sysinfo/commands
sysinfo.collectibles.files              /etc/avocado/sysinfo/files
sysinfo.collectibles.profilers          /etc/avocado/sysinfo/profilers
runner.output.colored                   True
runner.output.utf8                      
runner.behavior.keep_tmp_files          False
remoter.behavior.reject_unknown_hosts   False
remoter.behavior.disable_known_hosts    False
job.output.loglevel                     debug
restclient.connection.hostname          localhost
restclient.connection.port              9405
restclient.connection.username          
restclient.connection.password          
plugins.disable                         []
plugins.skip_broken_plugin_notification []
plugins.loaders                         ['file', '@DEFAULT']
gdb.paths.gdb                           /usr/bin/gdb
gdb.paths.gdbserver                     /usr/bin/gdbserver

Avocado Data Directories:

Avocado replaces config dirs that can't be accessed
with sensible defaults. Please edit your local config
file to customize values

base     /home/phracek/avocado
tests    /home/phracek/avocado/tests
data     /home/phracek/avocado/data
logs     /home/phracek/avocado/job-results

Temporary dir: /tmp/avocado_fQoi0K

Variant 1:    /

Job ID: 423be4b77017e232929637288857bf3a9ce1278f

PARAMS (key=timeout, path=*, default=None) => None
START 01-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_debugdump
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 01-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_debugdump -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 02-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_api
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 02-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_api -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 03-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_components
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 03-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_components -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 04-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_dependencies
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 04-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_dependencies -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 05-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_description
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 05-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_description -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 06-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_description_spelling
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 06-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_description_spelling -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 07-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_summary
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 07-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_summary -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 08-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_summary_spelling
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 08-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_summary_spelling -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 09-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_rationales
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 09-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_rationales -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 10-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_rationales_spelling
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 10-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_rationales_spelling -> TestSetupFail: modulemd parameter must be supplied

PARAMS (key=timeout, path=*, default=None) => None
START 11-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_component_availability
PARAMS (key=modulemd, path=*, default=None) => None

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado/core/test.py:442
Traceback (most recent call last):
  File "/home/phracek/work/programming/check_modulemd/check_modulemd.py", line 28, in setUp
    self.error("modulemd parameter must be supplied")
  File "/usr/lib/python2.7/site-packages/avocado/core/test.py", line 623, in error
    raise exceptions.TestError(message)
TestError: modulemd parameter must be supplied

ERROR 11-/home/phracek/work/programming/check_modulemd/check_modulemd.py:ModulemdTest.test_component_availability -> TestSetupFail: modulemd parameter must be supplied

Test results available in /tmp/avocado_avocado.core.jobMvtUw1

Additional avocado plugin package required upon upgrading to avocado 51.0

The following statement can be found in the avocado 51.0 release notes:

The yaml-to-mux varianter implementation (the only one at this point) is now an optional plugin. Basically, this means that users deploying this (and later) version of Avocado, should also explicitly install it.

Although it may not immediately be obvious from the above statement, anything that runs the avocado command using the --mux-inject command line option (such as run-checkmmd.sh and runtask.yml) will fail when using avocado 51.0 or later unless they also install the yaml-to-mux plugin.

The python2-avocado-51.0-1 and corresponding python2-avocado-plugins-varianter-yaml-to-mux-51.0-1 packages are currently available in the Fedora updates-testing repositories.

Create a RPM in Copr

Hi folks,

would it be possible to create a RPM package in Copr, so we are able to install it and not clone the repository and use the commands?

Greetings
Petr

Packaging check_modulemd into Fedora

I would like to package check_modulemd into Fedora.

Part of this issue is covered by #18

Are there any other tools which could be added into Fedora with some common name like "fedora-modularity-tools"?
Does it make sense to you?

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.