Raku / Blin

πŸ₯ž Project Blin – Toasting Reinvented
GNU Affero General Public License v3.0
10 stars 9 forks source link

Encode issue when ran in Docker #17

Closed Altai-man closed 4 years ago

Altai-man commented 4 years ago

I'd resolve it myself, but sadly don't know enough about the infrastructure, so hoping anyone can provide some info about this situation.

Let's look at this output:

blin@brezeleisen:~$ time podman run -ti -v /var/tmp/Blin-volume:/mnt rakudo/blin --nproc=8 HTTP::UserAgent
Running Blin with parameters: --nproc=8 HTTP::UserAgent
πŸ₯ž Prep
πŸ₯ž Will use up to 8 threads for testing modules
remote: Enumerating objects: 56, done.
remote: Counting objects: 100% (56/56), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 64 (delta 43), reused 41 (delta 29), pack-reused 8
Unpacking objects: 100% (64/64), done.
From https://github.com/rakudo/rakudo
   b12ba42c8..5d5701171  master     -> origin/master
Updating b12ba42c8..5d5701171
Fast-forward
 src/vm/moar/runner/main.c | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)
Already up to date.
πŸ₯ž Will compare between 2019.11 and HEAD
πŸ₯ž Ensuring zef checkout
Already up to date.
πŸ₯ž Creating a config file for zef
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
----------------------------------------------------
Content Storage                  |Distribution Count
----------------------------------------------------
Zef::Repository::LocalCache      |1389              
Zef::Repository::Ecosystems<p6c> |871               
Zef::Repository::Ecosystems<cpan>|1626              
----------------------------------------------------
πŸ₯ž Testing start and end points
Attempting to fetch 5d5701171f2376c39e9f46344935339ecdf748f5…
πŸ₯ž Modules and stuff
πŸ₯žπŸ₯ž Populating the module list and the lookup hash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1652k  100 1652k    0     0  2115k      0 --:--:-- --:--:-- --:--:-- 2115k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  475k  100  475k    0     0  1607k      0 --:--:-- --:--:-- --:--:-- 1607k
πŸ₯žπŸ₯ž Sorting modules
πŸ₯žπŸ₯ž Resolving dependencies
πŸ₯žπŸ₯ž Marking latest versions and their deps
Use of uninitialized value of type Any in string context.
... # skipping warnings here
πŸ₯žπŸ₯ž Filtering out uninteresting modules
πŸ₯žπŸ₯ž Detecting cyclic dependencies
πŸ₯žπŸ₯ž Listing some early errors
HTTP::UserAgent – MissingDependency – Dependency β€œEncode” was not resolved
πŸ₯ž Processing
⏳ 1 out of 11 modules processed
πŸ₯žπŸ₯žπŸ₯ž Testing Test::Util::ServerPort (new)
πŸ₯žπŸ₯žπŸ₯ž Testing MIME::Base64 (new)
πŸ₯žπŸ₯žπŸ₯ž Testing IO::Capture::Simple (new)
πŸ₯žπŸ₯žπŸ₯ž Testing DateTime::Parse (new)
πŸ₯žπŸ₯žπŸ₯ž Testing OpenSSL (new)
πŸ₯žπŸ₯žπŸ₯ž Testing HTTP::Status (new)
πŸ₯žπŸ₯žπŸ₯ž Testing URI (new)
πŸ₯žπŸ₯žπŸ₯ž Testing File::Directory::Tree (new)
⏳ 1 out of 11 modules processed
πŸ₯žπŸ₯žπŸ₯ž Testing File::Temp (new)
⏳ 5 out of 11 modules processed
πŸ₯žπŸ₯žπŸ₯ž Testing IO::Socket::SSL (new)
πŸ₯žπŸ₯ž Almost done, waiting for all modules to finish
⏳ 10 out of 11 modules processed (left: IO::Socket::SSL)
πŸ₯ž Saving results
πŸ₯žπŸ₯ž Saving the overview
πŸ₯žπŸ₯ž Saving the json output
πŸ₯žπŸ₯ž Saving the dot file
πŸ₯žπŸ₯ž No regressions found, dot file not saved
πŸ₯ž Cleaning up

real    5m53,808s
user    0m2,027s
sys 0m5,623s

I know the solution is to zef nuke StoreDir or just rm .zef with old cache. But.

How do one does that with docker setup? In our docker setup, where does .zef resides? Is it persistent between container runs? Using podman ps -a I see there are dozens of containers who already exited on latest...

Who can I ping to update the Blin image? Namely, got goodies from enchance branch just merged and look into zef version used or taking care of .zef cache so that it doesn't prevent HTTP::UserAgent installations (dozens of modules depend on that).

JJ commented 4 years ago

zef will reside in the standard location, /home/whatever/.zef. I don't think you're mounting it from outside. The image will be persistent unless you tell it otherwise running it with --rm

Who can I ping to update the Blin image? Namely, got goodies from enchance branch just merged and look into zef version used or taking care of .zef cache so that it doesn't prevent HTTP::UserAgent installations (dozens of modules depend on that).

I haven't looked at it so far, but I don't think that's the issue.

JJ commented 4 years ago

I'll try and check the image, if that's the problem.

Altai-man commented 4 years ago

So I built a container based on https://github.com/nxadm/raku-blin-docker locally and it works, so closing. Thanks to @stoned who suggested the overall idea of resolving it in such a fashion.