Skip to content

Commit b780d03

Browse files
ci: Sort examples so we can infer progress better in logs (#484)
### Motivation To better assess progress in CI, sort the examples. Otherwise we get whatever `find` outputs, which is not sorted by default. ### Modifications In `test-examples.sh` sort the examples before running them one by one. ### Result When we look at the CI logs we can better assess how far through the job is. ### Test Plan CI.
1 parent 2cabb93 commit b780d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/test-examples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SHARED_EXAMPLE_HARNESS_PACKAGE_PATH="${TMP_DIR}/swift-openapi-example-harness"
3131
SHARED_PACKAGE_SCRATCH_PATH="${TMP_DIR}/swift-openapi-example-cache"
3232
SHARED_PACKAGE_CACHE_PATH="${TMP_DIR}/swift-openapi-example-scratch"
3333

34-
for EXAMPLE_PACKAGE_PATH in $(find "${EXAMPLES_PACKAGE_PATH}" -maxdepth 2 -name Package.swift -type f -print0 | xargs -0 dirname); do
34+
for EXAMPLE_PACKAGE_PATH in $(find "${EXAMPLES_PACKAGE_PATH}" -maxdepth 2 -name Package.swift -type f -print0 | xargs -0 dirname | sort); do
3535

3636
EXAMPLE_PACKAGE_NAME="$(basename "${EXAMPLE_PACKAGE_PATH}")"
3737

0 commit comments

Comments
 (0)