Skip to content

Update hash for Kickstarter-Prelude and Kickstarter-ReactiveExtensions #211

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

Merged
merged 9 commits into from
Oct 30, 2018

Conversation

justinswart
Copy link
Contributor

  • Updated maintainer details
  • Added Kickstarter iOS app

@justinswart
Copy link
Contributor Author

@swift-ci test

@justinswart
Copy link
Contributor Author

@swift-ci test

@justinswart
Copy link
Contributor Author

@clackary apologies for taking some time to get around to this. Let me know if I've done it correctly! 👍

@clackary
Copy link
Contributor

@justinswart No worries! I should be able to get testing for it started in the next day or two. Our PR testing is down at the moment, and I'm working to get it back up.

projects.json Outdated
{
"version": "4.0",
"commit": "7b4eff0bae4f1abaf8ccc8370153f0945e0752ae"
},
{
"version": "3.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we have a 4.0 hashes, we can drop the 3.0 hashes. Would you mind updating this to remove the 3.0 configurations for Kickstarter-Prelude and Kickstarter-ReactiveExtensions? (That trailing comma after each 4.0 configuration also causes problems if it's not removed.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do!

@clackary
Copy link
Contributor

@swift-ci test

@rudkx
Copy link
Contributor

rudkx commented Jul 12, 2018

@justinswart It looks like this is hitting an issue because of a missing framework:

ld: framework not found Runes

@justinswart
Copy link
Contributor Author

Apologies! Give me a bit of time to look into this, I had some issues running the pre-commit python script locally but have it running now so can try to debug.

@rudkx
Copy link
Contributor

rudkx commented Jul 12, 2018

@justinswart No worries!

@justinswart
Copy link
Contributor Author

🤔 I forgot that we need to run make bootstrap for our project to sync its dependencies and to also do some juggling with our app secrets file. Is it possible to run a custom command like this through the projects.json configuration file?

@clackary
Copy link
Contributor

@justinswart It is not possible to run commands through projects.json. Might be possible to do it in a pre/post-build step in the Xcode scheme?

@clackary
Copy link
Contributor

@swift-ci test

@justinswart
Copy link
Contributor Author

@clackary just removing the stuff that isn't working for now until I can make some time to look into it a bit more

@clackary
Copy link
Contributor

@swift-ci test

@clackary clackary changed the title Add Kickstarter iOS app Update hash for Kickstarter-Prelude and Kickstarter-ReactiveExtensions Jul 18, 2018
@justinswart
Copy link
Contributor Author

I'd like to take a look at this again - is there an environment variable on your CI that I could check for to run make bootstrap? We don't run it on every build in Xcode so I would want to make it conditional, something like:

if [ -z "${SWIFTCI:-}" ]; then
  make bootstrap
fi

@clackary
Copy link
Contributor

@justinswart I'm not sure about an environment variable like that. Hey @shahmishal, any idea if something like this exists?

@shahmishal
Copy link
Member

I created a PR (#245) to add an environment variable to the source compatibility suite. Hopefully by adding the environment variable to the project.py it will build the same way as CI.

@shahmishal
Copy link
Member

@justinswart Can you try using SWIFT_SOURCE_COMPAT_SUITE environment variable?

@justinswart
Copy link
Contributor Author

Thanks @shahmishal I will try that!

@slavapestov
Copy link
Contributor

It would be great to merge this soon - we want to remove Swift 3 support.

@justinswart
Copy link
Contributor Author

@slavapestov apologies for the delay, @ifbarrera and I have some time set up to hand this over and get it wrapped up soonest!

@ifbarrera
Copy link

@swift-ci Please test source compatibility

@clackary
Copy link
Contributor

@swift-ci test

@shahmishal
Copy link
Member

@ifbarrera Unfortunately, only users with commit access can trigger @swift-ci due to security reasons.

@justinswart
Copy link
Contributor Author

We'd like to use this PR just to update the hashes for ReactiveExtensions and Prelude to 4.0 and then create a separate PR to add the app. We've done some work on that on our end but would like to spend a little more time on it and not hold this up.

Any ideas why this is failing with 14:42:17 ld: warning: Could not find auto-linked library 'swiftMetal'?

@shahmishal
Copy link
Member

14:42:17 ld: warning: Could not find auto-linked library 'swiftMetal'
14:42:17 Undefined symbols for architecture x86_64:
14:42:17   "__swift_FORCE_LOAD_$_swiftMetal", referenced from:
14:42:17       __swift_FORCE_LOAD_$_swiftMetal_$_Vision in Vision.o
14:42:17      (maybe you meant: __swift_FORCE_LOAD_$_swiftMetal_$_Vision)
14:42:17 ld: symbol(s) not found for architecture x86_64
14:42:17 

We have seen this issue on the master branch before however, it should have been resolved by now.

Going to re-trigger the build

@swift-ci test

@shahmishal
Copy link
Member

@swift-ci test

@shahmishal
Copy link
Member

New failure

$ git -C /Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/Kickstarter-Prelude submodule update --init --recursive
Submodule 'Frameworks/Runes' (git://github.com/thoughtbot/Runes.git) registered for path 'Frameworks/Runes'
Cloning into '/Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/Kickstarter-Prelude/Frameworks/Runes'...
fatal: unable to connect to github.com:
github.com[0: 192.30.255.112]: errno=Connection refused
github.com[1: 192.30.255.113]: errno=Connection refused

fatal: clone of 'git://github.com/thoughtbot/Runes.git' into submodule path '/Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/Kickstarter-Prelude/Frameworks/Runes' failed
Failed to clone 'Frameworks/Runes'. Retry scheduled
Cloning into '/Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/Kickstarter-Prelude/Frameworks/Runes'...
fatal: unable to connect to github.com:
github.com[0: 192.30.255.113]: errno=Connection refused
github.com[1: 192.30.255.112]: errno=Connection refused

fatal: clone of 'git://github.com/thoughtbot/Runes.git' into submodule path '/Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/Kickstarter-Prelude/Frameworks/Runes' failed
Failed to clone 'Frameworks/Runes' a second time, aborting

@justinswart
Copy link
Contributor Author

justinswart commented Oct 12, 2018

I thought we fixed the Runes issue 🤔 ok we'll check this out again next week!

@justinswart
Copy link
Contributor Author

@shahmishal In the log you posted it seems to say github.com[0: 192.30.255.112]: errno=Connection refused

Is that not a potential issue from the CI side?

@slavapestov
Copy link
Contributor

@swift-ci test

1 similar comment
@clackary
Copy link
Contributor

@swift-ci test

@shahmishal
Copy link
Member

@justinswart We need to look into why git submodule update --init --recursive is having issues accessing GitHub.com from the Jenkins server.

@shahmishal
Copy link
Member

shahmishal commented Oct 29, 2018

@justinswart Found the issue with the submodule

.gitmodules

[submodule "Frameworks/Runes"]
        path = Frameworks/Runes
        url = git://github.com/thoughtbot/Runes.git

Is it possible to switch this to be url = https://github.com/thoughtbot/Runes.git?

Correction: it should be url = https://github.com/thoughtbot/Runes not url = https://github.com/thoughtbot/Runes.git

@justinswart
Copy link
Contributor Author

@shahmishal sure - I can make that change 👍

@justinswart
Copy link
Contributor Author

I've opened a PR on our repo for this change, also updated to Swift 4.2 (I'll update the hashes).

Are you sure about the URL, I think the one your originally posted was correct, tested in terminal:

$ git clone https://github.com/thoughtbot/Runes.git
Cloning into 'Runes'...
remote: Enumerating objects: 898, done.
remote: Total 898 (delta 0), reused 0 (delta 0), pack-reused 898
Receiving objects: 100% (898/898), 231.89 KiB | 827.00 KiB/s, done.
Resolving deltas: 100% (437/437), done.
$ git clone https://github.com/thoughtbot/Runes
fatal: destination path 'Runes' already exists and is not an empty directory.

@shahmishal
Copy link
Member

If it works with .git, I am fine with that too. However, I looked at .gitmodules submodule from Kickstarter-ReactiveExtensions (https://github.com/kickstarter/Kickstarter-ReactiveExtensions/blob/master/.gitmodules)

@clackary
Copy link
Contributor

@swift-ci test

1 similar comment
@clackary
Copy link
Contributor

@swift-ci test

@justinswart
Copy link
Contributor Author

If this fixes the PR then it's likely that the git:// vs https:// was the problem when we were adding the main app repo too.

If so then I will create a separate PR to add the app to the compatibility suite.

@clackary
Copy link
Contributor

Testing should start shortly, waiting for an available executor in CI.

@shahmishal
Copy link
Member

@justinswart thanks!

@clackary
Copy link
Contributor

@swift-ci test

@shahmishal
Copy link
Member

PASS: Kickstarter-Prelude, 4.2, 8988b0, Prelude-iOS, generic/platform=iOS
PASS: Kickstarter-Prelude, 4.2, 8988b0, Prelude-UIKit-iOS, generic/platform=iOS
PASS: Kickstarter-ReactiveExtensions, 4.0, 6b7887, ReactiveExtensions-iOS, generic/platform=iOS
PASS: Kickstarter-ReactiveExtensions, 4.0, 6b7887, ReactiveExtensions-TestHelpers-iOS, generic/platform=iOS

@justinswart
Copy link
Contributor Author

Nice! apologies once again for how long this took, we've just had a lot going on!

I'll create the app PR soon.

@shahmishal shahmishal merged commit 965cfe4 into swiftlang:master Oct 30, 2018
@shahmishal
Copy link
Member

@justinswart @clackary Thanks!

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.

6 participants