MCPcopy Create free account
hub / github.com/apache/arrow / verify

Method verify

dev/release/binary-task.rb:2355–2390  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

2353 end
2354
2355 def verify(target)
2356 verify_command_line = [
2357 "docker",
2358 "run",
2359 "--log-driver", "none",
2360 "--rm",
2361 "--security-opt", "seccomp=unconfined",
2362 "--volume", "#{@top_source_directory}:/host:delegated",
2363 ]
2364 if $stdin.tty?
2365 verify_command_line << "--interactive"
2366 verify_command_line << "--tty"
2367 else
2368 verify_command_line.concat(["--attach", "STDOUT"])
2369 verify_command_line.concat(["--attach", "STDERR"])
2370 end
2371 platform, docker_image = resolve_docker_image(target)
2372 docker_info = JSON.parse(`docker info --format '{{json .}}'`)
2373 case [platform, docker_info["Architecture"]]
2374 when ["linux/amd64", "x86_64"],
2375 ["linux/arm64", "aarch64"]
2376 # Do nothing
2377 else
2378 verify_command_line.concat(["--platform", platform])
2379 end
2380 verify_command_line << docker_image
2381 case target
2382 when /\Adebian-/, /\Aubuntu-/
2383 verify_command_line << verify_apt_sh
2384 else
2385 verify_command_line << verify_yum_sh
2386 end
2387 verify_command_line << version
2388 verify_command_line << "local"
2389 sh(*verify_command_line)
2390 end
2391
2392 def apt_test_targets
2393 targets = (ENV["APT_TARGETS"] || "").split(",")

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected