GraphQL icon indicating copy to clipboard operation
GraphQL copied to clipboard

Testflight

Open JakubOrsula opened this issue 3 years ago • 0 comments

Hi, first of all, great project, I appreciate you doing all this work and open sourcing it. I wonder if you or anyone has deployed it to Test Flight stage. I know that it wouldn't be allowed on store as a full fledged app, but having to manually install it on every device (at every update) is kinda tiresome.

I have released some apps and I know that after the first check Apple doesn't really care much and allows you to push updates freely (still talking only about testflight).

JakubOrsula avatar Nov 05 '21 14:11 JakubOrsula

The thread sanitizer is complaining.

adam-fowler avatar May 12 '21 13:05 adam-fowler

Removed the thread sanitizer. Issues are with Runtime package and cannot be resolved here. I've added an issue https://github.com/wickwirew/Runtime/issues/87

adam-fowler avatar May 12 '21 16:05 adam-fowler

Is there any reason GraphQL doesn't use Mirror instead of the Runtime package?

adam-fowler avatar May 12 '21 16:05 adam-fowler

Back then, Mirror wasn't powerful enough! Do you reckon it is possible to replace Runtime with Mirror? I haven't heard of any updates regarding reflection in Swift. I'd love to simplify the codebase and remove the dependency, if possible.

paulofaria avatar May 13 '21 00:05 paulofaria

Back then, Mirror wasn't powerful enough! Do you reckon it is possible to replace Runtime with Mirror? I haven't heard of any updates regarding reflection in Swift. I'd love to simplify the codebase and remove the dependency, if possible.

All you seem to be using it for is extracting values out of a type using the variable name. I'll add a PR to demonstrate

adam-fowler avatar May 13 '21 05:05 adam-fowler

@adam-fowler I think updating from master should solve the issue with GH actions.

paulofaria avatar May 13 '21 16:05 paulofaria

Basically adding the macos-latest?

paulofaria avatar May 13 '21 16:05 paulofaria

@paulofaria This change will need a change to the required tests.

The ubuntu tests you had before didn't test anything. This is why I added this PR. But the change uses the swift docker images which have different names to the ubuntu images required at the moment. The swift docker images are better to use because we can be specific about which version of swift we want running.

As an aside isn't macos-10.15 the same as macos-latest?

adam-fowler avatar May 13 '21 16:05 adam-fowler

As an aside isn't macos-10.15 the same as macos-latest?

@adam-fowler Yeah, I think so. @alexsteinerde might chime in and let us know why adding "macos-latest" fixes the GH actions stall issue. If changing to "macos-latest" and removing macos-10.15 works, I'm cool with just using "macos-latest".

paulofaria avatar May 13 '21 17:05 paulofaria

@adam-fowler With this change, should we remove the ubuntu items from this line in the existing workflow yml?

NeedleInAJayStack avatar Jul 15 '22 16:07 NeedleInAJayStack

Looks like it needs updated to support 5.5 and 5.6. Although since I posted the new swift install actions are available which could simplify this more. I'll rebuild this using them.

adam-fowler avatar Jul 17 '22 08:07 adam-fowler

Can we get rid of the required tests Build and test on macos-10.15 and Build and test on ubuntu-18.04. @NeedleInAJayStack don't know if you have the power. Maybe @paulofaria can do this.

adam-fowler avatar Jul 17 '22 09:07 adam-fowler

Added @NeedleInAJayStack to the admins team. He should have full access now.

paulofaria avatar Jul 17 '22 10:07 paulofaria

Closed by accident.

paulofaria avatar Jul 17 '22 10:07 paulofaria

Hm, not sure how I can get rid of that? Maybe we should force merge, then that requirement will be gone, since it won't be in the yml file anymore? This looks like a GH bug, I reckon.

paulofaria avatar Jul 17 '22 10:07 paulofaria

Hm, not sure how I can get rid of that? Maybe we should force merge, then that requirement will be gone, since it won't be in the yml file anymore? This looks like a GH bug, I reckon.

It is in the settings for the project (something only admins can access). Do you have branch protection setup?

adam-fowler avatar Jul 17 '22 10:07 adam-fowler

I've removed Build and test on macos-10.15 and Build and test on ubuntu-18.04 from the master branch protection rules

NeedleInAJayStack avatar Jul 17 '22 16:07 NeedleInAJayStack

Scratch that - I've changed the branch protection rules to be the actions that ran when this was merged to master. Specifically, the actions required are:

  • Build and test on macos-latest
  • Build 5.4 on ubuntu-latest
  • Build 5.5 on ubuntu-latest
  • Build 5.6 on ubuntu-latest

Thanks for this work @adam-fowler!

NeedleInAJayStack avatar Jul 17 '22 17:07 NeedleInAJayStack

I think it's pretty pointless adding required builds. You already require an admin approval. Also the required builds will change overtime as new versions of swift are released.

Swift NIO is only ever planning to support the last three versions of swift so there is no real point for a project reliant of NIO trying to support more version of swift than that. So when 5.7 is released support for 5.4 won't be required. Of course you can still support 5.4 if you want.

adam-fowler avatar Jul 17 '22 17:07 adam-fowler

I agree with you Adam - requiring code owner approval seems sufficient to me. I'll let @paulofaria make the final call on this one though since he's been the primary maintainer.

NeedleInAJayStack avatar Jul 27 '22 04:07 NeedleInAJayStack

Yeah! Let's do it!

paulofaria avatar Jul 27 '22 14:07 paulofaria

Awesome, I've removed the required status checks from GraphQL and aligned the projects throughout GraphQLSwift to have the same main branch protection settings. Thanks guys!

NeedleInAJayStack avatar Jul 28 '22 03:07 NeedleInAJayStack

Thank you, Jay!

paulofaria avatar Jul 28 '22 10:07 paulofaria