GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(sample): Add Native Image sample for Storage by mpeddada1 · Pull Request #1283 · googleapis/java-storage

This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Conversation

@mpeddada1

@mpeddada1 mpeddada1 commented Mar 2, 2022

Copy link
Copy Markdown
Contributor

This PR copies over the Storage sample, Setup Instructions and README for native image support from GoogleCloudPlatform/native-image-support-java. It also adds an integration test that can be run as a native image.

Calling mvn package -Pnative -DskipTests builds the native image for the application and calling mvn test -Pnative runs the test as a native image.

For more information: https://graalvm.github.io/native-build-tools/latest/maven-plugin.html#configuration
If you write sample code, please follow the samples format.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mpeddada1 added 2 commits March 1, 2022 19:45
@mpeddada1
docs(sample): Add Native Image Sample
969e8f8
@mpeddada1
Add README
2a4ba88
@mpeddada1
mpeddada1 requested review from a team March 2, 2022 00:51
@generated-files-bot

generated-files-bot Bot commented Mar 2, 2022

Copy link
Copy Markdown

Warning: This pull request is touching the following templated files:

  • samples/pom.xml
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added api: storage Issues related to the googleapis/java-storage API. samples Issues that are directly related to samples. labels Mar 2, 2022
@blunderbuss-gcf blunderbuss-gcf Bot assigned kolea2 Mar 2, 2022
@mpeddada1
mpeddada1 requested review from Neenu1995, lesv, meltsufin and suztomo March 2, 2022 00:52
gcf-owl-bot Bot and others added 4 commits March 2, 2022 00:53
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
79e3033
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@mpeddada1
address linter problems
ac247ec
@mpeddada1
resolve merge conflicts
f6df344
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
ab37a10
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@suztomo

suztomo commented Mar 2, 2022

Copy link
Copy Markdown
Member

Checkstyle is failing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mpeddada1

mpeddada1 commented Mar 2, 2022

Copy link
Copy Markdown
Contributor Author

Checkstyle is failing.

Hm yeah, it looks it's happening in a couple of PRs and repos. We can wait until it is resolved.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@suztomo

suztomo commented Mar 2, 2022

Copy link
Copy Markdown
Member
Run actions/setup-java@v[3](https://github.com/googleapis/java-storage/runs/5384705420?check_suite_focus=true#step:3:3)
  with:
    java-version: 8
    java-package: jdk
    architecture: x6[4](https://github.com/googleapis/java-storage/runs/5384705420?check_suite_focus=true#step:3:4)
    check-latest: false
    server-id: github
    server-username: GITHUB_ACTOR
    server-password: GITHUB_TOKEN
    overwrite-settings: true
    job-status: success
Error: Input required and not supplied: distribution
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@suztomo

suztomo commented Mar 3, 2022

Copy link
Copy Markdown
Member

#1286 should fix the checkstyle problem once it's merged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

suztomo
suztomo approved these changes Mar 3, 2022
View reviewed changes
BenWhitehead
BenWhitehead suggested changes Mar 3, 2022
View reviewed changes
Comment thread samples/native-image-sample/src/test/java/com/example/storage/NativeImageStorageSampleIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/native-image-sample/src/test/java/com/example/storage/NativeImageStorageSampleIT.java Outdated
@Before
public void setUp() {
bout = new ByteArrayOutputStream();
System.setOut(new PrintStream(bout));

@BenWhitehead BenWhitehead Mar 3, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Additionally, this is bad in that it leaves stdout like this after the tests finish running. So any thing else that might try to write to stdout would still go into memory.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mpeddada1 and others added 3 commits March 4, 2022 18:15
@mpeddada1
improve test setup
d9105ec
@mpeddada1
Merge branch 'add-native-sample' of github.com:googleapis/java-storag…
7d5465f
…e into add-native-sample
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
53f049e
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@mpeddada1
mpeddada1 requested a review from BenWhitehead March 7, 2022 14:20
BenWhitehead
BenWhitehead approved these changes Mar 9, 2022
View reviewed changes
@BenWhitehead

BenWhitehead commented Mar 9, 2022

Copy link
Copy Markdown
Collaborator

LGTM, You might need to rebase to resolve the conflicts from owlbot in README.md. Feel free to merge once able.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mpeddada1
Merge branch 'main' into add-native-sample
fe919dd
@mpeddada1

mpeddada1 commented Mar 10, 2022

Copy link
Copy Markdown
Contributor Author

Thank you!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mpeddada1
mpeddada1 merged commit 375874d into main Mar 10, 2022
@mpeddada1
mpeddada1 deleted the add-native-sample branch March 10, 2022 22:09
@release-please release-please Bot mentioned this pull request Mar 10, 2022
chore(main): release 2.5.0 #1293
Merged
@release-please release-please Bot mentioned this pull request Aug 10, 2022
chore(main): release 2.11.4 #1564
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@Neenu1995 Neenu1995 Awaiting requested review from Neenu1995
@meltsufin meltsufin Awaiting requested review from meltsufin
@lesv lesv Awaiting requested review from lesv
2 more reviewers
@suztomo suztomo suztomo approved these changes
@BenWhitehead BenWhitehead BenWhitehead approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@kolea2 kolea2

Labels

api: storage Issues related to the googleapis/java-storage API. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@mpeddada1 @suztomo @BenWhitehead @kolea2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.