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

Introduce run time switch for dN/dx calculation #36

Closed
wants to merge 2 commits into from

Conversation

plexoos
Copy link
Member

@plexoos plexoos commented Jun 17, 2021

The functionality to calculate dN/dx is already in the code. In order to enable it one just need to define an environment variable STAR_USE_DNDX before starting processing jobs.

@plexoos plexoos requested a review from yfisyak June 17, 2021 22:10
@plexoos
Copy link
Member Author

plexoos commented Jun 18, 2021

@yfisyak Do you have any objections to this proposed change?

@kehw
Copy link
Member

kehw commented Jun 18, 2021

Such switches are usually implemented as bfc chain options, right? I am afraid an environment variable based switch won't be as visible as the chain options in log files.

@plexoos
Copy link
Member Author

plexoos commented Jun 18, 2021

Perhaps you are right. To be honest I don't have much experience with bfc chain option implementation. If you know how to do it quickly please submit here

@kehw
Copy link
Member

kehw commented Jun 18, 2021

I do not know the background of this PR. Is it for some quick fix?
There was a similar discussion in S&C management meeting serval weeks ago. If I understand the discussion right, people also suggested that some infrastructure code is needed around the dNdx calculation.

@plexoos
Copy link
Member Author

plexoos commented Jun 18, 2021

The background is very simple. The dNdx feature is enabled by default in the code (essentially hard coded). The dNdx feature is not going to be used in production jobs and has to be disabled BUT the main branch is requested to have the feature on. We either provide a switch or produce a branch with a patch turning the feature off for releases. The latter smells unprofessional to me. Also, the tagging for new release has to happen now so, yes, if you can help act now.

I don't understand the second part of your comment at all... What infrastructure code needed? Any pointers to the discussion?

@kehw
Copy link
Member

kehw commented Jun 18, 2021

For an immediate action, I have no problem with code change here. Gene needs to comment if the production team is ok to work with a new environment variable.
I cannot find the minutes of the meeting I mentioned, but it was about whether we need a chain option for dNdx.

@genevb genevb removed their request for review June 18, 2021 18:27
Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks fine apart from that it changes the default behaviour

@plexoos
Copy link
Member Author

plexoos commented Jun 23, 2021

Change looks fine apart from that it changes the default behaviour

No worries. There was an email (see star-scmgt-l) that the default must be set to off. The "STAR Management" was mentioned four times in that email so, it must mean something 😄

@plexoos
Copy link
Member Author

plexoos commented Jun 23, 2021

@starsdong Xin, if you want to follow up on this change please do now. You can also approve it and merge. Thanks

Copy link
Contributor

@genevb genevb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no objections to the proposed changes under StRoot/StBFChain. The github interface seems to provide no way for me to approve only those specific changes in this larger pull request, and I abstain from review of the other proposed code changes to the main branch. Further, I see that the github interface is forcing me to be listed as a reviewer because I'm listed as a CODEOWNER for just a portion of the subdirectories involved in this pull request and it will no longer allow me to decline the role. So I will just have to leave this as a comment and leave it at that.

@plexoos
Copy link
Member Author

plexoos commented Jun 24, 2021

Xin, if you want to follow up on this change please do now. You can also approve it and merge. Thanks

Xin, yesterday after my comment above you replied to me privately that you were still discussing this change with the STAR management. Is there any news on this? Can we merge already?

By default the calculation is off. Use 'CalcdNdx' option to turn it on
@plexoos
Copy link
Member Author

plexoos commented Jun 25, 2021

Ping @starsdong

@starsdong
Copy link
Member

Dmitri, would you please update the CODEOWNERS file to have Yuri F. as the owner for the dEdxY2Maker? It is preferred to have approvals from the code owners for all PRs. I hope we can conclude on this early next week.

@plexoos
Copy link
Member Author

plexoos commented Jun 25, 2021

Is there a problem for Yuri to do this himself? He is welcome to create a PR with changes to CODEOWNERS

@starsdong
Copy link
Member

Hi All,

After discussion with Yuri who is the code owner of dEdxY2Maker, Yuri proposed a different approach to use SkipdNdx option in the chain. See pull request
#52

If OK with everyone, I would suggest reviewers to take a look at the above #52 request and proceed from there?

Thanks

/in

@klendathu2k
Copy link
Contributor

klendathu2k commented Jul 3, 2021 via email

@plexoos
Copy link
Member Author

plexoos commented Jul 6, 2021

I agree with Jason. #36 should be preferred over #52 because according to PWGC there is no immediate interest in using dNdx. Again, the foreseen production jobs will not include dNdx, therefore, enabling it by default just to use the "skipDnDx" option to turn it off looks strange.

@plexoos
Copy link
Member Author

plexoos commented Jul 16, 2021

Close in favor of #52. The difference between this and #52 is the default value of the switch turning the dNdx calculation on/off

impl1

impl2

@plexoos plexoos closed this Jul 16, 2021
@plexoos plexoos deleted the ds-dndx-switch branch July 16, 2021 16:22
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 this pull request may close these issues.

None yet

6 participants