forked from richdawe/test-reporter-transport-metabase
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Perl-Toolchain-Gang/ExtUtils-MakeMaker
#447Description
I am trying to create a test report on Windows 11 using Strawberry Perl 5.38.0:
- Downloaded https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_5380_5361/strawberry-perl-5.38.0.1-64bit-portable.zip
- Extracted to
C:\Sp538CPT - Ran setup script:
C:\Sp538CPT\portableshell.bat - Then installed CPAN::Reporter (from PowerShell terminal window) and initialized test reporting:
> cpan
cpan> install CPAN::Reporter
cpan> o conf init test_report
The goal of the CPAN Testers project (http://testers.cpan.org/) is to
test as many CPAN packages as possible on as many platforms as
possible. This provides valuable feedback to module authors and
potential users to identify bugs or platform compatibility issues and
improves the overall quality and value of CPAN.
One way you can contribute is to send test results for each module
that you install. If you install the CPAN::Reporter module, you have
the option to automatically generate and deliver test reports to CPAN
Testers whenever you run tests on a CPAN package.
See the CPAN::Reporter documentation for additional details and
configuration settings. If your firewall blocks outgoing traffic,
you may need to configure CPAN::Reporter before sending reports.
<test_report>
Generate test reports if CPAN::Reporter is installed (yes/no)? [no] yes
Would you like me configure CPAN::Reporter now? [yes]
Proceeding to configure CPAN::Reporter.
Some of the following configuration options require one or more "grade:action"
pairs that determine what grade-specific action to take for that option.
These pairs should be space-separated and are processed left-to-right. See
CPAN::Reporter documentation for more details.
GRADE : ACTION ======> EXAMPLES
------- ------- --------
pass yes default:no
fail no default:yes pass:no
unknown ask/no default:ask/no pass:yes fail:no
na ask/yes
default
CPAN::Reporter: no config file found; creating a new one.
CPAN::Reporter requires a valid email address to identify senders
in the body of a test report. Please use a standard email format
like: "John Doe" <[[email protected]](mailto:[email protected])>
email_from? [] "Håkon Hægland" <[[email protected]](mailto:[email protected])>
Before test reports are sent, you may want to review or edit the test
report and add additional comments about the result or about your system
or Perl configuration. By default, CPAN::Reporter will ask after
each report is generated whether or not you would like to edit the
report. This option takes "grade:action" pairs.
(Recommended: 'default:ask/no pass/na:no')
edit_report? [default:ask/no pass/na:no]
By default, CPAN::Reporter will prompt you for confirmation that
the test report should be sent before actually doing it. This
gives the opportunity to skip sending particular reports if
you need to (e.g. if you caused the failure). This option takes
"grade:action" pairs.
(Recommended: 'default:ask/yes pass/na:yes')
send_report? [default:ask/yes pass/na:yes]
CPAN::Reporter sends your reports over HTTPS using Metabase. This option lets
you set a different uri, transport mechanism and metabase profile path. If you
are receiving HTTPS errors, you may change the uri to use plain HTTP, though
this is not recommended. Unless you know what you're doing, just accept
the default value.
(Recommended: 'Metabase uri https://metabase.cpantesters.org/api/v1/ id_file metabase_id.json')
transport? [Metabase uri https://metabase.cpantesters.org/api/v1/ id_file metabase_id.json]
CPAN::Reporter: error loading Test::Reporter::Transport::Metabase. Please install the missing module or choose a different transport mechanism.
Would you like to run 'metabase-profile' now to create 'C:\Sp538CPT\data\.cpanreporter\metabase_id.json'? [y]
transport? [Metabase uri https://metabase.cpantesters.org/api/v1/ id_file metabase_id.json]
CPAN::Reporter: error loading Test::Reporter::Transport::Metabase. Please install the missing module or choose a different transport mechanism.
Would you like to run 'metabase-profile' now to create 'C:\Sp538CPT\data\.cpanreporter\metabase_id.json'? [y]
transport? [Metabase uri https://metabase.cpantesters.org/api/v1/ id_file metabase_id.json]
CPAN::Reporter: error loading Test::Reporter::Transport::Metabase. Please install the missing module or choose a different transport mechanism.
Would you like to run 'metabase-profile' now to create 'C:\Sp538CPT\data\.cpanreporter\metabase_id.json'? [y] n
You can create a Metabase profile by typing 'metabase-profile' in your
command prompt and moving the resulting file to the location you specified.
If you did not specify an absolute path, put it in your .cpanreporter
directory. You will need to do this before continuing.
[NOTE: I here opened a new terminal window and ran "cpan Test::Reporter::Transport::Metabase" there first]
Would you like to run 'metabase-profile' now to create 'C:\Sp538CPT\data\.cpanreporter\metabase_id.json'? [y]
Running [C:\Sp538CPT\perl\site\bin\metabase-profile.BAT --output C:\Sp538CPT\data\.cpanreporter\metabase_id.json --email [[email protected]](mailto:[email protected]) --name Håkon Hægland --secret 0eb036c3]...
Writing profile to 'C:\Sp538CPT\data\.cpanreporter\metabase_id.json'
CPAN::Reporter: writing config file to 'C:\Sp538CPT\data\.cpanreporter\config.ini'.
Returning to CPAN configuration.
Please remember to call 'o conf commit' to make the config permanent!
cpan[3]> o conf commit
commit: wrote 'C:\Users\hakon\.cpan/CPAN/MyConfig.pm'
cpan> q
Then I tried to generate a report for File::Copy::Recursive::Reduced:
>cpan File::Copy::Recursive::Reduced
Loading internal logger. Log::Log4perl recommended for better logging
Reading 'C:\Users\hakon\.cpan\Metadata'
Database was generated on Sun, 17 Sep 2023 10:41:02 GMT
Running install for module 'File::Copy::Recursive::Reduced'
CPAN: HTTP::Tiny loaded ok (v0.086)
CPAN: Net::SSLeay loaded ok (v1.92)
CPAN: IO::Socket::SSL loaded ok (v2.083)
Fetching with HTTP::Tiny:
https://cpan.org/authors/id/J/JK/JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
CPAN: Digest::SHA loaded ok (v6.04)
Fetching with HTTP::Tiny:
https://cpan.org/authors/id/J/JK/JKEENAN/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.204)
Checksum for C:\Users\hakon\.cpan\sources\authors\id\J\JK\JKEENAN\File-Copy-Recursive-Reduced-0.007.tar.gz ok
CPAN: Archive::Tar loaded ok (v3.02)
CPAN: YAML loaded ok (v1.30)
CPAN: CPAN::Meta::Requirements loaded ok (v2.143)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20230520)
Configuring J/JK/JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz with Makefile.PL
CPAN: CPAN::Reporter loaded ok (v1.2019)
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for File::Copy::Recursive::Reduced
Writing MYMETA.yml and MYMETA.json
(C:\Sp538CPT\perl\bin\perl.exe Makefile.PL exited with 0)
CPAN::Reporter: Makefile.PL result is 'pass', No errors.
JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
C:\Sp538CPT\perl\bin\perl.exe Makefile.PL -- OK
Running make for J/JK/JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
cp lib/File/Copy/Recursive/Reduced.pm blib\lib\File\Copy\Recursive\Reduced.pm
(C:\Winlibs64-gcc11.3-msvcrt\mingw64\bin\gmake.EXE exited with 0)
CPAN::Reporter: gmake result is 'pass', No errors.
JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
C:\Winlibs64-gcc11.3-msvcrt\mingw64\bin\gmake.EXE -- OK
CPAN: CPAN::DistnameInfo loaded ok (v0.12)
Running make test for JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
"C:\Sp538CPT\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/001-fcopy.t .... ok
t/002-dircopy.t .. ok
t/003-rcopy.t .... ok
All tests successful.
Files=3, Tests=388, 2 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)
Result: PASS
(C:\Winlibs64-gcc11.3-msvcrt\mingw64\bin\gmake.EXE test exited with 0)
CPAN::Reporter: Test result is 'pass', All tests successful.
CPAN::Reporter: preparing a CPAN Testers report for File-Copy-Recursive-Reduced-0.007
CPAN::Reporter: sending test report with 'pass' via Metabase
CPAN::Reporter: Test::Reporter: error from 'Test::Reporter::Transport::Metabase:'
registration failed: Internal Server Error at C:\Sp538CPT\perl\site\lib/Metabase/Client/Simple.pm line 195.
Metabase::Client::Simple::register(Metabase::Client::Simple=HASH(0x21f598ef0b0)) called at C:\Sp538CPT\perl\site\lib/Metabase/Client/Simple.pm line 124
Metabase::Client::Simple::submit_fact(Metabase::Client::Simple=HASH(0x21f598ef0b0), CPAN::Testers::Report=HASH(0x21f599259f8)) called at C:\Sp538CPT\perl\site\lib/Test/Reporter/Transport/Metabase.pm line 122
Test::Reporter::Transport::Metabase::send(Test::Reporter::Transport::Metabase=HASH(0x21f4cf21038), Test::Reporter=HASH(0x21f5a4ea8b0)) called at C:\Sp538CPT\perl\site\lib/Test/Reporter.pm line 272
eval {...} called at C:\Sp538CPT\perl\site\lib/Test/Reporter.pm line 272
Test::Reporter::send(Test::Reporter=HASH(0x21f5a4ea8b0)) called at C:\Sp538CPT\perl\site\lib/CPAN/Reporter.pm line 495
CPAN::Reporter::_dispatch_report(HASH(0x21f5a4dcc60)) called at C:\Sp538CPT\perl\site\lib/CPAN/Reporter.pm line 107
CPAN::Reporter::grade_test(CPAN::Distribution=HASH(0x21f4cd940a8), "C:\\Winlibs64-gcc11.3-msvcrt\\mingw64\\bin\\gmake.EXE test", ARRAY(0x21f4cf1edd0), 0) called at C:\Sp538CPT\perl\site\lib/CPAN/Reporter.pm line 202
CPAN::Reporter::test(CPAN::Distribution=HASH(0x21f4cd940a8), "C:\\Winlibs64-gcc11.3-msvcrt\\mingw64\\bin\\gmake.EXE test") called at C:\Sp538CPT\perl\lib/CPAN/Distribution.pm line 3854
CPAN::Distribution::test(CPAN::Distribution=HASH(0x21f4cd940a8)) called at C:\Sp538CPT\perl\lib/CPAN/Distribution.pm line 4167
CPAN::Distribution::install(CPAN::Distribution=HASH(0x21f4cd940a8)) called at C:\Sp538CPT\perl\lib/CPAN/Module.pm line 484
eval {...} called at C:\Sp538CPT\perl\lib/CPAN/Module.pm line 483
CPAN::Module::rematein(CPAN::Module=HASH(0x21f4abc53e0), "install") called at C:\Sp538CPT\perl\lib/CPAN/Module.pm line 592
CPAN::Module::install(CPAN::Module=HASH(0x21f4abc53e0)) called at C:\Sp538CPT\perl\lib/CPAN/Shell.pm line 1901
CPAN::Shell::rematein("install", "File::Copy::Recursive::Reduced") called at C:\Sp538CPT\perl\lib/CPAN/Shell.pm line 2068
CPAN::Shell::__ANON__("File::Copy::Recursive::Reduced") called at C:/Sp538CPT/perl/lib/App/Cpan.pm line 635
App::Cpan::__ANON__("File::Copy::Recursive::Reduced") called at C:/Sp538CPT/perl/lib/App/Cpan.pm line 652
App::Cpan::_default(ARRAY(0x21f4cc61950), HASH(0x21f4d55f580)) called at C:/Sp538CPT/perl/lib/App/Cpan.pm line 536
App::Cpan::run("App::Cpan", "File::Copy::Recursive::Reduced") called at C:\Sp538CPT\perl\bin/cpan.bat line 46
JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
C:\Winlibs64-gcc11.3-msvcrt\mingw64\bin\gmake.EXE test -- OK
Running make install for JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
Installing C:\Sp538CPT\perl\site\litb\File\Copy\Recursive\Reduced.pm
Appending installation info to C:\Sp538CPT\perl\lib/perllocal.pod
JKEENAN/File-Copy-Recursive-Reduced-0.007.tar.gz
C:\Winlibs64-gcc11.3-msvcrt\mingw64\bin\gmake.EXE install -- OK
Metadata
Metadata
Assignees
Labels
No labels