team-ljyzipelo

공개

취소 경합 시험과 패키지 검증 결과를 보완함

작성자
호시노 히나타
작성 시각
커밋
649bb66720d6749fb9973ad5c1248e17fc5a3c89
부모
a569bc9
이 시점의 파일 보기

변경된 파일 2개

+112-2
추가tests/release-packages/validation.json+72-0
@@ -0,0 +1,72 @@
1추가: {
2추가: "base_remote_main": "3b9b5910383295e5597be9b66edcfe444f9ff2ea",
3추가: "package_source_local_commit": "10aad21",
4추가: "tested_source_local_commit": "7048d97b20a3eaa903cbaa7e992ae3df1fcf7027",
5추가: "tested_code_tree": "fb20221c8ec4bbf3e9cd86e1f048d3e6a77551d1",
6추가: "product_code_unchanged_from_base": true,
7추가: "build_profile": "release",
8추가: "package_version": "0.1.0 development",
9추가: "artifacts": {
10추가: "ubuntu": {
11추가: "path": "tests/release-packages/runs/ubuntu-release/zipelo_0.1.0~dev1_amd64.deb",
12추가: "bytes": 4966530,
13추가: "sha256": "b5824125075f957633ee8c1e08abccfa083027e4ba40a94281c76e397638cf15"
14추가: },
15추가: "windows": {
16추가: "path": "tests/release-packages/runs/windows-release/Zipelo-0.1.0-dev-windows-x64-setup.exe",
17추가: "bytes": 5614970,
18추가: "sha256": "8331b43b82349f6b7a65b8865bc5b40a899082f67b796528f7726d8009fe1dab"
19추가: }
20추가: },
21추가: "local": {
22추가: "command": "python3 tests/ci/run_rust.py local",
23추가: "exit_code": 0,
24추가: "rust_tests_passed": 937,
25추가: "runner_checks_passed": 34,
26추가: "linux_build_targets_passed": 21,
27추가: "linux_test_targets_passed": 21,
28추가: "windows_cross_targets_passed": 21
29추가: },
30추가: "ubuntu": {
31추가: "platform": "Ubuntu 26.04 amd64",
32추가: "installed": true,
33추가: "mime_defaults_verified": [
34추가: "application/zip",
35추가: "application/x-7z-compressed",
36추가: "application/x-compressed-tar"
37추가: ],
38추가: "native_window": "Xvfb X11, installed /usr/bin/zipelo with real worker",
39추가: "list_screen_reviewed": "example.txt, 27 bytes, completed",
40추가: "removed_and_purged": true,
41추가: "previous_mime_settings_restored": true
42추가: },
43추가: "windows": {
44추가: "installer_compiled": true,
45추가: "payload_pe_architecture": "x64",
46추가: "runtime_tested": false
47추가: },
48추가: "regression": {
49추가: "initial_local_exit_code": 1,
50추가: "initial_failure": "cancel_racing_child_exit_preserves_completed_result_before_poll: Cancelled instead of Completed after a fixed 2ms wait",
51추가: "fix": "Wait for the real Exited event and buffer responses before model polling; product code unchanged",
52추가: "focused_iterations": 100,
53추가: "focused_passed": true,
54추가: "full_local_after_fix_passed": true
55추가: },
56추가: "limitations": [
57추가: "Automatic MIME defaults require SUDO_USER; GUI/service installs without user identity only register a candidate",
58추가: "Windows runtime and native Wayland session not tested",
59추가: "Rebuild final distribution after pending 7z/ZIP streaming integration"
60추가: ],
61추가: "local_evidence": [
62추가: "tests/release-packages/runs/ubuntu-release-build.log",
63추가: "tests/release-packages/runs/windows-release-build.log",
64추가: "tests/release-packages/runs/ubuntu-smoke.log",
65추가: "tests/release-packages/runs/ubuntu-purge.log",
66추가: "tests/release-packages/runs/cancel-regression.log",
67추가: "tests/release-packages/runs/local.log",
68추가: "tests/release-packages/runs/local-fixed.log",
69추가: "tests/release-packages/runs/smoke/installed-window.png"
70추가: ],
71추가: "evidence_note": "Validation JSON added after tests; the tested code tree matches the remote code tree."
72추가: }
수정tests/rust-app-real-worker/flows.rs+40-2
@@ -511,12 +511,50 @@ fn late_cancel_after_child_reap_keeps_the_original_terminal_result() {
511511
512512#[test]
513513fn cancel_racing_child_exit_preserves_completed_result_before_poll() {
514추가: struct CompletedFactory(ProcessFactory);
515추가: struct BufferedConnection {
516추가: inner: Box<dyn Connection>,
517추가: pending: std::collections::VecDeque<HostEvent>,
518추가: }
519추가: impl Factory for CompletedFactory {
520추가: fn connect(&mut self, job_id: u64) -> Result<Box<dyn Connection>, String> {
521추가: Ok(Box::new(BufferedConnection {
522추가: inner: self.0.connect(job_id)?,
523추가: pending: Default::default(),
524추가: }))
525추가: }
526추가: }
527추가: impl Connection for BufferedConnection {
528추가: fn send(&mut self, request: Request) -> Result<(), String> {
529추가: let starting = matches!(&request.command, Command::Start(_));
530추가: self.inner.send(request)?;
531추가: if starting {
532추가: let deadline = Instant::now() + Duration::from_secs(20);
533추가: loop {
534추가: assert!(Instant::now() < deadline, "작업자 종료 대기 시간 초과");
535추가: if let Some(event) = self.inner.poll() {
536추가: let exited = matches!(&event, HostEvent::Exited { .. });
537추가: self.pending.push_back(event);
538추가: if exited {
539추가: break;
540추가: }
541추가: } else {
542추가: std::thread::sleep(Duration::from_millis(1));
543추가: }
544추가: }
545추가: }
546추가: Ok(())
547추가: }
548추가: fn poll(&mut self) -> Option<HostEvent> {
549추가: self.pending.pop_front().or_else(|| self.inner.poll())
550추가: }
551추가: }
514552 let archive = Path::new(env!("CARGO_MANIFEST_DIR"))
515553 .join("../../tests/rust-app-real-worker/fixtures/sample.zip")
516554 .canonicalize()
517555 .unwrap();
518556 for iteration in 0..100 {
519삭제: let mut factory = ProcessFactory::new(binary("zipelo-archive-worker"));
557추가: let mut factory = CompletedFactory(ProcessFactory::new(binary("zipelo-archive-worker")));
520558 let mut model = Model::default();
521559 assert!(model.begin(
522560 Start::List {
@@ -524,7 +562,7 @@ fn cancel_racing_child_exit_preserves_completed_result_before_poll() {
524562 },
525563 &mut factory
526564 ));
527삭제: std::thread::sleep(Duration::from_millis(2));
565추가: assert!(model.terminal.is_none());
528566 model.cancel();
529567 wait(&mut model);
530568 assert!(model.confirmed, "iteration={iteration}: {:?}", model.error);