Gstreamer failing for Windows producer

Hello,
We have followed the following steps to build the library:
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
mkdir build64
cd build64
set PKG_CONFIG_PATH=C:\gstreamer\1.0\x86_64\lib\pkgconfig
cmd.exe /c cmake -G "NMake Makefiles" ..
cmake -G "NMake Makefiles" -DBUILD_TEST=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE ..
nmake
Please notice that in order for the compilation process for X64 on Debug to finish correctly, we needed to include some DLLs generated in a different folder: "open-source\local\bin". Specifically, the files that we  had to copy were "libcurl-d.dll" and "log4cplusD.dll". After copying both files to the build folder the samples could be called without any exception.
At this point,  we have detected that the gstreamer pipeline crashes using the default settings. You can find attached the log file called 'win64 run test audio_video_sample.txt'
I would appreciate your help on this issue. Thanks!
win64 run test audio_video_sample.txt

@aeperaltan I am not sure why your GStreamer errors out.
(kvs_gstreamer_audio_video_sample.exe:12472): GLib-GObject-CRITICAL **: 15:37:02.800: g_object_set: assertion 'G_IS_OBJECT (object)' failed
You will need to get some debug logs from GStreamer by setting GST_DEBUG=4 environment variable.

Hi @MushMal ,
I have tried this situation with GST_DEBUG=4 and the errors seem to be related with some of the elements created for the pipeline.
Here is the log file:
gstreamer_run_error.txt
I have installed the development version of gstreamer 1.16.2
Hope it helps.

@JuanCarlos-Arce you need to install plugin base as well as some of the plugins like good and bad
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-capsfilter.html

Hi @MushMal
I have reinstalled gstreamer for windows from https://gstreamer.freedesktop.org/download/ with a complete installation but these plugins are not available. Is there any external package that we need to install after gstreamer ?
Sorry if it's an obvious question, but I haven't seen any documentation about how to install those plugins.

Hey @JuanCarlos-Arce can you re-run both installers and choose 'Full Installation'
I will update the docs to call that out also!

I believe you need to download the MSI executable for Windows (dev) and should choose an option of install all. @Sean-Der bit me to it!

Hi @Sean-Der and @MushMal .
I have installed again both installers with "full installation" and after building again the library, the results are the same. I have used gstreamer v1.16.2.
I don't know if it's related to this issue, but for this test I have set the environment variable "GSL_PLUGIN_PATH" for the folder "C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0"

Please provide guidance on how to proceed. Thanks!!

OK, what's the latest on this issue?

Has the GStreamer for Windows been installed? Recommend installing the latest dev with FULL installation as that's what's installing the plugins too
Set the GST_PLUGIN_PATH
The gstreamer_run_error.txt contains a single failure of not finding capsfilter filter. This points to the plugins and plugins base not being installed.

While I understand that this is a pressing issue, we are also trying to find some remedies from GStreamer forums when something fails. Generally, on our Windows installation we can't reproduce some of the install issues.

Hi @MushMal ,
At the moment I have reinstalled both installers with "Full Installation" and I have several environment variables pointing to GStreamer folders:

GST_PLUGIN_PATH: C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0
GSTREAMER_1_0_ROOT_X86_64: C:\gstreamer\1.0\x86_64\
GSTREAMER_INCDIR: C:\gstreamer\1.0\x86_64\include\gstreamer-1.0
GSTREAMER_LIBDIR: C:\gstreamer\1.0\x86_64\lib

And I have generated a complete list with the files installed on gstreamer folder, maybe you can check if there is any difference between your installation and ours.
gstreamer_files.txt

@JuanCarlos-Arce I don't have a Windows machine handy right now to check. Meanwhile, could you please take a look at the way the TravisCI runs install Windows specific GStreamer: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/.travis.yml#L107-L115
The build can provide some more insights:
https://travis-ci.com/github/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/jobs/343049270#L52-L139

@aeperaltan , @JuanCarlos-Arce ,
What is the latest on the issue?

Hi @disa6302 , @MushMal ,
I have installed gstreamer from chocolatey as your CI machine does and I have updated the environment variable GST_PLUGIN_PATH to point the build folder as the documentation in here  suggests, and the compilation process continues working fine.
I also have checked the information that @MushMal has sent me about the travis-ci configuration and I have checked that all the tests run by the CI-Machine fail and throw errors.
Also the CI machine compiles the example kvs_gstreamer_audio_video_sample but it doesn't run it to check if it works or not ( it's the one that I have used to test the library )
Please, could you review if this example runs correctly on this CI Machine ?

@JuanCarlos-Arce if you are getting the same error then something is odd with the pipeline. Could you perhaps try gst-launch with your pipeline but without kvs in it. You might want to stabilize the GStreamer pipeline first. Sorry, I am unable to reproduce this locally.

Hi @MushMal ,
I have found the issue with GStreamer, the library generates a bin file with the register of all the available plugins, it seems that there was an issue with the first installation and I had to erase that file to generate it again with the complete installation and now all the plugins works as expected.
On the another hand, as I wrote previously, I have checked that your CI Machine is throwing errors on the CMake configuration step.
https://travis-ci.com/github/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/jobs/343049270#L52-L139
Thanks

@JuanCarlos-Arce this particular issue was opened to track build issues on the Windows platform which seem to be OK for you. I am not sure what the TravisCI issues you are having - perhaps this is something on your environment?

Hi @MushMal,
Please, check that the URL that I have posted is your own travis machine. You are having the same building issue on your Windows machine since a long time. The building process is failing with several compilation and linking errors but your TravisCI Machine returns that the process has been completed correctly.

I have the following in the link you've provided:
$ choco install nasm strawberryperl gstreamer
Chocolatey v0.10.15
Installing the following packages:
nasm;strawberryperl;gstreamer
By installing you accept licenses for the packages.
Progress: Downloading nasm 2.14.02... 100%
nasm v2.14.02 [Approved]
nasm package files install completed. Performing other installation steps.
Downloading nasm 64 bit
from 'https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/nasm-2.14.02-installer-x64.exe'
Progress: 100% - Completed download of C:\Users\travis\AppData\Local\Temp\chocolatey\nasm\2.14.02\nasm-2.14.02-installer-x64.exe (933.77 KB).
Download of nasm-2.14.02-installer-x64.exe (933.77 KB) completed.
Hashes match.
Installing nasm...
nasm has been installed.
The install of nasm was successful.
Software installed as 'exe', install location is likely default.
Progress: Downloading StrawberryPerl <IP_ADDRESS>... 100%
StrawberryPerl v<IP_ADDRESS> [Approved]
strawberryperl package files install completed. Performing other installation steps.
Downloading strawberryperl 64 bit
from 'http://strawberryperl.com/download/<IP_ADDRESS>/strawberry-perl-<IP_ADDRESS>-64bit.msi'
Progress: 100% - Completed download of C:\Users\travis\AppData\Local\Temp\chocolatey\StrawberryPerl\<IP_ADDRESS>\strawberry-perl-<IP_ADDRESS>-64bit.msi (101.61 MB).
Download of strawberry-perl-<IP_ADDRESS>-64bit.msi (101.61 MB) completed.
Hashes match.
Installing strawberryperl...
strawberryperl has been installed.
strawberryperl may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv).
The install of strawberryperl was successful.
Software installed to 'C:\Strawberry'
Progress: Downloading gstreamer <IP_ADDRESS>00527... 100%
gstreamer v<IP_ADDRESS>00527 [Approved]
gstreamer package files install completed. Performing other installation steps.
Downloading gstreamer 64 bit
from 'https://gstreamer.freedesktop.org/data/pkg/windows/1.16.2/gstreamer-1.0-msvc-x86_64-1.16.2.msi'
Progress: 100% - Completed download of C:\Users\travis\AppData\Local\Temp\chocolatey\gstreamer\<IP_ADDRESS>00527\gstreamer-1.0-msvc-x86_64-1.16.2.msi (91.27 MB).
Download of gstreamer-1.0-msvc-x86_64-1.16.2.msi (91.27 MB) completed.
Hashes match.
Installing gstreamer...
gstreamer has been installed.
PATH environment variable does not have %GSTREAMER_1_0_ROOT_X86_64%\bin in it. Adding...
gstreamer may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv).
The install of gstreamer was successful.
Perhaps we are talking about something that was broken prior or something? Do you have the latest commits? Clean?

Hi @MushMal ,
Please, scroll down on the same page until the building process are run (line 1334)  and you can check that the windows platform on your CI Machine throws errors like:
LINK : fatal error LNK1181: cannot open input file 'crypto\aes\aes_cbc.obj' -- Configuring incomplete, errors occurred! See also "C:/Users/travis/build/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeOutput.log". -- Kinesis Video PIC path is C:/Users/travis/build/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/amazon-kinesis-video-streams-pic/ -- Kinesis Video C Producer path is C:/Users/travis/build/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/amazon-kinesis-video-streams-producer-c/ -- Kinesis Video WebRTC Client path is C:/Users/travis/build/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp -- dependencies install path is C:/Users/travis/build/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/open-source -- Begin building dependencies. -- Configuring done -- Generating done -- Build files have been written to: C:/Users/travis/build/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/liblog4cplus Scanning dependencies of target project_log4cplus [ 11%] Creating directories for 'project_log4cplus' [ 22%] Performing download step (git clone) for 'project_log4cplus' NMAKE : fatal error U1077: 'link' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'echo' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop. CMake Error at open-source/amazon-kinesis-video-streams-producer-c/CMake/Utilities.cmake:59 (message):   CMake step for libopenssl failed: 2 Call Stack (most recent call first):   open-source/amazon-kinesis-video-streams-producer-c/CMakeLists.txt:78 (build_dependency)
There are more errors reported and all the tests fail because the binaries are not created, but it seems that the CI machine doesn't detect this errors in the report resume.

Thanks, indeed, just saw this linker error. I am now wondering how the final library gets linked together. We will certainly take a deeper look at this.

NOTE to the reader (as this thread is quite long). Seems that the OpenSSL crypto library is failing to link.
LINK : fatal error LNK1181: cannot open input file 'crypto\aes\aes_cbc.obj'

Need to understand what's causing OpenSSL build to fail on Windows platform
Need to understand how we end up with linking the c producer library at the end.

Should I expect an answer or any help on this? I opened a support case and was instructed to use GitHub... used GitHub and nothing!!!

@aeperaltan as these not assets owned by us (these are third party open-source components that fail building on Windows) we can't give any answers. Will update ASAP - the builds are running now

@aeperaltan as these not assets owned by us (these are third party open-source components that fail building on Windows) we can't give any answers. Will update ASAP - the builds are running now

Can you give this a try? https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/pull/584/commits/8c17d27f2d7d6b47a70d489e76bf1124eb8a019c

Resolving due to inactivity


Text change on Finalize tab

Change the following text and icon for clarity:
"In order to make your plan visible you must have completed the following:
Complete: answered at least 50% of questions on the Write Plan panel
Incomplete: plan is not flagged as a mock project on the Project Details panel"
TO:
"In order to make your plan visible you must:
Complete: have answered at least 50% of questions on the Write Plan panel
Complete: make sure the plan is not flagged as a mock project on the Project Details panel"

@mariapraetzellis , please see my suggested changes to the text & revise if needed.


Add Jiralert app to Security Pack

This PR:

adds Jiralert app to the security-pack
updates starboard-exporter to 0.4.1

Testing
Description on how security-pack can be tested.

[ ] fresh install works

[ ] AWS
[ ] Azure
[ ] KVM

[ ] upgrade from previous version works

[ ] AWS
[ ] Azure
[ ] KVM

Checklist

[x] Update changelog in CHANGELOG.md.
[ ] Make sure values.yaml and values.schema.json are valid.

@stone-z , I also bumped starboard-exporter if thats okay
We will need to promote jiralert to the Giantswarm catalog.
Also not sure if chartName should be jiralert-app or just jiralert

Updated the schema


rac-3775 need logger-name in log-line

This adds tests and code to include the following new data in each log-line:

the logger name that originated the message, such as 'infra.run' and so-on
the log-type stream-source's test-case-number (test_block.test_number), which is currently only in the special start/stop messages
the test-name being executed.

Note that the test-name being part of every line unblocks the story to allow a user to say "turn up the logging on THIS test and this test ONLY to 11"...
Changes done to make this happen:

added test-name, test-case-number, and name to infra-logging
adjusted stream_monitor to callout to handle_before_test, handle_after_test, and made the callout method a common one that checks for the attribute before calling
added the following to the log_type stream-source:
** added a utility method to set what test is being run and the current log-type based test-case-number to all infralogging loggers
** adjusted existing start_test and stop_test to call the new utility method
** added handlers for before_test and after_test that also call the new utility method
Note: the test-case-number includes a prefix character saying where in the test-case life-cycle things are. '+' for before test (basically setup), '>' for during, '-' for teardown, and '*' for outside of any test.
Change in 'test' directory to support testing this:
** log_stream_helper go a new pile of check methods to do these formating validations (this also addresses technical debt in full line-format validation)
** Moved the base of the _OutputScannerBase from test_logopts.py into plugin_test_helper as _BaseLogOutScannerBase with associated resolve_logoutput_scanner_helper_class() module call.
** Changed test_logopts.py to use the new resolve_logoutput_scanner_helper_class() based class
** added test/test_log_stream_fmat.py with FullLineFormatChecker based on resolve_logoutput_scanner_helper_class() that coodinates checks of the contents of each logger file (or stderr)

Also had to make a few changes for python2/3 compatability (hound appears to have started using python3)
A sample of logfile-lines:
2017-02-22 11:24:47,948 DEBUG    Start Of Test Block: 45                                                                   infra.data
2017-02-22 11:24:47,950 DEBUG   +45.01 - STARTING TEST: [runTest (test_log_stream_fmat.TC)]                                infra.data
2017-02-22 11:24:47,951 INFO    MATCH-FMAT-START infra.data MATCH-FMAT-END                                                 infra.data >45.01 88250 MainProcess stream-monitor/test/test_log_stream_fmat.py:runTest@19 gl-main [runTest (test_log_stream_fmat.TC)]
2017-02-22 11:24:47,953 DEBUG   -45.01 - ENDING TEST: [runTest (test_log_stream_fmat.TC)]                                  infra.data

Remember that the "Start Of Test Block", "STARTING TEST:", and "ENDING TEST" "bracket" all message FROM the given test.
@RackHD/corecommitters @hohene @diontje @gpaulos

BUILD RackHD #1385 : UNSTABLE

** BUILD Install-Ubuntu-14-04  #712: SUCCESS
** BUILD SmokeTest-FIT  #749: SUCCESS
** BUILD SmokeTest-CIT  #943: UNSTABLE
** BUILD Install-CentOs-6.5  #734: SUCCESS

BUILD SmokeTest-CIT  #943  Error Logs  ▼Test Name: test_node_workflows_del_active
Error Details: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Content-Length': '86', 'X-Powered-By': 'Express', 'X-Warning': 'Deprecated API', 'Connection': 'keep-alive', 'ETag': 'W/"56-6cwmuEFBey6dLrbU/jLDJw"', 'Date': 'Wed, 22 Feb 2017 18:14:55 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Request Timed Out (on.task-graph-runner:methods.cancelTaskGraph:Object)."}
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/nodes
--------------------- >> end captured logging << ---------------------
Stack Trace:   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/home/jenkins/workspace/Templates/SmokeTest-CIT/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/home/jenkins/workspace/Templates/SmokeTest-CIT/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/home/jenkins/workspace/Templates/SmokeTest-CIT/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/Templates/SmokeTest-CIT/RackHD/test/tests/api/v1_1/nodes_tests.py", line 396, in test_node_workflows_del_active
raise e
'(500)\nReason: Internal Server Error\nHTTP response headers: HTTPHeaderDict({'Content-Length': '86', 'X-Powered-By': 'Express', 'X-Warning': 'Deprecated API', 'Connection': 'keep-alive', 'ETag': 'W/"56-6cwmuEFBey6dLrbU/jLDJw"', 'Date': 'Wed, 22 Feb 2017 18:14:55 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})\nHTTP response body: {"message":"Request Timed Out (on.task-graph-runner:methods.cancelTaskGraph:Object)."}\n\n-------------------- >> begin captured logging << --------------------\nurllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/nodes\n--------------------- >> end captured logging << ---------------------'

test his please

test this please

@johren to provide one more reviewer and merge please :)


Error in Docker Managed IPAM Plugin

I have created a sample docker IPAM plugin to test the plugin interface. https://github.com/ishantt/docker-ipam-plugin .This works fine if I run in legacy mode i.e. spawning a external container.  But If a create a Docker Managed plugin (v2 plugin) then it gives error .
dial unix /run/docker/plugins/sdip.sock: connect: no such file or directory
$ docker plugin enable ishant8/sdip

$ tailf /var/log/syslog

May 21 23:10:01 omega dockerd[1993]: time="2017-05-21T23:10:01+05:30" level=info msg="time=\"2017-05-21T17:40:01Z\" level=info msg=\"Starting Docker IPAM Plugin\" " plugin=408bdafe68205f22c98b432901952408d9aa6f31be668b9f59e0252843b72174
May 21 23:10:01 omega dockerd[1993]: time="2017-05-21T23:10:01+05:30" level=info msg="time=\"2017-05-21T17:40:01Z\" level=info msg=\"Listening on socket /run/docker/plugins/sdip.sock\" " plugin=408bdafe68205f22c98b432901952408d9aa6f31be668b9f59e0252843b72174
May 21 23:10:01 omega dockerd[1993]: time="2017-05-21T23:10:01+05:30" level=info msg="time=\"2017-05-21T17:40:01Z\" level=info msg=\"GetCapabilities called\" " plugin=408bdafe68205f22c98b432901952408d9aa6f31be668b9f59e0252843b72174
May 21 23:10:01 omega dockerd[1993]: time="2017-05-21T23:10:01+05:30" level=info msg="time=\"2017-05-21T17:40:01Z\" level=info msg=\"GetDefaultAddressSpaces called\" " plugin=408bdafe68205f22c98b432901952408d9aa6f31be668b9f59e0252843b72174
May 21 23:10:01 omega dockerd[1993]: time="2017-05-21T23:10:01+05:30" level=info msg="time=\"2017-05-21T17:40:01Z\" level=info msg=\"Returing response LocalDefaultAddressSpace: LOCAL, GlobalDefaultAddressSpace: GLOBAL\" " plugin=408bdafe68205f22c98b432901952408d9aa6f31be668b9f59e0252843b72174

$ docker network create --ipam-driver sdip net2
Error response from daemon: Post http://%2Frun%2Fdocker%2Fplugins%2Fsdip.sock/IpamDriver.RequestPool: dial unix /run/docker/plugins/sdip.sock: connect: no such file or directory

May 21 23:25:42 omega dockerd[1993]: time="2017-05-21T23:25:42.206679177+05:30" level=warning msg="Unable to connect to plugin: /run/docker/plugins/sdip.sock/IpamDriver.RequestPool: Post http://%2Frun%2Fdocker%2Fplugins%2Fsdip.sock/IpamDriver.RequestPool: dial unix /run/docker/plugins/sdip.sock: connect: no such file or directory, retrying in 1s"
May 21 23:25:43 omega dockerd[1993]: time="2017-05-21T23:25:43.208054113+05:30" level=warning msg="Unable to connect to plugin: /run/docker/plugins/sdip.sock/IpamDriver.RequestPool: Post http://%2Frun%2Fdocker%2Fplugins%2Fsdip.sock/IpamDriver.RequestPool: dial unix /run/docker/plugins/sdip.sock: connect: no such file or directory, retrying in 2s"
May 21 23:25:45 omega dockerd[1993]: time="2017-05-21T23:25:45.209120344+05:30" level=warning msg="Unable to connect to plugin: /run/docker/plugins/sdip.sock/IpamDriver.RequestPool: Post http://%2Frun%2Fdocker%2Fplugins%2Fsdip.sock/IpamDriver.RequestPool: dial unix /run/docker/plugins/sdip.sock: connect: no such file or directory, retrying in 4s"
May 21 23:25:49 omega dockerd[1993]: time="2017-05-21T23:25:49.210663653+05:30" level=warning msg="Unable to connect to plugin: /run/docker/plugins/sdip.sock/IpamDriver.RequestPool: Post http://%2Frun%2Fdocker%2Fplugins%2Fsdip.sock/IpamDriver.RequestPool: dial unix /run/docker/plugins/sdip.sock: connect: no such file or directory, retrying in 8s"
May 21 23:25:57 omega dockerd[1993]: time="2017-05-21T23:25:57.212136134+05:30" level=error msg="Handler for POST /v1.27/networks/create returned error: Post http://%2Frun%2Fdocker%2Fplugins%2Fsdip.sock/IpamDriver.RequestPool: dial unix /run/docker/plugins/sdip.sock: connect: no such file or directory"

On docker Host
$ docker plugin ls
ID                  NAME                  DESCRIPTION                     ENABLED
f958844bc68c        ishant8/sdip:latest   Sample IPAM plugin for Docker   true
$ ls -l /run/docker/plugins
total 0
drwx------ 2 root root 60 May 21 23:19 f958844bc68ca9eddea8b064977e1c9da644c597d4f2b46344431c1d97bfbfaf
$ ls -l /run/docker/plugins/f958844bc68ca9eddea8b064977e1c9da644c597d4f2b46344431c1d97bfbfaf
total 0
srw-rw---- 1 root root 0 May 21 23:19 sdip.sock

Steps to reproduce:

git clone http://github.com/ishantt/docker-ipam-plugin
cd  docker-ipam-plugin
make all
docker network create --ipam-driver sdip net1

Docker Version:
$ docker version
Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:14:09 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:14:09 2017
 OS/Arch:      linux/amd64
 Experimental: false

docker info:
$ docker info
Containers: 10
 Running: 0
 Paused: 0
 Stopped: 10
Images: 7
Server Version: 17.03.1-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 30
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-62-generic
Operating System: Ubuntu 16.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 4.712 GiB
Name: omega
ID: 6PMZ:P2FI:KOYB:2AS3:6NWN:YG5L:ZXUZ:YIJR:6DWX:VRVG:W4QD:6V7D
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

After Restarting the docker engine and creating network again
$ docker network create --ipam-driver sdip net2
Error response from daemon: legacy plugin: plugin not found

$ tailf /var/log/syslog
May 22 08:50:11 omega dockerd[18099]: time="2017-05-22T08:50:11.658751241+05:30" level=warning msg="Unable to locate plugin: sdip, retrying in 1s"
May 22 08:50:12 omega dockerd[18099]: time="2017-05-22T08:50:12.659499230+05:30" level=warning msg="Unable to locate plugin: sdip, retrying in 2s"
May 22 08:50:14 omega dockerd[18099]: time="2017-05-22T08:50:14.662269520+05:30" level=warning msg="Unable to locate plugin: sdip, retrying in 4s"
May 22 08:50:18 omega dockerd[18099]: time="2017-05-22T08:50:18.664706981+05:30" level=warning msg="Unable to locate plugin: sdip, retrying in 8s"
May 22 08:50:26 omega dockerd[18099]: time="2017-05-22T08:50:26.666627444+05:30" level=error msg="Handler for POST /v1.27/networks/create returned error: legacy plugin: plugin not found"

Looks like issue is with the code here
https://github.com/moby/moby/blob/master/pkg/plugins/discovery.go#L62
socketpaths := pluginPaths(socketsPath, name, ".sock")
func pluginPaths(base, name, ext string) []string {
	return []string{
		filepath.Join(base, name+ext),
		filepath.Join(base, name, name+ext), <---**This returns name instead of ID**
	}
}

socketpaths with have two paths for the socket 1)  /run/docker/plugins/sdip.sock  2) /run/docker/plugins/sdip/sdip.sock
But the socket is created in the path /run/docker/plugins/< container id >/sdip.sock
$ ls -l /run/docker/plugins/f958844bc68ca9eddea8b064977e1c9da644c597d4f2b46344431c1d97bfbfaf
total 0
srw-rw---- 1 root root 0 May 21 23:19 sdip.sock

Looks like issue in Moby. Raised the same issue in Moby #33347

@ishantt I think we determined the solution for this in Docker Community slack a couple days ago. I've been able to use your plugin fine, and I think the issue was not specifying the full "ishant8/sdip:latest" in the --ipam-driver. Can this be closed?

@eyz yes using full name "ishant8/sdip:latest" worked. I was again and again trying to create with the name "ishant8/sdip" as given in docs ( https://docs.docker.com/engine/extend/#installing-and-using-a-plugin ) and it was failing. Maybe this needs a doc change.
Anyways I am happy to close this .


Feature Request: Support autocomplete

Would it be possible to support the input attribute autocomplete="tel" as part of the PhoneInput API? Our other form fields support autocomplete functionality, but since we use react-international-phone, we cannot get the autocomplete functionality with the phone number fields.

Yes please allow this feature, we also need it for our project


Fix install option for kube easy certs

Description of changes
Updated the pre-start script for cfssl to use install -o instead of install -u as -u is not an actual option for install
https://linux.die.net/man/1/install
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I'm locking and closing this pull request, because through the rebase you inadvertently requested many maintainers for review, which subscribed them to update notifications, resulting in unnecessary spam inside everyone's inbox. While we can remove their review requests, we sadly cannot unsubscribe anyone.
Please create a new pull request and for the next time remember to set your PR to draft status before rebasing. In draft status, you can preview the list of maintainers that are about to be requested for review, which allows you to sidestep this issue.


Break out SPI commands into own file

Simplified receiver SPI command function.

So I've got this one already in this commit but I'm keen to move those out further.

If i remember correctly the current code is just bit-banging out the commands and does not even need the SPI library. That said the bit-banging code is very dirty haha.

Yep, I was wondering if I could maybe simplify by just using whatever Arduino has already but it turns out bit banging is totally spot on. I tidied it up a bit at least. :)

https://github.com/sheaivey/rx5808-pro-diversity/pull/106/commits/1dbce46f2668854827628454ae9300d1de69cf8e
Moved these out a bit more now --- not sure if calling the broken out files "driver" is the best bet since the other file still deals with RSSI reads etc. Bit nicer though!

Closing this as I think they've been moved!


fine grained cache control

Allow fine grained cache control.  This code is not tested, just a starting point of the design I had in mind.  I feel like it may just work right away anyway though, it's simple enough.

@nganju98 added some tests (they all pass with your code after adding a few helpers). This look like about what you'd expect?

Yep looks good!


Fixed broken Docker linux installation link.

This link is broken. Updated to the latest.

Automated message from Dropbox CLA bot
@akashnimare, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @akashnimare for noticing and fixing!


tortoise: fix counting weight for late block

previous "fast" solution wasn't counting abstain votes correctly

bors try

bors try

bors try

bors merge

bors merge


Statistics endpoint

ENSVAR-6219

Hi @azangru,
The order of the population in the EV are currently as follows -

1000 Genomes 2. gnomAD genomes 3. gnomAD exomes

How this order is derived currently? The RAF or the representative population allele frequency we are providing here in the statistics endpoint and which should be shown in the lozenge are from gnomAD.

So, it might be better to update the order like this - 1. gnomAD genomes 2. gnomAD exomes 3. 1000 Genomes

I am curious about the proposed schema for the variant statstics query:
  count_transcript_consequences: Int!
  count_overlapped_genes: Int!
  count_regulatory_consequences: Int!
  counts_variant_phenotypes: [VariantAlleleStatisticsInt]!
  counts_gene_phenotypes: [VariantAlleleStatisticsInt]!
  count_citations: Int!
  representative_population_allele_frequency: [VariantAlleleStatisticsFloat]!

This suggests that some of these fields are not going to be allele-specific. For example, that all alleles of a variant will have the same number of transcript consequences. Is this correct? A reference allele doesn't have any transcript consequences at all; but among alternative alleles, can't they have a different count of transcript consequences if e.g. they have different lengths?
Also, you are currently identifying alleles using allele names (SPDI's). Remember we mentioned earlier that it would be helpful for the website if alleles were identified by something short and unique within a variant? Currently, the website uses the indexes of alleles in the array of alleles to identify the allele. Could you revive this topic in the Variation team and see if you could come up with an identifier to put in allele.id field that we can use?

Also, you are currently identifying alleles using allele names (SPDI's). Remember we mentioned earlier that it would be helpful for the website if alleles were identified by something short and unique within a variant? Currently, the website uses the indexes of alleles in the array of alleles to identify the allele. Could you revive this topic in the Variation team and see if you could come up with an identifier to put in allele.id field that we can use?

Hi @azangru, does it help if we maintain the same order of alleles always? I am trying to understand the use case better. Is this allele id useful in matching alleles for the stats endpoint?

This suggests that some of these fields are not going to be allele-specific. For example, that all alleles of a variant will have the same number of transcript consequences. Is this correct? A reference allele doesn't have any transcript consequences at all; but among alternative alleles, can't they have a different count of transcript consequences if e.g. they have different lengths?

I agree with reporting the count for each variant allele as the design requires reporting at a variant allele level. While the data would only be available after the next run, we are making changes to the API to return the intended schema for fields which were previously reported at variant level (however shows the same value for all the variant alleles until the data is ready). The counts for reference allele are 0 for transcript_consequences, regulatory_consequences, citations, overlapped_genes. Would it be better if the API explicitly reported that for reference allele?

The counts for reference allele are 0 for transcript_consequences, regulatory_consequences, citations, overlapped_genes. Would it be better if the API explicitly reported that for reference allele?

If these counts are allele-specific (e.g. one alt allele may have counts that are different from other alt allele), then yes, I think the right thing would be to also include the zeros for the reference allele.
It these counts are variant-specific (i.e. the same across all alt alleles and only 0 for reference), then it is worth having two different statistics resolvers — one at the variant level, with variant-specific statistics data, and one at the allele level, with allele-specific statistics.
Looking at the design mockup, it seems like it distinguishes variant statistics from allele statistics (reference allele still shows non-zero values under the navigation buttons in the mockup); but I do not know the specifics of your data. I'll put this on the agenda for discussion.

Superseded by https://github.com/Ensembl/ensembl-hypsipyle/pull/44


Exercises to implement

If you want to implement an exercise, please

create an issue naming the exercise and assign it to yourself (or ask that it be assigned to you)
read the suggested procedure for porting an exercise

Practice exercises

[ ] acronym
[ ] affine-cipher
[ ] all-your-base
[ ] alphametics
[x] anagram
[ ] armstrong-numbers
[x] atbash-cipher
[x] beer-song
[ ] binary-search
[ ] binary-search-tree
[x] bob
[ ] book-store
[ ] bowling
[ ] change
[ ] circular-buffer
[ ] clock
[x] collatz-conjecture
[ ] complex-numbers
[ ] connect
[ ] crypto-square
[ ] custom-set
[x] darts
[ ] diamond
[ ] difference-of-squares
[ ] diffie-hellman
[ ] dominoes
[ ] dot-dsl
[ ] error-handling
[x] etl
[x] flatten-array
[ ] food-chain
[x] forth
[x] gigasecond
[ ] go-counting
[ ] grade-school
[ ] grep
[x] hamming
[x] hello-world
[ ] high-scores
[ ] house
[ ] isbn-verifier
[x] isogram
[ ] killer-sudoku-helper
[ ] kindergarten-garden
[x] knapsack
[ ] largest-series-product
[x] leap
[ ] lens-person
[ ] linked-list
[ ] list-ops
[x] luhn
[ ] matching-brackets
[ ] matrix
[x] meetup
[ ] micro-blog
[ ] minesweeper
[x] nth-prime
[x] nucleotide-count
[ ] ocr-numbers
[ ] palindrome-products
[ ] pangram
[ ] pascals-triangle
[ ] perfect-numbers
[ ] phone-number
[ ] pig-latin
[ ] poker
[ ] pov
[ ] prime-factors
[x] protein-translation
[x] proverb
[ ] pythagorean-triplet
[ ] queen-attack
[ ] rail-fence-cipher
[x] raindrops
[ ] rational-numbers
[ ] react
[ ] rectangles
[x] resistor-color
[x] resistor-color-duo
[x] resistor-color-trio
[ ] rest-api
[x] reverse-string
[x] rna-transcription
[ ] robot-simulator
[ ] roman-numerals
[ ] rotational-cipher
[x] run-length-encoding
[ ] saddle-points
[x] satellite
[ ] say
[ ] scale-generator
[x] scrabble-score
[x] series
[ ] sgf-parsing
[x] sieve
[ ] simple-cipher
[ ] simple-linked-list
[x] space-age
[ ] spiral-matrix
[x] square-root
[ ] state-of-tic-tac-toe
[ ] strain
[ ] sublist
[ ] sum-of-multiples
[ ] tournament
[x] transpose
[ ] triangle
[ ] twelve-days
[x] two-bucket
[x] two-fer
[ ] word-count
[ ] word-search
[ ] wordy
[ ] yacht
[x] zebra-puzzle
[ ] zipper

Foregone exercises (see the repo README):

allergies
bank-account
dnd-character
grains
hangman
ledger
markdown
paasio
parallel-letter-frequency
robot-name
secret-handshake
tree-building
variable-length-quantity

Some thoughts about error-handling

try-catch
Optional Object Identifier-Index: .foo?

Maybe as a concept exercise?

lens-person

not for lenses, but it's an interesting data structure, and modifying deep bits of it are what jq is for (it's the kind of question that pops up on Stack Overflow all the time)
the test file might be challenging.

Remaining exercises mentioned on Add initial exercises page but not yet implemented

alphametics
binary-search-tree
circular-buffer
clock
diamond
dominoes
high-scores
pov
react
series
spiral-matrix
yacht
zipper

luhn and series added for 12in23:  http://forum.exercism.org/t/select-featured-exercises-for-slimline-september/6927/11


jhiTranslate present even when internationalization is disabled

Hi,
I have just used generator for entity audit for my jhipster project.
I have found an issue: jhiTranslate attribute still present in .html files even though internationalization is disaled on my project. I have seen "if ... then ... else" in .ts files and it works great.

Would you like to do a PR to fix it
On Thu, 26 Apr 2018, 12:08 pm Mulhauser<EMAIL_ADDRESS>wrote:

Hi,
I have just used generator for entity audit for my jhipster project.
I have found an issue: jhiTranslate attribute still present in .html files
even though internationalization is disaled on my project. I have seen "if
... then ... else" in .ts files and it works great.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/hipster-labs/generator-jhipster-entity-audit/issues/89,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlF_i1owz-04rVvVsLD7jLvydGD9Xvks5tsZysgaJpZM4Tk467
.

I’d like to PR but i don’t know how to make the same "if...then...else" on .html file

Is this like .ts file with <%_ ... _%> ?

Yes you can do the same
use <% ... %> if it is inline and <%_ ... _%> if the content is in a newline
Thanks & Regards,
Deepu
On Thu, Apr 26, 2018 at 4:30 PM Mulhauser<EMAIL_ADDRESS>wrote:

Is this like .ts file with <%_ ... _%> ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/hipster-labs/generator-jhipster-entity-audit/issues/89#issuecomment-384661894,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlFxsgwVvkTzi9hpkhnH1L3izI8gxJks5tsdoGgaJpZM4Tk467
.


Server doesn't start

Hello,
im following the steps to run this websocket server.
on php bin/console gos:websocket:server nothing happens no error...nothing
here's my config/packages/gos_web_socket.yaml:
gos_web_socket:
server:
port: 1337        # The port the socket server will listen on
host: <IP_ADDRESS>   # The host ip to bind to
I'm currently on symfony 4.4 and using php 7.3
How can i resolve this issue ?

Run the command with extra verbosity so it will show all messages:
php bin/console gos:websocket:server -vvv

Check your Symfony app logs for any relevant messages
Check to ensure the port is open and able to accept connections

same for me. no response. i have still an symfony 2.2 project and the command /start server works well.
but with symfony 4.4. and php 7.4 no output from server.
cant find any logs.

seems like this bundle is not working anmore. the documentation is not up2date :(

It's working fine, I'm running it in production daily.
I can't explain why you are having issues with getting the server to run.  Generally though, there should be some form of error message and the Symfony Console app would exit if there were an error causing the server to not be launchable.
Once you're run the command, you're stepping through these classes until you reach the upstream code this bundle builds on:

https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/src/Command/WebsocketServerCommand.php - The actual console command being triggered
https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/src/Server/EntryPoint.php - The class that resolves the options from the command and gets the server instance to be executed
https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/src/Server/Type/WebSocketServer.php - Unless you've really gone crazy with customizations, this is the server class that is in charge of booting up the server; once you get to $app->run(); in this file then it's all upstream code from here

If you aren't reaching $app->run(), then generally there's an error in front of it and there should be something pretty clearly noted either in the console output or the Symfony logs.  There isn't anything that is silently absorbing errors in the bundle code, and there isn't anything that I'm aware of in the bundle code that would create some kind of loop where it would get stuck in the bootup sequence (those three files).  Even the "Launching Ratchet on..." message should get logged before getting into the "real" server code.  So I'm inclined to think there is some kind of local environment issue that is keeping you from being able to launch the server, but I don't have the details to work that out.

seems like this bundle is not working anmore. the documentation is not up2date :(

It's working fine, I'm running it in production daily.
I can't explain why you are having issues with getting the server to run. Generally though, there should be some form of error message and the Symfony Console app would exit if there were an error causing the server to not be launchable.
Once you're run the command, you're stepping through these classes until you reach the upstream code this bundle builds on:

https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/src/Command/WebsocketServerCommand.php - The actual console command being triggered
https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/src/Server/EntryPoint.php - The class that resolves the options from the command and gets the server instance to be executed
https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/src/Server/Type/WebSocketServer.php - Unless you've really gone crazy with customizations, this is the server class that is in charge of booting up the server; once you get to $app->run(); in this file then it's all upstream code from here

If you aren't reaching $app->run(), then generally there's an error in front of it and there should be something pretty clearly noted either in the console output or the Symfony logs. There isn't anything that is silently absorbing errors in the bundle code, and there isn't anything that I'm aware of in the bundle code that would create some kind of loop where it would get stuck in the bootup sequence (those three files). Even the "Launching Ratchet on..." message should get logged before getting into the "real" server code. So I'm inclined to think there is some kind of local environment issue that is keeping you from being able to launch the server, but I don't have the details to work that out.

Hi thanks for helping.
i try to provide some more information.
Local Windows 10 enviroment with Apache
PHP 7.4.5
Symfony 4.4
GosBundle 3.4
as is said the same bundle just lower version works well with symfony 2.3
so there shouldnt any restrictions with port or ip.
i can dump something at  line 63 in src\Server\Type\WebSocketServer.php
as you said. eveything before just works fine. no errors, no log.
its just       $app->run();    after that i have no output in console, the cursor is just blinking.
usually i saw somethign like this:
15:42:29 INFO      [websocket] Starting web socket
15:42:29 INFO      [websocket] Launching Ratchet on <IP_ADDRESS>:1337 PID: 3748
if i debug the logger: Its this correct nullhandler?
`
Symfony\Bridge\Monolog\Logger {#200
#name: "websocket"
#handlers: array:1 [
0 => Monolog\Handler\NullHandler {#201
#level: 100
#bubble: false
#formatter: null
#processors: []
}
]
#processors: []
#microsecondTimestamps: true
#exceptionHandler: null
}
`
further more is there any example of send push. i used before
         /** @var PusherInterface $pusher */         $pusher = $this->get('gos_web_socket.pusher.wamp');
but looks like this is deprecated and no longer supported, ca you provide an functional example how to push ?
thank you

#405 has an example of how I replaced the pusher.
Do you have MonologBundle installed?  A configured logger should definitely be injected in, I can't think of a reason off hand why a NullLogger instance would be injected though.  If you debug your container, is it only the websocket logger that's a NullLogger or are other loggers nulled as well?  That would explain the lack of output though.
I haven't done any PHP dev on Windows in 6 or 7 years, so I don't have any good feedback here on debugging if the server actually isn't running.  For now though I'd say find whatever is messing with the logging configuration and fix that as it's going to help in the long run.  Then, if things really aren't running still, check the Ratchet and ReactPHP docs for any pointers they may have (for ReactPHP especially their Socket package as that's ultimately where the server class that actually opens the socket connection for PHP to listen on is coming from).

Ok seems like it worked all the time. just no output atleast not on INFO LVL.  i receive INFO log in other bundles.
after starting the server i receive error messages:
13:37:33 ERROR     [websocket] Unable to find route for myapp/user/1
routing.yaml
myapp_topic:
channel: myapp/user/{user_id}
handler: 'myapp.topic'
requirements:
user_id: '\d+'
gos_websocket.yaml
gos_web_socket:
client:
firewall: main
session_handler: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
server:
port: '%env(int:GOS_WEB_SOCKET_SERVER_PORT)%' # The port the socket server will listen on
host: '%env(GOS_WEB_SOCKET_SERVER_IP)%'       # The host ip to bind to
router:
resources:
- '%kernel.project_dir%/config/pubsub/routing.yaml'
i tried already to create the gos_pubsub conf
gos_pubsub_router:
routers:
websocket: #available from container through gos_pubsub_router.websocket
resources:
- '%kernel.project_dir%/config/pubsub/routing.yaml'
what is wrong ? thank you

You shouldn't need to specify anything for the gos_pubsub_router config, the gos_web_socket.server.router config node automatically merges over to the PubSubRouter config.
Make sure that what you have for a route's handler matches up with your class' getName() method.  The myapp_topic name is similar to a HTTP controller's name.  The myapp.topic that you have for the handler right now should be what your TopicHandler::getName() method returns, since that's how the dispatcher is going to load your class out of the registry that it uses.

You shouldn't need to specify anything for the gos_pubsub_router config, the gos_web_socket.server.router config node automatically merges over to the PubSubRouter config.
Make sure that what you have for a route's handler matches up with your class' getName() method. The myapp_topic name is similar to a HTTP controller's name. The myapp.topic that you have for the handler right now should be what your TopicHandler::getName() method returns, since that's how the dispatcher is going to load your class out of the registry that it uses.

yep thats exactly what i have. the app worked very well with symfony 3.4 after upgrade to 4.4.  i have this problems

Can you share the code of your TopicHandler class?
Also, try running bin/console debug:container --tag=gos_web_socket.topic, this should show all the services that have the right tag, and these all should be injected into the gos_web_socket.registry.topic service (if you run bin/console debug:container gos_web_socket.registry.topic there should be the same number of addTopic calls as there are tagged services).
It may very well be either your topic class is missing the required interface or if you don't have service autowiring enabled then your class' service definition is missing the container tag.

Okay excatly, i ve copied the example of your documentation. i have now 2 topic handlers and two "addTopic" .
looks like it works. since i removed the service conf, because i have autowire and seems its works without any config by myself.
just one bad thing, that i have no response in my console.
just debug notes in dev.log file. i miss the console output. do you have any ideas ?

    handlers:
        main:
            type:  stream
            path:  "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
            channels: '!php'

dev/monolog.log

monolog:
    handlers:
        console:
            type:   console
            process_psr_3_messages: false
            channels: ['!event', '!doctrine', '!myapp']

You might have your Monolog configuration wrong, specifically the monolog.handlers.main.channels node; that should be an array instead of a string IIRC (so use channels: ['!php']).

You might have your Monolog configuration wrong, specifically the monolog.handlers.main.channels node; that should be an array instead of a string IIRC (so use channels: ['!php']).

nope, still same, no output :-(

Not sure where to point you then.  The logger's basically autowired by the MonologBundle, so based on your config it should be printing to console.
The only thing I can think to try is to find the monolog.logger.websocket service in your compiled container (var/cache/dev) and make sure there's a pushHandler call with the monolog.handler.console service on the logger.  Otherwise, something's gone awry with the logger setup and that's outside of this bundle's control (older 1.x and 2.x versions did some explicit config on that logger, but the newer versions are all using the MonologBundle's autowiring logic).

Not sure where to point you then. The logger's basically autowired by the MonologBundle, so based on your config it should be printing to console.
The only thing I can think to try is to find the monolog.logger.websocket service in your compiled container (var/cache/dev) and make sure there's a pushHandler call with the monolog.handler.console service on the logger. Otherwise, something's gone awry with the logger setup and that's outside of this bundle's control (older 1.x and 2.x versions did some explicit config on that logger, but the newer versions are all using the MonologBundle's autowiring logic).

    <service id="monolog.logger.websocket" class="Symfony\Bridge\Monolog\Logger">
      <argument>websocket</argument>
      <call method="pushProcessor">
        <argument type="service" id="debug.log_processor"/>
      </call>
      <call method="pushHandler">
        <argument type="service" id="monolog.handler.console"/>
      </call>
      <call method="pushHandler">
        <argument type="service" id="monolog.handler.main"/>
      </call>
      <configurator class="Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass" method="configureLogger"/>
    </service>

should be right ?

Yeah that looks right.  Strange that that logger doesn't print to console though.

Yeah that looks right. Strange that that logger doesn't print to console though.

yea especially because the console output works with symfyony 2.3 in same enviroment/phpstorm. and its only the gos bundle. console output in general works well.
dont know.
but i guess we can close this issue. thank you for your support.


[BUG][UI] task group name echo exception

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
task group name echo exception
What you expected to happen
show default task group name or please select
How to reproduce

create workflow
edit workflow

Anything else

Version
dev
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

dolphinscheduler-ui had been deprecated. Could you check whether dolphinscheduler-ui-next still has this problem? @SnowMoon-Dev

I will close this issue now


Pinecone issue

Hello,
The pinecone on apify is not working anymore, I kind of rely on it for our company :).
So if you could take a look at it when you have time.
See my issue made in Apify.
:)

Hi, I'm sorry, I will look into the issue in the Pinecone integration. @HonzaTuron you can close this issue.


Replace Maven-Publish

For reasons which I don't yet undetstand, maven-publish does not close the deployed artifact,  Potentially, there is a way to configure this but I didn't figure it out yet.  Another option is to use the gradle-nexus plugin (https://github.com/gradle-nexus/publish-plugin/)

So, on the branch for this, I believe this command did what I want:
gradle publish closeAndReleaseStaging

UPDATE: no that failed when done altogether.

Yes, it worked.


Allow upload of source files with file extensions in capital letters

Right now one may only upload source files in lower-cased letters. This is maybe not very user friendly. Sparv also has this requirement which cannot be changed for technical reasons.
The Mink backend could automatically convert capital letters in file extensions into lower-cased ones upon upload.
The problem with this solution is that a user may have two distinct files on their file systems, e.g. "file1.txt" and "file2.TXT" which will replace each other upon upload. The backend would need to respond with a warning in this case which needs to be displayed in the frontend.

@arildm
This is now possible! When a user tries to upload a file with an extension in upper-case the file will automatically be renamed upon upload and the /upload-sources call will have warnings in the response:
{
    "status": "success",
    "message": "Source files successfully added to 'mink-dxh6e6wtff'",
    "warnings": "File extensions need to be in lower case! The following files have received new names during upload: 'dokument1.XML'. This may lead to existing files being replaced.",
    "return_code": "uploaded_sources"
}

This warning should probably be shown somewhere in the frontend.
Also, the hint "Additionally, filename extensions need to be in lower case." can be removed from
https://spraakbanken.gu.se/en/tools/mink/manual#corpus-settings


WR841N 4mb flash

how to install python3 with the router WR841N (openwrt) with only 4mb of flash

Hey,
This case is a bit more complicated. You may, if your router has a usb port, install python on a usb stick. Heres a guide. If there is no usb, im afraid you cant do anything.

i managed to install python3 and coreutils-nohup, and the final version of miner.py. but when I run it gives me the following error, the router has internet and navigates

can you try running the following command on your router and sending the output here?
python3 -c "import json; import urllib.request; a = json.loads(urllib.request.urlopen('https://server.duinocoin.com/getPool').read()); print(a)"

root@LEDE:~# python3 -c "import json; import urllib.request; a = json.loads(urllib.request.urlopen('https://server.duinocoin.com/getPool').read()); print(a)"
Traceback (most recent call last):
  File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib/python3.6/http/client.py", line 1400, in connect
    server_hostname=server_hostname)
  File "/usr/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] unknown error (_ssl.c:749)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] unknown error (_ssl.c:749)>
root@LEDE:~#

try to run
opkg upgrade openssl```

use libopenssl

so opkg upgrade libopenssl

Try the following commands.
opkg remove luci-ssl libustream-wolfssl
opkg install libopenssl libustream-openssl luci-ssl-openssl

hmmm... weird. Try upgrading your openwrt in the webinterface, or wait for m to find a souloution.

thanks friend, for the help

Has this fixed it?

not yet, I will reinstall openwrt I will try older versions

Older Versions wont fix this. What version are you using?

Hey,
found a tenporary solioution. Gimme one minute to test.

openwrt <IP_ADDRESS>

this code should work for now:
`#!/usr/bin/env python3
Router Miner, created by BastelPichi.
Modifications made by ihyoudou
import hashlib
import os
import socket
import sys
import time
import urllib.request
import json
import ssl
soc = socket.socket()
soc.settimeout(10)
username = "Pichi"  # Edit this to your username, mind the quotes
enableLEDNotification = False # Edit this to enable or disable LED notification (True/False)
ledaccepted = "fritz4040:amber:info" # Edit this to your first LED name, leave as is if you disabled led notifications above.
ledrejected = "fritz4040:red:info" # Edit this to your second LED, leave as is if you disabled led notifications above.
def retrieve_server_ip():
print("Retrieving Pool Address And Port")
pool_obtained = False
while not pool_obtained:
try:
serverip = ("https://server.duinocoin.com/getPool")
# Loading pool address from API as json array
poolInfo = json.loads(urllib.request.urlopen(serverip, context=ssl._create_unverified_context()).read())
        global pool_address, pool_port
        # Line 1 = IP
        pool_address = poolInfo['ip']
        # Line 2 = port
        pool_port = poolInfo['port']
        pool_obtained =  True
    except:
        print("> Failed to retrieve Pool Address and Port, Retrying.")
        continue

retrieve_server_ip()
while True:
try:
# This section connects and logs user to the server
soc.connect((str(pool_address), int(pool_port)))
server_version = soc.recv(3).decode()  # Get server version
print("Server is on version", server_version)
    # Mining section
    while True:
        # Send job request
        soc.send(bytes(
            "JOB,"
            + str(username)
            + ",LOW",
            encoding="utf8"))

        # Receive work
        job = soc.recv(1024).decode().rstrip("\n")
        # Split received data to job and difficulty
        job = job.split(",")
        difficulty = job[2]

        hashingStartTime = time.time()
        base_hash = hashlib.sha1(str(job[0]).encode('ascii'))
        temp_hash = None

        for result in range(100 * int(difficulty) + 1):
            # Calculate hash with difficulty
            temp_hash =  base_hash.copy()
            temp_hash.update(str(result).encode('ascii'))
            ducos1 = temp_hash.hexdigest()

            # If hash is even with expected hash result
            if job[1] == ducos1:
                hashingStopTime = time.time()
                timeDifference = hashingStopTime - hashingStartTime
                hashrate = result / timeDifference

                # Send numeric result to the server
                soc.send(bytes(
                    str(result)
                    + ","
                    + str(hashrate)
                    + ",Router_Miner"
                    + "2.45",
                    encoding="utf8"))

                # Get feedback about the result
                feedback = soc.recv(1024).decode().rstrip("\n")
                # If result was good
                if feedback == "GOOD":
                    # If LED notification is enabled
                    if enableLEDNotification:
                        file = open(f'/sys/class/leds/{ledaccepted}/brightness','w')
                        file.write('1')
                        file.close()
                        time.sleep(0.3)
                        file = open(f'/sys/class/leds/{ledaccepted}/brightness','w')
                        file.write('0')
                        file.close()
                    print("Accepted share",
                          result,
                          "Hashrate",
                          int(hashrate/1000),
                          "kH/s",
                          "Difficulty",
                          difficulty)
                    break
                # If result was incorrect
                elif feedback == "BAD":
                    # If LED notification is enabled
                    if enableLEDNotification:
                        file = open(f'/sys/class/leds/{ledrejected}/brightness','w')
                        file.write('1')
                        file.close()
                        time.sleep(0.3)
                        file = open(f'/sys/class/leds/{ledrejected}/brightness','w')
                        file.write('0')
                        file.close()

                    print("Rejected share",
                          result,
                          "Hashrate",
                          int(hashrate/1000),
                          "kH/s",
                          "Difficulty",
                          difficulty)
                    break

except Exception as e:
    print("Error occured: " + str(e) + ", restarting in 5s.")
    retrieve_server_ip()
    time.sleep(5)
    os.execl(sys.executable, sys.executable, *sys.argv)`

Cool!


Include the reason for AbstractClient connection failure

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/2800/
Test PASSed.

@cheng-chang PTAL.

alluxio-bot, merge this please

alluxio-bot, merge this please

@calvinjia PTAL

alluxio-bot, merge this please.


Improve documentation of datalayer phone-ui

WHAT
Improve documentation of datalayer phone-ui
Checklist :clipboard:

[N/A] Add explicit visibility modifier and explicit return types for public declarations
[N/A] Run spotless check
[N/A] Run tests
[N/A] Update metalava's signature text files

@kul3r4 merging now but please review and I will address them in another iteration


swiper 2 and ie 9

Not an issue but a question
I use swiper 2.7.6 cause i know swiper 3 doesn't support ie 9 but i've seen you use
transform: translate3d(-1920px, 0px, 0px); transition-duration: 0.3s; for swiper 2 slider.
ie 9 doesn't support CSS3 3D Transforms.
Does swiper 2.7.6 work in ie 9 ?
and thanks for your plugin

ti isnt meant to support older browsers but works nicely.

Yes, Swiper 2.x should work in IE 9, it uses JS animation and instead of CSS transitions. But it is not in development anymore


No .eslintrc

package.json contains .eslint as a dev dependency but there is no .eslintrc in the generated project. I am really liking rackt presets:
  "eslint-config-rackt": "^1.1.1",
  "eslint-plugin-react": "^3.8.0",

My .eslintrc looks like this:
{
  "extends": "rackt",
  "env": {
    "mocha": true
  },
  "rules": {
    "react/jsx-uses-react": 1,
    "react/jsx-no-undef": 2,
    "react/wrap-multilines": 2
  },
  "plugins": [
    "react"
  ]
}

Redux now uses rackt for linting as does react-router. It has no semicolons which was a little scary at first but because we are always transpiling we never need to worry about old browser issues that prevented us doing this in the past. You can basically just leave out semi-colons and everything works.

@philholden -- The builder-victory-component contains the eslint configurations at: https://github.com/FormidableLabs/builder-victory-component/tree/master/config/eslint
Although a controversial topic for sure, we don't rely on ASI here or at Walmart, where we helped develop and maintain the https://github.com/walmartlabs/eslint-config-defaults/ and the Walmart presets at https://github.com/walmartlabs/eslint-config-defaults/tree/master/configurations/walmart Although generally speaking "You can basically just leave out semi-colons and everything works." is correct, there is no correctness disadvantage to adhering to the actual EMCAScript spec.
And put another way -- there are passionate advocates of both double quotes and single quotes for project within Formidable. For our archetype here it does really matter which we go with, just that we go with a single choice.
That said, as with all things builder, folks can easily override tasks in their ROOT/package.json as follows:

Either override the three indvidual tasks that comprise lint: https://github.com/FormidableLabs/builder-victory-component/blob/master/package.json#L40-L42
"lint-server": "eslint --color -c .eslintrc-server *.js",
"lint-client": "eslint --color --ext .js,.jsx -c .eslintrc-client src demo/*.jsx",
"lint-client-test": "eslint --color --ext .js,.jsx -c .eslintrc-client-test src test/client",

where you have the new files .eslintrc-server, .eslintrc-client and .eslintrc-client-test in the root of your project; OR,

Override all of the lint task with a unified .eslintrc in the root of your project.
"lint": "eslint --color --ext .js,.jsx -c .eslintrc *.js src demo/*.jsx test/client",

@philholden -- The builder-victory-component archetype contains the eslint configurations at:
https://github.com/FormidableLabs/builder-victory-component/tree/master/config/eslint

Hi Ryan, I guess what I am saying is it would be nice to have somehow have .eslintrc top level along with .editorconfig as this is where editor linting plugins look for it.

@philholden -- Do you mean in the generator / boilerplate to create ROOT/.eslintrc or do you mean in https://github.com/FormidableLabs/builder-victory-component/tree/master/config/eslint ?


add ability to rename/move repositories

It is a regularly requested feature to be able to "rename" a repository. Arguably, that can be done by locally renaming the image and pushing it again, but that can be tedious if there are many tags.
Also, renaming any random part of the full image name has been requested as well (eg: "change my username to X and have all images follow that").
Doing this "à-la-github" would in addition require to put redirects in place.

See for example https://github.com/docker/docker-registry/issues/950

Would the owner be able to re-use the old name? It seems dangerous as it would let them pull a bait and switch, but would also be really annoying for some users to prohibit reuse.

@endophage agreed that repo rename and account rename are probably two different beasts.
Agreed that renaming user accounts is probably more of a problem.
Repo rename should probably add redirects from the old repo to the new and leave the former "unusable".
Invoking our favorite @metalivedev @shin- and @kencochrane for some input here, since they are first line.

Should this be a part of #52?

@stevvooe maybe - though if we decide to have some redirection (a-la-github) for renamed repos, that might exceed the scope of it.

@dmp42 Aliasing? That might not that unrealistic, although we need to be a little careful with how that interacts with the docker daemon.

Ideally it would be nice to handle both namespace rename as well as repo rename. But if we can only get one of the two, that is a good start, and better then nothing :)
Redirection would also be preferred, but like @stevvooe said we would need to be careful for how it interacts with docker engine. I'm not sure if it is best to leave the old name "unusable" or allow the ability for people to reuse that name. I think it would be nice to allow them to reuse it, but I can see how this could cause some security concerns with a bait and switch. Github allows you to reuse repo names after you rename them, as an example.

I know it's been a requested feature for a long time, but v1 makes this complicated because of the overall way it was architected. I don't have insight on how v2 handles this. Assuming v2 makes this somewhat simple, can we afford UI/UX wise to only make this available to v2 repos? The hub part of the feature is relatively trivial.

@shin- @kencochrane The repository is relatively self-contained. This would be as easy as moving the underlying file path. It seems logical that this would be a component of the tool described in #52. I see no problem adding support for the following:

Add management tool functionality to rename a repository.
Add management tool functionality to alias one repository to another.

These would give registry users the ability to move repositories and make policy decisions about redirects depending on the use case.
Part of the issue here is that we have enforced that a repository name has to match the image name. This causes a lot of problems with moving images, signing and verification that may not be worth it.

@stevvooe So is the fact that we enforced repo names to match image names, a show stopper, and we can't add this functionality rename/redirect functionality?

@kencochrane It's not a show stopper. The registry should support this use case but possibly block serving up tags with a different repository name, if present.
Ideally, we separate naming from transport. If we can do that, then matching the repository name with the image name is only a convention. Moving a repository can be a smooth and secure operation, where image names are only updated at the maintainers leisure.
For instance, let's say we rename "foo/bar" to "stevvooe/bar". The content immediately after would be something like this:
foo/bar:sometag -> <image A>

This could only be fetched as "stevvooe/bar:sometag", after a redirect from "foo/bar:sometag" but is verified as "foo/bar:sometag". At my leisure, I can name and sign a new tag without changing the target image:
foo/bar:sometag -> <image A>
stevvooe/bar:sometag -> <image A>

Now, it can be fetched and verified as "stevvooe/bar:sometag", replacing the value of "foo/bar:sometag". The redirect still works.
Much of the above is just a thought exercise but this is a good idea.

concept
May rename the old one's Path and its manifest.
in source code, should involve that,
-[x] Add new routeDescriptors of /v2/ in /v2/descriptors.go
-[x] Construct new func Rename method in repository/middleware.go, via PUT method.
-[x] Add func Update in manifest methods.
-[x] Construct new API method PATCH the objective.
Current context use placeholder of {name:"newname"} as input name parameter.
We select it, to be parsed via RepositoryNameComponentRegexp in descriptors.
If it is assigned and in implementation progress?
Or I would like to put careful research.
Thanks a lot!

@xiekeyang This will not be added as an API method. Adding a /v2/<name> direct route will cause conflicts with existing routes. The possibility for abuse is too great.
This functionality will likely be part of a backend management tool or protocol. Please see #52 for details. I'd accept proposals along these lines that cover some or all of the use cases.

Renaming is one thing, but how does one create a new repository to begin with? The v2 API is not clear on this. Someone in one thread commented that if one uploads a layer (blog), that the required repo will be created, but if I try that, I get a 404 Not Found. The API spec also says that one should first upload the layers, and then the image manifest - but it does not actually say that the repo will be created if it does not exist. Should it say that? Note: I looked through all of the issues and this issue was the closest - I did not want to create a new issue until I was sure that this is actually a valid issue. (Related: the API seems to be missing functions for repo name management - listing names (which v2 allows to be hierarchical), setting ownership, etc.) Thanks!

@cliffbdf Repositories are created lazily when you upload to them. The specification does not mention the creation of repositories because repositories are just a partitioning convention, using a name. They are not created or destroyed. They just exist. It is their resources that are accessible.
Please open a new issue, describe exactly what you are trying to do, along with the steps you took. Include what went wrong and what you expected to happen.

@stevvooe Created issue, https://github.com/docker/distribution/issues/1711 Thanks!


hide redirect from form

Hello Bagra,
great extension, easy to use.
but it's a little limited. Would be great if you could hide the button "Configure rules" like this?
You should make only project's administrators to edit rules on W.I.T.
Tank you, great job.

I hear what you're saying. I have got the same feedback from multiple customers. But I havent been able to find any good set of APIs to check permissions (whether or not current user is a project or account admin). I am on constant lookout for this as some of my other extensions too can make use of it.
Its on my radar but I dont have an ETA yet.


Compilation Error

I downloaded and followed all instructions for the minGw and still, I couldn't run any program.
The Ju[yter notebook compiler gives me this error.......(ERROR: Neither directory contains a build file meson.build.)
and also this one'''''''''''''''''''''''''''''''ValueError: Need at least CMake 3.13
Besides this.....when I try to test iri2016 in anaconda prompt I get this error''''''''''''''''''''''''''
Anaconda3\lib\site-packages\heapdict.py:11
C:\Users\MM\Anaconda3\lib\site-packages\heapdict.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
class heapdict(collections.MutableMapping):
-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================= 1 warnings, 2 error in 1.97 seconds =========================================

I think you noted this was resolved elsewhere. For now, this package should be installed in development  mode.

Please help tell me where it was been resolved (help me with a link)......I really need IRI2016 for my thesis.........and can you please tell me what installation in development mode means?


Inject styles

This PR loads generated CSS and injects them as a style element in the page head.
I noticed that Tailwind CSS base styles are loaded globally, which would affect the styles of the host page.
This would not normally be expected.
So the generated CSS is now scoped to the #banner element (you may also wish to rename this to a more specific ID so as not to collide with other page elements).
run npm run build then you would be ready to publish to npm

Amazing work! Thank you for the pull request merging it now


Slack emojis

Add slack emojis to the emoji searcher so that you can add more emojis to your own slack and other tools!

@Timfrazer these are images which afaik cannot be converted to unicode emojis required for this app.
Any idea how to work around i? I would love to be able to copy sonic around :)
Thanks

See https://superuser.com/questions/1454766/convert-an-image-to-unicode-emoji for example
If we stick with unicode (which I expect we will have to for how this app works) it would be worth checking for ones we don't have (e.g. ninja)
I found this we could use for comparison:
https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji_pretty.json

Or would that be copying the whole image to the clipboard? That could be something ...


Limit concurrency in Dagster's data pipelines

Describe the feature you'd like to request
Currently, there is no limit in concurrency when it comes to Dagster, which causes issues with the Kubernetes deployment. While #2042 may be the culprit, we should use Dagster's concurrency limit as well to avoid problems in the future.
Describe the solution you'd like
Limit the number of processes that are allowed to coexist using either run, op/asset or global op/asset concurrency limits (TBD)
Describe alternatives you've considered
N/A

Setting the limit to 30 concurrent runs as discussed


Setting CMAKE_CXX_STANDARD in melodic

Following up on https://github.com/ros-infrastructure/rep/pull/139#discussion_r153550517.
Basically, some packages now use C++11/14 stuff in their headers, and if downstream packages do not set the compiler standard themselves, but use those headers you get errors like this on macOS:
/Users/william/melodic/install/include/class_loader/class_loader_core.hpp:300:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  for (auto & it : factory_map) {
       ^

/Users/william/melodic/install/include/class_loader/class_loader.hpp:82:23: warning: alias declarations are a C++11 extension [-Wc++11-extensions]
  using DeleterType = std::function<void(Base *)>;
                      ^
/Users/william/melodic/install/include/class_loader/class_loader.hpp:85:21: warning: alias declarations are a C++11 extension [-Wc++11-extensions]
  using UniquePtr = std::unique_ptr<Base, DeleterType<Base>>;
                    ^

/Users/william/melodic/install/include/class_loader/class_loader.hpp:85:59: error: a space is required between consecutive right angle brackets (use '> >')
  using UniquePtr = std::unique_ptr<Base, DeleterType<Base>>;
                                                          ^~
                                                          > >

These occur because even though the compiler on macOS supports C++11/14/17, it still defaults to C++03. This might change in the future, but there's no ETA on this. So for now, source builds are broken without intervention.

In the above linked discussion, there seemed to be a preference for doing something like:
if(NOT DEFINED CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 14)
endif()

In one of the "core" packages. I also think this is the best thing we can do for now.
I believe catkin makes the most sense for this conditional setting, for a few reasons:

It has ~100% coverage as a dependency in ROS 1
It is find_package()'ed by almost everything that depends on it

We (@mikaelarguedas and I) considered other packages like cmake_modules, roslib, or ros_environment.
However, none of these options are find_package'ed by all of ROS. In order for the above logic to work, every package needs to either directly or indirectly find_package the package which contains the logic.
ros_environment is used by roslib and gets into almost every workspace, but many packages would not have their cmake logic affected.
So, I think catkin makes the most sense. However, it would require us to fork for melodic-devel (in my opinion).
But I wanted to get feedback on the idea before spending more time on it.

An alternative, but less attractive (from a user point of view), solution would be to have people building on machines where this is an issue (essentially just on macOS right now) include the cmake argument -DCMAKE_CXX_STANDARD=14 anywhere they invoke a build. That would be with catkin_make, catkin_make_isolated, catkin_tools, or just plain invoking cmake.
I'm interested to know what you think about this option @mikepurvis.

For the record, I've had success with passing additionally -DCMAKE_CXX_STANDARD=14 in catkin config to compile lunar on macos Sierra (10.12).

In terms of building on Mac, I had been picturing that I would have to handle this with another CMake arg passed in here:
https://github.com/mikepurvis/ros-install-osx/blob/4e342f604960e291320e6acba62ff349747707d5/install#L176-L184
However, assuming this is going to affect other rolling release systems, I would agree with handling it here in catkin. From the perspective of Clearpath, we're building lots of Melodic versions of things on a Xenial base system, so anywhere a package assumes >=C++11 without having an explicit flag for it is going to cause trouble on GCC 5— we can handle our bundle build case with global CMake args, but then it trips up developers doing local source builds.
tl;dr 👍 from me to this.

I am not sure if hard coding any kind of value (even if only for macOS) is the best approach. Some higher level packages might not even work with the changed setting? Wouldn't it be easier to add this to the from-source instructions for macOS?
And the end of the day I don't mind how it is done for macOS. If you would like to add a conditional block which set the flag in catkin for macOS that is fine.

Sorry for being late to the party. My perspective is of a person compiling the code for a platform Melodic is not officially not released on, ie. one of the people for whom handling the issue centrally would help, no matter the platform (macOS or not)
Even if the value is not hard coded, throwing a proper error makes sense to inform the user that the issue would not be handled by the maintainers. Simply adding this on the wiki/Installation/Source would also resolve the issue (instead of one redirection away at REP 3).
One alternative to the CMake solution might be official C++ macros to check the version/capabilities as used in core packages. This might increase the load on the maintainers but allows more compatibility (such as fallback on boost if std version is not enough).
Another potential instead of catkin would be rosdep which anyways checks for dependencies, and a C++ compiler with default standard 14 is a dependency. This has the benefit of not forcing the standard to a lower value in future (because why force the user's code to not use C++17/2a if the compiler supports that by default, on the other end of the spectrum), but does nothing to resolve the error of broken builds (which I believe is a clang issue. clang has default standard at C++98, while gcc has a different default standard).
For me, the best solution might be a CMake one itself. It'd be a complicated one which checks for default standard, if it's less than 14, then sets it to 14 with a warning message. This would be possible with try_compile but requires a cmake_minimum_version(3.0.2) while ROS is mostly using 2.8.3 (I might be wrong) which is long overdue for a change. (Actually cmake_cxx_standard itself requires 3.1.3 without which the command fails with no side effects and no errors)

Closing since there is nothing to be done in this repo.


syntax error in fig = beam.plot()

Hi there, I have been trying to use this package and everything seems to work fine until I get to the fig = beam.plot() part, I always get a syntax error there.
This is my code, I have also tried having "pip install --user beambending" and "python3 -m pip install --user beambending" at the top but that just gives me another error.
Do you know what the problem might be?
from beambending import beam
print('Specify the values of the variables')
#lengdirnar (Lengths)
l1 = int(input('L1: '))
l2 = int(input('L2: '))
a = int(input('a: '))
#samfellt álag (Distributed load, vertical)
q = int(input('q: '))
#stakur kraftur (Point load, vertical)
p = int(input('P: '))
#þversniðsstærðirnar (Cross section measurements)
b = int(input('b: '))
h = int(input('h: '))
beam = beam(l1+l2)
beam.pinned_support = l1
beam.rolling_support = (l1+l2)
beam.add_loads((
PointLoadV(P, a),
DistributedLoadV(q, (0, (l1+l2))
))
fig = beam.plot()

Hi there, I have been trying to use this package and everything seems to work fine until I get to the fig = beam.plot() part, I always get a syntax error there.
This is my code, I have also tried having "pip install --user beambending" and "python3 -m pip install --user beambending" at the top but that just gives me another error.
Do you know what the problem might be?
from beambending import beam
print('Specify the values of the variables')
#lengdirnar (Lengths)
l1 = int(input('L1: '))
l2 = int(input('L2: '))
a = int(input('a: '))
#samfellt álag (Distributed load, vertical)
q = int(input('q: '))
#stakur kraftur (Point load, vertical)
p = int(input('P: '))
#þversniðsstærðirnar (Cross section measurements)
b = int(input('b: '))
h = int(input('h: '))
beam = beam(l1+l2)
beam.pinned_support = l1
beam.rolling_support = (l1+l2)
beam.add_loads((
PointLoadV(P, a),
DistributedLoadV(q, (0, (l1+l2))
))
fig = beam.plot()

Hi @alfstella !
I see a couple of mistakes in your code... mainly forgetting that variables are case-sensitive and one missing parenthesis. The missing parenthesis was giving you the syntax error you mentioned. After you correct it, the other errors become evident.
Here comes a syntactically correct version of what I understand you intended to accomplish:

import matplotlib.pyplot as plt
from beambending import Beam, PointLoadV, DistributedLoadV

print('Specify the values of the variables')
#lengdirnar (Lengths)
l1 = int(input('L1: '))
l2 = int(input('L2: '))
a = int(input('a: '))
#samfellt álag (Distributed load, vertical)
q = int(input('q: '))
#stakur kraftur (Point load, vertical)
P = int(input('P: '))
#þversniðsstærðirnar (Cross section measurements)
b = int(input('b: '))
h = int(input('h: '))

beam = Beam(l1+l2)
beam.pinned_support = l1
beam.rolling_support = (l1+l2)
beam.add_loads((
PointLoadV(P, a),
DistributedLoadV(q, (0, (l1+l2)))
))

fig = beam.plot()
plt.savefig("my_beam_figure.png")

Thank you so much for the help! This is exactly what I was trying to do :)


fix: Add missing TIME type to pyarrow2redshift conversion method

Feature or Bugfix

Bugfix

Detail

Add missing TIME type to pyarrow2redshift conversion method

Relates

#2024

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: dd283f13e1845c4e9d7475e42c9f9e8774b4028f
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Release new version from Github Actions

Instead of manually upload to https://marketplace.visualstudio.com/manage/publishers/sergey-tihon
should be possible to reuse release from from Ionide https://github.com/ionide/ionide-vscode-fsharp/blob/master/.github/workflows/release.yml and docs - https://code.visualstudio.com/api/references/extension-manifest
up publish new version release workflow.

v0.0.12 released from GitHub action !


Minor formatting error on website docs

Describe the bug
Small formittag error here: https://nf-co.re/docs/checklists/pipeline_release#steps-to-release

To Reproduce
Steps to reproduce the behavior:

Go to https://nf-co.re/docs/checklists/pipeline_release#steps-to-release
Scroll down to text from above screenshot
See error

Expected behavior
To see the normal "note" window like this:

Thanks for spotting, pretty sure it's due to using an admonition within a list.
Fixed in https://github.com/nf-core/website/pull/2775


host style couldn't be overridden

Description
I have a polymer element which has a :host rule for setting the default background color to red.  I should be able to override that by setting background color to something else in the stylesheet.
Note: This jsbin works fine in Polymer v1.2.4
Live Demo
http://jsbin.com/xigabuboqo/edit?html,output
Steps to Reproduce

Run the jsbin

Expected Results
The box should be blue.
Actual Results
The box shows red.
Versions

Polymer: v1.3.0

Looks like the issue is due to the @apply(--x-bar);.  If you remove that, it works as expected.

I'm guessing this is related to the CSS specificity fix? Interestingly, if you put the global style rule into a custom-style element, the element is styled correctly.

The only selector that's expected not to work in this setup is an element selector (e.g. x-foo). A class selector should work fine. As @arthurevans pointed out, using a <style is="custom-style"> is the preferred setup since this guarantees proper scoping. One workaround that can be used instead is to increase the specificity of the rule via the :not operator. For example, x-foo:not(.nothing).
We considered this issue when fixing #2642 and decided it was worth the trade off. Previously, it was possible to hit this issue under some circumstances but not others.


Added color code format converter

Issue Id you have worked upon -
#178
Briefly explain your program logic -
Convert color code from the following conversions -
1.rgb to hex
2.hext to rgb
3.rgb to hsl
4. hsl to rgb
Screenshots(Attach 2 screenshots of your own input and output) -
Attach here

By raising this PR I affirm that -

[x] My code follows the guidelines of this project.

[x] I have performed a self-review of my own code.

[x] I have commented my code.

[x] My code gives the correct output.

[x] I affirm that I strictly follow contributing guidelines and code of conduct.

Congratulations 🎉 @atharvsawant2003 on your contribution.
Thanks for adding value to this repository. 😊
Let's celebrate this fest 😃 by providing more developers 👨💻👩💻 an opportunity to contribute. Help us make this repository reach far and more by sharing this to your friends and colleagues.
Your efforts can make difference.


Extract editor/mapper into separate lib

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines: TBD
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
There's a bug where if the editor is loaded in the flow designer page then it can't be loaded in the stream designer page.
What is the new behavior?
Extracted editor to lib @flogo-web/editor. It contains the monaco editor integrations: the monaco editor component and the mapper contribution which enables monaco editor support for the Flogo Web mapping language.
Also refactored the monaco editor lazy loading mechanism so the MonacoEditorModule.forRoot() call is not necessary. And eliminated the need to wait for the monaco editor to be ready from outside the editor component. Now the editor component itself waits for the monaco ready event.
Also upgraded angular and nx to the latest releases and this PR includes a couple of type changes required because of typescript increased its strictness in some features.

I noticed that couple of components are still injecting MonacoEditorLoaderService in components and not being used.


F-Droid build failed

billingclient is not foss so it's not allowed in F-Droid. Could you please add a flavor without billingclient for F-Droid? Thanks!

@linsui when I have created the flavor, how can I add it to the metadata file? I couldn't find a matching key in the documentation.

See https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/de.tap.easy_xkcd.yml#L1311. yes will just build with gradle assembleRelease. if a flavor is specified, e.g. fdroid then gradle assembleFdroidRelease will be executed.

Thanks, I opened a Merge Request: https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10920

Thanks!


README.md Snafu

Hey, just something that I noticed on your README.md that seemed to be incorrect. You state that, in order to run the python script, on Kali Linux, you have to use 'sudo,' well, that typically isn't the case. This is due to the fact that, by default, Kali boots into a user with 'root,' assuring that you never have to use 'sudo,' unless you are in another account. Just thought I should let you know, it's pretty minor...

yes kali linux already rooted no need (sudo)

Yes just you know, you cant lose anything with sudo, because there is a possibility that you are using kali with an other user instead of root.
So its really just to make sure.

Alright, makes sense.


Set some custom claims to empty array when value is null | undefined

We came accros an issue with custom claims when they are expected to be an array.
Let's say you define:

a custom claim looking like this: "projectsLeaded":"projectsLeaded[].projectId".
some permissions in Hasura in the form of project.id IN X-Hasura-projectsLeaded.

With the current implementation of Hasura Auth, if the user doesn't lead any project, the projectsLeaded custom claim won't be defined at all, and Hasura will throw an error saying X-Hasura-projectsLeaded is required to make the call.
We would rather expect X-Hasura-projectsLeaded to be set as an empty array, so that the permissions work as expected in Hasura.
I did a change on our fork to fix this: https://github.com/onlydustxyz/hasura-auth/commit/5a7029a246e7a03268a89bc95a9454da9e7cd3ab
As you can see, I considered that when the custom claim's path contains [], then it is expected to be an array, and consequently, I set its value to an empty array when it is undefined | null.
I think it would make sense to integrate this change to Hasura Auth officially.
What do you think?
I can of course make a proper PR in case you agree on the principle.

Hello Olivier,
Yes, it makes sense, a PR would be nice!


Java example for GraphQL subscription client

Hello!
How can I implement a GraphQL subscription client in Java? I found the following example from the docs but I can't make it working in Java:
apolloClient.subscription(TripsBookedSubscription())
    .toFlow()
    .collect {
      println("trips booked: ${it.data?.tripsBooked}")
    }

Will the following Java code work?
var flow = apolloClient.subscription(new TripsBookedSubscription());
Rx3Apollo.flowable(flow).doOnEach(e -> {
    var data = e.getValue().data;
    // process data
});

Hi 👋
To use Java, you'll need to add a dependency to RxJava and use the provided extensions - this is explained in this guide.
That being said, if you are on a Java project you may find that Apollo Kotlin v3 is not optimized for it. We are monitoring this issue to gather feedback about a better Java interop - don't hesitate to add your voice to it. Another option would be to use v2 of the library.