Skip to content

Add compilation test to typescript-angular-v13-provided-in-root petst…#11471

Merged
wing328 merged 1 commit intoOpenAPITools:masterfrom
cghislai:ng13-tests
Apr 26, 2022
Merged

Add compilation test to typescript-angular-v13-provided-in-root petst…#11471
wing328 merged 1 commit intoOpenAPITools:masterfrom
cghislai:ng13-tests

Conversation

@cghislai
Copy link
Copy Markdown
Contributor

@cghislai cghislai commented Jan 31, 2022

…ore sample

This adds a simple test to ensure the generated typescript-angular-v13-provided-in-root code is compilable.

This would prevent issues such as #10975, #10864, or #11172 (all duplicates) to occur.

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master (5.3.0), 6.0.x
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

@cghislai
Copy link
Copy Markdown
Contributor Author

@amakhrov can you check this if travis builds? thanks.

@cghislai
Copy link
Copy Markdown
Contributor Author

the error on ci/circleci: node0 does not appear to be related to this change?

@amakhrov
Copy link
Copy Markdown
Contributor

@cghislai it doesn't seem related, right. However, it's suspicious that both your PRs have the same failure.

I can see 2 recently merged PRs related to spring-mvc generator (the one that fails in your PR). Is it possible that your branch is behind master and this causes the issue?

@cghislai
Copy link
Copy Markdown
Contributor Author

i was lagging by 1 commit. I could generate the spring-mvc sample javadoc locally. I see there is a file encoding error, and that it is triggered when the samples input changed (and [info] Code generation is skipped because input was unchanged is not logged). I will look into it later, hopefully its as simple as specifying the encoding in the pom.

@cghislai
Copy link
Copy Markdown
Contributor Author

cghislai commented Feb 1, 2022

I will wait for #11477 to be merged to fix circleci builds then rebase

@cghislai
Copy link
Copy Markdown
Contributor Author

@amakhrov, the build errors have been fixed. can you have another look?
Thanks

Copy link
Copy Markdown
Contributor

@amakhrov amakhrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@сghislai thanks! LGTM

@wing328 wing328 merged commit dab458b into OpenAPITools:master Apr 26, 2022
@wing328 wing328 added this to the 6.0.0 milestone May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants