Remove playertracking sdk alpha - #4671
Conversation
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
1 similar comment
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
feaf9ab to
ebff1b6
Compare
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
1 similar comment
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
/gcbrun |
|
Hi @markmandel , this PR is focused on SDK-related changes across all languages. |
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
/gcbrun |
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
/gcbrun |
1 similar comment
|
/gcbrun |
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
Hi @markmandel Found the e2e test failure from the child build and fixed the affected PlayerTracking tests. The build is passing now. |
|
Build Failed 😭 Build Id: be54dad0-04b4-43db-9854-4702c7309b3a Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: 9017fe7a-30af-4b5e-9e41-d31b42e415f9 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: 3ed56f4d-285a-46f0-8e12-cca30107e3d6 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: 40ed6c23-e35d-4289-a414-65caff125976 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: 0e78d63a-3fe2-4006-88da-c96240366496 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: 769bd658-e27e-4d63-97f4-b5099558394e Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: 720d8c24-c84d-4615-85c3-65a1efe4fcfd The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
13cf101 to
21978db
Compare
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
Build Failed 😭 Build Id: e1176d73-0a4e-44d6-a222-d2c251cab5f2 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
Build Failed 😭 Build Id: 53b8d50e-a6f2-4f9a-98c5-8dadab6c3bbc Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
/gcbrun |
|
Build Succeeded 🥳 Build Id: c6e78431-f57e-4cd3-86cc-e66f6011160e The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
markmandel
left a comment
There was a problem hiding this comment.
Whew! Lots of stuff going away - I love it.
I stopped after a bit, but I think we should keep all the alpha harnesses and stubs across the code base, but leave them as empty. We built all of it out, and when we have alpha sdk methods again, we'll want it all back - so let's not delete it all outright, let's leave empty stubs, interfaces etc so they are there when we are looking to build out alpha features.
| COMMAND ?= gen | ||
| SDK_IMAGE_TAG=$(build_sdk_prefix)$(SDK_FOLDER):$(build_sdk_version) | ||
| DEFAULT_CONFORMANCE_TESTS = ready,allocate,setlabel,setannotation,gameserver,health,shutdown,watch,reserve | ||
| ALPHA_CONFORMANCE_TESTS = getplayercapacity,setplayercapacity,playerconnect,playerdisconnect,getplayercount,isplayerconnected,getconnectedplayers |
There was a problem hiding this comment.
Can we keep ALPHA_CONFORMANCE_TESTS but just as an empty value? Then we maintain the harness if we need it.
| # run with on-by-default (Beta) feature flags enabled | ||
| $(MAKE) run-sdk-conformance-test SDK_FOLDER=go GRPC_PORT=9001 HTTP_PORT=9101 TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(COUNTS_AND_LISTS_TESTS) | ||
| # run with Alpha and Beta feature flags enabled | ||
| $(MAKE) run-sdk-conformance-test SDK_FOLDER=go GRPC_PORT=9001 HTTP_PORT=9101 FEATURE_GATES=$(ALPHA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS),$(COUNTS_AND_LISTS_TESTS) |
There was a problem hiding this comment.
Same as above, let's not delete all this just to have to put it back when we next have alpha features. Same goes for everything else in this file.
If want to get fancy, we could look for a way to have "if ALPHA_CONFORMANCE_TESTS is null, then don't run the second tests" -- but since make can be tricky with conditionals like that, I don't think it's 100% a necessity.
| const DEFAULT_TIMEOUT = 60; | ||
| const MAX_TIMEOUT = 2147483; | ||
|
|
||
| const connect = async (timeout, enableAlpha, enableBeta) => { |
There was a problem hiding this comment.
Same thing here - let's not remove the ability to have alpha SDKs - we can keep the harnesses, just leave them empty. Probably with a comment saying something like "if you have alpha features, put them here"
| $ npm start -- --timeout=0 | ||
| ``` | ||
|
|
||
| To enable alpha features ensure the feature gate is enabled: |
There was a problem hiding this comment.
Keep all this. There may be no alpha features, but again, let's not drop the harness we built for it all.
| "LABEL": handleLabel, | ||
| "CRASH": handleCrash, | ||
| "ANNOTATION": handleAnnotation, | ||
| "PLAYER_CAPACITY": handlePlayerCapacity, |
There was a problem hiding this comment.
Makes sense - this warrants a bump in version though.
| log.SetPrefix("[wrapper] ") | ||
| input := flag.String("i", "", "the command and arguments to execute the server binary") | ||
|
|
||
| // Since player tracking is not on by default, it is behind this flag. |
There was a problem hiding this comment.
This makes sense - but warrants a example image version bump.
| body: "*" | ||
| }; | ||
| } | ||
| service SDK {} |
There was a problem hiding this comment.
Nice! Yeah, this is still here, but we just have an empty service. 👍🏻
| } | ||
|
|
||
| message Status { | ||
| reserved 4; |
| /// Alpha returns the Alpha SDK | ||
| /// </summary> | ||
| /// <returns>Agones alpha SDK</returns> | ||
| public IAgonesAlphaSDK Alpha() |
There was a problem hiding this comment.
Rather than delete it all, have an empty interface, and still keep the alpha setup etc -- so the basic structure is still there.
| } | ||
|
|
||
| // Alpha returns the Alpha SDK. | ||
| func (s *SDK) Alpha() *Alpha { |
There was a problem hiding this comment.
Same here - we should keep the Alpha(), but have it be empty.
|
Build Succeeded 🥳 Build Id: 90b964b5-4d85-44cf-b5e4-8e6a1bff54fa The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
Which issue(s) this PR fixes:
Closes #4491
Did you use AI tools in preparing this PR?:
Y
Special notes for your reviewer: