Skip to content

Allow to pass arguments to fileserver.update runner - #55014

Merged
dwoz merged 4 commits into
saltstack:masterfrom
sathieu:fileserver_update_args
Sep 29, 2020
Merged

Allow to pass arguments to fileserver.update runner#55014
dwoz merged 4 commits into
saltstack:masterfrom
sathieu:fileserver_update_args

Conversation

@sathieu

@sathieu sathieu commented Oct 15, 2019

Copy link
Copy Markdown
Contributor

What does this PR do?

Allow to pass arguments to fileserver.update runner

This is useful to only update one GitFS remote.

What issues does this PR fix or reference?

None. But #53622 is related.

Previous Behavior

No way to only update one GitFS repo.

Tests written?

No

Commits signed with GPG?

No

@sathieu
sathieu requested a review from a team as a code owner October 15, 2019 12:46
@ghost
ghost requested a review from twangboy October 15, 2019 12:46
@sathieu
sathieu force-pushed the fileserver_update_args branch 2 times, most recently from e0f625d to f58e484 Compare October 15, 2019 13:50
@sathieu

sathieu commented Oct 17, 2019

Copy link
Copy Markdown
Contributor Author

@twangboy @waynew @terminalmage Please review 👓

@dwoz dwoz added the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Dec 3, 2019
@sathieu
sathieu force-pushed the fileserver_update_args branch 2 times, most recently from 0e99f8e to 70ff03d Compare December 27, 2019 14:26
@sathieu

sathieu commented Dec 27, 2019

Copy link
Copy Markdown
Contributor Author

@dwoz I've added tests (and rebased).

@sathieu
sathieu force-pushed the fileserver_update_args branch from 70ff03d to 17a05a6 Compare December 27, 2019 14:45
@waynew

waynew commented Feb 28, 2020

Copy link
Copy Markdown
Contributor

@sathieu thanks for the PR and sorry for the delay in getting this reviewed! I've merged the most recent master changes in. Next week we're going to be pretty busy with some planning, but I've written this down to make sure we get this looked at by 2nd week in March (2 weeks from now)

@cmcmarrow cmcmarrow removed the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Mar 20, 2020

@cmcmarrow cmcmarrow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we also get test for the changes you made in gitfs?

@sathieu
sathieu force-pushed the fileserver_update_args branch from 76b30d1 to f5cebf2 Compare April 4, 2020 13:55
@waynew

waynew commented Apr 6, 2020

Copy link
Copy Markdown
Contributor

@sathieu I brought this up with the team, and **kwargs is usually an anti-pattern in Salt. Unless there's a really good reason, you should specify the keyword args that you want to be able to use.

With ** it bypasses our args checker, so we can no longer check that states are being used correctly.

If you want to avoid having to provide an argument, default arguments are OK!

Let me know if you have any questions!

@sathieu
sathieu force-pushed the fileserver_update_args branch from f5cebf2 to c109964 Compare April 15, 2020 15:16
@sathieu
sathieu requested a review from cmcmarrow April 15, 2020 15:17

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you please update these to no longer take **kwargs?

Comment thread salt/fileserver/__init__.py Outdated
Comment thread salt/runners/fileserver.py Outdated
@sathieu
sathieu force-pushed the fileserver_update_args branch 2 times, most recently from 1313fbc to 6366c5d Compare May 14, 2020 19:23
@sathieu
sathieu force-pushed the fileserver_update_args branch from 6366c5d to d7695a2 Compare May 28, 2020 15:39
@sathieu

sathieu commented May 28, 2020

Copy link
Copy Markdown
Contributor Author

I've added a test to ensure that invalid parameters throw an error.

Remaining todo:

Can we also get test for the changes you made in gitfs?

@sathieu
sathieu force-pushed the fileserver_update_args branch 3 times, most recently from d990575 to a762f35 Compare May 29, 2020 10:59
@sathieu
sathieu requested a review from waynew May 29, 2020 11:00
@sathieu

sathieu commented May 29, 2020

Copy link
Copy Markdown
Contributor Author

@waynew @dwoz @cmcmarrow @twangboy Please review.

@sathieu
sathieu force-pushed the fileserver_update_args branch from a762f35 to 2ba7a12 Compare May 29, 2020 11:40
waynew
waynew previously approved these changes May 29, 2020

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That seems reasonable to me - I'll bring it up to the rest of the team.

@cmcmarrow

Copy link
Copy Markdown
Contributor

@sabaini thanks for adding tests. This should get merged shortly after sodium gets released.

@sathieu

sathieu commented Jun 4, 2020

Copy link
Copy Markdown
Contributor Author

@cmcmarrow I've added the tests 😄

@sathieu
sathieu dismissed stale reviews from cmcmarrow and waynew via caaaee1 August 25, 2020 11:29
@sathieu
sathieu force-pushed the fileserver_update_args branch from 2ba7a12 to caaaee1 Compare August 25, 2020 11:29
@sathieu

sathieu commented Aug 26, 2020

Copy link
Copy Markdown
Contributor Author

@cmcmarrow You've marked this PR Merge Ready. I've now rebased and fixed pre-commit and Pylint. Hope you merge it now ...

@sathieu

sathieu commented Sep 3, 2020

Copy link
Copy Markdown
Contributor Author

@sagetherage You've removed the Merge Ready tag here. What can I do help merging this PR (and others #56316, #57288)?

@sagetherage

Copy link
Copy Markdown
Contributor

we removed that label all together from the project as it doesn't mean what it says - this needs to be rebased with master, and needs a completed review.

@sathieu

sathieu commented Sep 17, 2020

Copy link
Copy Markdown
Contributor Author

@sagetherage @cmcmarrow @waynew @twangboy Any chance to get this reviewed and merged soon? It was marked merge-ready few months ago...

Thanks

twangboy
twangboy previously approved these changes Sep 17, 2020
@sagetherage

Copy link
Copy Markdown
Contributor

The team is working on getting the test suite to green overall and then merging will start, again. I haven't updated the branch since the branch builds are failing, so I will get back to this soon.

@sathieu

sathieu commented Sep 29, 2020

Copy link
Copy Markdown
Contributor Author

@twangboy @sagetherage Hello. Sorry to insist, but can this be merged in magnesium ?

This MR exists since Oct 2019.

NB: I've merged master and resolved the conflict.

@sathieu
sathieu force-pushed the fileserver_update_args branch from 6f0a3f9 to 7981e66 Compare September 29, 2020 13:52
@sagetherage sagetherage added the Magnesium Mg release after Na prior to Al label Sep 29, 2020
@dwoz
dwoz merged commit 269c12a into saltstack:master Sep 29, 2020
@sathieu
sathieu deleted the fileserver_update_args branch September 30, 2020 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Magnesium Mg release after Na prior to Al

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants