Repository navigation
feat(clp-package): Add Spider and its dependencies to the build. #1318
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
Changes from 20 commits
2f48c84
de2d729
c24c69f
98767f0
c27281f
472c03e
2091739
4bb2f44
55287f5
d0811b3
f89c326
ac6549c
de3ece5
d95230a
6f51763
0d29ffc
fcc17e1
da67d9a
d5751df
8a33b1c
736e7f4
660467d
ab762ca
8eb4ff9
1f31d0c
371da49
13d7de7
5bdd22f
cd9b847
9c3fd45
8fa7423
59cb8e9
531db6a
47f5900
aa9d952
f5aaf4b
7e223ef
b2dc621
d33c93a
ea5a7a9
58aaa2d
56517e5
46ff3ee
dc443f0
748dd1a
98d6563
95a66e7
c8938d2
904e82b
97c0a6c
cfbba25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # CLP Job Orchestration using Spider | ||
|
|
||
| This Python module contains CLP's scheduler and worker to handle distributed compression. | ||
| CLP's Compression Job Handler can be used to interface and submit compression jobs to the CLP scheduler. | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,27 @@ | ||||||||||||||||||||||||||||
| [project] | ||||||||||||||||||||||||||||
| requires-python = ">= 3.9, <4.0" | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| [tool.poetry] | ||||||||||||||||||||||||||||
| name = "spider-orchestration" | ||||||||||||||||||||||||||||
| version = "0.5.1-dev" | ||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use a PEP 440–compliant version. "0.5.1-dev" isn’t valid per PEP 440 and can break build/publish. Use a .devN pre-release. Apply: -version = "0.5.1-dev"
+version = "0.5.1.dev0"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
| description = "Scheduler and worker cluster for CLP's distributed architecture." | ||||||||||||||||||||||||||||
| authors = ["YScope Inc. <dev@yscope.com>"] | ||||||||||||||||||||||||||||
| readme = "README.md" | ||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick Add license metadata. Include the project licence in package metadata. Apply: readme = "README.md"
+license = "Apache-2.0"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| [tool.poetry.dependencies] | ||||||||||||||||||||||||||||
| python = ">= 3.9, <4.0" | ||||||||||||||||||||||||||||
| Brotli = "^1.1.0" | ||||||||||||||||||||||||||||
| # MariaDB version must be compatible with libmariadb-dev <3.3.1 installed in the runtime | ||||||||||||||||||||||||||||
| # environment. The default version of libmariadb-dev in Ubuntu 22.04 is 3.2.6. | ||||||||||||||||||||||||||||
| # See https://mariadb.com/docs/connectors/mariadb-connector-python/install#build-prerequisites | ||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainValidate the libmariadb note and keep it current. The comment references specific libmariadb-dev versions on Ubuntu 22.04. Please verify these constraints against the current MariaDB Connector/Python 1.0.x guidance. 🌐 Web query: 💡 Result: Short answer
Sources
If you want, I can check which libmariadb package versions are available on Ubuntu 22.04 (apt names/versions) and recommend a specific package to install. Update libmariadb note: remove the '<3.3.1' upper bound and state the correct Connector/C minima 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
| mariadb = "~1.0.11" | ||||||||||||||||||||||||||||
| msgpack = "^1.0.7" | ||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gate mariadb install to Linux to prevent cross‑platform failures. The MariaDB Python package often relies on system libmariadb; on macOS/Windows this can fail unexpectedly. Apply: -mariadb = "~1.0.11"
+mariadb = { version = "~1.0.11", markers = "sys_platform == 'linux'" }📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
| pika = "^1.3.2" | ||||||||||||||||||||||||||||
| pydantic = "^1.10.13" | ||||||||||||||||||||||||||||
| pymongo = "^4.7.2" | ||||||||||||||||||||||||||||
| PyYAML = "^6.0.1" | ||||||||||||||||||||||||||||
| yscope-spider-py = "~0.1.0" | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| [build-system] | ||||||||||||||||||||||||||||
| requires = ["poetry-core"] | ||||||||||||||||||||||||||||
| build-backend = "poetry.core.masonry.api" | ||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick Pin a minimum poetry-core for reproducibility. Unpinned build backends can change behaviour subtly across environments. Apply: -requires = ["poetry-core"]
+requires = ["poetry-core>=1.8.0"]📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,15 @@ vars: | |
| G_DEPS_CORE_CMAKE_SETTINGS_DIR: "{{.G_DEPS_CORE_DIR}}/cmake-settings" | ||
|
|
||
| # Library names | ||
| G_ABSL_LIB_NAME: "absl" | ||
| G_ANTLR_RUNTIME_LIB_NAME: "antlr4-runtime" | ||
| G_BOOST_LIB_NAME: "Boost" | ||
| G_FMT_LIB_NAME: "fmt" | ||
| G_GSL_LIB_NAME: "Microsoft.GSL" | ||
| G_MARIADB_CONNECTOR_CPP_LIB_NAME: "mariadb-connector-cpp" | ||
| G_MSGPACK_CXX_LIB_NAME: "msgpack-cxx" | ||
| G_SPDLOG_LIB_NAME: "spdlog" | ||
| G_YSTDLIB_LIB_NAME: "ystdlib" | ||
|
sitaowang1998 marked this conversation as resolved.
Resolved
|
||
|
|
||
| # Antlr | ||
| G_ANTLR_VERSION: "4.13.2" | ||
|
|
@@ -75,12 +81,14 @@ tasks: | |
| - task: "liblzma" | ||
| - task: "log-surgeon" | ||
| - task: "lz4" | ||
| - task: "mariadb-connector-cpp" | ||
| - task: "microsoft.gsl" | ||
| - task: "mongocxx" | ||
| - task: "msgpack-cxx" | ||
| - task: "nlohmann_json" | ||
| - task: "simdjson" | ||
| - task: "spdlog" | ||
| - task: "spider" | ||
| - task: "sqlite3" | ||
| - task: "utfcpp" | ||
| - task: "yaml-cpp" | ||
|
|
@@ -98,7 +106,7 @@ tasks: | |
| - "-DCMAKE_BUILD_TYPE=Release" | ||
| - "-DCMAKE_CXX_STANDARD=20" | ||
| - "-DCMAKE_INSTALL_MESSAGE=LAZY" | ||
| LIB_NAME: "absl" | ||
| LIB_NAME: "{{.G_ABSL_LIB_NAME}}" | ||
| TARBALL_SHA256: "7262daa7c1711406248c10f41026d685e88223bc92817d16fb93c19adb57f669" | ||
| TARBALL_URL: "https://github.com/abseil/abseil-cpp/releases/download/20250512.0/\ | ||
| abseil-cpp-20250512.0.tar.gz" | ||
|
|
@@ -134,7 +142,7 @@ tasks: | |
| internal: true | ||
| run: "once" | ||
| vars: | ||
| LIB_NAME: "antlr4-runtime" | ||
| LIB_NAME: "{{.G_ANTLR_RUNTIME_LIB_NAME}}" | ||
|
|
||
| # Paths | ||
| BUILD_DIR: "{{.G_DEPS_CORE_DIR}}/{{.LIB_NAME}}-build" | ||
|
|
@@ -201,6 +209,7 @@ tasks: | |
| TARGETS: | ||
| - "filesystem" | ||
| - "iostreams" | ||
| - "process" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick ❓ Verification inconclusiveVerify spider dependency on boost::process. The addition of "process" to the boost targets suggests spider requires this library. Ensure this dependency is actually needed by spider's codebase. 🏁 Script executed: #!/bin/bash
# Check if spider repository contains any references to boost process
rg -i "process" --type cpp --type hpp -C3 -g '!test*' | head -20Length of output: 27 🏁 Script executed: #!/bin/bash
# Search for any inclusion or direct usage of Boost.Process
rg -n "#include.*boost/process.hpp" -C2 -g '!test*'
rg -n "boost::process::" -C2 -g '!test*'
rg -n "Boost::process" -C2 -g '!test*'Length of output: 446 🏁 Script executed: #!/bin/bash
# Search entire repo for Boost.Process includes and namespace usages without file‐type filters
grep -RIn "#include\s*<boost/process.hpp>" .
grep -RIn "boost::process::" .Length of output: 0 Remove unused Boost.Process dependency 🤖 Prompt for AI Agents |
||
| - "program_options" | ||
| - "regex" | ||
| - "system" | ||
|
|
@@ -337,6 +346,25 @@ tasks: | |
| TARBALL_SHA256: "537512904744b35e232912055ccf8ec66d768639ff3abe5788d90d792ec5f48b" | ||
| TARBALL_URL: "https://github.com/lz4/lz4/releases/download/v1.10.0/lz4-1.10.0.tar.gz" | ||
|
|
||
| mariadb-connector-cpp: | ||
|
sitaowang1998 marked this conversation as resolved.
Resolved
|
||
| internal: true | ||
| run: "once" | ||
| platforms: ["linux"] | ||
| status: | ||
| - >- | ||
| test -f /etc/os-release && grep -qi ubuntu /etc/os-release || true | ||
| cmds: | ||
| - task: "utils:install-remote-cmake-lib" | ||
| vars: | ||
| CMAKE_GEN_ARGS: | ||
| - "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" | ||
|
sitaowang1998 marked this conversation as resolved.
Resolved
|
||
| - "-DUSE_SYSTEM_INSTALLED_LIB=ON" | ||
| - "-DINSTALL_LAYOUT=RPM" | ||
|
sitaowang1998 marked this conversation as resolved.
Resolved
|
||
| LIB_NAME: "{{.G_MARIADB_CONNECTOR_CPP_LIB_NAME}}" | ||
| TARBALL_URL: "https://github.com/mariadb-corporation/mariadb-connector-cpp/archive/refs/\ | ||
| tags/1.1.5.tar.gz" | ||
|
sitaowang1998 marked this conversation as resolved.
Resolved
|
||
| TARBALL_SHA256: "0e3dfe9f2bc3f7bb6f7c159009556290064a7c23402ea08019fa8aebfc3ff2c9" | ||
|
|
||
|
sitaowang1998 marked this conversation as resolved.
Resolved
|
||
| microsoft.gsl: | ||
| internal: true | ||
| run: "once" | ||
|
|
@@ -387,7 +415,7 @@ tasks: | |
| - "-DCMAKE_POLICY_DEFAULT_CMP0074=NEW" | ||
| - "-DMSGPACK_BUILD_DOCS=OFF" | ||
| - "-DMSGPACK_CXX20=ON" | ||
| LIB_NAME: "msgpack-cxx" | ||
| LIB_NAME: "{{.G_MSGPACK_CXX_LIB_NAME}}" | ||
| TARBALL_SHA256: "7504b7af7e7b9002ce529d4f941e1b7fb1fb435768780ce7da4abaac79bb156f" | ||
| TARBALL_URL: "https://github.com/msgpack/msgpack-c/releases/download/cpp-{{.VERSION}}\ | ||
| /msgpack-cxx-{{.VERSION}}.tar.gz" | ||
|
|
@@ -439,13 +467,50 @@ tasks: | |
| - "-DSPDLOG_BUILD_EXAMPLE=OFF" | ||
| - "-DSPDLOG_BUILD_EXAMPLE_HO=OFF" | ||
| - "-DSPDLOG_FMT_EXTERNAL=ON" | ||
| LIB_NAME: "spdlog" | ||
| LIB_NAME: "{{.G_SPDLOG_LIB_NAME}}" | ||
| TARBALL_SHA256: "1586508029a7d0670dfcb2d97575dcdc242d3868a259742b69f100801ab4e16b" | ||
|
|
||
| # NOTE: Since spdlog depends on fmt, we need to choose a version of spdlog that's | ||
| # compatible with the version of fmt we use. | ||
| TARBALL_URL: "https://github.com/gabime/spdlog/archive/refs/tags/v1.14.1.tar.gz" | ||
|
|
||
| spider: | ||
| internal: true | ||
| run: "once" | ||
| # Disable spider build on non-Linux platforms, specifically macOS | ||
| platforms: ["linux"] | ||
| status: | ||
| - >- | ||
| test -f /etc/os-release && grep -qi ubuntu /etc/os-release || true | ||
| deps: | ||
| - task: "absl" | ||
| - task: "antlr-jar" | ||
| - task: "antlr-runtime" | ||
| - task: "boost" | ||
| - task: "fmt" | ||
| - task: "mariadb-connector-cpp" | ||
| - task: "msgpack-cxx" | ||
| - task: "spdlog" | ||
| - task: "ystdlib" | ||
| cmds: | ||
| - task: "utils:install-remote-cmake-lib" | ||
| vars: | ||
| CMAKE_GEN_ARGS: | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_ABSL_LIB_NAME}}.cmake" | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_ANTLR_RUNTIME_LIB_NAME}}.cmake" | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_BOOST_LIB_NAME}}.cmake" | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_FMT_LIB_NAME}}.cmake" | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_MARIADB_CONNECTOR_CPP_LIB_NAME}}.cmake" | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_MSGPACK_CXX_LIB_NAME}}.cmake" | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_SPDLOG_LIB_NAME}}.cmake" | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_YSTDLIB_LIB_NAME}}.cmake" | ||
| - "-DCMAKE_BUILD_TYPE=Release" | ||
| - "-DCMAKE_INSTALL_MESSAGE=LAZY" | ||
| - "-DSPIDER_BUILD_TESTING=OFF" | ||
| LIB_NAME: "spider" | ||
| TARBALL_SHA256: "4a02e1d7b74ca4651e242d76c66ff740fbb1a3793bcf720b8edce2ec5a694ac4" | ||
| TARBALL_URL: "https://github.com/y-scope/spider/archive/c9c007d.tar.gz" | ||
|
|
||
|
sitaowang1998 marked this conversation as resolved.
Resolved
|
||
| sqlite3: | ||
| internal: true | ||
| vars: | ||
|
|
@@ -520,10 +585,9 @@ tasks: | |
| vars: | ||
| CMAKE_GEN_ARGS: | ||
| - "-C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_BOOST_LIB_NAME}}.cmake" | ||
| - "-DCMAKE_BUILD_TYPE=Release" | ||
| - "-DCMAKE_INSTALL_MESSAGE=LAZY" | ||
| - "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" | ||
| - "-Dystdlib_BUILD_TESTING=OFF" | ||
| LIB_NAME: "ystdlib" | ||
| LIB_NAME: "{{.G_YSTDLIB_LIB_NAME}}" | ||
| TARBALL_SHA256: "65990dc2bcc4a355c2181bfe31a7800f492309d1bcd340f52a34e85047e61bc8" | ||
| TARBALL_URL: "https://github.com/y-scope/ystdlib-cpp/archive/9ed78cd.tar.gz" | ||
|
|
||
|
|
||
|
sitaowang1998 marked this conversation as resolved.
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.
🧹 Nitpick
Add platform/build note for Spider and MariaDB Connector C++.
Readers should know these C++ deps are built only on Ubuntu as per this PR.
Suggested addition (new paragraph after Line 4):
+Note: As part of project setup, the Spider library and MariaDB Connector/C++ are built and installed on Ubuntu platforms only. Other platforms skip these native builds.📝 Committable suggestion
🤖 Prompt for AI Agents