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 gradle files for typescript containers and update the version info. #24827

Merged
merged 4 commits into from
Dec 30, 2022

Conversation

robertwb
Copy link
Contributor

Container are now built with

./gradlew ":sdks:typescript:container:docker"

just like all other SDKs and they will be pushed as part of the release process.

Also fixes issue with typescript sibling sdks.


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.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

Container are now built with

./gradlew ":sdks:typescript:container:docker"

just like all other SDKs and they will be pushed as part
of the release process.
@robertwb
Copy link
Contributor Author

R: @damccorm

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@codecov
Copy link

codecov bot commented Dec 29, 2022

Codecov Report

Merging #24827 (3bd5f78) into master (c5c5b35) will decrease coverage by 7.93%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #24827      +/-   ##
==========================================
- Coverage   73.12%   65.19%   -7.94%     
==========================================
  Files         731      731              
  Lines       97945    97945              
==========================================
- Hits        71620    63851    -7769     
- Misses      24971    32740    +7769     
  Partials     1354     1354              
Flag Coverage Δ
python 71.34% <ø> (-11.49%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdks/python/apache_beam/utils/shared.py 0.00% <0.00%> (-100.00%) ⬇️
sdks/python/apache_beam/ml/inference/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
...s/python/apache_beam/typehints/testing/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
.../python/apache_beam/testing/analyzers/constants.py 0.00% <0.00%> (-100.00%) ⬇️
...python/apache_beam/typehints/testing/strategies.py 0.00% <0.00%> (-100.00%) ⬇️
...ache_beam/coders/proto2_coder_test_messages_pb2.py 0.00% <0.00%> (-100.00%) ⬇️
...ks/python/apache_beam/coders/coders_test_common.py 0.00% <0.00%> (-98.59%) ⬇️
...ython/apache_beam/io/aws/clients/s3/fake_client.py 0.00% <0.00%> (-98.32%) ⬇️
...s/python/apache_beam/utils/multi_process_shared.py 0.00% <0.00%> (-97.37%) ⬇️
...thon/apache_beam/ml/inference/sklearn_inference.py 0.00% <0.00%> (-96.30%) ⬇️
... and 156 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

// Build artifact
exec {
executable 'sh'
args '-c', "npm run build && npm pack --pack-destination ${buildDir}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need an npm install here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Done.

var wg sync.WaitGroup
wg.Add(len(workerIds))
for _, workerId := range workerIds {
go func(workerId string) {
log.Printf("Executing: python %v", strings.Join(args, " "))
log.Fatalf("User program exited: %v", execx.ExecuteEnv(map[string]string{"WORKER_ID": workerId}, "npx", args...))
workerArgs := append(append([]string{}, args...), "--id=" + workerId)
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this file might need a go fmt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@robertwb robertwb merged commit 889fd8b into apache:master Dec 30, 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.

2 participants