Repository navigation
tentacle: RGW: Add Bucket metadata attribute for Lua scripts - #68564
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
13 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
batrick
left a comment
There was a problem hiding this comment.
Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport, and the changes appear to be incorrect or undocumented. Please review the highlighted files. Make sure Conflict markers are left into cherry-picks with explanations.
Be familiar with the rules and guidelines for writing backports.
Affected File(s):
src/test/rgw/test_rgw_lua.cc
Commit Parity Visualizer:
================================================================================
COMMIT PARITY VISUALIZER
================================================================================
BACKPORT PR #68564 SOURCE PR / STATUS
--------------------------------------------------------------------------------
[ 358d89fd ] rgw: Add Bucket tags attr... PR #67219 [ 6e09062f ] rgw: Add Bucket tags...
================================================================================
Range Diff:
Click to expand
--- Original (6e09062f)
+++ Backport (358d89fd)
@@ -10,3 +10,4 @@
Co-authored-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Emin Mert Sunacoglu <[email protected]>
+(cherry picked from commit 6e09062fcc4a623ab8ac9f1f0e8ec78456f7fe28)
================================================================================
RANGE DIFF
================================================================================
1: 6e09062fcc4 ! 1: 358d89fda75 rgw: Add Bucket tags attribute for Lua scripts
@@ Commit message
Co-authored-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Emin Mert Sunacoglu <[email protected]>
+ (cherry picked from commit 6e09062fcc4a623ab8ac9f1f0e8ec78456f7fe28)
## doc/radosgw/lua-scripting.rst ##
@@ doc/radosgw/lua-scripting.rst: Request Fields
@@ src/test/rgw/test_rgw_lua.cc
using namespace std;
using namespace rgw;
-@@ src/test/rgw/test_rgw_lua.cc: TEST(TestRGWLua, NotValidLua)
- const auto rc = lua::request::execute(nullptr, nullptr, &s, nullptr, script, return_code);
- ASSERT_EQ(rc, -1);
- EXPECT_NE(return_code, -EPERM);
--}
- \ No newline at end of file
+@@ src/test/rgw/test_rgw_lua.cc: TEST(TestRGWLua, NestedLoop)
+ ASSERT_EQ(rc, 0);
+ }
+
++TEST(TestRGWLua, ReturnError)
++{
++ const std::string script = R"(
++ return RGW_ABORT_REQUEST
++ )";
++ int return_code = 0;
++ DEFINE_REQ_STATE;
++ const auto rc = lua::request::execute(nullptr, nullptr, &s, nullptr, script, return_code);
++ EXPECT_EQ(rc, 0);
++ EXPECT_EQ(return_code, -EPERM);
++}
++
++TEST(TestRGWLua, ReturnString)
++{
++ const std::string script = R"(
++ return "NoSuchBucket"
++ )";
++
++ int return_code = 0;
++ DEFINE_REQ_STATE;
++ const auto rc = lua::request::execute(nullptr, nullptr, &s, nullptr, script, return_code);
++ ASSERT_EQ(rc, 0);
++ EXPECT_NE(return_code, -EPERM);
++}
++
++TEST(TestRGWLua, SuccessNoReturn)
++{
++ const std::string script = R"(
++ -- do nothing and return nothing
++ )";
++
++ int return_code = 0;
++ DEFINE_REQ_STATE;
++ const auto rc = lua::request::execute(nullptr, nullptr, &s, nullptr, script, return_code);
++ ASSERT_EQ(rc, 0);
++ EXPECT_NE(return_code, -EPERM);
++}
++
++TEST(TestRGWLua, NotValidLua)
++{
++ const std::string script = R"(
++ this is not valid lua code
++ )";
++
++ int return_code = 0;
++ DEFINE_REQ_STATE;
++ const auto rc = lua::request::execute(nullptr, nullptr, &s, nullptr, script, return_code);
++ ASSERT_EQ(rc, -1);
++ EXPECT_NE(return_code, -EPERM);
+}
+
+TEST(TestRGWLua, BucketTags)358d89f to
5241d52
Compare
|
jenkins test api |
|
The audit fail is a false positive. This can be taken for tentacle if it passes tests. |
|
@adamemerson , please set the audit override. |
|
@nbalacha is there anything I can do on my end to help move this forward? |
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
This PR has been added to wip-anrao5-testing-2026-10-28-0801-tentacle. |
pr testing completed and approved by @ivancich more details on : https://tracker.ceph.com/issues/82206 |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #68564 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 1325ef5 rgw: Add Bucket tags attribute for Lua scripts | PR #67219 | 6e09062 rgw: Add Bucket tags attribute for Lua scripts |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 1325ef5 (cherry-pick of 6e09062)
Affected File(s)
src/test/rgw/test_rgw_lua.cc
Range Diff
Click to expand
--- Original (6e09062f)
+++ Backport (1325ef5f)
@@ -10,3 +10,4 @@
Co-authored-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Emin Mert Sunacoglu <[email protected]>
+(cherry picked from commit 6e09062fcc4a623ab8ac9f1f0e8ec78456f7fe28)
================================================================================
RANGE DIFF
================================================================================
1: 6e09062fcc4 ! 1: 1325ef5fe25 rgw: Add Bucket tags attribute for Lua scripts
@@ Commit message
Co-authored-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Emin Mert Sunacoglu <[email protected]>
+ (cherry picked from commit 6e09062fcc4a623ab8ac9f1f0e8ec78456f7fe28)
## doc/radosgw/lua-scripting.rst ##
@@ doc/radosgw/lua-scripting.rst: Request Fields
@@ src/test/rgw/test_rgw_lua.cc
using namespace std;
using namespace rgw;
@@ src/test/rgw/test_rgw_lua.cc: TEST(TestRGWLua, NotValidLua)
- const auto rc = lua::request::execute(nullptr, nullptr, &s, nullptr, script, return_code);
ASSERT_EQ(rc, -1);
EXPECT_NE(return_code, -EPERM);
--}
- \ No newline at end of file
-+}
+ }
+
+TEST(TestRGWLua, BucketTags)
+{How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @batrick. |
|
@nbalacha please add yourself to .githubmap |
backport tracker: https://tracker.ceph.com/issues/76120
backport of #67219
parent tracker: https://tracker.ceph.com/issues/74756
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh