Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude of subservice seems to be not working #62

Open
MarbolanGos opened this issue Jan 31, 2024 · 0 comments · May be fixed by #65
Open

Exclude of subservice seems to be not working #62

MarbolanGos opened this issue Jan 31, 2024 · 0 comments · May be fixed by #65

Comments

@MarbolanGos
Copy link

MarbolanGos commented Jan 31, 2024

Hello,

Here is a case I am facing using milkcheck:

# milkcheck -c $PWD test -n lrdn0001
service1.subservice2                                                    [    OK   ]
service1.subservice1                                                    [    OK   ]
service1                                                                [    OK   ]
service2                                                                [    OK   ]
# milkcheck -c $PWD test -n lrdn0001 -X service1
service2                                                                [    OK   ]
# milkcheck -c $PWD test -n lrdn0001 -X service1.subservice1
service1.subservice2                                                    [    OK   ]
service1.subservice1                                                    [    OK   ]
service1                                                                [    OK   ]
service2                                                                

In the scond exclusion, I wanted the service1.subservice1 not to be run. Do you think it is possible?

My test file is:

---
services:
   service1:
      timeout: 5
      target: "@compute"
      services:
         subservice1:
             target: "@compute"
             actions:
                test:
                   cmd: 'uname'
         subservice2:
             target: "@compute"
             actions:
                test:
                   cmd: 'uname'
   service2:
      timeout: 5
      target: "@compute"
      require_filter: [ service1 ]
      actions:
         test:
            cmd: 'uname'

Regards,
Fabien Archambault

@cedeyn cedeyn linked a pull request Jul 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant