Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ugexe opened this issue Nov 17, 2018 · 9 comments
Assignees

Comments

@ugexe
Copy link
Collaborator

ugexe commented Nov 17, 2018

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 Altai-man self-assigned this Nov 17, 2018
@Altai-man
Copy link
Member

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
Copy link
Member

Trying out on latest ( rakudo/rakudo@86ce4f4 )

@Altai-man
Copy link
Member

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
Copy link
Member

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

@Altai-man
Copy link
Member

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

@Altai-man
Copy link
Member

Tried to fix triggering import.

@Altai-man
Copy link
Member

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

@ufobat
Copy link

ufobat commented Nov 25, 2018

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants