[Hooks] Hooks from different provider merge their content
Hooks from different providers merge their content when running a test on Orchestrator 4.9.0.
Steps:
- Define 2 hooks of different providers.
- Both hooks must contain multiple definitions with OTF actions, like in this example:
yaml
hooks:
- name: my actions hook
events:
- categoryPrefix: junit
category: execute
after:
- uses: actions/get-file@v1
with:
path: owl.txt
working-directory: /home/otf
- name: my actions hook
events:
- categoryPrefix: junit
category: execute
after:
- uses: actions/get-file@v1
with:
path: owl2.txt
working-directory: /home/otf
- Run a workflow
- The workflow will merge both hooks. For example, while using the previous hooks:
To add to the complexity of this bug:
Sometimes, instead of "junit," it's "robotframework" which contains truncated hooks. The merging of both hooks doesn't seem consistent.
The way to prevent this is to remove the provider from the aggregated part in the squashtf.yaml file.
I'm not sure if it's related, but from a fresh new instance, here's the log from the junit hooks file:
It appears that the file 'changed,' but nothing was actually altered and no tests were run.
Edited by Adrian ANDRE

