-
Notifications
You must be signed in to change notification settings - Fork 7
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
Atomic avu handling (main) #65
Conversation
fair. i don't think icommands have a binary that hits this API endpoint. we expose it via PRC... and yes, the microservice is already 'in the server', so wouldn't hit a PEP. |
and perhaps a run through clang-format? i see some long lines. |
We're going to have to provide another mechanism for testing the atomic PEP. Creating a dependency on the PRC seems like the easiest path forward. |
agreed, for now. |
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
Is this in draft because we are waiting on something? Please mark as ready for review when ready. Thanks |
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.
Do the tests pass? What's left for this?
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.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.
Most of my comments are related to code readability. Approach seems sound.
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.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.
Found a few more things.
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.
Getting there...
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Show resolved
Hide resolved
please mark conversations as resolved/done when they are resolved/done. it's so close... |
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.
Lookin real nice, yep. Noticed one thing that I missed before, again, if I'm reading things properly. :)
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.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.
I think we are ready for some squashing, no #s yet.
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 real good. Found a few more things.
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.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.
This is looking really good.
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
packaging/irods_prc_tests/test_rule_engine_plugin_metadata_guard_atomic.py
Outdated
Show resolved
Hide resolved
I think I got it all. Did I miss anything? |
Have you run all the plugin tests (i.e. the new ones and the old ones) to see if everything is passing? If not, please do so and post a comment letting us know if they passed or failed. We'll do one more pass over the PR while that's happening. |
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.
I think we're in a good spot.
Will wait for test results before approving.
Good job!
Yep, I've run them, and both old&new pass. |
Please create an issue for this and maybe link to this PR: https://github.com/irods/irods_testing_environment Thanks! |
Can the test hook install the PRC? @alanking Who launches the test hook in the testing environment? root or irods? |
Yeah, root runs the test hook in the testing environment now. A user with sudo access should run the test hook as they frequently install packages using the package manager and configure/run external services. We install Minio packages via pip in the test hook for the S3 resource plugin. Not sure if it's weird, but there is precedent. |
Good. @FifthPotato Let's start with making the test hook install the PRC. I imagine it shouldn't take no more than one or two lines of code. |
37d9dfb
to
702a76b
Compare
You could include issue 42 as well since it's marked as a duplicate of 38? |
Please add an empty line between the main commit message and the lines that act as the body. For example:
|
321b06f
to
c95ec72
Compare
Okay, messed with it until the commit msg doesn't get cut off, and put the rest into the body. Numbers added, too. |
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.
Excellent! Pound it.
No spaces after the comma in the square brackets (i.e. [#38,#42]
).
c95ec72
to
92b99f5
Compare
Octothorpe'd |
Primary code mostly appears to work as expected, but can't get the test to stick. Calling it through the microservice seems to bypass policy (at least, I think) and I'm not sure if we can use the python client in tests. At a bit of a loss on how to properly test it with just icommands...