croservices / openapi-model

Parse and generate OpenAPI v3 documents
Artistic License 2.0
2 stars 1 forks source link

Test regression in v1.0.3 -- Cannot import symbol Schema from OpenAPI::Model #9

Open ugexe opened 5 years ago

ugexe commented 5 years ago

https://travis-ci.org/croservices/openapi-model/jobs/456022311#L1383

t/04-media-type-refs.t ................ ===SORRY!=== Error while compiling /home/travis/build/croservices/openapi-model/t/04-media-type-refs.t
Cannot import symbol Schema from OpenAPI::Model, because it already exists in this lexical scope
at /home/travis/build/croservices/openapi-model/t/04-media-type-refs.t:3
------> use OpenAPI::Model :elements⏏;
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 

https://travis-ci.org/croservices/openapi-model/jobs/456022311#L1307

$ perl6 --version
This is Rakudo version 2018.10-148-g9a2c4b447 built on MoarVM version 2018.10-79-gdd27d548a
implementing Perl 6.d.
Altai-man commented 5 years ago

Cannot reproduce that with a bit older rakudo:

➜  OpenAPI-Model git:(master) prove --jobs=3 -e "perl6-m -Ilib" t/
t/02-openapi-security-requirements.t .. ok                              
t/01-openapi-model-openapi.t .......... ok                              
t/00-openapi-model.t .................. ok                              
t/03-request-body.t ................... ok                              
t/04-media-type-refs.t ................ ok                              
t/05-references.t ..................... ok                              
t/06-array.t .......................... ok                              
t/07-style.t .......................... ok                              
t/08-better-errors.t .................. ok   
All tests successful.
Files=9, Tests=64,  2 wallclock secs ( 0.03 usr  0.01 sys +  5.86 cusr  0.62 csys =  6.52 CPU)
Result: PASS
➜  OpenAPI-Model git:(master) prove --jobs=3 -e "perl6-m -Ilib" t/
t/02-openapi-security-requirements.t .. ok                              
t/00-openapi-model.t .................. ok                              
t/01-openapi-model-openapi.t .......... ok                              
t/03-request-body.t ................... ok                              
t/04-media-type-refs.t ................ ok                              
t/05-references.t ..................... ok                              
t/06-array.t .......................... ok                              
t/07-style.t .......................... ok                              
t/08-better-errors.t .................. ok   
All tests successful.
Files=9, Tests=64,  2 wallclock secs ( 0.04 usr  0.01 sys +  5.38 cusr  0.44 csys =  5.87 CPU)
Result: PASS
➜  OpenAPI-Model git:(master) perl6 --version
This is Rakudo version 2018.10-78-g8b93ec9f5 built on MoarVM version 2018.10-72-g4fbaeee5f
implementing Perl 6.d.
➜  OpenAPI-Model git:(master) 
Altai-man commented 5 years ago

Trying out on latest ( https://github.com/rakudo/rakudo/commit/86ce4f4ebbe51759ea6e03480b89cc2420101fcd )

Altai-man commented 5 years ago

Cannot reproduce on latest:

➜  OpenAPI-Model git:(master) prove --jobs=3 -e "perl6-m -Ilib" t/
t/02-openapi-security-requirements.t .. ok                              
t/01-openapi-model-openapi.t .......... ok                              
t/00-openapi-model.t .................. ok                              
t/03-request-body.t ................... ok                              
t/04-media-type-refs.t ................ ok                              
t/05-references.t ..................... ok                              
t/06-array.t .......................... ok                              
t/07-style.t .......................... ok                              
t/08-better-errors.t .................. ok   
All tests successful.
Files=9, Tests=64,  9 wallclock secs ( 0.03 usr  0.01 sys + 16.76 cusr  0.96 csys = 17.76 CPU)
Result: PASS
➜  OpenAPI-Model git:(master) perl6 --version
This is Rakudo version 2018.10-155-g86ce4f4eb built on MoarVM version 2018.10-79-gdd27d548a
implementing Perl 6.d.
Altai-man commented 5 years ago

Added two regular releases besides latest, let's see how it'll be.

Altai-man commented 5 years ago

It is very odd, as on the same latest as I have, travis still fails, so not a rakudo bug.

Altai-man commented 5 years ago

Tried to fix triggering import.

Altai-man commented 5 years ago

Travis is passing now. It's still odd why :elements works only locally, so not closing for now.

ufobat commented 5 years ago

FYI, the last commit is not in the release on cpan. So I still get this error when I try to install this module.

Altai-man commented 5 years ago

Was the release uploaded to cpan, by the way? If yes, we should close this.