Skip to content

Commit 3c5b627

Browse files
committed
review comments
1 parent 4e477a6 commit 3c5b627

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"config":[{"name":"Plugin tests (6.0)","swift_version":"6.0","runner":"ubuntu-latest","image":"swift:6.0-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-6.0)","swift_version":"nightly-6.0","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-6.0-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-main)","swift_version":"nightly-main","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-main-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""}]}
1+
{"config":[{"name":"Plugin tests (6.0)","swift_version":"6.0","runner":"ubuntu-latest","image":"swift:6.0-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-6.1)","swift_version":"nightly-6.1","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-6.1-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-main)","swift_version":"nightly-main","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-main-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""}]}

IntegrationTests/PluginTests/test_05_two_definitions/Sources/adopter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct PluginAdopter {
4444
}
4545
}
4646

47-
static func doRPC(_ fooService1: Foo_FooService1.Client) async throws {
47+
static func doRPC<Transport>(_ fooService1: Foo_FooService1.Client<Transport>) async throws {
4848
do {
4949
let reply = try await fooService1.foo(.with { _ in () })
5050
print("Reply: \(reply.hashValue)")

IntegrationTests/PluginTests/test_06_nested_definitions/Sources/adopter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct PluginAdopter {
4444
}
4545
}
4646

47-
static func doRPC(_ fooService1: Foo_FooService1.Client) async throws {
47+
static func doRPC<Transport>(_ fooService1: Foo_FooService1.Client<Transport>) async throws {
4848
do {
4949
let reply = try await fooService1.foo(.with { _ in () })
5050
print("Reply: \(reply.hashValue)")

dev/plugin-tests.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ log() { printf -- "** %s\n" "$*" >&2; }
1919
error() { printf -- "** ERROR: %s\n" "$*" >&2; }
2020
fatal() { error "$@"; exit 1; }
2121

22-
source_dir=$(pwd)
23-
pluginTests="${source_dir}/IntegrationTests/PluginTests"
22+
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
23+
plugin_tests="${here}/../IntegrationTests/PluginTests"
2424

25-
for dir in "$pluginTests"/test_*/ ; do
25+
for dir in "$plugin_tests"/test_*/ ; do
2626
if [[ -f "$dir/Package.swift" ]]; then
27-
pluginTest=$(basename "$dir")
28-
log "Building '$pluginTest' plugin test"
27+
plugin_test=$(basename "$dir")
28+
log "Building '$plugin_test' plugin test"
2929

3030
if ! build_output=$(swift build --package-path "$dir" 2>&1); then
3131
# Only print the build output on failure.
3232
echo "$build_output"
33-
fatal "Build failed for '$pluginTest'"
33+
fatal "Build failed for '$plugin_test'"
3434
else
35-
log "Build succeeded for '$pluginTest'"
35+
log "Build succeeded for '$plugin_test'"
3636
fi
3737
fi
3838
done

0 commit comments

Comments
 (0)