-
Notifications
You must be signed in to change notification settings - Fork 50
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
SwiftMetrics fails to build with Swift 3.1 #89
Comments
logs similar to this are the issue
|
We are looking to embed the omr-agentcore code into SwifMetrics in the short term to resolve the build issues with 3.1 |
@tobespc as in a fork of omr-agentcore until the custom module layouts are supported in SPM? |
we are not going to fork, going to have the code as part of swiftmetrics
for now
Regards,
Toby Corbin
Monitoring Architect/Lead Developer, Consumability Tooling
IBM Runtime Technologies
Phone: +44-1962-816995 | Tie-Line: 37246995
E-mail: corbint@uk.ibm.com
Follow IBM Java on:
IBM Monitoring and Diagnostic Tools Website
IBM Java Diagnostic Guides
IBM UK Ltd, Hursley Park
Hursley , SO212JN
United Kingdom
From: Lloyd Roseblade <notifications@github.com>
To: RuntimeTools/SwiftMetrics <SwiftMetrics@noreply.github.com>
Cc: Toby Corbin/UK/IBM@IBMGB, Mention <mention@noreply.github.com>
Date: 30/03/2017 09:50
Subject: Re: [RuntimeTools/SwiftMetrics] SwiftMetrics fails to
build with Swift 3.1 (#89)
@tobespc as in a fork of omr-agentcore until the custom module layouts are
supported in SPM?
?
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
|
SwiftMetrics now works on 3.1 if you use the branch |
we will do but until the Kitura/Kitura-WebSocket#5 is fixed the dashboard is not going to work. This means you won't be able to use the SwiftMetrics Dashboard |
I concern more for the staging failure currently for bluemix apps. It is build broken for related users. |
We cant merge into master yet as once we do, due to new dependencies required to work for Swift 3.1, Swift 3.0 will be broken. Can the build pack be changed to pull from a difference branch in the short term? |
I don't know how it would be configure through buildpack. I asked in slack @swift channel to find the contact point of swift build pack team |
We are going to fix the build issue today so that the buildpack will work. The dashboard won't be working until we get an apple bug fixed but at least the build will work |
@cdlliuy - FYI the bug in Swift core that is blocking us is https://bugs.swift.org/browse/SR-4435. |
@sjanuary, it looks like the swift 3.1 is selected by default now. I am expert for swift buildpack, you can check with buildpack team. anyway, I didn't get a name to contact swift buildpack team yet, please help to figure out. |
I think the Swift Buildpack is hosted at https://github.com/IBM-Swift/swift-buildpack. Given the activity in there, @rolivieri seems like someone to contact to start with. |
IIRC you can configure the version of Swift used by the build pack via the |
I will speak with the relevant parties today and post back in here. @rolivieri is no longer owner of the buildpack. |
This will be discussed at the Swift TSC on Thursday |
@tunniclm , I am not sure whether the workaround of .swift-version is well known workaround by end-user .. What is the release process of swift buildpack? I worked with liberty and node.js buildpack team previously, they will send out release announcement and call for related/dependency team's comments when released on YS1. If no failure detected, will continue to publish to YP. I am not sure whether swift buildpack is following the similar process. The build failure should be detected and reported to Swift buildpack team before the version 3.1 goes to production. |
Is there any build failure monitoring in Swift metrics team? It means compile swift metrics apps, push to bluemix everyday (or more frequently, i.e every 2 hours) to detect any possible failures. The continuous build/test/delivery process will help to detect failure promptly. |
All, I just saw this thread. Our recommendation is that all Swift apps should contain a .swift-version file with the corresponding Swift version. That should take care of any issues that may be occurring with having 3.1 as the default version in the builpack. If an app should be provisioned on Bluemix using 3.0.2 (or a different version), then having this file will ensure the buildpack uses the corresponding Swift version. Using a .swift-version file has become a best practice in the Swift development world. The buildpack is simply leveraging something that has become a de facto standard for Swift developers (other tools also leverage this file such as swiftenv). Having SwiftMetrics compiled with the latest version of Swift has not been a requirement for updating the buildpack. They are separate and independent artifacts. One of the main goals that we as a team have been aiming at is the adoption of new Swift versions as soon as they come out. Among the main artifacts that are affected by this goal are the buildpack, our docker images, and package-builder. |
@rolivieri , got it. I found .swift_version related documents in swift buildpack, so that we (auto-scaling) team can add related trouble shooting link as well , so that if end-user has staging error of swiftmetric, they are check SwiftBuildpack documentation to get a solution as well. @tobespc , I suggest to add a section of "support swift version" in readme.md, so that the user can check the latest supported swift version easily when checking the git project. On the other hand, although the end-user can downgrade to v3.0.2 with .swift_version, I still suggest to add continuous test to detect whether swift metric & latest swift engine are compatible, and fix the incompatible issue as early as possible. |
Update: SwiftMetrics @1.0.2 now builds on 3.1 although the dashboard (SwiftMetricsDash) will not work due to the issue referenced above. |
@sjanuary @tobespc , the fix did work to fix the "staging" error, BUT the swift apps keep crashing when running on bluemix. here is "cf logs --recent " record: 2017-04-13T16:41:14.31+0800 [CELL/0] OUT Creating container I tried to add .swift-version file with "3.0.2" , then the same application ran correctly. Then change back to 3.1, failed again.. So, I think the fix didn't work as we expected. |
Swift 3.1 contains a memory corruption bug and should be considered broken. The memory corruption is known to be triggered by accessing the SwiftMetrics dashboard, but could occur at any time. It is likely that Swift 3.1.1 will be released soon with a fix for the issue. Until then, please use Swift 3.0.2 |
@ianpartridge is there a target date when the v3.1.1 will be released? |
No, this is Apple's decision. Hopefully it will be soon. |
3.1.1 is now released. @cdlliuy can you please test again with 3.1.1 and check if the problem still occurs? |
fyi CPU and Environment is not working currently |
The 3.1.1 version is not released on Bluemix YS1/LYS1. So, I will wait until the next swift buildpack released on staging . @rolivieri |
@cdlliuy You don't need to wait for the next version of the buildpack to test. Just make sure you have a |
@rolivieri, my test app is included .swift_version with 3.0.2 now, so it is good. But @mattcolegate is asking me to try on 3.1.1 now, so I would like to wait for the next buildpack |
@cdlliuy we have an issue with SwiftMetrics on Swift 3.1.1 right now with it crashing. Should have a fix in for that later today |
@tobespc I think this issue has crept beyond it's original purpose. SwiftMetrics now builds on 3.1. Unfortunately it crashes at runtime, but shouldn't that be a separate issue? I believe this issue should be closed. |
closing as tracked under #104 |
@cdlliuy My point was more around the following lines: To test SwiftMetrics (when Toby and Matt have a version ready for you for testing) on Bluemix, you can update your |
No description provided.
The text was updated successfully, but these errors were encountered: