Skip to content

handle missing dependencies while benchmarking - #1271

Merged
yongtang merged 23 commits into
tensorflow:masterfrom
kvignesh1420:benchmarks-deps
Jan 18, 2021
Merged

handle missing dependencies while benchmarking#1271
yongtang merged 23 commits into
tensorflow:masterfrom
kvignesh1420:benchmarks-deps

Conversation

@kvignesh1420

Copy link
Copy Markdown
Member

This PR is a follow up of #1269 and handles the missing dependencies while benchmarking.

@kvignesh1420
kvignesh1420 marked this pull request as draft January 14, 2021 17:06
@kvignesh1420
kvignesh1420 marked this pull request as ready for review January 14, 2021 17:29
@kvignesh1420

kvignesh1420 commented Jan 14, 2021

Copy link
Copy Markdown
MemberAuthor

@yongtang the store-benchmark phase is failing due to the absence of a gh-pages branch in our repo.

Error: Command 'git' failed with args '-c user.name=github-action-benchmark -c user.email=github@users.noreply.github.com -c http.https://github.com/.extraheader= fetch origin gh-pages:gh-pages': fatal: couldn't find remote ref gh-pages

Can you please create it? Additionally, a git token is also needed in the form of a secret to push to the gh-pages branch.
Reference: https://github.com/rhysd/github-action-benchmark#charts-on-github-pages-1

@yongtang

Copy link
Copy Markdown
Member

@kvignesh1420 A branch gh-pages has been created. Let me know if this works.

@kvignesh1420

Copy link
Copy Markdown
MemberAuthor

@yongtang now the action is working fine. However, the action needs a PERSONAL_ACCESS_TOKEN to push the changes to the gh-pages branch. Steps are as follows:

Go to your user settings page
Enter 'Developer settings' tab
Enter 'Personal access tokens' tab
Click 'Generate new token' and enter your favorite token name
Check repo scope for git push and click 'Generate token' at bottom
Go to your repository settings page
Enter 'Secrets' tab
Create new PERSONAL_GITHUB_TOKEN secret with a generated token string

Reference: Benchmark charts

@yongtang

Copy link
Copy Markdown
Member

@kvignesh1420 Token has been added.

@kvignesh1420

Copy link
Copy Markdown
MemberAuthor

@yongtang what is the name of the secret that you created for the token?

@yongtang

Copy link
Copy Markdown
Member

@kvignesh1420 If you are looking to do a git push on GitHub Actions, maybe you can try GITHUB_TOKEN secret which is automatically added by GitHub Actions:

https://docs.github.com/en/actions/reference/authentication-in-a-workflow

You can see some examples like:
https://github.com/coredns/coredns/blob/0a6100048d3b8abaac1e5a3b0b9d08d4576920ce/.github/workflows/go.tidy.yml#L31-L35

@kvignesh1420

Copy link
Copy Markdown
MemberAuthor

@yongtang I am constantly observing this issue:

Switched to branch 'gh-pages'
remote: Permission to tensorflow/io.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/tensorflow/io.git/': The requested URL returned error: 403
Error: Process completed with exit code 128.

Do we need additional permissions?

@yongtang

Copy link
Copy Markdown
Member

@kvignesh1420 Ah, I remember in the past GitHub may not pass secrets to PRs for security reasons, as anyone would be possible to open a PR and trigger an action (with secret). For that I tends to believe only code already merged can work.

Can you try with your forked repo and see if it can be pushed to your forked repo? If that passes we can merge this PR and see how everything goes.

@kvignesh1420

kvignesh1420 commented Jan 18, 2021

Copy link
Copy Markdown
MemberAuthor

@yongtang I tried merging my branch with my forked master and it works:

image

So, it should work when we merge this PR as well.

@yongtang

Copy link
Copy Markdown
Member

@kvignesh1420 Thanks. Let's merge and see how everything goes.

