feat: migration breadth, project templates, preset export, IDE/registry polish
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m33s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m44s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m16s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m37s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m29s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 24s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m52s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 20s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m57s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m47s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 7m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m33s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m44s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m16s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m37s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m29s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 24s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m52s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 20s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m57s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m47s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 7m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
- vbs migrate --from meson: bounded meson.build importer (project, variable assignments, files()/include_directories(), executable/static_library/ shared_library/library with link_with, include_directories, dependencies, install/install_dir) rendering the same build.cpp scaffold; everything untranslated is reported as a note. - vbs init --template app|library|header-only|shared; every template scaffolds a project whose own test passes. - vbs presets --export FILE: writes VBS profiles as CMake configure presets (round-trips through the CMakePresets importer). - vbs ide generate also writes JetBrains run configurations per target. - VBS_HOST_CXX_FLAGS/VBS_HOST_LDFLAGS instrument the compiled build descriptor (the CI sanitizer lane sets them). - The registry queue counts lease attempts and abandons an action after 5 attempts into a dead-letter list instead of leasing it forever. - CI: coverage lane (lcov report), sanitizer descriptor flags; docs ledger brought up to date (STATE/TASKS/superiority roadmap). Verified: the new FullV1Tests and RegistryTests cases pass and the full CTest suite passes 8/8.
This commit is contained in:
1 parent
9da1387031
commit
fe453bd601
17 files changed
+898
-54
No files matched your search
@@ -2264,10 +2264,71 @@ VOID_TEST(RegistryTests, worker_action_queue_enqueue_lease_and_complete) {
|
||||
Void::Testing::expect(listing.has_value() && listing->status == 200);
|
||||
if (listing) {
|
||||
Void::Testing::expect(listing->body.find(key_a) != std::string::npos);
|
||||
Void::Testing::expect(listing->body.find("\"attempts\"") != std::string::npos);
|
||||
}
|
||||
(*svc)->stop_http();
|
||||
}
|
||||
|
||||
// Leases are retried, but only up to a budget: a queued action that never reports a
|
||||
// result is abandoned (dead-lettered) instead of being leased forever.
|
||||
VOID_TEST(RegistryTests, worker_queue_abandons_actions_after_repeated_leases) {
|
||||
Void::FileSystem::TempDir tmp{"vbs_queue_attempts_"};
|
||||
RegistryConfig cfg;
|
||||
cfg.data_dir = tmp / "reg_data";
|
||||
cfg.bind_address = "127.0.0.1";
|
||||
cfg.port = 0;
|
||||
cfg.bootstrap_admin_user = "admin";
|
||||
cfg.bootstrap_admin_password = "admin_pw";
|
||||
auto svc = RegistryService::open(cfg);
|
||||
Void::Testing::expect(svc.has_value());
|
||||
if (!svc) {
|
||||
return;
|
||||
}
|
||||
Void::Testing::expect((*svc)->create_user("q_pub", "q_pass", Role::Publisher).has_value());
|
||||
auto tok = (*svc)->create_token("q_pub", "q", {"read", "publish"});
|
||||
Void::Testing::require(tok.has_value());
|
||||
Void::Testing::expect((*svc)->start_http().has_value());
|
||||
const auto port = (*svc)->bound_port();
|
||||
const std::map<std::string, std::string, std::less<>> auth{{"Authorization", "Bearer " + *tok}};
|
||||
|
||||
const std::string key = Util::sha256_hex("poison-action");
|
||||
auto enqueued = send_loopback_http(port, "POST", "/api/v1/queue", auth,
|
||||
"{\"action_keys\":[\"" + key + "\"]}");
|
||||
Void::Testing::expect(enqueued.has_value() && enqueued->status == 200);
|
||||
auto registered = send_loopback_http(port, "POST", "/api/v1/workers", auth, "{}");
|
||||
Void::Testing::require(registered.has_value() && registered->status == 201);
|
||||
const std::string worker_id = extract_json_str(registered->body, "worker_id");
|
||||
|
||||
// Five leases that are never completed (each lease expires after one second).
|
||||
int leases = 0;
|
||||
for (int attempt = 1; attempt <= 5; ++attempt) {
|
||||
auto leased = send_loopback_http(port, "POST", "/api/v1/queue/lease", auth,
|
||||
"{\"worker_id\":\"" + worker_id +
|
||||
"\",\"lease_seconds\":1}");
|
||||
Void::Testing::expect(leased.has_value() && leased->status == 200);
|
||||
if (!leased || leased->status != 200) {
|
||||
break;
|
||||
}
|
||||
++leases;
|
||||
Void::Testing::expect(leased->body.find("\"attempt\":" + std::to_string(attempt)) !=
|
||||
std::string::npos);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds{1100});
|
||||
}
|
||||
Void::Testing::expect_eq(leases, 5);
|
||||
|
||||
// The sixth lease finds nothing: the action was abandoned, not leased again.
|
||||
auto exhausted = send_loopback_http(port, "POST", "/api/v1/queue/lease", auth,
|
||||
"{\"worker_id\":\"" + worker_id +
|
||||
"\",\"lease_seconds\":60}");
|
||||
Void::Testing::expect(exhausted.has_value() && exhausted->status == 404);
|
||||
auto listing = send_loopback_http(port, "GET", "/api/v1/queue", auth);
|
||||
Void::Testing::require(listing.has_value() && listing->status == 200);
|
||||
Void::Testing::expect(listing->body.find(key) != std::string::npos); // in "abandoned"
|
||||
Void::Testing::expect(listing->body.find("\"abandoned\":[\"" + key + "\"]") !=
|
||||
std::string::npos);
|
||||
(*svc)->stop_http();
|
||||
}
|
||||
|
||||
// `vbs test --cdash-output FILE --cdash URL`: writes a CDash Test.xml report and submits it as
|
||||
// multipart/form-data to submit.php (captured by a loopback HTTP server).
|
||||
VOID_TEST(RegistryTests, cdash_test_report_output_and_submission) {
|
||||
|
||||
Reference in new issue
Block a user