-
Notifications
You must be signed in to change notification settings - Fork 592
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
fix(ci): Fix broken feg integ tests. #13781
fix(ci): Fix broken feg integ tests. #13781
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the Python Format Check after the last commit. |
9965c35
to
99d6638
Compare
return InitMode.DOCKER | ||
elif systemd_running: | ||
return InitMode.SYSTEMD | ||
else: | ||
raise RuntimeError("Magmad is not running with either Docker or systemd") | ||
return InitMode.SYSTEMD # default to systemd if both are running - needed by feg integ tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it not just go into the docker_running branch in that case instead of defaulting to systemd? I think this branch is only reached if neither is running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
99d6638
to
e152340
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good now, just some minor things.
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the DCO check after the last commit. |
43e5af0
to
aa70046
Compare
… for feg and systemd magmad for agw. So the detection fails. Signed-off-by: Christian Krämer <christian.kraemer@tngtech.com>
aa70046
to
b5232aa
Compare
@VinashakAnkitAman Could you have a look? Currently the feg integ build is red. This should fix it. |
Sure, I will go through the changes now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… for feg and systemd magmad for agw. So the detection fails. (magma#13781) Signed-off-by: Christian Krämer <christian.kraemer@tngtech.com> Signed-off-by: Christian Krämer <christian.kraemer@tngtech.com>
Summary
Feg integ tests need both magmad in docker for running the feg and magmad started by systemd for agw. So the detection which magmad to restart fails. We are now defaulting to systemd as it was before and we will probably have some kind of cli parameter for feg tests in the future to restart both magmads.
Test Plan
Test works on locally machine
Feg test run https://github.com/crasu/magma/actions/runs/2955993651.