@yongtang
yongtang merged commit 3e16038 into tensorflow:masterJan 18, 2021
i-ony pushed a commit to i-ony/io that referenced this pull request Feb 8, 2021
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
i-ony pushed a commit to i-ony/io that referenced this pull request Mar 8, 2021
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
i-ony pushed a commit to i-ony/io that referenced this pull request Mar 15, 2021
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
yongtang added a commit that referenced this pull request Mar 18, 2021
…he parsing time (#1283)
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
-Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
* Bump Apache Arrow to 2.0.0 (#1231)
* Bump Apache Arrow to 2.0.0
Also bumps Apache Thrift to 0.13.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update code to match Arrow
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Bump pyarrow to 2.0.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Stay with version=1 for write_feather to pass tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Bump flatbuffers to 1.12.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix Windows issue
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix Windows
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Remove -std=c++11 and leave default -std=c++14 for arrow build
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update sha256 of libapr1
As the hash changed by the repo.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add emulator for gcs (#1234)
* Bump com_github_googleapis_google_cloud_cpp to `1.21.0`
* Add gcs testbench
* Bump `libcurl` to `7.69.1`
* Remove the CI build for CentOS 8 (#1237)
Building shared libraries on CentOS 8 is pretty much the same as
on Ubuntu 20.04 except `apt` should be changed to `yum`. For that
our CentOS 8 CI test is not adding a lot of value.
Furthermore with the upcoming CentOS 8 change:
https://www.phoronix.com/scan.php?page=news_item&px=CentOS-8-Ending-For-Stream
CentOS 8 is effectively EOLed at 2021.
For that we may want to drop the CentOS 8 build (only leave a comment in README.md)
Note we keep CentOS 7 build for now as there are still many users using
CentOS 7 and CentOS 7 will only be EOLed at 2024. We might drop CentOS 7 build in
the future as well if there is similiar changes to CentOS 7 like CentOS 8.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* add tf-c-header rule (#1244)
* Skip tf-nightly:tensorflow-io==0.17.0 on API compatibility test (#1247)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* [s3] add support for testing on macOS (#1253)
* [s3] add support for testing on macOS
* modify docker-compose cmd
* add notebook formatting instruction in README (#1256)
* [docs] Restructure README.md content (#1257)
* Refactor README.md content
* bump to run ci jobs
* Update libtiff/libgeotiff dependency (#1258)
This PR updates libtiff/libgeotiff to the latest version.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* remove unstable elasticsearch test setup on macOS (#1263)
* Exposes num_parallel_reads and num_parallel_calls (#1232)
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
- Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
* Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches
Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches. This is recommended to be set equal to the vcore request.
* Exposes num_parallel_reads and num_parallel_calls (#1232)
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Fixes Lint Issues
* Removes Optional typing for method parameter
-
* Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
* Uncomments skip for macOS pytests
* Fixes Lint issues
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
* add avro tutorial testing data (#1267)
Co-authored-by: Cheng Ren <1428327+chengren311@users.noreply.github.com>
* Update Kafka tutorial to work with Apache Kafka (#1266)
* Update Kafka tutorial to work with Apache Kafka
Minor update to the Kafka tutorial to remove the dependency on
Confluent's distribution of Kafka, and instead work with vanilla
Apache Kafka.
Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
* Address review comments
Remove redundant pip install commands
Signed-off-by: Dale Lane <dale.lane@gmail.com>
* add github workflow for performance benchmarking (#1269)
* add github workflow for performance benchmarking
* add github-action-benchmark step
* handle missing dependencies while benchmarking (#1271)
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
* Disable s3 macOS for now as docker is not working on GitHub Actions for macOS (#1277)
* Revert "[s3] add support for testing on macOS (#1253)"
This reverts commit 81789bd.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* rename testing data files (#1278)
* Add tutorial for avro dataset API (#1250)
* remove docker based mongodb tests in macos (#1279)
* trigger benchmarks workflow only on commits (#1282)
* Bump Apache Arrow to 3.0.0 (#1285)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add bazel cache (#1287)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add initial bigtable stub test (#1286)
* Add initial bigtable stub test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix kokoro test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add reference to github-pages benchmarks in README (#1289)
* add reference to github-pages benchmarks
* minor grammar change
* Update README.md
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
* Clear outputs (#1292)
* fix kafka online-learning section in tutorial notebook (#1274)
* kafka notebook fix for colab env
* change timeout from 30 to 20 seconds
* reduce stream_timeout
* Only enable bazel caching writes for tensorflow/io github actions (#1293)
This PR updates so that only GitHub actions run on
tensorflow/io repo will be enabled with bazel cache writes.
Without the updates, a focked repo actions will cause error.
Note once bazel cache read-permissions are enabled from gcs
forked repo will be able to access bazel cache (read-only).
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Enable ready-only bazel cache (#1294)
This PR enables read-only bazel cache
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Rename tests (#1297)
* Combine Ubuntu 20.04 and CentOS 7 tests into one GitHub jobs (#1299)
When GitHub Actions runs it looks like there is an implicit concurrent
jobs limit. As such the CentOS 7 test normally is scheduled later after
other jobs completes. However, many times CentOS 7 test hangs
(e.g., https://github.com/tensorflow/io/runs/1825943449). This is likely
due to the CentOS 7 test is on the GitHub Actions queue for too long.
This PR moves CentOS 7 to run after Ubuntu 20.04 test complete, to try to
avoid hangs.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update names of api tests (#1300)
We renamed the tests to remove "_eager" parts. This PR updates the api test for correct filenames
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix wrong benchmark tests names (#1301)
Fixes wrong benchmark tests names caused by last commit
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Patch arrow to temporarily resolve the ARROW-11518 issue (#1304)
This PR patchs arrow to temporarily resolve the ARROW-11518 issue.
See 1281 for details
Credit to diggerk.
We will update arrow after the upstream PR is merged.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Remove AWS headers from tensorflow, and use headers from third_party … (#1241)
* Remove external headers from tensorflow, and use third_party headers instead
This PR removes external headers from tensorflow, and
use third_party headers instead.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Address review comment
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to use github to download libgeotiff (#1307)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add @com_google_absl//absl/strings:cord (#1308)
Fix read/STDIN_FILENO
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to modular file system for hdfs (#1309)
* Switch to modular file system for hdfs
This PR is part of the effort to switch to modular file system for hdfs.
When TF_ENABLE_LEGACY_FILESYSTEM=1 is provided, old behavior will
be preserved.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Build against tf-nightly
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Adjust the if else logic, follow review comment
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Disable test_write_kafka test for now. (#1310)
With tensorflow upgrade to tf-nightly, the test_write_kafka test
is failing and that is block the plan to modular file system migration.
This PR disables the test temporarily so that CI can continue
to push tensorflow-io-nightly image (needed for modular file system migration)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to modular file system for s3 (#1312)
This PR is part of the effort to switch to modular file system for s3.
When TF_ENABLE_LEGACY_FILESYSTEM=1 is provided, old behavior will
be preserved.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add python 3.9 on Windows (#1316)
* Updates the PR to use attribute instead of Env Variable
-Originally AVRO_PARSER_NUM_MINIBATCH was set as an environmental
variable. Because tensorflow-io rarely uses env vars to fine tune
kernal ops this was changed to an attribute. See comment here:
#1283 (comment)
* Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches
Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches. This is recommended to be set equal to the vcore request.
* Updates the PR to use attribute instead of Env Variable
-Originally AVRO_PARSER_NUM_MINIBATCH was set as an environmental
variable. Because tensorflow-io rarely uses env vars to fine tune
kernal ops this was changed to an attribute. See comment here:
#1283 (comment)
* Adds addtional comments in source code for understandability
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
Co-authored-by: Yong Tang <yong.tang.github@outlook.com>
Co-authored-by: Vo Van Nghia <vovannghia2409@gmail.com>
Co-authored-by: Vignesh Kothapalli <vikoth18@in.ibm.com>
Co-authored-by: Cheng Ren <chren@linkedin.com>
Co-authored-by: Cheng Ren <1428327+chengren311@users.noreply.github.com>
Co-authored-by: Dale Lane <dale.lane@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Mark Daoust <markdaoust@google.com>
michaelbanfield pushed a commit to michaelbanfield/io that referenced this pull request Mar 30, 2021
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
michaelbanfield pushed a commit to michaelbanfield/io that referenced this pull request Mar 30, 2021
…he parsing time (tensorflow#1283)
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
-Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
* Bump Apache Arrow to 2.0.0 (tensorflow#1231)
* Bump Apache Arrow to 2.0.0
Also bumps Apache Thrift to 0.13.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update code to match Arrow
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Bump pyarrow to 2.0.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Stay with version=1 for write_feather to pass tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Bump flatbuffers to 1.12.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix Windows issue
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix Windows
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Remove -std=c++11 and leave default -std=c++14 for arrow build
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update sha256 of libapr1
As the hash changed by the repo.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add emulator for gcs (tensorflow#1234)
* Bump com_github_googleapis_google_cloud_cpp to `1.21.0`
* Add gcs testbench
* Bump `libcurl` to `7.69.1`
* Remove the CI build for CentOS 8 (tensorflow#1237)
Building shared libraries on CentOS 8 is pretty much the same as
on Ubuntu 20.04 except `apt` should be changed to `yum`. For that
our CentOS 8 CI test is not adding a lot of value.
Furthermore with the upcoming CentOS 8 change:
https://www.phoronix.com/scan.php?page=news_item&px=CentOS-8-Ending-For-Stream
CentOS 8 is effectively EOLed at 2021.
For that we may want to drop the CentOS 8 build (only leave a comment in README.md)
Note we keep CentOS 7 build for now as there are still many users using
CentOS 7 and CentOS 7 will only be EOLed at 2024. We might drop CentOS 7 build in
the future as well if there is similiar changes to CentOS 7 like CentOS 8.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* add tf-c-header rule (tensorflow#1244)
* Skip tf-nightly:tensorflow-io==0.17.0 on API compatibility test (tensorflow#1247)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* [s3] add support for testing on macOS (tensorflow#1253)
* [s3] add support for testing on macOS
* modify docker-compose cmd
* add notebook formatting instruction in README (tensorflow#1256)
* [docs] Restructure README.md content (tensorflow#1257)
* Refactor README.md content
* bump to run ci jobs
* Update libtiff/libgeotiff dependency (tensorflow#1258)
This PR updates libtiff/libgeotiff to the latest version.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* remove unstable elasticsearch test setup on macOS (tensorflow#1263)
* Exposes num_parallel_reads and num_parallel_calls (tensorflow#1232)
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
- Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
* Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches
Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches. This is recommended to be set equal to the vcore request.
* Exposes num_parallel_reads and num_parallel_calls (tensorflow#1232)
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Fixes Lint Issues
* Removes Optional typing for method parameter
-
* Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
* Uncomments skip for macOS pytests
* Fixes Lint issues
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
* add avro tutorial testing data (tensorflow#1267)
Co-authored-by: Cheng Ren <1428327+chengren311@users.noreply.github.com>
* Update Kafka tutorial to work with Apache Kafka (tensorflow#1266)
* Update Kafka tutorial to work with Apache Kafka
Minor update to the Kafka tutorial to remove the dependency on
Confluent's distribution of Kafka, and instead work with vanilla
Apache Kafka.
Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
* Address review comments
Remove redundant pip install commands
Signed-off-by: Dale Lane <dale.lane@gmail.com>
* add github workflow for performance benchmarking (tensorflow#1269)
* add github workflow for performance benchmarking
* add github-action-benchmark step
* handle missing dependencies while benchmarking (tensorflow#1271)
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
* Disable s3 macOS for now as docker is not working on GitHub Actions for macOS (tensorflow#1277)
* Revert "[s3] add support for testing on macOS (tensorflow#1253)"
This reverts commit 81789bd.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* rename testing data files (tensorflow#1278)
* Add tutorial for avro dataset API (tensorflow#1250)
* remove docker based mongodb tests in macos (tensorflow#1279)
* trigger benchmarks workflow only on commits (tensorflow#1282)
* Bump Apache Arrow to 3.0.0 (tensorflow#1285)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add bazel cache (tensorflow#1287)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add initial bigtable stub test (tensorflow#1286)
* Add initial bigtable stub test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix kokoro test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add reference to github-pages benchmarks in README (tensorflow#1289)
* add reference to github-pages benchmarks
* minor grammar change
* Update README.md
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
* Clear outputs (tensorflow#1292)
* fix kafka online-learning section in tutorial notebook (tensorflow#1274)
* kafka notebook fix for colab env
* change timeout from 30 to 20 seconds
* reduce stream_timeout
* Only enable bazel caching writes for tensorflow/io github actions (tensorflow#1293)
This PR updates so that only GitHub actions run on
tensorflow/io repo will be enabled with bazel cache writes.
Without the updates, a focked repo actions will cause error.
Note once bazel cache read-permissions are enabled from gcs
forked repo will be able to access bazel cache (read-only).
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Enable ready-only bazel cache (tensorflow#1294)
This PR enables read-only bazel cache
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Rename tests (tensorflow#1297)
* Combine Ubuntu 20.04 and CentOS 7 tests into one GitHub jobs (tensorflow#1299)
When GitHub Actions runs it looks like there is an implicit concurrent
jobs limit. As such the CentOS 7 test normally is scheduled later after
other jobs completes. However, many times CentOS 7 test hangs
(e.g., https://github.com/tensorflow/io/runs/1825943449). This is likely
due to the CentOS 7 test is on the GitHub Actions queue for too long.
This PR moves CentOS 7 to run after Ubuntu 20.04 test complete, to try to
avoid hangs.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update names of api tests (tensorflow#1300)
We renamed the tests to remove "_eager" parts. This PR updates the api test for correct filenames
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix wrong benchmark tests names (tensorflow#1301)
Fixes wrong benchmark tests names caused by last commit
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Patch arrow to temporarily resolve the ARROW-11518 issue (tensorflow#1304)
This PR patchs arrow to temporarily resolve the ARROW-11518 issue.
See 1281 for details
Credit to diggerk.
We will update arrow after the upstream PR is merged.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Remove AWS headers from tensorflow, and use headers from third_party … (tensorflow#1241)
* Remove external headers from tensorflow, and use third_party headers instead
This PR removes external headers from tensorflow, and
use third_party headers instead.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Address review comment
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to use github to download libgeotiff (tensorflow#1307)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add @com_google_absl//absl/strings:cord (tensorflow#1308)
Fix read/STDIN_FILENO
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to modular file system for hdfs (tensorflow#1309)
* Switch to modular file system for hdfs
This PR is part of the effort to switch to modular file system for hdfs.
When TF_ENABLE_LEGACY_FILESYSTEM=1 is provided, old behavior will
be preserved.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Build against tf-nightly
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Adjust the if else logic, follow review comment
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Disable test_write_kafka test for now. (tensorflow#1310)
With tensorflow upgrade to tf-nightly, the test_write_kafka test
is failing and that is block the plan to modular file system migration.
This PR disables the test temporarily so that CI can continue
to push tensorflow-io-nightly image (needed for modular file system migration)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to modular file system for s3 (tensorflow#1312)
This PR is part of the effort to switch to modular file system for s3.
When TF_ENABLE_LEGACY_FILESYSTEM=1 is provided, old behavior will
be preserved.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add python 3.9 on Windows (tensorflow#1316)
* Updates the PR to use attribute instead of Env Variable
-Originally AVRO_PARSER_NUM_MINIBATCH was set as an environmental
variable. Because tensorflow-io rarely uses env vars to fine tune
kernal ops this was changed to an attribute. See comment here:
tensorflow#1283 (comment)
* Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches
Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches. This is recommended to be set equal to the vcore request.
* Updates the PR to use attribute instead of Env Variable
-Originally AVRO_PARSER_NUM_MINIBATCH was set as an environmental
variable. Because tensorflow-io rarely uses env vars to fine tune
kernal ops this was changed to an attribute. See comment here:
tensorflow#1283 (comment)
* Adds addtional comments in source code for understandability
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
Co-authored-by: Yong Tang <yong.tang.github@outlook.com>
Co-authored-by: Vo Van Nghia <vovannghia2409@gmail.com>
Co-authored-by: Vignesh Kothapalli <vikoth18@in.ibm.com>
Co-authored-by: Cheng Ren <chren@linkedin.com>
Co-authored-by: Cheng Ren <1428327+chengren311@users.noreply.github.com>
Co-authored-by: Dale Lane <dale.lane@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Mark Daoust <markdaoust@google.com>
zheolong pushed a commit to zheolong/io-1 that referenced this pull request Jul 24, 2025
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
zheolong pushed a commit to zheolong/io-1 that referenced this pull request Jul 24, 2025
…he parsing time (tensorflow#1283)
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
-Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
* Bump Apache Arrow to 2.0.0 (tensorflow#1231)
* Bump Apache Arrow to 2.0.0
Also bumps Apache Thrift to 0.13.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update code to match Arrow
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Bump pyarrow to 2.0.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Stay with version=1 for write_feather to pass tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Bump flatbuffers to 1.12.0
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix Windows issue
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix Windows
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Remove -std=c++11 and leave default -std=c++14 for arrow build
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update sha256 of libapr1
As the hash changed by the repo.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add emulator for gcs (tensorflow#1234)
* Bump com_github_googleapis_google_cloud_cpp to `1.21.0`
* Add gcs testbench
* Bump `libcurl` to `7.69.1`
* Remove the CI build for CentOS 8 (tensorflow#1237)
Building shared libraries on CentOS 8 is pretty much the same as
on Ubuntu 20.04 except `apt` should be changed to `yum`. For that
our CentOS 8 CI test is not adding a lot of value.
Furthermore with the upcoming CentOS 8 change:
https://www.phoronix.com/scan.php?page=news_item&px=CentOS-8-Ending-For-Stream
CentOS 8 is effectively EOLed at 2021.
For that we may want to drop the CentOS 8 build (only leave a comment in README.md)
Note we keep CentOS 7 build for now as there are still many users using
CentOS 7 and CentOS 7 will only be EOLed at 2024. We might drop CentOS 7 build in
the future as well if there is similiar changes to CentOS 7 like CentOS 8.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* add tf-c-header rule (tensorflow#1244)
* Skip tf-nightly:tensorflow-io==0.17.0 on API compatibility test (tensorflow#1247)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* [s3] add support for testing on macOS (tensorflow#1253)
* [s3] add support for testing on macOS
* modify docker-compose cmd
* add notebook formatting instruction in README (tensorflow#1256)
* [docs] Restructure README.md content (tensorflow#1257)
* Refactor README.md content
* bump to run ci jobs
* Update libtiff/libgeotiff dependency (tensorflow#1258)
This PR updates libtiff/libgeotiff to the latest version.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* remove unstable elasticsearch test setup on macOS (tensorflow#1263)
* Exposes num_parallel_reads and num_parallel_calls (tensorflow#1232)
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
- Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
* Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches
Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches. This is recommended to be set equal to the vcore request.
* Exposes num_parallel_reads and num_parallel_calls (tensorflow#1232)
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Exposes num_parallel_reads and num_parallel_calls
-Exposes `num_parallel_reads` and `num_parallel_calls` in AvroRecordDataset and `make_avro_record_dataset`
-Adds parameter constraints
-Fixes lint issues
* Fixes Lint Issues
* Removes Optional typing for method parameter
-
* Adds test method for _require() function
-This update adds a test to check if ValueErrors
are raised when given an invalid input for num_parallel_calls
* Uncomments skip for macOS pytests
* Fixes Lint issues
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
* add avro tutorial testing data (tensorflow#1267)
Co-authored-by: Cheng Ren <1428327+chengren311@users.noreply.github.com>
* Update Kafka tutorial to work with Apache Kafka (tensorflow#1266)
* Update Kafka tutorial to work with Apache Kafka
Minor update to the Kafka tutorial to remove the dependency on
Confluent's distribution of Kafka, and instead work with vanilla
Apache Kafka.
Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
* Address review comments
Remove redundant pip install commands
Signed-off-by: Dale Lane <dale.lane@gmail.com>
* add github workflow for performance benchmarking (tensorflow#1269)
* add github workflow for performance benchmarking
* add github-action-benchmark step
* handle missing dependencies while benchmarking (tensorflow#1271)
* handle missing dependencies while benchmarking
* setup test_sql
* job name change
* set auto-push to true
* remove auto-push
* add personal access token
* use alternate method to push to gh-pages
* add name to the action
* use different id
* modify creds
* use github_token
* change repo name
* set auto-push
* set origin and push results
* set env
* use PERSONAL_GITHUB_TOKEN
* use push changes action
* use github.head_ref to push the changes
* try using fetch-depth
* modify branch name
* use alternative push approach
* git switch -
* test by merging with forked master
* Disable s3 macOS for now as docker is not working on GitHub Actions for macOS (tensorflow#1277)
* Revert "[s3] add support for testing on macOS (tensorflow#1253)"
This reverts commit bced582.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* rename testing data files (tensorflow#1278)
* Add tutorial for avro dataset API (tensorflow#1250)
* remove docker based mongodb tests in macos (tensorflow#1279)
* trigger benchmarks workflow only on commits (tensorflow#1282)
* Bump Apache Arrow to 3.0.0 (tensorflow#1285)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add bazel cache (tensorflow#1287)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add initial bigtable stub test (tensorflow#1286)
* Add initial bigtable stub test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix kokoro test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add reference to github-pages benchmarks in README (tensorflow#1289)
* add reference to github-pages benchmarks
* minor grammar change
* Update README.md
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
* Clear outputs (tensorflow#1292)
* fix kafka online-learning section in tutorial notebook (tensorflow#1274)
* kafka notebook fix for colab env
* change timeout from 30 to 20 seconds
* reduce stream_timeout
* Only enable bazel caching writes for tensorflow/io github actions (tensorflow#1293)
This PR updates so that only GitHub actions run on
tensorflow/io repo will be enabled with bazel cache writes.
Without the updates, a focked repo actions will cause error.
Note once bazel cache read-permissions are enabled from gcs
forked repo will be able to access bazel cache (read-only).
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Enable ready-only bazel cache (tensorflow#1294)
This PR enables read-only bazel cache
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Rename tests (tensorflow#1297)
* Combine Ubuntu 20.04 and CentOS 7 tests into one GitHub jobs (tensorflow#1299)
When GitHub Actions runs it looks like there is an implicit concurrent
jobs limit. As such the CentOS 7 test normally is scheduled later after
other jobs completes. However, many times CentOS 7 test hangs
(e.g., https://github.com/tensorflow/io/runs/1825943449). This is likely
due to the CentOS 7 test is on the GitHub Actions queue for too long.
This PR moves CentOS 7 to run after Ubuntu 20.04 test complete, to try to
avoid hangs.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update names of api tests (tensorflow#1300)
We renamed the tests to remove "_eager" parts. This PR updates the api test for correct filenames
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix wrong benchmark tests names (tensorflow#1301)
Fixes wrong benchmark tests names caused by last commit
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Patch arrow to temporarily resolve the ARROW-11518 issue (tensorflow#1304)
This PR patchs arrow to temporarily resolve the ARROW-11518 issue.
See 1281 for details
Credit to diggerk.
We will update arrow after the upstream PR is merged.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Remove AWS headers from tensorflow, and use headers from third_party … (tensorflow#1241)
* Remove external headers from tensorflow, and use third_party headers instead
This PR removes external headers from tensorflow, and
use third_party headers instead.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Address review comment
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to use github to download libgeotiff (tensorflow#1307)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add @com_google_absl//absl/strings:cord (tensorflow#1308)
Fix read/STDIN_FILENO
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to modular file system for hdfs (tensorflow#1309)
* Switch to modular file system for hdfs
This PR is part of the effort to switch to modular file system for hdfs.
When TF_ENABLE_LEGACY_FILESYSTEM=1 is provided, old behavior will
be preserved.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Build against tf-nightly
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update tests
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Adjust the if else logic, follow review comment
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Disable test_write_kafka test for now. (tensorflow#1310)
With tensorflow upgrade to tf-nightly, the test_write_kafka test
is failing and that is block the plan to modular file system migration.
This PR disables the test temporarily so that CI can continue
to push tensorflow-io-nightly image (needed for modular file system migration)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Switch to modular file system for s3 (tensorflow#1312)
This PR is part of the effort to switch to modular file system for s3.
When TF_ENABLE_LEGACY_FILESYSTEM=1 is provided, old behavior will
be preserved.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add python 3.9 on Windows (tensorflow#1316)
* Updates the PR to use attribute instead of Env Variable
-Originally AVRO_PARSER_NUM_MINIBATCH was set as an environmental
variable. Because tensorflow-io rarely uses env vars to fine tune
kernal ops this was changed to an attribute. See comment here:
tensorflow#1283 (comment)
* Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches
Added AVRO_PARSER_NUM_MINIBATCH to override num_minibatches. This is recommended to be set equal to the vcore request.
* Updates the PR to use attribute instead of Env Variable
-Originally AVRO_PARSER_NUM_MINIBATCH was set as an environmental
variable. Because tensorflow-io rarely uses env vars to fine tune
kernal ops this was changed to an attribute. See comment here:
tensorflow#1283 (comment)
* Adds addtional comments in source code for understandability
Co-authored-by: Abin Shahab <ashahab@linkedin.com>
Co-authored-by: Yong Tang <yong.tang.github@outlook.com>
Co-authored-by: Vo Van Nghia <vovannghia2409@gmail.com>
Co-authored-by: Vignesh Kothapalli <vikoth18@in.ibm.com>
Co-authored-by: Cheng Ren <chren@linkedin.com>
Co-authored-by: Cheng Ren <1428327+chengren311@users.noreply.github.com>
Co-authored-by: Dale Lane <dale.lane@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Mark Daoust <markdaoust@google.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kvignesh1420@yongtang