Merge pull request #70 from Team-LJY/features/7z-app-format
앱의 7z 형식 변환과 프로토콜 왕복 검증 추가
- 작성자
- LeeJunyoung
- 작성 시각
- 커밋
f4d6322756d6bace6dd9259dac8d336e8a309adf
변경된 파일 9개
+358-21| @@ -116,6 +116,18 @@ version = "2.0.1" | ||
| 116 | 116 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 117 | 117 | checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" |
| 118 | 118 | |
| 119 | 추가: [[package]] | |
| 120 | 추가: name = "aes" | |
| 121 | 추가: version = "0.8.4" | |
| 122 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 123 | 추가: checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" | |
| 124 | 추가: dependencies = [ | |
| 125 | 추가: "cfg-if", | |
| 126 | 추가: "cipher", | |
| 127 | 추가: "cpufeatures", | |
| 128 | 추가: "zeroize", | |
| 129 | 추가: ] | |
| 130 | 추가: | |
| 119 | 131 | [[package]] |
| 120 | 132 | name = "ahash" |
| 121 | 133 | version = "0.8.12" |
| @@ -555,6 +567,16 @@ dependencies = [ | ||
| 555 | 567 | "libc", |
| 556 | 568 | ] |
| 557 | 569 | |
| 570 | 추가: [[package]] | |
| 571 | 추가: name = "cipher" | |
| 572 | 추가: version = "0.4.4" | |
| 573 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 574 | 추가: checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" | |
| 575 | 추가: dependencies = [ | |
| 576 | 추가: "crypto-common", | |
| 577 | 추가: "inout", | |
| 578 | 추가: ] | |
| 579 | 추가: | |
| 558 | 580 | [[package]] |
| 559 | 581 | name = "clipboard-win" |
| 560 | 582 | version = "5.4.3" |
| @@ -704,6 +726,7 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" | ||
| 704 | 726 | dependencies = [ |
| 705 | 727 | "block-buffer", |
| 706 | 728 | "crypto-common", |
| 729 | 추가: "subtle", | |
| 707 | 730 | ] |
| 708 | 731 | |
| 709 | 732 | [[package]] |
| @@ -1398,6 +1421,15 @@ version = "0.4.3" | ||
| 1398 | 1421 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1399 | 1422 | checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" |
| 1400 | 1423 | |
| 1424 | 추가: [[package]] | |
| 1425 | 추가: name = "hmac" | |
| 1426 | 추가: version = "0.12.1" | |
| 1427 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1428 | 추가: checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" | |
| 1429 | 추가: dependencies = [ | |
| 1430 | 추가: "digest", | |
| 1431 | 추가: ] | |
| 1432 | 추가: | |
| 1401 | 1433 | [[package]] |
| 1402 | 1434 | name = "image" |
| 1403 | 1435 | version = "0.25.10" |
| @@ -1422,6 +1454,15 @@ dependencies = [ | ||
| 1422 | 1454 | "hashbrown 0.17.1", |
| 1423 | 1455 | ] |
| 1424 | 1456 | |
| 1457 | 추가: [[package]] | |
| 1458 | 추가: name = "inout" | |
| 1459 | 추가: version = "0.1.4" | |
| 1460 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1461 | 추가: checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" | |
| 1462 | 추가: dependencies = [ | |
| 1463 | 추가: "generic-array", | |
| 1464 | 추가: ] | |
| 1465 | 추가: | |
| 1425 | 1466 | [[package]] |
| 1426 | 1467 | name = "itertools" |
| 1427 | 1468 | version = "0.15.0" |
| @@ -2147,6 +2188,16 @@ version = "0.1.1" | ||
| 2147 | 2188 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2148 | 2189 | checksum = "73072a9470554c8e794778acece2312661218aaabb635600957d952cf01c716e" |
| 2149 | 2190 | |
| 2191 | 추가: [[package]] | |
| 2192 | 추가: name = "pbkdf2" | |
| 2193 | 추가: version = "0.12.2" | |
| 2194 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2195 | 추가: checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" | |
| 2196 | 추가: dependencies = [ | |
| 2197 | 추가: "digest", | |
| 2198 | 추가: "hmac", | |
| 2199 | 추가: ] | |
| 2200 | 추가: | |
| 2150 | 2201 | [[package]] |
| 2151 | 2202 | name = "peniko" |
| 2152 | 2203 | version = "0.6.1" |
| @@ -2588,6 +2639,17 @@ dependencies = [ | ||
| 2588 | 2639 | "syn 3.0.10", |
| 2589 | 2640 | ] |
| 2590 | 2641 | |
| 2642 | 추가: [[package]] | |
| 2643 | 추가: name = "sha1" | |
| 2644 | 추가: version = "0.10.7" | |
| 2645 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2646 | 추가: checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" | |
| 2647 | 추가: dependencies = [ | |
| 2648 | 추가: "cfg-if", | |
| 2649 | 추가: "cpufeatures", | |
| 2650 | 추가: "digest", | |
| 2651 | 추가: ] | |
| 2652 | 추가: | |
| 2591 | 2653 | [[package]] |
| 2592 | 2654 | name = "sha2" |
| 2593 | 2655 | version = "0.10.9" |
| @@ -3952,7 +4014,13 @@ dependencies = [ | ||
| 3952 | 4014 | name = "zipelo-archive-worker" |
| 3953 | 4015 | version = "0.1.0" |
| 3954 | 4016 | dependencies = [ |
| 4017 | 추가: "aes", | |
| 4018 | 추가: "hmac", | |
| 4019 | 추가: "pbkdf2", | |
| 4020 | 추가: "sha1", | |
| 3955 | 4021 | "sha2", |
| 4022 | 추가: "subtle", | |
| 4023 | 추가: "zeroize", | |
| 3956 | 4024 | "zlib-rs", |
| 3957 | 4025 | ] |
| 3958 | 4026 |
| @@ -38,3 +38,7 @@ path = "../../tests/rust-app-ui/regressions.rs" | ||
| 38 | 38 | [[test]] |
| 39 | 39 | name = "real_worker" |
| 40 | 40 | path = "../../tests/rust-app-real-worker/flows.rs" |
| 41 | 추가: | |
| 42 | 추가: [[test]] | |
| 43 | 추가: name = "format_contract" | |
| 44 | 추가: path = "../../tests/rust-app-real-worker/formats.rs" |
| @@ -29,7 +29,8 @@ convert_enum!( | ||
| 29 | 29 | Zip, |
| 30 | 30 | Tar, |
| 31 | 31 | Gzip, |
| 32 | 삭제: TarGzip | |
| 32 | 추가: TarGzip, | |
| 33 | 추가: SevenZip | |
| 33 | 34 | ); |
| 34 | 35 | convert_enum!( |
| 35 | 36 | format_to_ui, |
| @@ -38,7 +39,8 @@ convert_enum!( | ||
| 38 | 39 | Zip, |
| 39 | 40 | Tar, |
| 40 | 41 | Gzip, |
| 41 | 삭제: TarGzip | |
| 42 | 추가: TarGzip, | |
| 43 | 추가: SevenZip | |
| 42 | 44 | ); |
| 43 | 45 | convert_enum!( |
| 44 | 46 | kind_to_ui, |
| @@ -6,6 +6,7 @@ pub enum Format { | ||
| 6 | 6 | Tar, |
| 7 | 7 | Gzip, |
| 8 | 8 | TarGzip, |
| 9 | 추가: SevenZip, | |
| 9 | 10 | } |
| 10 | 11 | #[derive(Clone, Debug, Eq, PartialEq)] |
| 11 | 12 | pub enum SourceObject { |
| @@ -2,6 +2,18 @@ | ||
| 2 | 2 | # It is not intended for manual editing. |
| 3 | 3 | version = 4 |
| 4 | 4 | |
| 5 | 추가: [[package]] | |
| 6 | 추가: name = "aes" | |
| 7 | 추가: version = "0.8.4" | |
| 8 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 9 | 추가: checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" | |
| 10 | 추가: dependencies = [ | |
| 11 | 추가: "cfg-if", | |
| 12 | 추가: "cipher", | |
| 13 | 추가: "cpufeatures", | |
| 14 | 추가: "zeroize", | |
| 15 | 추가: ] | |
| 16 | 추가: | |
| 5 | 17 | [[package]] |
| 6 | 18 | name = "block-buffer" |
| 7 | 19 | version = "0.10.4" |
| @@ -17,6 +29,16 @@ version = "1.0.5" | ||
| 17 | 29 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 18 | 30 | checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" |
| 19 | 31 | |
| 32 | 추가: [[package]] | |
| 33 | 추가: name = "cipher" | |
| 34 | 추가: version = "0.4.4" | |
| 35 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 36 | 추가: checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" | |
| 37 | 추가: dependencies = [ | |
| 38 | 추가: "crypto-common", | |
| 39 | 추가: "inout", | |
| 40 | 추가: ] | |
| 41 | 추가: | |
| 20 | 42 | [[package]] |
| 21 | 43 | name = "cpufeatures" |
| 22 | 44 | version = "0.2.17" |
| @@ -44,6 +66,7 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" | ||
| 44 | 66 | dependencies = [ |
| 45 | 67 | "block-buffer", |
| 46 | 68 | "crypto-common", |
| 69 | 추가: "subtle", | |
| 47 | 70 | ] |
| 48 | 71 | |
| 49 | 72 | [[package]] |
| @@ -56,12 +79,51 @@ dependencies = [ | ||
| 56 | 79 | "version_check", |
| 57 | 80 | ] |
| 58 | 81 | |
| 82 | 추가: [[package]] | |
| 83 | 추가: name = "hmac" | |
| 84 | 추가: version = "0.12.1" | |
| 85 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 86 | 추가: checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" | |
| 87 | 추가: dependencies = [ | |
| 88 | 추가: "digest", | |
| 89 | 추가: ] | |
| 90 | 추가: | |
| 91 | 추가: [[package]] | |
| 92 | 추가: name = "inout" | |
| 93 | 추가: version = "0.1.4" | |
| 94 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 95 | 추가: checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" | |
| 96 | 추가: dependencies = [ | |
| 97 | 추가: "generic-array", | |
| 98 | 추가: ] | |
| 99 | 추가: | |
| 59 | 100 | [[package]] |
| 60 | 101 | name = "libc" |
| 61 | 102 | version = "0.2.191" |
| 62 | 103 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 63 | 104 | checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" |
| 64 | 105 | |
| 106 | 추가: [[package]] | |
| 107 | 추가: name = "pbkdf2" | |
| 108 | 추가: version = "0.12.2" | |
| 109 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 110 | 추가: checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" | |
| 111 | 추가: dependencies = [ | |
| 112 | 추가: "digest", | |
| 113 | 추가: "hmac", | |
| 114 | 추가: ] | |
| 115 | 추가: | |
| 116 | 추가: [[package]] | |
| 117 | 추가: name = "sha1" | |
| 118 | 추가: version = "0.10.7" | |
| 119 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 120 | 추가: checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" | |
| 121 | 추가: dependencies = [ | |
| 122 | 추가: "cfg-if", | |
| 123 | 추가: "cpufeatures", | |
| 124 | 추가: "digest", | |
| 125 | 추가: ] | |
| 126 | 추가: | |
| 65 | 127 | [[package]] |
| 66 | 128 | name = "sha2" |
| 67 | 129 | version = "0.10.9" |
| @@ -73,6 +135,12 @@ dependencies = [ | ||
| 73 | 135 | "digest", |
| 74 | 136 | ] |
| 75 | 137 | |
| 138 | 추가: [[package]] | |
| 139 | 추가: name = "subtle" | |
| 140 | 추가: version = "2.6.1" | |
| 141 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 142 | 추가: checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" | |
| 143 | 추가: | |
| 76 | 144 | [[package]] |
| 77 | 145 | name = "typenum" |
| 78 | 146 | version = "1.20.1" |
| @@ -85,11 +153,23 @@ version = "0.9.5" | ||
| 85 | 153 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 86 | 154 | checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" |
| 87 | 155 | |
| 156 | 추가: [[package]] | |
| 157 | 추가: name = "zeroize" | |
| 158 | 추가: version = "1.9.1" | |
| 159 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 160 | 추가: checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" | |
| 161 | 추가: | |
| 88 | 162 | [[package]] |
| 89 | 163 | name = "zipelo-archive-worker" |
| 90 | 164 | version = "0.1.0" |
| 91 | 165 | dependencies = [ |
| 166 | 추가: "aes", | |
| 167 | 추가: "hmac", | |
| 168 | 추가: "pbkdf2", | |
| 169 | 추가: "sha1", | |
| 92 | 170 | "sha2", |
| 171 | 추가: "subtle", | |
| 172 | 추가: "zeroize", | |
| 93 | 173 | "zlib-rs", |
| 94 | 174 | ] |
| 95 | 175 |
| @@ -50,3 +50,9 @@ fixtures/는 generate.py의 Python 표준 라이브러리로 생성한 작은 | ||
| 50 | 50 | 암호 ZIP, 대용량 성능, OS sandbox, 악성 파일 전체 검증과 Windows 실기는 이 시험의 범위 밖임. |
| 51 | 51 | |
| 52 | 52 | 취소와 종료 경합 회귀 시험은 실제 작업자에 List를 보낸 뒤 화면 poll 전에 취소하는 흐름을 100회 확인함. 취소 파이프 쓰기가 실패해도 검증된 Terminal과 성공 종료가 있으면 원래 결과를 보존하며, Terminal이 없는 조기 종료는 계속 실패로 처리함. 취소 쓰기 오류 판단을 미루어도 EOF와 child wait 전에는 닫기나 작업 교체를 허용하지 않음. |
| 53 | 추가: | |
| 54 | 추가: 7z 앱 연동은 revision 2의 기존 Format 값 0~3을 유지하고 SevenZip 값 4를 추가함. | |
| 55 | 추가: formats.rs는 전체 ListEnd 프레임을 고정 바이트와 비교하고 Unix/Windows 식별자가 | |
| 56 | 추가: 목록 응답과 해제 요청 사이에서 보존되는지 확인함. 화면 흐름 시험은 PR69의 LZMA와 | |
| 57 | 추가: LZMA2 표본을 실제 작업자로 열고, 받은 ListId로 풀어 원본 바이트를 확인함. | |
| 58 | 추가: 구버전 앱은 새 형식 값을 해석할 수 없으므로 앱과 작업자를 함께 갱신해야 함. |
| @@ -144,7 +144,12 @@ fn wait(model: &mut Model) { | ||
| 144 | 144 | } |
| 145 | 145 | fn completed(model: &Model) { |
| 146 | 146 | assert!(model.confirmed, "{}", model.status()); |
| 147 | 삭제: assert_eq!(model.terminal.as_ref().unwrap().outcome, Outcome::Completed); | |
| 147 | 추가: assert_eq!( | |
| 148 | 추가: model.terminal.as_ref().unwrap().outcome, | |
| 149 | 추가: Outcome::Completed, | |
| 150 | 추가: "terminal: {:?}", | |
| 151 | 추가: model.terminal | |
| 152 | 추가: ); | |
| 148 | 153 | } |
| 149 | 154 | #[cfg(feature = "ui")] |
| 150 | 155 | mod screen { |
| @@ -290,6 +295,38 @@ mod screen { | ||
| 290 | 295 | assert_reaped(&observed); |
| 291 | 296 | } |
| 292 | 297 | #[test] |
| 298 | 추가: fn seven_zip_open_and_extract_via_actual_widgets_and_worker() { | |
| 299 | 추가: for name in ["lzma.7z", "lzma2.7z"] { | |
| 300 | 추가: let scratch = Scratch::new(); | |
| 301 | 추가: let archive = scratch.path(name); | |
| 302 | 추가: fs::copy( | |
| 303 | 추가: Path::new(env!("CARGO_MANIFEST_DIR")) | |
| 304 | 추가: .join("../../tests/rust-archive-worker/fixtures/7z") | |
| 305 | 추가: .join(name), | |
| 306 | 추가: &archive, | |
| 307 | 추가: ) | |
| 308 | 추가: .unwrap(); | |
| 309 | 추가: let original = fs::read(&archive).unwrap(); | |
| 310 | 추가: let output = make_directory(&scratch.path("output")); | |
| 311 | 추가: let (factory, observed) = observed_factory(); | |
| 312 | 추가: let mut screen = Screen::new(factory); | |
| 313 | 추가: screen.open(&archive); | |
| 314 | 추가: assert_eq!( | |
| 315 | 추가: screen.app.model.list_id.as_ref().unwrap().format, | |
| 316 | 추가: Format::SevenZip | |
| 317 | 추가: ); | |
| 318 | 추가: assert!(screen.app.model.can_extract()); | |
| 319 | 추가: screen.extract(&output); | |
| 320 | 추가: assert_eq!( | |
| 321 | 추가: fs::read(output.join("folder/hello.txt")).unwrap(), | |
| 322 | 추가: b"Zipelo 7z interoperability\n".repeat(100) | |
| 323 | 추가: ); | |
| 324 | 추가: assert_eq!(fs::read(archive).unwrap(), original); | |
| 325 | 추가: assert_eq!(observed.borrow().jobs.len(), 2); | |
| 326 | 추가: assert_reaped(&observed); | |
| 327 | 추가: } | |
| 328 | 추가: } | |
| 329 | 추가: #[test] | |
| 293 | 330 | fn zip_open_and_extract_via_actual_widgets_and_worker() { |
| 294 | 331 | archive_flow("sample.zip", Format::Zip); |
| 295 | 332 | } |
| @@ -0,0 +1,130 @@ | ||
| 1 | 추가: #![allow(dead_code)] | |
| 2 | 추가: #[path = "../../experiments/rust-ui-memory-app/src/archive_ui.rs"] | |
| 3 | 추가: mod archive_ui; | |
| 4 | 추가: mod adapter { | |
| 5 | 추가: include!("../../experiments/rust-ui-memory-app/src/archive_process.rs"); | |
| 6 | 추가: | |
| 7 | 추가: fn token(format: ui::Format, source_object: ui::SourceObject) -> ui::ListId { | |
| 8 | 추가: ui::ListId { | |
| 9 | 추가: catalog_version: 1, | |
| 10 | 추가: format, | |
| 11 | 추가: source_object, | |
| 12 | 추가: archive_bytes: 33, | |
| 13 | 추가: archive_sha256: [44; 32], | |
| 14 | 추가: } | |
| 15 | 추가: } | |
| 16 | 추가: fn formats() -> [ui::Format; 5] { | |
| 17 | 추가: [ | |
| 18 | 추가: ui::Format::Zip, | |
| 19 | 추가: ui::Format::Tar, | |
| 20 | 추가: ui::Format::Gzip, | |
| 21 | 추가: ui::Format::TarGzip, | |
| 22 | 추가: ui::Format::SevenZip, | |
| 23 | 추가: ] | |
| 24 | 추가: } | |
| 25 | 추가: #[test] | |
| 26 | 추가: fn list_end_preserves_existing_tags_and_assigns_four_to_seven_zip() { | |
| 27 | 추가: for (tag, format) in formats().into_iter().enumerate() { | |
| 28 | 추가: let id = token( | |
| 29 | 추가: format, | |
| 30 | 추가: ui::SourceObject::Unix { | |
| 31 | 추가: device: 11, | |
| 32 | 추가: inode: 22, | |
| 33 | 추가: }, | |
| 34 | 추가: ); | |
| 35 | 추가: let mut actual = Vec::new(); | |
| 36 | 추가: codec::Writer::new(&mut actual, 99) | |
| 37 | 추가: .send(&wire::Message::ListEnd { | |
| 38 | 추가: entry_count: 7, | |
| 39 | 추가: list_id: list_to_wire(id.clone()), | |
| 40 | 추가: }) | |
| 41 | 추가: .unwrap(); | |
| 42 | 추가: let mut body = Vec::new(); | |
| 43 | 추가: body.extend(7u32.to_le_bytes()); | |
| 44 | 추가: body.extend(1u16.to_le_bytes()); | |
| 45 | 추가: body.push(tag as u8); | |
| 46 | 추가: body.push(1); | |
| 47 | 추가: body.extend(11u64.to_le_bytes()); | |
| 48 | 추가: body.extend(22u64.to_le_bytes()); | |
| 49 | 추가: body.extend(33u64.to_le_bytes()); | |
| 50 | 추가: body.extend([44; 32]); | |
| 51 | 추가: let mut expected = Vec::from(*b"ZAW1"); | |
| 52 | 추가: expected.extend(1u16.to_le_bytes()); | |
| 53 | 추가: expected.extend(102u16.to_le_bytes()); | |
| 54 | 추가: expected.extend((body.len() as u32).to_le_bytes()); | |
| 55 | 추가: expected.extend([0; 4]); | |
| 56 | 추가: expected.extend(99u64.to_le_bytes()); | |
| 57 | 추가: expected.extend(0u64.to_le_bytes()); | |
| 58 | 추가: expected.extend(body); | |
| 59 | 추가: assert_eq!(actual, expected); | |
| 60 | 추가: let (_, _, message) = codec::Reader::new(actual.as_slice()) | |
| 61 | 추가: .read() | |
| 62 | 추가: .unwrap() | |
| 63 | 추가: .unwrap(); | |
| 64 | 추가: match event_to_ui(message, None).unwrap() { | |
| 65 | 추가: ui::Event::ListEnd { | |
| 66 | 추가: entry_count, | |
| 67 | 추가: list_id, | |
| 68 | 추가: } => { | |
| 69 | 추가: assert_eq!(entry_count, 7); | |
| 70 | 추가: assert_eq!(list_id, id); | |
| 71 | 추가: } | |
| 72 | 추가: _ => panic!("목록 완료 응답이 아님"), | |
| 73 | 추가: } | |
| 74 | 추가: } | |
| 75 | 추가: } | |
| 76 | 추가: #[test] | |
| 77 | 추가: fn extraction_roundtrip_preserves_both_platform_identities_and_all_formats() { | |
| 78 | 추가: for source in [ | |
| 79 | 추가: ui::SourceObject::Unix { | |
| 80 | 추가: device: 11, | |
| 81 | 추가: inode: 22, | |
| 82 | 추가: }, | |
| 83 | 추가: ui::SourceObject::Windows { | |
| 84 | 추가: volume: 55, | |
| 85 | 추가: file_id: [66; 16], | |
| 86 | 추가: }, | |
| 87 | 추가: ] { | |
| 88 | 추가: for format in formats() { | |
| 89 | 추가: let id = token(format, source.clone()); | |
| 90 | 추가: assert_eq!(list_to_ui(list_to_wire(id.clone())), id); | |
| 91 | 추가: let start = start_to_wire(ui::Start::Extract { | |
| 92 | 추가: archive: PathBuf::from("input.7z"), | |
| 93 | 추가: destination: PathBuf::from("output"), | |
| 94 | 추가: selection: ui::Selection::EntryIds(vec![7]), | |
| 95 | 추가: list_id: id.clone(), | |
| 96 | 추가: gzip_output_name: if format == ui::Format::Gzip { | |
| 97 | 추가: Some("content".into()) | |
| 98 | 추가: } else { | |
| 99 | 추가: None | |
| 100 | 추가: }, | |
| 101 | 추가: }); | |
| 102 | 추가: let mut bytes = Vec::new(); | |
| 103 | 추가: codec::Writer::new(&mut bytes, 99) | |
| 104 | 추가: .send(&wire::Message::Start(start)) | |
| 105 | 추가: .unwrap(); | |
| 106 | 추가: assert_eq!(&bytes[6..8], &1u16.to_le_bytes()); | |
| 107 | 추가: match codec::Reader::new(bytes.as_slice()) | |
| 108 | 추가: .read() | |
| 109 | 추가: .unwrap() | |
| 110 | 추가: .unwrap() | |
| 111 | 추가: .2 | |
| 112 | 추가: { | |
| 113 | 추가: wire::Message::Start(wire::Start { | |
| 114 | 추가: action: | |
| 115 | 추가: wire::Action::Extract { | |
| 116 | 추가: list_id: Some(decoded), | |
| 117 | 추가: selection, | |
| 118 | 추가: .. | |
| 119 | 추가: }, | |
| 120 | 추가: .. | |
| 121 | 추가: }) => { | |
| 122 | 추가: assert_eq!(list_to_ui(decoded), id); | |
| 123 | 추가: assert_eq!(selection, wire::Selection::EntryIds(vec![7])); | |
| 124 | 추가: } | |
| 125 | 추가: _ => panic!("압축 해제 요청이 아님"), | |
| 126 | 추가: } | |
| 127 | 추가: } | |
| 128 | 추가: } | |
| 129 | 추가: } | |
| 130 | 추가: } |
| @@ -1,20 +1,20 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "command": "python3 tests/ci/run_rust.py local", |
| 3 | 3 | "platform": "linux-desktop-2", |
| 4 | 삭제: "base_remote_main": "3f51510fcc613c3f72e29c3b421aab178bf94186", | |
| 5 | 삭제: "local_baseline_head": "3ef6f50", | |
| 6 | 삭제: "source_state": "Tested committed integration source. Only this evidence JSON was updated after the full runner completed; hashes identify the tested code and fixtures.", | |
| 4 | 추가: "base_remote_main": "4160fcc4e80070b6ab9ea50c78705c0458b2384a", | |
| 5 | 추가: "local_baseline_head": "b8811fa1bcb169c1ec8e5b14dbe6a46c510da0d1", | |
| 6 | 추가: "source_state": "최신 PR69와 기존 SevenZip 앱 변환 및 암호 의존성 lockfile을 통합한 커밋에서 전체 검증함. 검증 후 이 증거 JSON만 갱신함.", | |
| 7 | 7 | "linux_build_crates": 19, |
| 8 | 8 | "linux_test_targets": 19, |
| 9 | 삭제: "rust_tests_passed": 870, | |
| 9 | 추가: "rust_tests_passed": 895, | |
| 10 | 10 | "new_archive_ui_tests_passed": 22, |
| 11 | 11 | "windows_cross_build_crates": 19, |
| 12 | 12 | "windows_runtime_tested": false, |
| 13 | 13 | "native_visual_check": "Headless egui Context used actual widget pointer/key events and the real OS worker process on Linux. Native OS window/input automation and Windows execution were not performed.", |
| 14 | 삭제: "prior_failures": "Retained locally: first build drop API/legacy harness references; second and third egui renderer harness texture/first-frame setup; final runner passed.", | |
| 14 | 추가: "prior_failures": "최초 실행은 공유 캐시의 기존 7z 미지원 작업자로 화면 시험 1개가 실패함. 추출 소스의 타임스탬프를 갱신하여 다시 빌드한 뒤 LZMA/LZMA2 화면 시험과 전체 실행이 통과함.", | |
| 15 | 15 | "limitations": [ |
| 16 | 삭제: "Normal ZIP/TAR.GZ listing and extraction plus ZIP creation/reopen/extraction use the actual worker executable and OS pipes.", | |
| 17 | 삭제: "The three successful screen tests run headless egui widgets, not a native OS GUI automation session.", | |
| 16 | 추가: "Normal ZIP/TAR.GZ/7z listing and extraction plus ZIP creation/reopen/extraction use the actual worker executable and OS pipes.", | |
| 17 | 추가: "Four successful screen tests run headless egui widgets, including LZMA/LZMA2 7z fixtures, not native OS GUI automation.", | |
| 18 | 18 | "Malformed, wrong-action, early-exit and disposal fault cases use a separate test-only probe; serialization failure and late cancellation use the actual worker.", |
| 19 | 19 | "No Windows runtime, encryption ZIP, large-file performance, OS sandbox or exhaustive malicious-input validation in this frontend integration.", |
| 20 | 20 | "Manual path text is UTF-8; native archive CLI/drop paths retain PathBuf and NativePath." |
| @@ -22,15 +22,15 @@ | ||
| 22 | 22 | "tested_files": [ |
| 23 | 23 | { |
| 24 | 24 | "path": "experiments/rust-ui-memory-app/Cargo.lock", |
| 25 | 삭제: "sha256": "791935d3b7eb17f68ccd08e35e6839e3ff42fecf9fd51cce4ce69fb7bb717197" | |
| 25 | 추가: "sha256": "f5515522ce9eebb3918f9bb4905a4aa8ae5e299c544ad5a14327ce1fcda3ec1f" | |
| 26 | 26 | }, |
| 27 | 27 | { |
| 28 | 28 | "path": "experiments/rust-ui-memory-app/Cargo.toml", |
| 29 | 삭제: "sha256": "dd23a3958123c9271f8201793d655b99b28f055cfd94ac22288ee56408d093a4" | |
| 29 | 추가: "sha256": "d2ba4202c0920af4b090fb59245f92b59c14f0590930ca4c6d8874d77057a577" | |
| 30 | 30 | }, |
| 31 | 31 | { |
| 32 | 32 | "path": "experiments/rust-ui-memory-app/src/archive_process.rs", |
| 33 | 삭제: "sha256": "52cebb8d1ec237dfbf56d2bb4449d6fce26dc66c594767ac086a9a6577fe2767" | |
| 33 | 추가: "sha256": "a75457134618ba7c8b0e8ee7800e14ec5c77fadac5c62fdac2ccf1fa663bd142" | |
| 34 | 34 | }, |
| 35 | 35 | { |
| 36 | 36 | "path": "experiments/rust-ui-memory-app/src/archive_screen.rs", |
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | }, |
| 39 | 39 | { |
| 40 | 40 | "path": "experiments/rust-ui-memory-app/src/archive_ui.rs", |
| 41 | 삭제: "sha256": "e37e59f6abe56e19551b5de1b5a95e56c5a1448c0aa4387bff38c4f18d319d46" | |
| 41 | 추가: "sha256": "f26557645cea07350843c7e88225e07bb4316ab673dc2581b036567f01d66d6e" | |
| 42 | 42 | }, |
| 43 | 43 | { |
| 44 | 44 | "path": "experiments/rust-ui-memory-app/src/desktop.rs", |
| @@ -54,7 +54,7 @@ | ||
| 54 | 54 | }, |
| 55 | 55 | { |
| 56 | 56 | "path": "tests/rust-app-real-worker/Cargo.lock", |
| 57 | 삭제: "sha256": "6fce2f154d57e28e975582755ca13d9ebb4d2d6927a53c42f03e8a9b5f78f78c" | |
| 57 | 추가: "sha256": "2b47293130e0653e22b4b40f821e58aa2e0dc2441e56b2278679664060e5b0e9" | |
| 58 | 58 | }, |
| 59 | 59 | { |
| 60 | 60 | "path": "tests/rust-app-real-worker/Cargo.toml", |
| @@ -62,7 +62,7 @@ | ||
| 62 | 62 | }, |
| 63 | 63 | { |
| 64 | 64 | "path": "tests/rust-app-real-worker/README.md", |
| 65 | 삭제: "sha256": "7902bca8e72fc9599492bfe022b123a60b1ae6cad6fbbd8094bb3c5512268a98" | |
| 65 | 추가: "sha256": "7253cd2a765dc594e3a27970fd3811eb50645d1179c2728b57eee2d440b3e367" | |
| 66 | 66 | }, |
| 67 | 67 | { |
| 68 | 68 | "path": "tests/rust-app-real-worker/fixtures/sample.tar.gz", |
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | }, |
| 75 | 75 | { |
| 76 | 76 | "path": "tests/rust-app-real-worker/flows.rs", |
| 77 | 삭제: "sha256": "d2510f60db64cc373a8affd4b7102d16e3733f82e224905e18b7c5633134e8ff" | |
| 77 | 추가: "sha256": "23501dfcfcefa5404d1587d5295915a227a18ba53ccbdf56eaa35b101011d115" | |
| 78 | 78 | }, |
| 79 | 79 | { |
| 80 | 80 | "path": "tests/rust-app-real-worker/generate.py", |
| @@ -99,6 +99,10 @@ | ||
| 99 | 99 | { |
| 100 | 100 | "path": "tests/rust-app-ui/regressions.rs", |
| 101 | 101 | "sha256": "a4c3685a380cb73fd506a290270b2a5308529ef4f843c203127c2bc9a2df2a80" |
| 102 | 추가: }, | |
| 103 | 추가: { | |
| 104 | 추가: "path": "tests/rust-app-real-worker/formats.rs", | |
| 105 | 추가: "sha256": "50532a4ee144ab533a43e1fefa5d1baf1131638892b585c20c9d4715a904e006" | |
| 102 | 106 | } |
| 103 | 107 | ], |
| 104 | 108 | "review_regressions": [ |
| @@ -113,8 +117,13 @@ | ||
| 113 | 117 | ], |
| 114 | 118 | "before_review_fix": "Earlier PR62 fixes reproduced 3 failures before repair. Integration tests additionally reproduced normal channel shutdown and late-cancel races before repair. PR68 review race reproduced with the new test before repair; all 100 iterations passed after repair.", |
| 115 | 119 | "approved_ui_head": "423a7c80c9d7182e07d29adee03a97d09a19b11f", |
| 116 | 삭제: "tested_local_head": "b7e558cd8afbb8bb54b55ebd4c463641cc2129e5", | |
| 117 | 삭제: "real_worker_tests_passed": 10, | |
| 118 | 삭제: "runner_tests_passed": 17, | |
| 119 | 삭제: "merge_validation": "Approved UI logic unchanged from 2174031; main malicious fixtures integrated and full local runner passed." | |
| 120 | 추가: "tested_local_head": "496415fbd6fa6bc359f85775a88ed56cd71fa2e5", | |
| 121 | 추가: "real_worker_tests_passed": 11, | |
| 122 | 추가: "runner_tests_passed": 23, | |
| 123 | 추가: "format_contract_tests_passed": 2, | |
| 124 | 추가: "prerequisite_heads": { | |
| 125 | 추가: "PR69": "8614f8431a6d7f1967822c233a812d383e574000" | |
| 126 | 추가: }, | |
| 127 | 추가: "format_extension": "Existing tags 0..3 unchanged; SevenZip=4. Full ListEnd golden frame, both platform identities and Extract codec roundtrip verified.", | |
| 128 | 추가: "lockfile_update": "PR71 159d51a의 앱 및 probe 암호 의존성 고정과 동일함. 기존 패키지 버전을 변경하지 않음." | |
| 120 | 129 | } |