#264 Pre-tasks aren't run
Closed: SOLVED 5 years ago by pschindl. Opened 5 years ago by pschindl.

I tried to add tests to gnome-calculator [0]. In tests.yml I define pre-task where is another yml task imported. I use it to set up the system. But when the test was run [1] pre-task didn't happened. Tests failed because of it.

I would like to use pre-task (and imported yml) so I could share code between tests, where I need system in the same state (in my case all future desktop tests).

[0] https://src.fedoraproject.org/rpms/gnome-calculator/pull-request/3#request_diff
[1] https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenkins/fedora-f28-pr-pipeline/detail/fedora-f28-pr-pipeline/5/pipeline/


@pschindl hi.
Is this still actual?
Why do you think this is STR issue? pre_tasks is specified outside of STR roles.

I believe pre_tasks are missing from classic tags, so they do not run :)

I believe pre_tasks are missing from classic tags, so they do not run :)

I just run test with pre_task tagged to classic and the pre-task run just fine. So this was my problem. Thank you for finding that out.

Metadata Update from @pschindl:
- Issue close_status updated to: SOLVED
- Issue status updated to: Closed (was: Open)

5 years ago

Documentation updated to mention need for tags in pre_tasks as well:
https://pagure.io/fedora-ci/docs/c/53d07fe

@psss thank you for documenting this.

Login to comment on this ticket.

Metadata