Skip to content

Commit 950bd12

Browse files
committed
fix: int-test-run-all-spiders-in-ci-pipeline.py was broken (simple as
that)
1 parent 560673e commit 950bd12

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

bin/int-test-run-all-spiders-in-ci-pipeline.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
# int-test-run-all-spiders-in-ci-pipeline.py once the shell
2828
# is running in the container.
2929
#
30-
# docker run \
31-
# --rm \
32-
# -it \
33-
# -v /var/run/docker.sock:/var/run/docker.sock \
34-
# -v $(repo-root-dir.sh):/app \
35-
# ${DEV_ENV_DOCKER_IMAGE} \
36-
# /bin/bash
30+
# ~> docker run \
31+
# --rm \
32+
# -it \
33+
# -v /var/run/docker.sock:/var/run/docker.sock \
34+
# -v $(repo-root-dir.sh):/app \
35+
# ${DEV_ENV_DOCKER_IMAGE} \
36+
# /bin/bash
37+
# root@fb740b14ab66:/app#
3738
#
3839

3940
import datetime
@@ -61,13 +62,14 @@ def spiders(self):
6162
'spiders.py',
6263
]
6364

64-
spider_metadata_by_spider_by_category = json.loads(subprocess.check_output(args).decode('UTF-8').strip())
65+
all_the_metadata = json.loads(subprocess.check_output(args).decode('UTF-8').strip())
66+
del all_the_metadata['_metadata']
6567

6668
filenames = set()
6769

68-
for spider_metadata_by_spider in spider_metadata_by_spider_by_category.values():
69-
for spider_metadata in spider_metadata_by_spider.values():
70-
filenames.add(spider_metadata['absoluteFilename'])
70+
for (category, spiders) in all_the_metadata.items():
71+
for (name, metadata) in spiders.items():
72+
filenames.add(metadata['absoluteFilename'])
7173

7274
return list(filenames)
7375

0 commit comments

Comments
 (0)