Scribe-iOS icon indicating copy to clipboard operation
Scribe-iOS copied to clipboard

Update pr_ci.yaml

Open Mehul721 opened this issue 1 year ago • 14 comments

#504 Part of Version needs to be converted to an external link to directs towards the releases on GitHub

Updated the pr_ci.yaml to ensure that the Swift environment is installed and ready for running tests or building Swift-based applications as part of the CI process.

Mehul721 avatar Oct 01 '24 09:10 Mehul721

Thank you for the pull request!

The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)

If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and iOS rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you!

Maintainer checklist

  • [x] The commit messages for the remote branch should be checked to make sure the contributor's email is set up correctly so that they receive credit for their contribution

    • The contributor's name and icon in remote commits should be the same as what appears in the PR
    • If there's a mismatch, the contributor needs to make sure that the email they use for GitHub matches what they have for git config user.email in their local Scribe-iOS repo
  • [ ] The linting and formatting workflows within the PR checks do not indicate new errors in the files changed

  • [ ] The CI unit test workflows within the PR checks do not indicate new errors in the files changed

  • [x] The CHANGELOG has been updated with a description of the changes for the upcoming release and the corresponding issue (if necessary)

github-actions[bot] avatar Oct 01 '24 09:10 github-actions[bot]

@andrewtavis, I think our Scribe is using GRDB beta which has swift 6.0. And Github Action flow has yet to launch support for 6.0.0. Can you please try to make use of older GRDB package?

fabulouiOS-monk avatar Oct 01 '24 12:10 fabulouiOS-monk

Yes I think this makes sense. So we need to set a specific version of GRDB :)

andrewtavis avatar Oct 01 '24 12:10 andrewtavis

@Mehul721, in the same PR can you please downgrade the GRDB version and push those changes? I think the pr_ci will work.

Steps:

  1. Go to project > Scribe
  2. Then go to Package Dependencies
  3. Only for the GRDB.swift, change the branch to Upto next major version
  4. Then put the lower limit to 6.29.3
  5. Refer to image if required: Screenshot 2024-10-01 at 6 06 59 PM

fabulouiOS-monk avatar Oct 01 '24 12:10 fabulouiOS-monk

Yes I think this makes sense. So we need to set a specific version of GRDB :)

Provided the steps, so that he can apply those.

fabulouiOS-monk avatar Oct 01 '24 12:10 fabulouiOS-monk

Thanks for the support here, @fabulouiOS-monk!

andrewtavis avatar Oct 01 '24 12:10 andrewtavis

@Mehul721, and you can remove the changes made in pr_ci.yaml file.

fabulouiOS-monk avatar Oct 01 '24 12:10 fabulouiOS-monk

@Mehul721, in the same PR can you please downgrade the GRDB version and push those changes? I think the pr_ci will work.

Steps:

  1. Go to project > Scribe
  2. Then go to Package Dependencies
  3. Only for the GRDB.swift, change the branch to Upto next major version
  4. Then put the lower limit to 6.29.3
  5. Refer to image if required:
Screenshot 2024-10-01 at 6 06 59 PM

Okay sure I'll do that.Thanks a lot :)

Mehul721 avatar Oct 01 '24 12:10 Mehul721

Screenshot 2024-10-01 at 7 02 21 PM I have updated as recommended but I am still getting these errors and a lot more.Not sure what is wrong.I am getting these errors for Scribe + 10 other languages.

Mehul721 avatar Oct 01 '24 13:10 Mehul721

@Mehul721, I see you are using Xcode 16. right??

If yes, then that's an issue, since in Swift 6.0.0, they have launched a major change regarding concurrency and other stuff, so I guess you need to solve them manually by fixing those.

also can you please provide me with SS of the errors in any of the files?

fabulouiOS-monk avatar Oct 01 '24 13:10 fabulouiOS-monk

@andrewtavis, what is your opinion on this?

If @Mehul721, make those changes and pushes, I don't think others are having Xcode 16 (using Swift 6.0). And for others, it may show to remove those changes.

NOTE: Swift 6.0 is making everything concurrency-safe, hence Mehul is getting those errors.

fabulouiOS-monk avatar Oct 01 '24 13:10 fabulouiOS-monk

I think we can safely update and ask that the community does so. I'm not aware of anyone who would have a problem with this.

andrewtavis avatar Oct 01 '24 13:10 andrewtavis

GRDB 6 can indeed create warnings or errors in Xcode 16, if the project opts in for concurrency checking. See https://github.com/groue/GRDB.swift/discussions/1509 for workarounds until you upgrade to GRDB 7.

groue avatar Oct 01 '24 14:10 groue

@Mehul721, I see you are using Xcode 16. right??

If yes, then that's an issue, since in Swift 6.0.0, they have launched a major change regarding concurrency and other stuff, so I guess you need to solve them manually by fixing those.

also can you please provide me with SS of the errors in any of the files?

Yes I am using Xcode 16.The thing with these errors is that they vanish once I enter the files to specifically look at them.But they keep recurring. Also I have found out two resources that might be helpful.One of them is:-https://developer.apple.com/videos/play/wwdc2024/10169/ Also there is:- https://www.swift.org/migration/documentation/swift-6-concurrency-migration-guide/dataracesafety

Came across "data race safety" a number of times.The issue precisely is related to concurrency.

Mehul721 avatar Oct 01 '24 14:10 Mehul721

Thanks so much for the response here, @groue! As always so appreciative of and impressed by your support to the GRDB community.

Maybe the thing to do here is upgrade to GRDB 7. We don't have too many queries in the project, and my hope would be that they're fairly standard. Aside from this, we could update this PR with the changes suggested in https://github.com/groue/GRDB.swift/discussions/1509 as workarounds :)

andrewtavis avatar Oct 04 '24 10:10 andrewtavis

Closing this one down as the changes here are not needed. GRDB was set to 6.0..<7.0 in #505. This ran in Xcode 16 with no errors. We'll update GRDB soon 😊 Thanks for the efforts here, @Mehul721, and also for the collaboration, all!

andrewtavis avatar Nov 14 '24 22:11 andrewtavis