On Thu, 11 Oct 2018 at 09:49, Richard W.M. Jones rjones@redhat.com wrote:
On Wed, Oct 10, 2018 at 11:26:01PM +0200, Miroslav Vadkerti wrote:
Hi,
sorry for the late response :(
On Tue, Oct 2, 2018 at 9:42 AM Richard W.M. Jones rjones@redhat.com wrote:
On Mon, Oct 01, 2018 at 11:26:59AM +0200, Miroslav Vadkerti wrote:
For this time I rescheduled the run:
https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenki...
It appears to have failed, but I've got no clue why. How do I see the output of the command?
Ugh, logs are now gone. Which package were you testing? We can take a look what was the problem.
https://src.fedoraproject.org/rpms/libguestfs
The test is to run a single command (libguestfs-test-tool). This command is already installed by the package, so there's no need for any test harness or script. If the command fails (ie. exit code != 0) then it's vital we see the complete output in order to diagnose the problem.
https://src.fedoraproject.org/rpms/libguestfs/blob/master/f/tests/tests.yml
I've created pull request with fixed tests.yml file:
https://src.fedoraproject.org/rpms/libguestfs/pull-request/4
In the pull request you would directly see link to the test results including the complete output of the test. Unfortunately there is currently issue with propagating results to Pagure:
https://pagure.io/fedora-ci/general/issue/10
We are currently looking into this, it should be fixed soon. Meanwhile it's still possible to see results of the pipeline here:
https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenki... https://fedoraproject.org/wiki/CI/Pipeline#Instances
The latest libguestfs job is this:
https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenki...
Test output can be found under that "Artifact" tab:
https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-rawhide-pr-pi...
Hope this helps.
psss...
Ideally we'd want to run the test as root and non-root, but for now I just had it run the test as root.
I think it would be easier if we could just drop a shell script into tests/ and have it run that and display the output. The current system seems elaborately overengineered and I don't understand why.
Well, it was decided that we will use Ansible to wrap around our tests. Not my idea. I agree the results could be presented better though, even if the runner is Ansbile. We are preparing a dashboard to view the result of testing, to give a better user experience in the future.
It wasn't very obvious to start off with, but it seems as if the "standard test roles" are designed for the simple case of "just run a script". However the use of YAML combined with the fact that you can't easily run a test locally makes the whole thing very awkward. (Also for some reason I didn't investigate yet, my copy of emacs appears to hate YAML.)
If the pipeline goes through (i.e. tests were run), the pipeline ends up with Pass (test passed) or Unstable state (tests failed). If the test failed, the pipeline did not execute the testing. In the former case you should find logs in the Artifacts tab in Jenkins (test results are prefixed with PASS_ or FAIL_). If you encounter an error, we are here to help an investigate.
Do the tests run if we submit scratch builds?
AFAIK, testing on scratch builds is not currently enabled.
Anyway feel free to submit a new build of libguestfs if you want to see if you can make the test run.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org