-
Notifications
You must be signed in to change notification settings - Fork 156
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
runMonitoring take more types addition #2390
Conversation
ganga/GangaCore/Core/MonitoringComponent/Local_GangaMC_Service.py
Outdated
Show resolved
Hide resolved
You seem to have included your virtualenv in the commit - could you remove that? You also seem to have touched a lot of things that are best left alone. Also I think some issues have occurred with indenting/whitespace etc. Could you try and tidy that up? The issue only needs some pretty minimal changes so could you try and tidy this up to only include the minimal adjustments necessary? |
Yes, I will make changes and update soon. |
ganga/GangaCore/Core/MonitoringComponent/Local_GangaMC_Service.py
Outdated
Show resolved
Hide resolved
There is something odd going on with the testing here. Not sure what as it seems unrelated to the code changes that you have made. |
@saadkhi I think for the failure of the autopep8 test, when you created the pull request did you click the checkbox to allow upstream developers to make changes to your branch? My best guess at the moment for whats happening here is it's trying to create the autopep8 branch to pull against your branch |
@saadkhi Take a look at the GangaCore Integration tests. There are 3 errors there that relate to the code that you modified. Please take a look first yourself and then ask for help if you can't figure out what is wrong. Check the full details. Extract below.
|
I'm not sure about it, let me check and fix what is going wrong with it. |
yes, @egede I'm working on it to figure out why these test cases get failling. |
Signed-off-by: saadkhi <[email protected]>
I’m having trouble understanding what autopep8 is and how it applies to my pull request. Could you please explain it, or if possible, arrange a meeting sometime this week to discuss? |
so PEP8 is the python style guidelines for coding. Autopep8 is a tool that when run over a codebase will convert all files to the PEP8 standard. As part of our CI/CD pipeline we run an action that automatically runs this autopep8 tool over the files that you have modified and creates a new branch/pull request with the changes necessary to meet the PEP8 standard. Hopefully that is clear. If not, I can have a separate conversation with you or alternatively you could probably join our Monday morning (UK time) meeting. |
Okay, I'll join the meeting and then will solve the autopep8 issue after meeting as soon as possible. |
👍🏻 The meeting is in 17 mins. Do you have the connection details? If you are on the mattermost channel there is a link at the top |
ganga/GangaCore/Core/MonitoringComponent/Local_GangaMC_Service.py
Outdated
Show resolved
Hide resolved
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.
There is something really fishy here.
It turns out that we have two runMonitoring
functions in the codebase. One in MonitoringService.py and one in Local_GangaMC_Service.py.
If I force the runMonitoring method that is edited in this PR to always return False, then the tests are still passing! My conclusion is that the code is never called.
So looking in the coverage of the testing I indeed see that the code that you have implemented is never executed. So in fact the entire |
So the real question now is what the new test files are actually testing. At the moment they just look for |
Hi @egede, thank you for your guidance. Initially, I created the test cases based on the I’ll continue to explore the Ganga project and improve my contributions alongside the team. I appreciate your support and feedback. Thank you again! |
I think this went a bit off-piste, so closing. |
The issue solved was to make
runMonitoring
accept different job inputs—specifically, an integer (job ID), a list of integers (job IDs), and a job object—in addition to the original job slice format. This increases flexibility in specifying jobs for monitoring.fixed #2380