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

Add binary path to staging #842

Merged
merged 5 commits into from Jun 18, 2020
Merged

Add binary path to staging #842

merged 5 commits into from Jun 18, 2020

Conversation

loosebazooka
Copy link
Contributor

part of #840
requires #839

Allows binaries in java11 build path (for example when building a quarkus native app)

Also changes the deprecated use of appYamlStaging builder in tests

Copy link
Contributor

@chanseokoh chanseokoh left a comment

Choose a reason for hiding this comment

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

Putting this up now, just in case I may lose my draft until Monday.

@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #842 into master will decrease coverage by 0.30%.
The diff coverage is 63.63%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #842      +/-   ##
============================================
- Coverage     78.46%   78.16%   -0.31%     
- Complexity      610      613       +3     
============================================
  Files            96       96              
  Lines          2410     2427      +17     
  Branches        282      285       +3     
============================================
+ Hits           1891     1897       +6     
- Misses          411      421      +10     
- Partials        108      109       +1     
Impacted Files Coverage Δ Complexity Δ
...onfiguration/AppYamlProjectStageConfiguration.java 87.50% <ø> (-12.50%) 8.00 <0.00> (-1.00)
...ls/appengine/operations/AppYamlProjectStaging.java 67.18% <63.63%> (-1.29%) 28.00 <2.00> (+4.00) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df426fd...e96b6b4. Read the comment docs.

Path file = appEngineDirectory.resolve("app.yaml");
Files.write(
file,
"entrypoint: custom custom".getBytes(StandardCharsets.UTF_8),
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh! Now I think probably entrypoint: should be a string list, not string? That is, getEntrypoint() should return List<String>?

Whatever it should be, I think it's worth testing things like entrypoint: (null) or entrypoint: [] (getEntryoint() returning null and/or an empty list).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So entrypoint in the app.yaml is a "space separated string", but I think @ludoch can verify this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, it does look like the yaml property is a string according to the doc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add another test for entrypoint:?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To verify that using a list fails?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I just want to confirm entrypoint: returns null instead of an empty string.

Copy link
Contributor

@chanseokoh chanseokoh left a comment

Choose a reason for hiding this comment

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

Is this PR ready for review?

@loosebazooka
Copy link
Contributor Author

Is this PR ready for review?

Yeah it should be now, not sure what's going on with codecov

Copy link
Contributor

@chanseokoh chanseokoh left a comment

Choose a reason for hiding this comment

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

LGTM. Just minor comment about adding a test.

Path file = appEngineDirectory.resolve("app.yaml");
Files.write(
file,
"entrypoint: custom custom".getBytes(StandardCharsets.UTF_8),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add another test for entrypoint:?

@loosebazooka loosebazooka merged commit 55b0ced into master Jun 18, 2020
JoeWang1127 pushed a commit that referenced this pull request Nov 29, 2023
* Allow binaries in java11 standard buildpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants