Contribute to Open Source. Search issue labels to find the right project for you!

Write proper tests

Musicoin/desktop

With the increasing number of facilities that the wallet offers, it becomes critical not to break certain features when introducing new ones. Towards this, we have to write test cases and test them using a CI (Travis/Circle would be fine I guess, Jenkins is also OK). Ideas welcome

Updated 19/02/2018 11:36

Emarsys api contact

Bamilo/DP-UserAutomation

Simply execute “do_not_move_me.bat” to run script (NB: first see prerequisites!!)

Script purpose: CRM team needs more contact data in Emarsys in order to better target customers with emails in order to increase open / click / purchase rates and improve customer satisfaction.

Script usage: 1. Run SQL query on BI_replica Staging and User databases (cf. SQL/emarsys_query.txt) 2. Run R script to split data into JSONified “API- feedable” chunks of 1000 rows 3. Run Nodejs script for each chunk of 1000 rows to actually feed Emarsys API

Prerequisites: 1. Install R + R packages 2. Install Nodejs + Nodejs modules 3. Set up ODBC connection with BI_replica database for R to query (can change this method but need to modify script) 4. Provide database credentials in access.yaml and API credentials in config.json

FYI: 1. Script logs are saved under R/R_log.txt for R script and nodejs/nodejs_log.txt 2. To install R packages, just run R/install_package.R 3. To install nodejs modules, use commande npm module_name once nodejs installed

Updated 19/02/2018 11:22

Lua environmental differences

ska-sa/fakenewsredis

The Lua scripting support (EVAL) does not perfectly emulate the environment available to a real redis script. Some known differences are: - Libraries such as cjson are not loaded - Setting of global variables is only checked each time a redis function is called, rather than being enforced by a metatable. - dofile and readfile are not disabled. - Various functions on the redis object are not implemented e.g. redis.sha1hex, redis.log - It doesn’t prevent mutating commands after a random command (this will be a major task since it requires knowing which commands are mutating and/or random). - The random seed might not be reset with every script (untested)

For more details see the redis documentation and [implementation(https://github.com/antirez/redis/blob/32ac4c64baf00747da1acc0cc61ee236922e2dcf/src/scripting.c#L867-L885).

Updated 19/02/2018 11:20

Dependencies Warning

AllieTheDemonHunter/leadtrekker

When updating to the latest version of the module, the new sub-module ‘source_id’ needs to be installed to work - which is fine, except if the site didn’t have Rules installed. It’s a requirement on the main module, but should (does) stay installed/enabled.

Updated 19/02/2018 11:12

Application crashes on start when using the Android SDK

aerogear/aerogear-android-sdk

Expected Behavior

The Aerogear Android SDK can be added to my project by following the instructions. Following as per https://github.com/aerogear/aerogear-android-sdk/pull/52

Actual Behavior

Application crashes on start when you reference the Aerogear Android SDK in your project.

Information:Gradle tasks [:app:assembleDebug]
Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process /home/tjackman/.gradle/caches/transforms-1/files-1.1/core-5.0.0-SNAPSHOT.aar/022238cf764ef72c2b4febd459b7ebbf/jars/classes.jar
Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing org/aerogear/mobile/core/http/OkHttpResponse.class
Error:com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /home/tjackman/.gradle/caches/transforms-1/files-1.1/core-5.0.0-SNAPSHOT.aar/022238cf764ef72c2b4febd459b7ebbf/jars/classes.jar
Information:BUILD FAILED in 3s
Information:4 errors
Information:0 warnings
Information:See complete output in console

Steps to Reproduce the Problem

  1. Follow the getting started guide to add the aerogear android SDK to this project - https://github.com/feedhenry/mobile-security-android-template
  2. Try to run the application here using this PR https://github.com/feedhenry/mobile-security-android-template/pull/33/files

Application build.gradle ``` apply plugin: ‘com.android.application’

android { compileSdkVersion 27 buildToolsVersion ‘26.0.2’ defaultConfig { applicationId “com.feedhenry.securenativeandroidtemplate” minSdkVersion 21 targetSdkVersion 27 versionCode 1 versionName “1.0” testInstrumentationRunner “com.feedhenry.securenativeandroidtemplate.MockTestRunner” manifestPlaceholders = [‘appAuthRedirectScheme’: ‘com.feedhenry.securenativeandroidtemplate’] vectorDrawables { useSupportLibrary true } } signingConfigs { release { storeFile file(“../signing_keys.keystore”) keyAlias “developer” storePassword System.getenv(“KEYSTORE_PASSWORD”) keyPassword System.getenv(“KEY_PASSWORD”) } } buildTypes { local { initWith debug debuggable true }

    release {
        versionNameSuffix System.getenv("CIRCLE_BUILD_NUM")
        signingConfig signingConfigs.release
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
configurations.all {
    resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
testOptions {
    unitTests.returnDefaultValues = true
}

}

ext { android_support_version = “27.0.2” }

dependencies { compile fileTree(dir: ‘libs’, include: [‘*.jar’]) compile “com.android.support:appcompat-v7:$android_support_version” compile “com.android.support:animated-vector-drawable:$android_support_version” compile “com.android.support:customtabs:$android_support_version” compile “com.android.support:design:$android_support_version” compile “com.android.support:cardview-v7:$android_support_version” compile “com.android.support:support-v4:$android_support_version” compile “com.android.support.constraint:constraint-layout:1.0.2” implementation ‘org.aerogear:core:5.0.0-SNAPSHOT’ implementation ‘org.aerogear:auth:5.0.0-SNAPSHOT’ compile ‘com.squareup.okhttp3:okhttp:3.9.0’ compile ‘com.datatheorem.android.trustkit:trustkit:1.0.1@aar’ compile ‘com.scottyab:rootbeer-lib:0.0.6’ compile group: ‘com.google.code.gson’, name: ‘gson’, version: ‘2.7’

compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

compile 'com.google.dagger:dagger:2.11'
compile 'com.google.dagger:dagger-android:2.11'
annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
annotationProcessor 'com.google.dagger:dagger-android-processor:2.11'

compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'

testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.10.0'
testCompile 'org.json:json:20160810'
testCompile "org.robolectric:robolectric:3.4.2"

androidTestCompile 'org.mockito:mockito-android:2.10.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2') {
    exclude group: 'com.android.support', module: 'support-annotations'
    exclude group: 'com.android.support', module: 'appcompat-v7'
    exclude group: 'com.android.support', module: 'support-v4'
    exclude group: 'com.android.support', module: 'design'
    exclude module: 'recyclerview-v7'
}
androidTestAnnotationProcessor 'com.google.dagger:dagger-compiler:2.11'
androidTestAnnotationProcessor 'com.google.dagger:dagger-android-processor:2.11'

}

```

Specifications

  • Core SDK Version: 5.0.0.SNAPSHOT (Latest Master)
  • Relevant Service Modules: Core, Auth
Updated 19/02/2018 11:31

Make nonce part of default Content Security Policy header

playframework/playframework

As suggested by @makkarpov:

Another possibility to fix it is to do something like that:

  1. CSP filter should generate a nonce and attach it as an attribute to the RequestHeader. This feature would be also useful when used standalone. When it comes to the CSP policy, it should replace some special token like @nonce@ to the actual nonce value. This token may be specified as regexp like 'nonce-[^']+', so any nonce field in CSP would be transformed to a valid nonce.

  2. Error template should include nonce extracted from the request in all inline content, so it will pass CSP filter.

This would provide a simple way for users and libraries to integrate with Play’s CSP header. For example, the play-swagger project (see issue) could make use of the nonce for inline elements.

Updated 19/02/2018 10:40 1 Comments

プルリクエトのテンプレートについて

mmorihiro/github-client

原形として考えているのは


Close

Review Points

  • [ ] Issueに書いてあることが実装されているか

  • [ ] 変更の範囲が広すぎないか

  • [ ] ネーミングは分かりやすいか

  • [ ] コードの意図が不明な箇所はないか

  • [ ] 良い部分は積極的に褒めていこう


追加・修正した方がいいと思う所はある?

Updated 19/02/2018 10:35

Numina installation not working from wheel distribution in mac os x + Py3.6

guaix-ucm/numina

Running numina in a fresh new installation (using a different “test” environment) I get the following error: File “/Users/agpaz/test/lib/python3.6/site-packages/megaradrp-0.6.dev4-py3.6.egg/megaradrp/recipes/scientific/lcb.py”, line 18, in <module> from megaradrp.recipes.scientific.base import ImageRecipe File “/Users/agpaz/test/lib/python3.6/site-packages/megaradrp-0.6.dev4-py3.6.egg/megaradrp/recipes/scientific/base.py”, line 19, in <module> import matplotlib.pyplot as plt File “/Users/agpaz/test/lib/python3.6/site-packages/matplotlib/pyplot.py”, line 116, in <module> backend_mod, new_figure_manager, draw_if_interactive, show = pylab_setup() File “/Users/agpaz/test/lib/python3.6/site-packages/matplotlib/backends/init.py”, line 60, in pylab_setup [backend_name], 0) File “/Users/agpaz/test/lib/python3.6/site-packages/matplotlib/backends/backend_macosx.py”, line 17, in <module> from matplotlib.backends import _macosx RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of ‘python’ with ‘pythonw’. See ‘Working with Matplotlib on OSX’ in the Matplotlib FAQ for more information.

Updated 19/02/2018 11:55 7 Comments

Unit test framework for testing CLI

bitshares/bitshares-core

Thanks to @jmjatlanta, who has made some efforts for testing CLI with Boost unit test framework when working on #576: https://github.com/jmjatlanta/bitshares-core/blob/322474401b1ca4459995d34e37da48a0465d9402/tests/cli/main.cpp#L133

This code does need some cleanup, e.g. revise header, includes, cout’s, and maybe add BOOST_CHECK’s and etc. And best to abstract the initialization code into a common class or alike, so it would be easier to write new unit tests for specific CLI features. After done, we can merge it into the main code base, so testing would be easier in the future.

Updated 19/02/2018 09:44

eRPC server Multiple IO service

EmbeddedRPC/erpc

Hi Marek and Dusan

we are trying to add multiple service at the server side like below

erpc_server_init(transport, message_buffer_factory);

// Add the IO service.1 erpc_add_service_to_server( create_IO_service1() ); printf(“CAD service added\r\n”); // Add the IO service. 2 erpc_add_service_to_server(create_IO_service2());

Is it possible to add ??we are getting error 9, if try to add second service..

Is 2nd service create one more channel ? or use existing one ?

Thank you very much in advance Chandini

Updated 19/02/2018 11:47 2 Comments

Update screenshots, text for a new login screen

fabric8io/fabric8-online-docs

Catherine: I just wanted to point out that this release will include a new log in page that looks different that the current OSIO log in page. We’ll probably need to check out screen shots in documentation and make sure we update them. Here’s where you can see the new OSIO log in Staged: https://developers.stage.redhat.com/auth/realms/rhd/protocol/openid-connect/auth?scope=openid&state=RLjoxdLnItGvUDME83uE9AJKCzcydG4cxiw1Yg7lBRI.fabric8-online-platform&response_type=code&client_id=osio&redirect_uri=https%3A%2F%2Fsso.openshift.io%2Fauth%2Frealms%2Ffabric8%2Fbroker%2Frhd%2Fendpoint

Updated 19/02/2018 09:29

Add unit tests to builders

fossas/fossa-cli

Builders are hard to test right now because they do a lot of IO. In particular:

  • Reading manifests from the filesystem
  • Reading environment variables for user-defined binaries
  • Reading shell output from build tool processes

To set up unit tests, we need to refactor all effecting functions to use a service provider instead, so we can mock out the service provide with pure implementations at test time.

This looks like a good use case for dependency injection, if we find something exceptionally light weight. I’d rather keep things simple, and at this point we could just create a service that’s always passed to the builders (maybe as a public property in all of their structs, or in the Initialize method?).

Updated 19/02/2018 09:33

Resource leak ? Maven build fails with "Too many open files in system"

openhab/static-code-analysis

Running multiple builds in a row with the SAT tool enabled on a single node in Jenkins produced the following errors:

[INFO] --- sat-plugin:0.5.0-SNAPSHOT:checkstyle (default) @ org.eclipse.smarthome.model.lsp ---
[INFO] Adding dependency to checkstyle:0.5.0-SNAPSHOT
[INFO] Adding dependency to checkstyle:8.1
[WARNING] Require-Bundle header line number not found. Fall back to 0.
org.openhab.tools.analysis.checkstyle.api.NoResultException: `org.eclipse.smarthome.model.item.ide,org.eclipse.smarthome.model.persistence.ide,org.eclipse.smarthome.model.rule.ide,org.eclipse.smarthome.model.script.ide,org.eclipse.smarthome.model.sitemap.ide,org.eclipse.smarthome.model.thing.ide,org.eclipse.smarthome.model.item,org.eclipse.smarthome.model.persistence,org.eclipse.smarthome.model.rule,org.eclipse.smarthome.model.script,org.eclipse.smarthome.model.sitemap,org.eclipse.smarthome.model.thing` was not found in the file /var/lib/jenkins/jobs/Qivicon-Opensource-ESH/workspace/bundles/model/org.eclipse.smarthome.model.lsp/META-INF/MANIFEST.MF starting from line `0`. Check if it is split between multiple lines or it is missing
    at org.openhab.tools.analysis.checkstyle.api.AbstractStaticCheck.findLineNumber(AbstractStaticCheck.java:87)
    at org.openhab.tools.analysis.checkstyle.api.AbstractStaticCheck.findLineNumberSafe(AbstractStaticCheck.java:105)
    at org.openhab.tools.analysis.checkstyle.RequireBundleCheck.processFiltered(RequireBundleCheck.java:79)
    at com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck.process(AbstractFileSetCheck.java:79)
    at com.puppycrawl.tools.checkstyle.Checker.processFile(Checker.java:316)
    at com.puppycrawl.tools.checkstyle.Checker.processFiles(Checker.java:286)
    at com.puppycrawl.tools.checkstyle.Checker.process(Checker.java:213)
    at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.executeCheckstyle(DefaultCheckstyleExecutor.java:252)
    at org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport.executeReport(AbstractCheckstyleReport.java:473)
    at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:154)
    at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:255)
    at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:143)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:94)
    at org.openhab.tools.analysis.tools.AbstractChecker.executeCheck(AbstractChecker.java:106)
    at org.openhab.tools.analysis.tools.CheckstyleChecker.execute(CheckstyleChecker.java:123)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Problem occurred while processing directories. The check will exit without logging any warnings!
java.nio.file.FileSystemException: /var/lib/jenkins/jobs/Qivicon-Opensource-ESH/workspace/bundles/model/org.eclipse.smarthome.model.lsp/src/main/java/org/eclipse/smarthome/model: Too many open files
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:427)
    at java.nio.file.Files.newDirectoryStream(Files.java:457)
    at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)
    at java.nio.file.FileTreeWalker.next(FileTreeWalker.java:372)
    at java.nio.file.Files.walkFileTree(Files.java:2706)
    at java.nio.file.Files.walkFileTree(Files.java:2742)
    at org.openhab.tools.analysis.checkstyle.PackageExportsNameCheck.getFilteredPackagesFromSourceDirectory(PackageExportsNameCheck.java:114)
    at org.openhab.tools.analysis.checkstyle.PackageExportsNameCheck.processFiltered(PackageExportsNameCheck.java:90)
    at com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck.process(AbstractFileSetCheck.java:79)
    at com.puppycrawl.tools.checkstyle.Checker.processFile(Checker.java:316)
    at com.puppycrawl.tools.checkstyle.Checker.processFiles(Checker.java:286)
    at com.puppycrawl.tools.checkstyle.Checker.process(Checker.java:213)
    at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.executeCheckstyle(DefaultCheckstyleExecutor.java:252)
    at org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport.executeReport(AbstractCheckstyleReport.java:473)
    at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:154)
    at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:255)
    at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:143)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:94)
    at org.openhab.tools.analysis.tools.AbstractChecker.executeCheck(AbstractChecker.java:106)
    at org.openhab.tools.analysis.tools.CheckstyleChecker.execute(CheckstyleChecker.java:123)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[WARNING] KarafFeatureCheck will be skipped. Could not find file features/openhab-addons/src/main/feature/feature.xml
[INFO] 
[INFO] --- sat-plugin:0.5.0-SNAPSHOT:pmd (default) @ org.eclipse.smarthome.model.lsp ---
[INFO] Adding dependency to pmd:0.5.0-SNAPSHOT
[INFO] Adding dependency to pmd-core:5.8.1
[INFO] Adding dependency to pmd-java:5.8.1
[INFO] Adding dependency to pmd-javascript:5.8.1
[INFO] Adding dependency to pmd-jsp:5.8.1
[INFO] 
[INFO] --- sat-plugin:0.5.0-SNAPSHOT:findbugs (default) @ org.eclipse.smarthome.model.lsp ---
[INFO] Adding dependency to findbugs:0.5.0-SNAPSHOT
[INFO] Adding dependency to bug-pattern:1.2.4
[INFO] Adding dependency to spotbugs:3.1.0
[INFO] Fork Value is false
     [java] JVM args ignored when same JVM is used.
Unable to obtain resource from /var/lib/jenkins/.m2/repository/org/apache/maven/maven-model-builder/3.5.0/maven-model-builder-3.5.0.jar: java.io.FileNotFoundException: /var/lib/jenkins/.m2/repository/org/apache/maven/maven-model-builder/3.5.0/maven-model-builder-3.5.0.jar (Too many open files)
java.io.FileNotFoundException: /var/lib/jenkins/.m2/repository/org/apache/maven/maven-model-builder/3.5.0/maven-model-builder-3.5.0.jar (Too many open files)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at org.apache.tools.ant.AntClassLoader.readFully(AntClassLoader.java:1589)
    at org.apache.tools.ant.AntClassLoader.isZip(AntClassLoader.java:1578)
    at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1022)
    at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:152)
    at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:113)
    at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:969)
    at org.apache.tools.ant.AntClassLoader.getNamedResources(AntClassLoader.java:937)
    at org.apache.tools.ant.AntClassLoader.getResources(AntClassLoader.java:1554)
    at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:348)
    at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:393)
    at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:474)
    at javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:293)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
    at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
    at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
    at org.dom4j.io.JAXPHelper.createXMLReader(JAXPHelper.java:46)
    at org.dom4j.io.SAXHelper.createXMLReaderViaJAXP(SAXHelper.java:125)
    at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:78)
    at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
    at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
    at org.dom4j.io.SAXReader.read(SAXReader.java:435)
    at org.dom4j.io.SAXReader.read(SAXReader.java:365)
    at edu.umd.cs.findbugs.PluginLoader.getPluginDescriptor(PluginLoader.java:1195)
    at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:712)
    at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:396)
    at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1486)
    at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1440)
    at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:150)
    at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:351)
    at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:77)
    at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:60)
    at edu.umd.cs.findbugs.FindBugs2.<clinit>(FindBugs2.java:85)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:137)
    at org.apache.tools.ant.taskdefs.Java.run(Java.java:834)
    at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:228)
    at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:137)
    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    at sun.reflect.GeneratedMethodAccessor294.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at groovy.util.AntBuilder.performTask(AntBuilder.java:327)
    at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:272)
    at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:154)
    at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:207)
    at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:67)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
    at org.codehaus.mojo.findbugs.FindBugsMojo.executeFindbugs(FindBugsMojo.groovy:1036)
    at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    at org.codehaus.mojo.findbugs.FindBugsMojo.canGenerateReport(FindBugsMojo.groovy:549)
    at org.codehaus.mojo.findbugs.FindBugsMojo.execute(FindBugsMojo.groovy:688)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:94)
    at org.openhab.tools.analysis.tools.AbstractChecker.executeCheck(AbstractChecker.java:106)
    at org.openhab.tools.analysis.tools.FindBugsChecker.execute(FindBugsChecker.java:176)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Updated 19/02/2018 09:24

Solution for putting .jar files in our docker images

cloudtrust/keycloak-service

We don’t want .jar files inside the repo.

I have a few ideas, I’d like to bounce them around : - In their respective projects, a release .zip (Seems best? We don’t need to expose an artifact repository, github does it for us ) - Multi-stage docker builds ( Pretty cool, but either we have the build for jars in this repo (bad) or we have to do some dockerfile alchemy or use a makefile ) - Private artifactory ( This makes it hard for the general public to build and try our dockerfiles. I like it the least. )

Updated 19/02/2018 09:10

Some Stocks endpoints return incorrectly

addisonlynch/iexfinance

It appears that some endpoints (such as get_earnings are returning incorrectly-formatted data)


from iexfinance import Stock

aapl = Stock("AAPL", output_format='pandas')
aapl.get_earnings()

#                                                                            AAPL
# earnings [{'fiscalPeriod': 'Q4 2017', 'announceTime': '...
# symbol                                                                     AAPL

This is incorrect. In addition, odd behavior is that get_earnings sometimes returns with a symbol index, and sometimes does not. This would cause calls like aapl.get_earnings()["totalDebt"] to fail.

Updated 19/02/2018 08:43

Complex commands

efrecon/withstander

Current implementation is limited by the underlying Docker API implementation. This is fine for simple commands, but would have limitations for expressing more complex logic, i.e. try restarting a container a few times, completely remove it if this hasn’t worked; or successively shrinking CPU resources allocated to a container. One possible way to implement this would be to allow a shell script or similar to be executed whenever a match has occurred. This script could be passed the identifier of the container through an environment variable or similar.

Updated 19/02/2018 08:32

Use only pull-streams

libp2p/js-libp2p-mplex

long story short: libp2p-mplex has been around for a while, longer than our migration for pull-streams. Things work now but we know that using Readable Streams in the browser is a huge memory inefficiency and might cause bugs that we are not even aware right now.

Now that #68 #72 happened. We should upgrade the whole module to drop Readable Streams entirely.

Updated 19/02/2018 10:55

[Django 2.0] Migrate to Django version 2.0

onaio/onadata

Django 2.0 is here and we need to upgrade. Here are the release notes.

Specifically we need to:

  1. Identify breaking changes from django 1.11 to django 2.0 and fix these
  2. make all the code compatible with python3 (Django 2.0 supports only python 3)

Specific issues that address various parts of the above will be linked to this issue for tracking.

We are starting with issues that can be implemented while still on Django 1.11 and thereafter will move to Python3/Django2

Updated 19/02/2018 08:48

Fuzzy matching

efrecon/withstander

Current implementation forces all statistics within a given period to match, one possible extension would be to be able to express a subset (percentage or similar) of these to match. This could easily be realised through recognising 10/0.9 (meaning 90% within the past 10 seconds) as a valid expression for the time period.

Updated 19/02/2018 08:21

Implement a new client class using the JSON API

hbldh/pybankid

JSON Interface to Access the BankID Service

This information is intended for developers and owners of services using BankID. You need to change your services before February 2020.

To make integration with the BankID service easier, we have replaced the SOAP/XML interface with a JSON based interface. The old SOAP interface will not work after February 2020. The following summarizes the changes:

  • JSON replaces SOAP/XML.
  • The end user IP address is mandatory.
  • A cancel method is introduced.

Details are found in BankID Relying Party Guidelines available at https://www.bankid.com/bankid-i-dina-tjanster/rp-info.

Please study the guidelines and the FAQ at https://www.bankid.com/bankid-i-dina-tjanster/rp-info carefully before posting questions to us. Remaining technical questions may be directed to teknikinfo@bankid.com. For other questions we refer to the Bank or vendor with which you have the BankID service agreement.

Updated 19/02/2018 10:55

Can't slide/zoom map after mission completed on ios devices

DAVFoundation/missions

Can’t slide/zoom map after mission completed on ios devices . Can be seen on http://missions.io

Expected Behavior

User should be able to move/slide/zoom the map after mission competes in exactly the same manner as it is possible before starting the mission.

Current Behavior

Map cannot be moved/zoomed.

Steps to Reproduce (for bugs)

  1. Run a full drone delivery mission until completed.
  2. App will return to pre-order screen.
  3. Try to slide/move/zoom the map.
  4. Android/Web devices work - ios (tested on iphone) devices do not.
Updated 19/02/2018 08:04

[SP] Temperature of brake motor

idsc-frazzoli/retina

Background

  • The brake of the gokart is operated by a linear motor (“linmot”).
  • When the shaft of the motor is in “home” position, no braking occurs and no energy is consumed.
  • For maximum brake effect, the motor maintains the shaft at position ~42[mm]. In that state, the motor heats up significantly.
  • The temperature of the motor should not exceed 110[degC].

Task description

  • Create a transfer function model that approximates the motor heat curve depending on the input signal that is the brake position.
  • Since the brake operation is required for a certain period of time during emergency stop, the task is to bound the permitted speed of the gokart depending on the current linmot temperature. Example: At a velocity of 6[m/s] requires 1.3[s] of brake action to come to a complete stop. During that time, the brake is estimated to heat up by X[degC]. Therefore, a motor temperature of 110-X[degC] is required prior to the emergency stop.

Visualization

Brake action and Linmot temperature during experiment linmot_temperature

Updated 19/02/2018 07:35

Workaround for VFO "Dual Capacity Direct Mode" firmware bug only partially implemented

rogerclarkmelbourne/radioddity_gd-77_cps2.0.5

The GD-77 has a bug in firmware 3.0.6 where if in Analog VFO mode, the Dual Capacity Direct Mode is selected, the GD-77 will transmit on without the PTT being pushed, - if its idle for a given period of time. (I can’t remember the precise time )

I have implemented a partial fix by deselecting Dual Direct when the user switches from Digital to Analog mode, and also updated the default codeplug file to have this disabled,

However, this should also be disabled whenever a codeplug is read from file for downloaded from the GD-77 if the VFO is in Analog mode

Updated 19/02/2018 09:17 1 Comments

Can't create rows for a belongsTo model, truncated column error

ForestAdmin/forest-express-sequelize

Expected behavior

Able to create a row in my Question model via the Forest interface.

Actual behavior

Fails to create the row for my Question model; Insert statement uses an invalid string for the foreign key.

Failure Logs

When I create my Question row in the Admin interface for job id=1, the result I get in SQL is: sql INSERT INTO `question` (`question_id`,`job_id`,`question_type_id`,`is_premium_question`,`text`,`created_at`,`updated_at`) VALUES (1,'1-1','1',true,'Whats your favourite food?','2018-02-19 06:28:49','2018-02-19 06:28:49');

It throws the following error because ‘1-1’ doesn’t exist as an integer for job_id on my Questions table.

[forest] 🌳🌳🌳  Unexpected error: WARN_DATA_TRUNCATED: Data truncated for column 'job_id' at row 1
SequelizeBaseError: WARN_DATA_TRUNCATED: Data truncated for column 'job_id' at row 1
    at Query.formatError (C:\node-univjobs-back\forest\node_modules\sequelize\lib\dialects\mysql\query.js:175:14)
    at Query._callback (C:\node-univjobs-back\forest\node_modules\sequelize\lib\dialects\mysql\query.js:49:21)
    at Query.Sequence.end (C:\node-univjobs-back\forest\node_modules\mysql\lib\protocol\sequences\Sequence.js:86:24)
    at Query.ErrorPacket (C:\node-univjobs-back\forest\node_modules\mysql\lib\protocol\sequences\Query.js:94:8)
    at Protocol._parsePacket (C:\node-univjobs-back\forest\node_modules\mysql\lib\protocol\Protocol.js:280:23)
    at Parser.write (C:\node-univjobs-back\forest\node_modules\mysql\lib\protocol\Parser.js:74:12)
    at Protocol.write (C:\node-univjobs-back\forest\node_modules\mysql\lib\protocol\Protocol.js:39:16)
    at Socket.<anonymous> (C:\node-univjobs-back\forest\node_modules\mysql\lib\Connection.js:109:28)    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:266:12)
    at readableAddChunk (_stream_readable.js:253:11)
    at Socket.Readable.push (_stream_readable.js:211:10)
    at TCP.onread (net.js:587:20)

Context

I’m hoping that I’ve just configured something wrong with my sequelize relationships. Here’s what the two relevant models look like.

My Question model:

module.exports = function(sequelize, DataTypes) {
  const Question =  sequelize.define('question', {
    question_id: {
      type: DataTypes.INTEGER(11),
      primaryKey: true,
      autoIncrement: true
    },
    job_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: false,
      references: {
        model: 'job',
        key: 'job_id'
      },
      onDelete: 'cascade',
      onUpdate: 'cascade'
    },
    question_type_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      references: {
        model: 'lists_question_types',
        key: 'question_type_id'
      }
    },
    is_premium_question: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      default: 0
    },
    text: {
      type: DataTypes.STRING(160),
      allowNull: false
    }
  },{
    timestamps: true,
    underscored: true, // force createdAt, updatedAt => created_at, updated_at
    tableName: 'question',
    instanceMethods: {

    }
  });

  Question.associate = (models) => {
    Question.belongsTo(models.Job, { foreignKey: 'job_id', targetKey: 'job_id', as: 'Job' })
    Question.belongsTo(models.ListsQuestionTypes, { foreignKey: 'question_type_id', targetKey: 'question_type_id', as: 'QuestionType' })
  }

  return Question;
};

My Job model

const Job =  sequelize.define('job', {
    job_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      autoIncrement: true,
      primaryKey: true
    },
    employer_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      references: {
        model: 'employer',
        key: 'employer_id'
      },
      onDelete: 'cascade',
      onUpdate: 'cascade'
    },
    title: {
      type: DataTypes.STRING(30),
      allowNull: false
    }
  },{
    timestamps: true,
    underscored: true,
    tableName: 'job'
  });

Job.associate = (models) => {
    Job.hasMany(models.Question, { as: 'Questions', foreignKey: 'job_id', sourceKey: 'job_id' })
}
  • Package Version: 2.4.2
  • Express Version: 4.13.4
  • Sequelize Version: 3.24.8
  • Database Dialect: MySQL
  • Database Version:
Updated 19/02/2018 07:23 2 Comments

openebs provisioner should not set the namespace to default

openebs/openebs

The current logic of fetching is shown below: go namespace := os.Getenv("OPENEBS_NAMESPACE") if namespace == "" { namespace = "default" } However, it will be ideal to use the namespace under which the provisioner is running than setting it to default. Refer to K8s Downward API

In production, users will not be using default namespace. Users will have a dedicated namespace & service account for openebs components i.e. maya api server, openebs provisioner, maya api server service, and future ones.

Updated 19/02/2018 06:45

Help Wanted

ErdeneJ/MyAuthApp-1.0.0

Dear Githubbers, I am a total newbie in need of some help and guidance. Please forgive me if I am being ridiculous. I’ve cloned this app here on Github, played around with it a bit because I think it was outdated and got it to work …almost. Currently, the ng serve is serving it if I remove the refs to Assets/images in login.components.css. If I add them, it won’t serve. What’s wrong with the refs? Also, I invite a few experienced guys to give me some guidance and help with tackling this project as well as running it. I am totally new to Github and I could be doing it all wrong, guidance on running this project is very welcome. Thank you in advance.

Updated 19/02/2018 06:15

content: Products: Add

Matthew-OCM/Canbotics-Smithy

Currently the products are light in several categories. New products need to be added - and their associated copy/images generated - in the below segments/categories:

Weapons:

Melee Weapons:

  • [ ] Axe(s)
  • [ ] Pole(s)

Ranged Weapons:

  • [ ] Sling(s)
  • [ ] Gun(s)

Magic Weapons:

  • [ ] Wand(s)
  • [ ] Staff(s)
  • [ ] Book(s)

Armour

  • [ ] Light Armour
  • [ ] Medium Armour
  • [ ] Heavy Armour
  • [ ] Shields
Updated 19/02/2018 04:38

content: Products: Copy

Matthew-OCM/Canbotics-Smithy

Create actual content for all current products:

Phase 1

Weapons:

  • [ ] gladius
  • [ ] xiphos
  • [ ] claymore
  • [ ] scimitar
  • [ ] katana
  • [ ] bo
  • [ ] spear
  • [ ] axe
  • [ ] shortbow
  • [ ] longbow
  • [ ] crossbow

Phase 2

Weapons:

  • [ ] slingshot
  • [ ] flintlock
  • [ ] hammer
  • [ ] shillelagh
  • [ ] necronomicon

Armour:

  • [ ] robe

Phase 3:

TBD

Updated 19/02/2018 04:37

Better scaling for eimages

LSSTDESC/desc-exp-checker

The current scaling is just a simple median subtraction that was written under extreme time pressure during the last 3 minutes of a hack day. It is not optimal for the rapidly varying sky brightness at the edges of the eimages and could be improved with minimal effort (maybe a 2.5 to 97.5 percentile?).

The median code is here and is applied here.

Updated 19/02/2018 03:31

Fork me on GitHub