Closed melezhik closed 2 years ago
so if I understand correctly, rak foo --files-with-matches
fails because the option is not recognized? If that's it, I cannot reproduce that locally
it's not only that, every test fails , for example rak
does not search at all:
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: set -e
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] ::
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: cat $root_dir/task.bash
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] ::
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: echo "foo" > $cache_root_dir/file.txt
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] ::
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: cd $cache_root_dir
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] ::
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: echo "====="
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: cat file.txt
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: echo "====="
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] ::
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: echo "<<<"
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: rak foo --/highlight --human 2>&1
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: echo ">>>"
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] ::
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: =====
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: foo
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: =====
15:35:13 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: <<<
15:35:14 07/26/2022 [bash: main.build.pre] :: [.tomty/tasks/rak-search/] :: >>>
15:35:14 07/26/2022 [bash: main.build.pre] :: [task check] stdout match (s) <<<<> True
15:35:14 07/26/2022 [bash: main.build.pre] :: [task check] stdout match (s) <file.txt> False
15:35:14 07/26/2022 [bash: main.build.pre] :: [task check] stdout match (s) <^^ \s* '1:foo' \s* $$> False
15:35:14 07/26/2022 [bash: main.build.pre] :: [task check] stdout match (s) <>>>> False
can you see this? rak foo --/highlight --human
does not provide any results, but it should, compare with succeeded test:
[melezhik App-Rak]$ tomty rak-search
15:23:14 07/26/2022 [repository] :: index updated from http://sparrowhub.io/repo/api/v1/index
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: set -e
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] ::
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: cat $root_dir/task.bash
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] ::
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: echo "foo" > $cache_root_dir/file.txt
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] ::
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: cd $cache_root_dir
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] ::
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: echo "====="
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: cat file.txt
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: echo "====="
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] ::
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: echo "<<<"
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: rak foo --/highlight --human 2>&1
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: echo ">>>"
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] ::
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: =====
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: foo
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: =====
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: <<<
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: file.txt
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: 1:foo
15:23:15 07/26/2022 [.tomty/tasks/rak-search/] :: >>>
[task check] stdout match (s) <<<<> True
[task check] stdout match (s) <file.txt> True
[task check] stdout match (s) <^^ \s* '1:foo' \s* $$> True
[task check] stdout match (s) <>>>> True
I cannot reproduce that locally
Can you try the specific version of Rakudo that runs for SparkyCI ( the version is written in main tab and is v2022.04 )?
I've tried to reproduced this many times, using alpine linux docker container and with the same version of Rakudo, but failed. Looks like very weird bug appeared only when run App-Raku under Sparky, closing it right now.
Once I've upgraded SparkyCI Rakudo version to the latest one, I will probably test this again against this new version ...
Hi Liz! As I notified in irc, SparkyCI/Tomty build fails - http://sparrowhub.io:2222/report/923
no rush, HTH
Aleksei