You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "damccorm (via GitHub)" <gi...@apache.org> on 2024/12/27 16:48:21 UTC
[PR] Remove aws v1 from infrastructure [beam]
damccorm opened a new pull request, #33455:
URL: https://github.com/apache/beam/pull/33455
Part of https://github.com/apache/beam/issues/33430 to remove AWS v1 IOs entirely. This removes the v1 precommits and removes them from our infra used for load testing
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://github.com/apache/beam/blob/master/CONTRIBUTING.md#make-the-reviewers-job-easier).
To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
GitHub Actions Tests Status (on master branch)
------------------------------------------------------------------------------------------------
[](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI or the [workflows README](https://github.com/apache/beam/blob/master/.github/workflows/README.md) to see a list of phrases to trigger workflows.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "ahmedabu98 (via GitHub)" <gi...@apache.org>.
ahmedabu98 commented on code in PR #33455:
URL: https://github.com/apache/beam/pull/33455#discussion_r1899515877
##########
sdks/java/testing/load-tests/src/main/java/org/apache/beam/sdk/loadtests/SyntheticDataPublisher.java:
##########
@@ -180,17 +183,27 @@ private static void writeToKafka(PCollection<KV<byte[], byte[]>> collection) {
}
private static void writeToKinesis(PCollection<KV<byte[], byte[]>> collection) {
+ AwsBasicCredentials creds =
+ AwsBasicCredentials.create(options.getKinesisAwsKey(), options.getKinesisAwsSecret());
+ StaticCredentialsProvider provider = StaticCredentialsProvider.create(creds);
collection
.apply("Map to byte array for Kinesis", MapElements.via(new MapKVToByteArray()))
.apply(
"Write to Kinesis",
- KinesisIO.write()
+ KinesisIO.<byte[]>write()
.withStreamName(options.getKinesisStreamName())
- .withPartitionKey(options.getKinesisPartitionKey())
- .withAWSClientsProvider(
- options.getKinesisAwsKey(),
- options.getKinesisAwsSecret(),
- Regions.fromName(options.getKinesisAwsRegion())));
+ .withPartitioner(p -> options.getKinesisPartitionKey())
+ // .withPartitionKey(options.getKinesisPartitionKey())
+ // .withAWSClientsProvider(
+ // options.getKinesisAwsKey(),
+ // options.getKinesisAwsSecret(),
+ // Regions.fromName(options.getKinesisAwsRegion())
+ // ));
Review Comment:
nit: cleanup
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #33455:
URL: https://github.com/apache/beam/pull/33455#issuecomment-2564859616
## [Codecov](https://app.codecov.io/gh/apache/beam/pull/33455?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 57.43%. Comparing base [(`5944a30`)](https://app.codecov.io/gh/apache/beam/commit/5944a3043f8c0dc7b8b59ff9293b894e8a8a08ac?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`3a901de`)](https://app.codecov.io/gh/apache/beam/commit/3a901de1c29a6d35fc70402ef96ecc9f4eb8006a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
> Report is 2 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #33455 +/- ##
=========================================
Coverage 57.43% 57.43%
Complexity 1474 1474
=========================================
Files 979 979
Lines 155295 155295
Branches 1076 1076
=========================================
Hits 89201 89201
Misses 63882 63882
Partials 2212 2212
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/beam/pull/33455?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on PR #33455:
URL: https://github.com/apache/beam/pull/33455#issuecomment-2563892234
@aromanenko-dev here is another PR for aws v1 ios
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on code in PR #33455:
URL: https://github.com/apache/beam/pull/33455#discussion_r1899556335
##########
sdks/java/testing/load-tests/src/main/java/org/apache/beam/sdk/loadtests/SyntheticDataPublisher.java:
##########
@@ -180,17 +183,27 @@ private static void writeToKafka(PCollection<KV<byte[], byte[]>> collection) {
}
private static void writeToKinesis(PCollection<KV<byte[], byte[]>> collection) {
+ AwsBasicCredentials creds =
+ AwsBasicCredentials.create(options.getKinesisAwsKey(), options.getKinesisAwsSecret());
+ StaticCredentialsProvider provider = StaticCredentialsProvider.create(creds);
collection
.apply("Map to byte array for Kinesis", MapElements.via(new MapKVToByteArray()))
.apply(
"Write to Kinesis",
- KinesisIO.write()
+ KinesisIO.<byte[]>write()
.withStreamName(options.getKinesisStreamName())
- .withPartitionKey(options.getKinesisPartitionKey())
- .withAWSClientsProvider(
- options.getKinesisAwsKey(),
- options.getKinesisAwsSecret(),
- Regions.fromName(options.getKinesisAwsRegion())));
+ .withPartitioner(p -> options.getKinesisPartitionKey())
+ // .withPartitionKey(options.getKinesisPartitionKey())
+ // .withAWSClientsProvider(
+ // options.getKinesisAwsKey(),
+ // options.getKinesisAwsSecret(),
+ // Regions.fromName(options.getKinesisAwsRegion())
+ // ));
Review Comment:
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm merged PR #33455:
URL: https://github.com/apache/beam/pull/33455
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on PR #33455:
URL: https://github.com/apache/beam/pull/33455#issuecomment-2564859345
assign set of reviewers
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on PR #33455:
URL: https://github.com/apache/beam/pull/33455#issuecomment-2563892010
Precommit failures are unrelated, retrying but not blocking on them
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #33455:
URL: https://github.com/apache/beam/pull/33455#issuecomment-2563923173
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment `assign set of reviewers`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove aws v1 from infrastructure [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #33455:
URL: https://github.com/apache/beam/pull/33455#issuecomment-2564859574
Assigning reviewers. If you would like to opt out of this review, comment `assign to next reviewer`:
R: @Abacn for label java.
R: @Abacn for label build.
R: @ahmedabu98 for label io.
Available commands:
- `stop reviewer notifications` - opt out of the automated review tooling
- `remind me after tests pass` - tag the comment author after tests pass
- `waiting on author` - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)
The PR bot will only process comments in the main thread (not review comments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org