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

fix: removed abandoned package from composer #5685

Merged
merged 6 commits into from
Dec 13, 2022

Conversation

vishwarajanand
Copy link
Contributor

@vishwarajanand vishwarajanand commented Dec 8, 2022

Wikimedia/avro package is abandoned and users are getting deprecating notice on composer update from root.
Per the deprecation flag on packagist website, upgrading to rg/avro-php to a latest version that supports PHP>=5.6.

Screenshot 2022-12-08 at 10 43 28

Links to packages:
https://packagist.org/packages/wikimedia/avro

https://packagist.org/packages/rg/avro-php#1.8.0

Internal bug: b/218995638

@vishwarajanand vishwarajanand marked this pull request as ready for review December 8, 2022 06:35
@vishwarajanand vishwarajanand requested review from a team as code owners December 8, 2022 06:35
@bshaffer
Copy link
Contributor

bshaffer commented Dec 8, 2022

Thanks for catching this. Do you know where this package is used? That way we can make sure the new package works (in case test coverage has gaps)

@saranshdhingra
Copy link
Contributor

I think Avro records are used in PubSub. Can we verify the system tests are working when we replace this?

@dwsupplee
Copy link
Contributor

Thanks for this @vishwarajanand. I tested this out and got the following error: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /Users/dsupplee/dev/google-cloud-php/vendor/rg/avro-php/lib/avro/protocol.php on line 57.

We could use a version of the avro library that supports 7.4+ and skip this test if it is run on a system that is lower than that req.

@vishwarajanand vishwarajanand requested a review from a team as a code owner December 10, 2022 09:03
@vishwarajanand
Copy link
Contributor Author

Hi reviewers, thanks for looking into this. Per my understanding, AVRO is used in BigQuery/PubSub codebase mostly as an identifier to denote the AVRO type records. There are a couple of tests who pass AVRO record type and parse the results to asset on values. Ex: Schema::Type.
Sorry, I didnt run system tests before and now I am also fixing a test failure: BigQuery/tests/System/LoadDataAndQueryTest

@vishwarajanand
Copy link
Contributor Author

@dwsupplee , great suggestion. ❤️‍🔥
I got the deprecation notice too and I now used double pipe versioning in composer.json because it doesn't occur in newer package versions. Unlike before, I had to add the dev dependency in PubSub's composer too, to get this working.

Sign up for free to 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.

4 participants