1. 19 Feb, 2016 3 commits
  2. 17 Feb, 2016 1 commit
  3. 16 Feb, 2016 1 commit
    • Luis Araujo's avatar
      Build the rpc url from the Settings object · 27bcf8b5
      Luis Araujo authored
      Building the RPC url from the Settings object will make this
      object more self-contained and more convenient to use by external
      scripts and modules.
      
      This commit also moves checking for the minium required fields
      in the configuration files into the Settings object as this makes
      more sense for the new changes.
      Signed-off-by: Luis Araujo's avatarLuis Araujo <luis.araujo@collabora.co.uk>
      27bcf8b5
  4. 08 Feb, 2016 1 commit
    • Luis Araujo's avatar
      Add the get_filter_result method calls to the API · fb3a3827
      Luis Araujo authored
      This commit adds the get_filter_results and get_filter_results_since
      XMLRPC method calls to the lqa API.
      
      These XMLRPC method calls allow to fetch information for test runs
      and results that a given filter matches.
      
      The get_filter_results_since call requires the 'since' parameter as
      mandatory, though it can accept the value None to get its default
      behaviour.
      
      This commit also enables the XMLRPC server to accept None values
      setting the allow_none parameter to True.
      fb3a3827
  5. 15 Jan, 2016 1 commit
    • Luis Araujo's avatar
      Use a global Settings object · 2ec38bc7
      Luis Araujo authored
      Initialize a Settings object only once (during the settings module
      import) and use this object globally from all the commands after
      loading its configuration from the command line interface top
      level routine.
      
      This change avoids to have Settings initialized more than once,
      which can cause issues like logger handlers duplication and
      problems with commands combinations.
      2ec38bc7
  6. 15 Dec, 2015 1 commit
    • Luis Araujo's avatar
      Re-write report command to use the new Analyse module · 3fd1c34c
      Luis Araujo authored
      This is a full re-write of the report command to use the new
      Analyse module. This re-write includes most of the functionality of
      the previous version making the code much cleaner and easier to
      extend with new features.
      3fd1c34c
  7. 08 Dec, 2015 1 commit
    • Luis Araujo's avatar
      Add the analyse lqa API module · f400725e
      Luis Araujo authored
      This module implements the Analyse object which can be used to
      process and analyse LAVA data (jobs, tests, results).
      
      It is initially designed to be used by the lqa report command, but
      can be extended along the way to be re-used by other modules or
      scripts requiring to analyse LAVA data.
      f400725e
  8. 04 Dec, 2015 1 commit
  9. 02 Dec, 2015 3 commits
    • Luis Araujo's avatar
      Rename the analyse command to new name report · 06909ab8
      Luis Araujo authored
      This is a more accurate name for such a command. This commit also
      updates the test unit to use the new name.
      06909ab8
    • Luis Araujo's avatar
      Add support to fetch test case attachments · 9f1384a1
      Luis Araujo authored
      Now the --attachments option of the test command will fetch all
      test run and test case attachments files.
      
      These files will be saved in a directory hierarchy of the form
      <attachments-dir>/<test-run-dir>/<test-case-dir>, and each of the files
      will be saved in the specific category for each of the test runs and
      test cases.
      
      Also the output message is much simpler now, and it will only print
      a logger info message after all the files have been saved to the
      location.
      9f1384a1
    • Luis Araujo's avatar
      Merge branch 'analyse-new-layout' · 390b3c43
      Luis Araujo authored
      390b3c43
  10. 17 Nov, 2015 1 commit
    • Luis Araujo's avatar
      Add new sections to cover all job states in the test report · d93e2f90
      Luis Araujo authored
      This commit adds new sections to cover all the possible job states
      in the analyse report.
      
      It will now show the following main categories if there are jobs
      in such a states: Failed jobs, Pending jobs, Canceled jobs and
      Successful jobs.
      d93e2f90
  11. 11 Nov, 2015 1 commit
    • Luis Araujo's avatar
      Wait for job to start when using the output --live option · 65a355c6
      Luis Araujo authored
      This commit will make the output command to wait for the job to start
      when using the --live option, or will immediately exit and print a
      message showing the current job status when not using such an option.
      
      This commit also introduces some code refactoring and cleaning, specially
      in the way the errors are handled to fit better the above changes.
      65a355c6
  12. 26 Oct, 2015 1 commit
  13. 22 Oct, 2015 3 commits
    • Luis Araujo's avatar
      Change job command line interface and output · cf269024
      Luis Araujo authored
      Now the job command will only show the job name by default if no
      other option is passed, and it will require explicitly the new
      --tests option to list the job tests.
      
      This commit also makes the command output cleaner.
      
      These changes are intended to make the job command resemble how
      the test command behaves.
      cf269024
    • Luis Araujo's avatar
      Show job failure comment if available in the report · 827a7a3a
      Luis Araujo authored
      This will show the job failure comment if it is available in the
      analyse report. This comment contains information about
      infrastructure failures for the job.
      827a7a3a
    • Luis Araujo's avatar
      Wrap XMLRPC methods inside the Connection class · 8ca1b06a
      Luis Araujo authored
      This commit wraps all the XMLRPC methods inside the Connection class
      for easy and direct access from the lqa API, which will allow (among
      other things) to abstract such a details from the external code and
      commands.
      
      One of the important changes in this commit is that now the Connection
      object will create a server proxy at once and will be referenced by
      the property self._conn which will be later used by the rest of its
      methods to access the server API.
      
      Only the XMLRPC methods currently used by the lqa tool have been added
      to the Connection class, others should be added later here if required.
      8ca1b06a
  14. 21 Oct, 2015 1 commit
  15. 20 Oct, 2015 2 commits
    • Luis Araujo's avatar
      Improve test command interface options and output · 499da27a
      Luis Araujo authored
      This commit implements the following changes to the test command
      line interface:
      
      - It now won't show the test results by default, and instead the
        command line option --no-results is replaced by the option
        -r/--results to explicitly tell the command to show the results.
      - It makes the displayed output cleaner for the --info option.
      499da27a
    • Luis Araujo's avatar
      Add the options to show all the test results in analyse · 62671b2d
      Luis Araujo authored
      This commit adds the flag -a/--all-results to the analyse command
      so it expands and show all test results (not only failed results).
      
      It sets a limit to show only 500 test results for each status, and
      it prints a message to check the bundle link for further results if
      that's the case. This limit can be ignored with the --no-limit
      option.
      
      It also refactors some of the code to be cleaner for printing the
      different test results.
      62671b2d
  16. 19 Oct, 2015 1 commit
  17. 16 Oct, 2015 5 commits
  18. 05 Oct, 2015 1 commit
    • Luis Araujo's avatar
      Add the failure_comment property · 13c41ccb
      Luis Araujo authored
      This job API property will allow to fetch the failure comment for
      the job. This can be useful for reporting and debugging job issues.
      13c41ccb
  19. 02 Oct, 2015 2 commits
  20. 29 Sep, 2015 1 commit
  21. 28 Sep, 2015 3 commits
    • Luis Araujo's avatar
      Only show some job info fields if they do exist · 1e55c0d2
      Luis Araujo authored
      This offers a more concise output only showing the info relevant
      to each job status and also avoids the error during the calculation
      of the job duration if the end_time is not yet available.
      1e55c0d2
    • Luis Araujo's avatar
      Clean error message for job bundle not found in job and test commands · f8a6a984
      Luis Araujo authored
      This commit reports a cleaner error message and will exit with code
      APPLICATION_ERROR if the job bundle is not found for the job and test
      commands.
      f8a6a984
    • Luis Araujo's avatar
      Redesign the wait API with new name: waitqueue · c4367b82
      Luis Araujo authored
      This commit makes lot of changes to the current wait API, that
      it is now renamed waitqueue since this represents more clearly what
      this API is intended to be: A queue to wait for jobs completion.
      
      The API now inherits from the list object too, since it behaves the
      same to a list except from some new methods specific to wait for
      the jobs in the queue.
      
      These changes will now primarily allow (among other things) to use
      the waitqueue API independently from the lqa_tool since it also
      properly abstracts the API behaviour from such a tool.
      c4367b82
  22. 24 Sep, 2015 2 commits
    • Luis Araujo's avatar
      Change argument name to build the job id list · e19872f8
      Luis Araujo authored
      This commit changes the special argument name from 'job_id' to
      'job_ids' to build the job id list. This is a more appropriate
      name for such an argument and fixes the case where the command
      only takes a single job id (named job_id) and doesn't need to
      build a list.
      e19872f8
    • Luis Araujo's avatar
      Add the job id range notation · aa6d5264
      Luis Araujo authored
      This commit adds a range notation to specify the JOB ID in those
      commands requirng such an argument.
      
      The notation for JOB ID's can now be a range like: '0-N' to
      process jobs with ID from 0 to N. The notation keeps also working
      fine specifying a single JOB ID, or even a combination of both,
      for example: '0 1-6 20-23 99' will work as expected
      processing each of the specific JOB ID's.
      aa6d5264
  23. 22 Sep, 2015 2 commits
    • Luis Araujo's avatar
      Add the test command · 8ad9468c
      Luis Araujo authored
      This command will show information for the tests executed
      by the specified job id. It offers several options to display the
      test results and test metadata.
      
      This command can be seen like a front-end to the test API lqa_api.test.
      8ad9468c
    • Luis Araujo's avatar
      Add the liststreams command · f1dacab6
      Luis Araujo authored
      This command will list all the bundle streams the logged in user
      has access to.
      f1dacab6
  24. 18 Sep, 2015 1 commit
    • Luis Araujo's avatar
      Add job command to fetch and display job information · 05e2874f
      Luis Araujo authored
      This commit adds the new job command at lqa_tool.commands.job.
      
      This command is used to fetch and display the information of the
      specified job ids. It is basically a command line front-end that
      directly maps to methods in the job API to show job metadata.
      05e2874f