METRON-152: Add support for ES 2.3.x and Kibana 4.5.0

Use ES2.3 and Kibana 4.5.0.
Currently does not support PCAP queries from the UI. Will open up separate JIRA.
Tested on Vagrant (quick-dev)

+1, spun up in single node vagrant and looks good!

FYI - Spinning up an Amazon deployment on this now

Ran into this error when deploying on Amazon-EC2.  Anyone else seeing this?
TLDR
TypeError: sendall() argument 1 must be string or buffer, not dict

TASK [elasticsearch : Add Elasticsearch templates for topologies] **************
failed: [ec2-52-32-188-202.us-west-2.compute.amazonaws.com] => (item={u'sensor': u'bro', u'file': {'mappings': {'bro_doc': {'_timestamp': {'enabled': True}, 'properties': {'enrichments:geo:ip_dst_addr:location_point': {'type': 'geo_point'}, 'timestamp': {'type': 'date', 'format': 'epoch_millis'}}}}, 'template': 'bro_index*'}}) => {"failed": true, "item": {"file": {"mappings": {"bro_doc": {"_timestamp": {"enabled": true}, "properties": {"enrichments:geo:ip_dst_addr:location_point": {"type": "geo_point"}, "timestamp": {"format": "epoch_millis", "type": "date"}}}}, "template": "bro_index*"}, "sensor": "bro"}, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272005.1-272260267672829/uri\", line 2464, in <module>\r\n    main()\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272005.1-272260267672829/uri\", line 453, in main\r\n    resp, content, dest = uri(module, url, dest, user, password, body, body_format, method, dict_headers, redirects, socket_timeout, validate_certs)\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272005.1-272260267672829/uri\", line 340, in uri\r\n    resp, content = h.request(url, method=method, body=body, headers=headers)     \r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1609, in request\r\n    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)\r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1351, in _request\r\n    (response, content) = self._conn_request(conn, request_uri, method, body, headers)\r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1273, in _conn_request\r\n    conn.request(method, request_uri, body, headers)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 936, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 976, in _send_request\r\n    self.send(body)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 781, in send\r\n    self.sock.sendall(str)\r\n  File \"<string>\", line 1, in sendall\r\nTypeError: sendall() argument 1 must be string or buffer, not dict\r\n", "msg": "MODULE FAILURE", "parsed": false}
failed: [ec2-52-32-188-202.us-west-2.compute.amazonaws.com] => (item={u'sensor': u'yaf', u'file': {'mappings': {'yaf_doc': {'_timestamp': {'enabled': True}, 'properties': {'uflags': {'type': 'string'}, 'pkt': {'type': 'string'}, 'app': {'type': 'string'}, 'rtt': {'type': 'string'}, 'tag': {'type': 'string'}, 'duration': {'type': 'string'}, 'riflags': {'type': 'string'}, 'sip': {'type': 'string'}, 'proto': {'type': 'string'}, 'rtag': {'type': 'string'}, 'oct': {'type': 'string'}, 'risn': {'type': 'string'}, 'end-time': {'type': 'string'}, 'end-reason': {'type': 'string'}, 'timestamp': {'type': 'date', 'format': 'epoch_millis'}, 'dp': {'type': 'string'}, 'enrichments:geo:ip_dst_addr:location_point': {'type': 'geo_point'}, 'roct': {'type': 'string'}, 'sp': {'type': 'string'}, 'iflags': {'type': 'string'}, 'isn': {'type': 'string'}, 'ruflags': {'type': 'string'}, 'rpkt': {'type': 'string'}, 'dip': {'type': 'string'}}}}, 'template': 'yaf_index*'}}) => {"failed": true, "item": {"file": {"mappings": {"yaf_doc": {"_timestamp": {"enabled": true}, "properties": {"app": {"type": "string"}, "dip": {"type": "string"}, "dp": {"type": "string"}, "duration": {"type": "string"}, "end-reason": {"type": "string"}, "end-time": {"type": "string"}, "enrichments:geo:ip_dst_addr:location_point": {"type": "geo_point"}, "iflags": {"type": "string"}, "isn": {"type": "string"}, "oct": {"type": "string"}, "pkt": {"type": "string"}, "proto": {"type": "string"}, "riflags": {"type": "string"}, "risn": {"type": "string"}, "roct": {"type": "string"}, "rpkt": {"type": "string"}, "rtag": {"type": "string"}, "rtt": {"type": "string"}, "ruflags": {"type": "string"}, "sip": {"type": "string"}, "sp": {"type": "string"}, "tag": {"type": "string"}, "timestamp": {"format": "epoch_millis", "type": "date"}, "uflags": {"type": "string"}}}}, "template": "yaf_index*"}, "sensor": "yaf"}, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272006.63-119978789749599/uri\", line 2464, in <module>\r\n    main()\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272006.63-119978789749599/uri\", line 453, in main\r\n    resp, content, dest = uri(module, url, dest, user, password, body, body_format, method, dict_headers, redirects, socket_timeout, validate_certs)\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272006.63-119978789749599/uri\", line 340, in uri\r\n    resp, content = h.request(url, method=method, body=body, headers=headers)     \r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1609, in request\r\n    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)\r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1351, in _request\r\n    (response, content) = self._conn_request(conn, request_uri, method, body, headers)\r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1273, in _conn_request\r\n    conn.request(method, request_uri, body, headers)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 936, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 976, in _send_request\r\n    self.send(body)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 781, in send\r\n    self.sock.sendall(str)\r\n  File \"<string>\", line 1, in sendall\r\nTypeError: sendall() argument 1 must be string or buffer, not dict\r\n", "msg": "MODULE FAILURE", "parsed": false}
failed: [ec2-52-32-188-202.us-west-2.compute.amazonaws.com] => (item={u'sensor': u'snort', u'file': {'mappings': {'snort_doc': {'_timestamp': {'enabled': True}, 'properties': {'enrichments:geo:ip_dst_addr:location_point': {'type': 'geo_point'}, 'timestamp': {'type': 'date', 'format': 'epoch_millis'}}}}, 'template': 'snort_index*'}}) => {"failed": true, "item": {"file": {"mappings": {"snort_doc": {"_timestamp": {"enabled": true}, "properties": {"enrichments:geo:ip_dst_addr:location_point": {"type": "geo_point"}, "timestamp": {"format": "epoch_millis", "type": "date"}}}}, "template": "snort_index*"}, "sensor": "snort"}, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272007.91-28974849171520/uri\", line 2464, in <module>\r\n    main()\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272007.91-28974849171520/uri\", line 453, in main\r\n    resp, content, dest = uri(module, url, dest, user, password, body, body_format, method, dict_headers, redirects, socket_timeout, validate_certs)\r\n  File \"/home/centos/.ansible/tmp/ansible-tmp-1464272007.91-28974849171520/uri\", line 340, in uri\r\n    resp, content = h.request(url, method=method, body=body, headers=headers)     \r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1609, in request\r\n    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)\r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1351, in _request\r\n    (response, content) = self._conn_request(conn, request_uri, method, body, headers)\r\n  File \"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1273, in _conn_request\r\n    conn.request(method, request_uri, body, headers)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 936, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 976, in _send_request\r\n    self.send(body)\r\n  File \"/usr/lib64/python2.6/httplib.py\", line 781, in send\r\n    self.sock.sendall(str)\r\n  File \"<string>\", line 1, in sendall\r\nTypeError: sendall() argument 1 must be string or buffer, not dict\r\n", "msg": "MODULE FAILURE", "parsed": false}

Thanks for running it up @nickwallen. I was able to test out these changes in EC2 this morning and everything worked. I'm keen to hear what happens in your setup.

Do you understand why it worked on Vagrant and broke on EC2?  Is there anything outside of your PR that we can do to bring the platforms together so that it if works on one, it works on all?

I have no idea why it failed. It looked similar to this Ansible issue: https://github.com/ansible/ansible-modules-core/issues/265.

I am still seeing failures.  Tried a redeploy of the environment I already had setup along with a fresh install.  Ran into this problem both times.
Unexpected character (''' (code 39)): was expecting either valid name character (for unquoted name)
or double-quote (for quoted) to start field name\n at [Source: [B@79b57c87; line: 1, column: 3]",
"type": "json_parse_exception"}

I confirmed that I have your latest commit.
commit f6eafc93256e26447806ff413cc22a57134cb88b
Author: David Lyle<EMAIL_ADDRESS>Date:   Fri May 27 06:57:18 2016 -0400

    Add to_json to help with dict type error.
    Added kibana to services_to_start

commit c5a5e2cbdc81ec43120201cb15d4f7ea6f848c92
Author: David Lyle<EMAIL_ADDRESS>Date:   Wed May 25 11:26:16 2016 -0400

    METRON-152: Add support for ES 2.3.x and Kibana 4.5.0

I was running on an unsupported version of Ansible.  (That is my fault.  I should read the docs that I write.)  After switching to <IP_ADDRESS> this problem does not occur.  In the process of running up a fresh deploy as a final validation.

This is not necessarily a deal-breaker, but just something to call out.
We don't have backwards compatibility with this change.  It would be nice to maintain backwards compatibility in this case because we don't quite yet have feature parity.  We are missing pcap search and comparable out-of-the-box histograms in Kibana 4.
It would be achievable by renaming the existing roles to elasticsearch1/kibana3 and add the new functionality as elasticsearch2/kibana4.  I haven't looked yet, but we might have to untangle some of the platform code too.  The effort on the platform side may not be worth it.

+1 Success.  Golden

but how to config the kibana4 to visualize the data in the elasticsearch like in kibana3


secretsmanager: Add resource policy support

Description of your changes
This PR extends the Secret resource with a field resourcePolicy to support AWS secretsmanager resource policies.
Fixes #879
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
Manually

@MisterMX can you provide your manual tested example as a snip ? Thanks

@haarchri here is the YAML I used for testing:
apiVersion: secretsmanager.aws.crossplane.io/v1alpha1
kind: Secret
metadata:
  name: secretsmanager-test
spec:
  forProvider:
    region: eu-central-1
    description: "My test secret for demonstration"
    kmsKeyIDRef:
      name: dev-key
    forceDeleteWithoutRecovery: true
    resourcePolicy: |
      {
        "Version": "2012-10-17",
        "Statement": [
          {
            "Effect": "Allow",
            "Principal": {
              "AWS": "*"
            },
            "Action": "secretsmanager:GetSecretValue",
            "Resource": "*"
          }
        ]
      }
    stringSecretRef:
      name: secretsmanager-test
      namespace: default
  providerConfigRef:
    name: example
---
apiVersion: v1
kind: Secret
metadata:
  name: secretsmanager-test
  namespace: default
type: Opaque
data:
  test1: SGVsbG8gV29ybGQ=

ressource overview:
Name:         secretsmanager-test-4
Namespace:
Labels:       <none>
Annotations:
              crossplane.io/external-name: secretsmanager-test-4
API Version:  secretsmanager.aws.crossplane.io/v1alpha1
Kind:         Secret
Spec:
  Deletion Policy:  Delete
  For Provider:
    Description:                    My test secret for demonstration
    Force Delete Without Recovery:  true
    Region:                         eu-central-1
    Resource Policy:                {
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "*"
      },
      "Action": "secretsmanager:GetSecretValue",
      "Resource": "*"
    }
  ]
}
    String Secret Ref:
      Name:       secretsmanager-test
      Namespace:  default
    Tags:
      Key:    crossplane-kind
      Value:  secret.secretsmanager.aws.crossplane.io
      Key:    crossplane-name
      Value:  secretsmanager-test-4
      Key:    crossplane-providerconfig
      Value:  example
  Provider Config Ref:
    Name:  example
Status:
  At Provider:
    Arn:  arn:aws:secretsmanager:eu-central-1:255932642927:secret:secretsmanager-test-4-7C8ulw
  Conditions:
    Last Transition Time:  2021-11-15T08:37:55Z
    Reason:                Available
    Status:                True
    Type:                  Ready
    Last Transition Time:  2021-11-15T08:37:55Z
    Reason:                ReconcileSuccess
    Status:                True
    Type:                  Synced
Events:
  Type    Reason                   Age   From                                             Message
  ----    ------                   ----  ----                                             -------
  Normal  CreatedExternalResource  60m   managed/secret.secretsmanager.aws.crossplane.io  Successfully requested creation of external resource
  Normal  UpdatedExternalResource  60m   managed/secret.secretsmanager.aws.crossplane.io  Successfully requested update of external resource


Misleading error message about auth failure

Description
When there is a technical issue while accessing the NuGet feed, like 502 deliver by the server, the user gets the message about the credentials being invalid.
Paket failed with
-> Error during parsing of '.../paket.lock'.
-> Credentials from authentication store for https://... are invalid

Repro steps
Running paket in verbose mode revealed the real issue.
> paket restore -v
Paket version 5.138.0
found: .../paket.dependencies
Request failed with '502': 'https://...'
Request failed with '502': 'https://.../'
Performance:
 - Runtime: 4 seconds
Paket failed with
-> Error during parsing of '.../paket.lock'.
   StackTrace:
       at Paket.LockFile.Parse (System.String lockFileName, System.String[] lines) [0x00048] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.RestoreProcess.Restore (System.String dependenciesFileName, Microsoft.FSharp.Core.FSharpOption`1[T] projectFile, System.Boolean force, Microsoft.FSharp.Core.FSharpOption`1[T] group, Microsoft.FSharp.Collections.FSharpList`1[T] referencesFileNames, System.Boolean ignoreChecks, System.Boolean failOnChecks, Microsoft.FSharp.Core.FSharpOption`1[T] targetFrameworks) [0x000e5] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Dependencies.Restore (System.Boolean force, Microsoft.FSharp.Core.FSharpOption`1[T] group, System.Boolean onlyReferenced, System.Boolean touchAffectedRefs, System.Boolean ignoreChecks, System.Boolean failOnFailedChecks, Microsoft.FSharp.Core.FSharpOption`1[T] targetFramework) [0x0000c] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Program.restore (Argu.ParseResults`1[Template] results) [0x007ad] in <6f9e0e5312214790b26e1d20f7890678>:0
       at<EMAIL_ADDRESS>(Argu.ParseResults`1[Template] results) [0x00001] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Program.processWithValidationEx$cont@33[a] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, a result, Microsoft.FSharp.Core.Unit unitVar) [0x00002] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Program.processWithValidationEx[a] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] printUsage, System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] validateF, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, a result) [0x00060] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Program.processWithValidation[T] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] validateF, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, Argu.ParseResults`1[Template] result) [0x00006] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Program.processCommand[a] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, Argu.ParseResults`1[Template] result) [0x00007] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Program.handleCommand (System.Boolean silent, Paket.Commands+Command command) [0x001b0] in <6f9e0e5312214790b26e1d20f7890678>:0
       at Paket.Program.main () [0x00405] in <6f9e0e5312214790b26e1d20f7890678>:0
-> Credentials from authentication store for https://... are invalid

Expected behavior
An error message indicating the technical problem of the server.
Actual behavior
An error message indicates that the user provided invalid credentials.

Since you can already repro - would love to get a pr
Am 19.02.2018 09:13 schrieb "Max Malook"<EMAIL_ADDRESS>
Description
When there is a technical issue while accessing the NuGet feed, like 502
deliver by the server, the user gets the message about the credentials
being invalid.
Paket failed with
-> Error during parsing of '.../paket.lock'.
-> Credentials from authentication store for https://... are invalid
Repro steps
Running paket in verbose mode revealed the real issue.

paket restore -v
Paket version 5.138.0
found: .../paket.dependencies
Request failed with '502': 'https://...'
Request failed with '502': 'https://.../'
Performance:

Runtime: 4 seconds
Paket failed with
-> Error during parsing of '.../paket.lock'.
StackTrace:
at Paket.LockFile.Parse (System.String lockFileName, System.String[] lines) [0x00048] in <6f9e0e5312214790b26e1d20f7890678>:0
at Paket.RestoreProcess.Restore (System.String dependenciesFileName, Microsoft.FSharp.Core.FSharpOption1[T] projectFile, System.Boolean force, Microsoft.FSharp.Core.FSharpOption1[T] group, Microsoft.FSharp.Collections.FSharpList1[T] referencesFileNames, System.Boolean ignoreChecks, System.Boolean failOnChecks, Microsoft.FSharp.Core.FSharpOption1[T] targetFrameworks) [0x000e5] in <6f9e0e5312214790b26e1d20f7890678>:0
at Paket.Dependencies.Restore (System.Boolean force, Microsoft.FSharp.Core.FSharpOption1[T] group, System.Boolean onlyReferenced, System.Boolean touchAffectedRefs, System.Boolean ignoreChecks, System.Boolean failOnFailedChecks, Microsoft.FSharp.Core.FSharpOption1[T] targetFramework) [0x0000c] in <6f9e0e5312214790b26e1d20f7890678>:0
at Paket.Program.restore (Argu.ParseResults1[Template] results) [0x007ad] in <6f9e0e5312214790b26e1d20f7890678>:0     at<EMAIL_ADDRESS>(Argu.ParseResults1[Template] results) [0x00001] in <6f9e0e5312214790b26e1d20f7890678>:0
at Paket.Program.processWithValidationEx$cont@33[a] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] commandF, a result, Microsoft.FSharp.Core.Unit unitVar) [0x00002] in <6f9e0e5312214790b26e1d20f7890678>:0     at Paket.Program.processWithValidationEx[a] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] printUsage, System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] validateF, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] commandF, a result) [0x00060] in <6f9e0e5312214790b26e1d20f7890678>:0
at Paket.Program.processWithValidation[T] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] validateF, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] commandF, Argu.ParseResults1[Template] result) [0x00006] in <6f9e0e5312214790b26e1d20f7890678>:0     at Paket.Program.processCommand[a] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] commandF, Argu.ParseResults`1[Template] result) [0x00007] in <6f9e0e5312214790b26e1d20f7890678>:0
at Paket.Program.handleCommand (System.Boolean silent, Paket.Commands+Command command) [0x001b0] in <6f9e0e5312214790b26e1d20f7890678>:0
at Paket.Program.main () [0x00405] in <6f9e0e5312214790b26e1d20f7890678>:0
-> Credentials from authentication store for https://... are invalid

Expected behavior
An error message indicating the technical problem of the server.
Actual behavior
An error message indicates that the user provided invalid credentials.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/issues/3055, or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNOKyPrpkPOu2V7PSEl6kzFj5WeRBks5tWS0_gaJpZM4SKLR7
.


Corona and Fuse Powered changes

Added icon for Corona platform and entries for Fuse Powered and Corona Labs.

Hey @daviderangel great to see you here as well. Thanks for the contribution, will take a look at it and merge it later today.

Great, thank you.

Deployed changes.


feat: Include entire certificate chain if provided

What this PR does / why we need it: Allow a user to provide an entire certificate chain to the ca issuer. Include that chain in all generated certificates
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1067
Special notes for your reviewer:
Release note:

It is now possible to include a certificate chain in the secret for the `ca` Issuer. This will then be propagated to generated certificates.

I haven't yet tested this in our live environment, will be doing that shortly, but would appreciate an early review

Looks sensible to me 😄
To be more sure, could you also look at adding an e2e test for this? It should be able to go in here: https://github.com/jetstack/cert-manager/blob/master/test/e2e/suite/issuers/ca/certificate.go - I think you may have to rework how the BeforeEach function works a bit, or otherwise make all of those e2e tests run with a chain as part of the signing keypair 😄

We should also extend the e2e test cases to actually check the chain is included as expected.
This may need us to actually provision a few different types of issuers during tests, i.e. some with only a self signed root keypair, one with a chain, etc. (verifying the expected output afterward).
Thinking about this more, in future it may be sensible for us to extend the IssueResponse struct we use internally to have a Chain field, to allow cert-manager's core Certificate controller populate the secret (instead of misusing the Certificate field like we currently do).

Yeah, that's a good point. We should have more tests.
And mhm, that sounds like a reasonable refactoring. I guess we could leave that for a later PR?

@munnerz I've added some e2etests for this (which failed prior to the fix)

@munnerz I'm not sure what happened with the tests there. The diff from my earlier version which passed the tests is minimal.. Help?

🤦♂ sorry, I've messed up your branch!

Thanks for putting this together, and for updating tests to cover the new behaviour!
Looking forward to seeing this in v0.6 🎉
/lgtm
/approve

/lgtm cancel
Sorry about this - didn't even realise this was going on!


test(engine): check error type for service unavailable

Codecov Report
Base: 90.79% // Head: 91.11% // Increases project coverage by +0.32% :tada:

Coverage data is based on head (224504f) compared to base (a44b7e8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage   90.79%   91.11%   +0.32%
==========================================
  Files          33       33
  Lines        2477     2477
==========================================
+ Hits         2249     2257       +8
+ Misses        157      150       -7
+ Partials       71       70       -1

Impacted Files
Coverage Δ

internal/engine/mongodb/promise.go
92.44% <0.00%> (+4.65%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[FG-VD-19-053] Markdown-it is vulnerable to denial of service via rendering svg file

Description:
markdown-it is vulnerable to Denial Of Service by billion laughs attack via rendering svg file
Tracking Case #: FG-VD-19-053
Fortinet's FortiGuard Labs have discovered a security issue in your markdown-it product. We estimate its risk to 3, on a scale of 1 (lowest) to 5 (highest), in terms of its impact. Please advise of the appropriate contact person in your company to handle this issue.
Payload:

SVG file: view-source:https://tsug0d.com/payload/dos.svg
Markdown syntax vulnerable:

[![IMAGE ALT TEXT HERE](https://tsug0d.com/payload/dos.svg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)

Server Setup Information:
Tested in https://markdown-it.github.io/
Many vendor who use markdown-it is vulnerable to this bug

Could you explain, why you desided this problem is specific to markdown-it. Such linked image can be created anywhere - at forums with bbcode, for example (because visible extension does not change anything). Looks more like browser bug.

the root-cause is from malicious svg file parsed by browser, the issue is raised from 2012? I'm not sure, https://bugs.webkit.org/show_bug.cgi?id=99942
And look like it will never be fixed from browser base.
In fact, single malicious svg file won't harm anyone because it is not render. In the chain, markdown-it render it, so it is triggered and suffer from DoS attack.
I've tested with markdown in Slack and it is not rendered, so i think there is a way to mitigation it from you.

I'd like point your attention to fact, that this will happen in ANY system, allowing to insert images. Because it's very easy to create server, returning this content & svg mime for ANY extension. At markdown-it level we have no possibility to analyse this. Filtering .svg is kludge, because will not help 100%. We can control html markup only, and markup is NOT buggy.
Please, post it to tracker as "all image-posted sites affected". I guess it worth posting to FireFox tracker too. If FF team fix it - you could push as "this already fixed in FF"
This is NOT markdown-it bug.


Reduce size of cc::Build  and size of generated targets

against is that we have to maintain the list of struct fields

True we need that extra field maintenance, but that would make the generated binary smaller.
AFAIK std::borrow::Cow<'static, str> is 4 pointers long, and &str is only 2 pointers long.
Given that we use Cow a lot it's almost 2x smaller constant data, so I think it should be worth the extra effort.

P.S. I think that some crates use cc-rs at runtime as a normal dep, so this should reduce their binary size.


Autostart & autoload

Currently, version 2.2.3 doesn't respect the QUnit.config.autostart flag if you set it in test-helper.js because it is getting accessed in the test loader code too early. Additionally, this introduces the ability to stop the modules from being required immediately by adding an autoload option (will open a sibling PR against master for this).
cc/ @rwjblue

Hmm, just realized the autostart stuff was moved previously to fix issues with jQuery 3.0...

Yeah, we definitely need to chart a careful course WRT https://github.com/ember-cli/ember-cli-qunit/pull/145.

I'm gonna dig into this more this evening and see if I can find a solution that accommodates all our needs.

So after thinking on this for a while, I don't think there is going to be a good way to get the behavior we want with the current setup.
That said, I've arrived at the opinion that we should like move away from having the tests "automagically" load; I'd like to see us move to something more explicit. I think we should provide a function that consumers invoke from their test-helper.js file. This should allow us to remove the ready logic and the setTimeout while also providing an easy way for users to reason about how their tests get loaded. It would also make it easier to pass options to ember-cli-qunit without having to use the global QUnit.config object. Thoughts?


Create different error for each validation per attribute

In cases where I have a double check, FE: type: { type: 'string', minLength: 1, maxLength: 45, errorMessage: 'should be between 1 to 45' },
I want to have a different error for smaller than 1 and a different error for larger than 45.
FE in the following way -
{ type: 'string', validations: [ {minLength: 1, errorMessage: 'should be larger than 1' }, { maxLength: 45, errorMessage: 'should be smaller than 45' } ] }

if i'm understanding the ask, i believe i came here wanting the same thing. after digging through the source, i realized this is possible by just defining errorMessage inline with each property/validation (i couldn't find anything in the docs explaining). the tests in this repo house some good examples for this. e.g.:
https://github.com/ajv-validator/ajv-errors/blob/7efe8c29c3ea461eef29335e0199742dbc18e791/spec/object.spec.ts#L72-L86

Yes - thank you - the tests is usually the first place I also go to to see how things work with any new libraries :)

Closing it.


cmake: Add deduplication of test cases when they have the same name

Because in doctest multiple test cases may share the same name
regardless of suite scope (if any), and they therefore cannot
always be addressed individually,  improve CTest discovery
behavior by giving up parallelism and exposing them as one test
to CTest. This will result in running N such name-colliding tests
once in series rather than the current behavior of exposing them
as N CTest tests which each run these N doctest tests in series.
Signed-off-by: Itay Bookstein<EMAIL_ADDRESS>

Not sure this should be the default behavior - would like some input from others that are using these scripts...

I agree that it's a bit peculiar and wasn't sure what the 'best' way to tackle this is; but I think running N^2 tests instead of N is more of a misbehavior than this wonky deduplication. I arrived at this solution as a consequence of the fact that tests are (understandably) not uniqued by name, even when you consider suite scoping.


Database replicatedmaster does not exist - error

MI Pool created, SQL Instance created. But when attempt to create a DB on an Instance then received:
New-AzSqlInstanceDatabase -Name "mipooldb1" -InstanceName "poolmi-001" -ResourceGroupName "myResourceGroup"
New-AzSqlInstanceDatabase : Long running operation failed with status 'Failed'. Additional Info:'Database 'replicatedmaster' does not exist. Make sure that the name is entered correctly.'

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ef1ea981-793f-eac2-36fa-59de8714e2e3
Version Independent ID: b4e2963e-e0aa-b9d1-32a1-02df06c03978
Content: Azure SQL Database instance pools how-to guide (preview)
Content Source: articles/sql-database/sql-database-instance-pools-how-to.md
Service: sql-database
Sub-service: managed-instance
GitHub Login: @bonova
Microsoft Alias: bonova

@igomat Thank you for the feedback.
I will have to deploy an MI to test this. I will test this and get back to you shortly.

@ignomat, this appears to be a known issue and very sporadic with ARM tracking.
It should succeed on second attempt.
Please reach out to Azure Support if the issue persists.
We will proceed to close this issue now.


Remove GitLab asan/msan fast_benchmarks

asan/msan build were already removed.

Validated it with ci/lint in GitLab.


Scrolling Inconsistency

There are two ways to select an invalid date:
1: A date that can never ever be valid (like February 31, 2015)
2: A date that is only invalid because of your currently-set minimumDate and maximumDate
If you select an invalid date like 1, the date picker scrolls back to a valid date. :+1:
If you select an invalid date like 2, the scrolling behavior is inconsistent:
I would expect the date picker to always scroll back to the nearest valid value by the shortest route possible. For example, selecting an invalid month will cause the date picker to snap back to the closest valid month. Same for days or years.
But what I see is that the date picker will scroll back to the most-recently-selected value instead of the closest one, and will only sometimes take the shortest route to get there. It currently depends on which way the user has scrolled in the past.
To reproduce, try setting the date to a valid November date, then scroll two months over to an invalid January date. Depending on your past scrolls, the picker will either simply go back two months to November, the way you just came, or it might jump across all other months to get back to November. I would instead expect it to always jump one month back to December (given that December is valid).
I'm open to the possibility that the datepicker would scroll back to where you came from, but even in that case it should take the shortest route, or at the very least, the route that you just took. It shouldn't jump all the way across the calendar if that's not how you just scrolled.

Will re-test after #33 gets merged.

Thanks @mluedke2. Just tested and this bug still exists.


Pre tags, and probably others, overflow on mobile

Right now on the docs homepage when you get down to mobile size the <pre> tags overflow outside of the pages bounds. This only happens when $enable-flex is set to true.

Found the fix for this quickly. The problem is explained and answered here. Basically flex items won't shrink past their contents, so to fix you add min-width: 0px to every col item.


How to pass parameters to a webrun script?

I feel like the browser JavaScript way to pass parameters to a script is via the anchor tags portion of the location URL. When self.location support is added will it be possible to add anchor tags when running a script from the command-line?
Or is there a better way to pass parameters? Perhaps I can "fetch" a local file relative to the script location?

Maybe readline? https://stackoverflow.com/a/38473848/101923

I'm not sure yet, to be honest. At the moment I've been using the search parameters in the URL.
You can see an example of that in follow-seeder.
When running follow-seeder with webrun, I pass in the URL that should be seeded as a querystring parameter.
webrun "dat://follow-seeder.hashbase.io/run.js?url=dat://fritter-rangermauve.hashbase.io"

Within the module, the URL is available as a string under import.meta.url. I use that to parse the URL using the URL API here.
Then you can access whatever parameters you want with url.searchParams.get("whatever") to get the specific params you want.
I think this will be useful going forwards for starting scripts with webrun, but I'm not sure if it's really the best approach. I'm totally open to suggestions for alternatives that'd play nicely with the web.
Regarding input through STDIN and output through STDOUT, I provide self.onmessage and self.postMessage which are APIs that are available in the browser.
You can listen on input through STDIN with this:
self.onmessage = function (data){
  console.log(data);
}

I don't know what would happen if I tried to use URL parameters to webrun a GitHub URL, for example. I think it's a little to risky to hope that the server doesn't change the content based on the URL parameters I pass in.
I think the hash might be a little bit more what I'd do on the web. For dat-pin-box, I think I'll do something like
const url = new URL(import.meta.url)
const pinUrl = url.hash.substring(1)

Yeah, that works too. 😁
Maybe I should add something like console.argv so you can get CLI inputs? Though that would break running it on the web.
Theoretically, you should be able to run the exact same command by using:
<script type="module" src="dat://follow-seeder.hashbase.io/run.js?url=dat://fritter-rangermauve.hashbase.io"></script>

And if we used command line args with a webrun-specific variable, that'd break the ability to do that.

Yeah, console.argv seems counter to the goals of webrun. If single-page JavaScript apps have gotten this far by hacking the URL for client-side logic, I think we can do the same for modules.
🤔 I wonder if there's some routing logic for single-page JS apps that could make a good canonical example for this.

For SPAs these days you'd probably have data in your URL and use the history.pushState() API combined with a 404 page that loads your SPA on all URLs.
E.g.
<Route path="/foo/:user/bar">{(user) => "Whatever"}</Route>

https://example.com/foo/bob/bar => loads the SPA and gets caught by the router

I don't think hash routing is as popular anymore.

One idea I had was automatically turning CLI args into searchParams through something like minimist.
ie: webrun "https://example.com" --spaghetti=meatballs => https://example.com?spaghetti=meatballs

Might be relevant:  the hash at the end of a url isn't supposed to be passed to the server from the browser, so it would reduce the risk of the server tweaking the result based on the query params.
webrun "https://example.com#spaghetti=meatballs"

I just tried the query params method out with a GitHub raw content URL. It worked great.
webrun 'https://raw.githubusercontent.com/tswast/dat-pin-box/master/index.js?pin=dat://464b000900de29e2f02e1c304abb70de0a94266cae55a5ca94bf1abae78839b6/'

ie: webrun "https://example.com" --spaghetti=meatballs => https://example.com?spaghetti=meatballs

I like this idea a lot. When I add URL parameters to webrun a local file it feels weird and somewhat ambiguous because theoretically I could have a filename with a ? character in it (though that's probably not recommended).


STT0083: (Exp 2b) Experimenting on speech to text models for different Tibetan dialects.

Experiment Card

Title: Fine-Tuning a Multidialect Speech-to-Text Model for Tibetan (Utsang, Khampa, Amdo)

Objective:
To develop a speech-to-text model that accurately transcribes three Tibetan dialects (Utsang, Khampa, Amdo) by exploring different fine-tuning approaches.

Datasets

Utsang: 1500 hours (pretrained base model exists).
Khampa: 80 hours.
Amdo: 53 hours.

Experimental Approaches
Experiment 1: Train Separate Models for Each Dialect
Pros:

Dialect-Specific Optimization: Each model can be tailored to the nuances of its respective dialect.
Potential for Higher Accuracy: Specialized models might achieve better performance on their target dialect.

Cons:

Lack of Generalization: Models trained on limited data may struggle with unseen variations.
Computational Cost: Requires training three separate models.
Data Scarcity: Khampa and Amdo datasets are relatively small, which can lead to overfitting.

Subtask
Experiment 2: Train a Unified Model for All Dialects
2a. Train from Scratch
Pros:

Unified Model: A single model can handle all dialects.
Potential for Better Generalization: Exposure to diverse data can improve robustness.

Cons:

Computational Cost: Training a large model from scratch is expensive.
Data Imbalance: The significant disparity in dataset sizes can bias the model towards Utsang.

2b. Fine-Tune Existing Utsang Model
Pros:

Leverages Existing Knowledge: The pretrained Utsang model provides a strong foundation.
Computational Efficiency: Requires less training time compared to training from scratch.

Cons:

Catastrophic Forgetting: The model may forget information about the Utsang dialect during fine-tuning.
Data Imbalance: Similar to 2a, the imbalance can negatively impact performance.

Recommendation
Approach 2b (Fine-Tune Existing Utsang Model)

Why: Efficient, leverages strong Utsang base, and adapts well to low-resource dialects.
Solution: Use balanced sampling to avoid bias toward Utsang and mitigate catastrophic forgetting.

Evaluation

Metrics: CER (Character Error Rate) and WER (Word Error Rate).
Success: Improved transcription for Khampa and Amdo with minimal degradation in Utsang performance.

Subtask

[x] extract amdo and kham data from stt pecha tools
[x] do cleaning  of audios and transcript and convert to required hf dataset format
[x] do train validation and test split.
[x] upload to hf
[x] do prepare dataset to convert data into proper input for model training
[x] train the model
[ ]  upload the best model to hf
[ ] do evaluation of finetuned model and base model on benchmark
[ ] write a documentation of model trained

we need to allocate gpu for training wa2vec2 on tibetan dialects training data:
training spec:
training duration: one day
training gpu: 4 (L4 24 gb )
Khampa: 80 hours.
Amdo: 53 hours.
epoch : 20


Add feature to remove tasks

Tasks need to be able to be removed by name.  track -r <task_name> should work.

make sure this has a warning before continuing


Support for level-0 properties & timestamps

Hi, thanks for your work, I am using orgparse daily and it works great!
This pull requests adds support for property drawers & timestamps before the first headline. Since org 9.4, everything before the first headline is considered to belong to a "outline level 0" (https://orgmode.org/Changes.html#orgdd3d5c7), so I think it makes sense to attach them to our OrgRootNode.
I have basically just moved methods from OrgNode to OrgBaseNode, so they are available in OrgRootNode, and added the appropriate parsers in OrgRootNode.
There was a comment in the code, which said it was "a hack that the root node just reads the lines before the first headline". But I think that is the correct behaviour? I have removed it therefore for now

Thanks, looks good! Sorry it took me a while to get to it; I'll do a pypi release soon as well


Gds focus colour for login

changed the focus hex value for login for elements to the new GDS focus colour

Replaced by https://github.com/Civil-Service-Human-Resources/identity-service/pull/117


Update sbt-mima-plugin to 1.1.0

Updates com.typesafe:sbt-mima-plugin from 1.0.1 to 1.1.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (1.0.1).
You might want to review and update them manually.
build.sbt
core/src/test/scala/sttp/client3/SttpBackendOptionsProxyTest.scala

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe", artifactId = "sbt-mima-plugin" } ]

labels: sbt-plugin-update, early-semver-minor, semver-spec-minor, old-version-remains, commit-count:1

@Mergifyio rebase


extremlymtorrents.ws semi private tracker add as providers

Https://extremlymtorrents.ws semi private tracker add as providers

Made for Jackett https://github.com/Jackett/Jackett/blob/0cd46efe350ee479987ce45b3a36e816edd6d4ad/src/Jackett.Common/Definitions/extremlymtorrents.yml


Added travis check against nodejs13

Code should run against Nodejs 13. Added travis build against Nodejs 13
Nodejs 13.0.0 has released on 10-10-2019
https://nodejs.org/en/download/releases/

https://github.com/xojs/xo/pull/414#issuecomment-569554487


Port to 1.21.1

forge?

forge?

There will be no support for MCForge, only fabric and neoforge will be supported

This PR seems to have a bug that compleatly breaks the hitbox entity component. The fire one might also be broken, but I have no easy repro.

Repro steps:

Open up the game with flywheel installed
Enable either the indirect or instancing backend
Spawn a minecart
Press F3+B to enable hitboxes
-> The hitbox renders as above

The issue disappears after reloading chunks with F3+A and sometimes reappears in after rejoining the game. An alternative form of the bug can also appear after F3+A with some combination of reloads and hitbox toggles, which looks like this:

I was unable to reliably reproduce this form.
I have no idea what's going on, but its very broken.

[ ] Fix test mod
[ ] Fix shulker boxes losing cutout and diffuse on indirect backend
[ ] Inline platform-specific model builders


Add an iterator adapter that allows peeking of multiple values

I find this quite useful, as the .peekable() adapter from std is often not enough (it can only peek one element).
The name is far from perfect, I can rename the whole thing if you come up with something better! ;)

Thank you, I think it's a good idea -- is the stateful .peek() API useful in that shape? Seems a bit weird, what about something like an indexed peek: .peek(&mut self, index: usize) -> Option<&I::Item> ?
And to be correct with the iterator protocol, we need an exhaustion flag for the iterator, i.e. use Fuse.

I thought about that, but decided to build it the way I submitted it in the end because it resembles how .next() works. The first name I came up with was actually .fake_next().
I however have no strong opinion on that, so if you think it would be of more use with an index I'll edit my code, no problem.
I'm sorry but I don't understand the part about the exhaustion flag. The MultiPeek iterator yields None if the underlying iterator yields None. And afterwards the behaviour is unspecified anyway.
The Iterator protocol states that an iterator yields a (potentially-empty, potentially-infinite) sequence of values, and returns None to signal that it's finished. The Iterator protocol does not define behavior after None is returned. A concrete Iterator implementation may choose to behave however it wishes, either by returning None infinitely, or by doing something else.
source

Ok I got it, good catch, thanks!

Ok .peek() is fine. I didn't think about fuse for that reason, just for the case when you peek a None first, then call .next(). I suppose it's a bit of a gray area given that you modify the iterator with other methods.

awesome! anything else you're not happy with?
hmm it's indeed a grey area. But with the fuse in place it's now at least really close to conformity!

I'm happy either way, I promise. I'll merge this another night when I have time to clear up some other WIP in itertools.
If you want to, add docs to all public items here (the struct and methods) and impl Clone, but if you don't I'll do it later.

Nice!
I've added docs and the Clone impl (I hope I've done the latter in the right way).
Thanks!

Thank you!


Uncaught Error: Call to a member function add() on boolean $loader

Q
A

Version
2.0 beta

Support Question

I'm trying to set up doctrine on my yii2 project, but I keep getting the error Fatal error: Uncaught Error: Call to a member function add() on boolean  where the code runs $loader->add('Documents', __DIR__);
bootstrap.php file (in DIR/common/config/bootstrap.php):
<?php

Yii::setAlias('@common', dirname(__DIR__));
Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend');
Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend');
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
Yii::setAlias('Documents', dirname(dirname(__DIR__)) . '/documents');

use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\ODM\MongoDB\Configuration;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;

if ( ! file_exists($file = 'C:/path/to/vendor/autoload.php')) {
    throw new RuntimeException('Install dependencies to run this script.');
}

$loader = require_once $file;
$loader->add('Documents', __DIR__);

AnnotationRegistry::registerLoader([$loader, 'loadClass']);

$config = new Configuration();
$config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('Proxies');
$config->setHydratorDir(__DIR__ . '/Hydrators');
$config->setHydratorNamespace('Hydrators');
$config->setDefaultDB('fsa');
$config->setMetadataDriverImpl(AnnotationDriver::create(__DIR__ . '/Documents'));

$dm = DocumentManager::create(null, $config);

I cannot figure out what is wrong; if $loader was a boolean then why would the docs say to set $loader = require_once $file;?
Thanks

By default, the composer autoload file returns the autoloader in question, which seems to not be the case for you. Could you tell us which version of composer you are running locally?

Maybe this is related to the problem?  When I run
if ( ! file_exists($file = __DIR__.'/vendor/autoload.php')) {
    throw new RuntimeException('Install dependencies to run this script.');
}

rather than
if ( ! file_exists($file = 'C:/path/to/vendor/autoload.php')) {
    throw new RuntimeException('Install dependencies to run this script.');
}

the program gets stuck on this line rather than on $loader->add().

I missed this initially, but if your bootstrap file is located in /common/config/bootstrap.php you'll want to use this:
if ( ! file_exists($file = __DIR__.'/../../vendor/autoload.php')) {

In general, you'll want to ensure that you're actually loading the autoload file from the vendor directory. Not knowing your path structure I can only guess where this is, but it should be easy to handle.

Thanks - __DIR__ works now.  I still get the "uncaught error" though.

Cross-referencing to https://stackoverflow.com/questions/55178020/doctrine-odm-annotations-or-composer-autoload-php-not-working.

@alcaeus Does this mean I need to autoload the files manually?  How is that supposed to be done?

Sorry for the long delay, I was unable to do any work for personal reasons.
I see that the answers on your StackOverflow post pretty much cover what I was going to ask next, so we can skip that step. Can you confirm that your autoload.php file is a) the correct file you intend to load and b) that it contains a return statement? Thanks!

Yes, it looks like:
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit[longstring]::getLoader();

@klickers Pleas set a breakpoint in autoload_real.php and try to debug it that way. Took me a while, but the issue is most likely that your autoload file is returned twice. Take this example:
// include.php
<?php

return 'foo';

Then, try to include it twice:
php > var_dump(require_once 'include.php');
php shell code:1:
string(3) "foo"
php > var_dump(require_once 'include.php');
php shell code:1:
bool(true)

As you can see, all calls to require_once after the initial call no longer return the value returned by the script (in your case the autoloader) but true. This corresponds with your error message. You'll have to figure out what causes the autoloader script to be included twice and work around it.

@klickers Any luck with my suggestion above?

@alcaeus I'm so sorry for the late reply; I got too busy and didn't have much time to work on this project for a while.  I just figured out where it's been double-called;  the framework I'm using calls autoloader.php itself.  So my bootstrap.php, which was loaded after the main file of the framework, called it a second time and returned bool(true).
Thank you so much for your time and help!  I really appreciate it.  😃  Sorry I was so late in getting back.


Dice Throw Problem in C++

💥 Proposal
(A clear and concise description of what the proposal is.)
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Given n dice each with m faces, numbered from 1 to m, find the number of ways to get sum X.
I am a GSSOC'21 participant and would like to work on this issue.

/assign


Remove User Factory in favour of Specification pattern

Fixes #96

Pull Request Test Coverage Report for Build 299

14 of 14 (100.0%)  changed or added relevant lines in 6 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 95.66%

Totals

Change from base Build 296:
0.05%

Covered Lines:
507

Relevant Lines:
530

💛  - Coveralls

Hi, checking uniqueness requirement in the handler is better (aggregate stay pure) in my opinion.
I have some doubt (theoretical) about implementation, I think 'UniqueEmailSpecification'  is a normal domain service (change name in CheckUniqueEmail) if we use term "specification" should adhere at "specification "specification pattern" only 1 interface "SpecificationInterface"  and UniqueEmailSpecification and other future specification class inherit from this interface. changing contract/interface broke the composition/chaining capabilities of this pattern.
Suggestion1: change the name of service, avoid confusion of the term 'specification'
Suggestion2: don't change the name but change the code and adhere to the pattern

Hey @zerai thanks for your feedback.
Specification abstraction added 👍

I keep uniqueness logic in the because is a requirement of the domain itself and IMO business rules when deeper, better.


Add support for TIFF files.

The entire Bolton-Brush collection is in TIFF format, we need to be able to import those.

Add TIFF sample data
Importer should be able to automatically detect TIFFs

It sounds like the conversion needs to happen by reading TIFF data pixel by pixel and re-writing it in raw DICOM. Although there might be a better way: https://www.sciencedirect.com/science/article/pii/S2153353922003753
This could be one way to go, although i'm not sure it would be the best, because maybe not all readers would be able to view the image.

Other interesting message https://groups.google.com/g/comp.protocols.dicom/c/QlPrxuV-Fno/m/72XpAqRoBQAJ
Suggesting to make sure all EXIF data is converted from the TIFF, including the ICC Profile https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.11.15.html


DEFINITELY the most legitimate dead link removal you've ever seen, for sure not a shamelessly minimal attempt at a free t-shirt, nope.

Description
We're not doing Phase this year.
Related Issues
Link to any issues that are relevant to this PR. This could be an issue this PR fixes.
Some questions

Did you read the contributing guidelines?
I probably should at some point.
Did you edit any CSS or JS file?
No.
If you answered yes, did you update the version number on index.html?
(Your answer)
If you answered No to question 1, go back and read the instructions carefully.
If you answered Yes to question 2 and No to question 3, go back and update the version number.

Additional Notes
Do you want to add anything else? We :heart: to hear your opinions!

gj!


Refactor exported API

@tangrufus Now we have a face 🫠 - No fence!
internal/wordfacetest

Now I know goland doesn't check file name spellings.
FIxed in https://github.com/typisttech/comver/pull/16
Thank you!!!


chore: release 1.2.100

:robot: I have created a release *beep* *boop*
1.2.100 (2022-05-13)
Bug Fixes

imports: recursive copying issues (9351c25)
switch to actions/checkout@v3 (ba3ac8e)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/werf/werf/releases/tag/v1.2.100 :sunflower:


Updating Atoti Intro Video in README

Closing this PR in lieu of https://github.com/atoti/atoti/pull/950.


No incoming pod traffic metrics when bpf masquerade is enabled

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
When bpf.masquerade is enabled there are no metrics for NAT traffic incoming to pod

(on the screenshot I disabled bpf.masquerade and after this receive bandwidth is showing)
Cilium Version
Client: 1.12.0 9447cd1 2022-07-19T12:22:00+02:00 go version go1.18.4 linux/amd64
Daemon: 1.12.0 9447cd1 2022-07-19T12:22:00+02:00 go version go1.18.4 linux/amd64
Kernel Version
Linux s1-comnet-tas 5.15.57-talos #1 SMP Mon Jul 25 15:49:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kubernetes Version
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:26:19Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:23:26Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}
Sysdump
No response
Relevant log output
No response
Anything else?
No response
Code of Conduct

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

/reopen

@maxpain Bandwidth metrics in the graphs you have posted here are exposed by Cilium or Cadvisor (or something else)?


Fix Typings output Encoding

Bug
The output from the typings command is sometimes garbled. This seems to be an encoding issue.
Fix
Force the output to be treated as utf-8. Here's the fixed output:

Closes #1123

:+1:  - let's pull this in for RTM


Peer to Peer Review

Good Job Done so far.
The Interface looks good and code arrangement is nice.

Thank you so much!

I totally agree with afiamoh.
Keep it up.


bug: Incorrect commit of opendal-go-services released.

Describe the bug
https://github.com/apache/opendal-go-services/actions/runs/10322022975/job/28576406436
Yesterday, v0.49.0-rc.1 of the opendal-core and v0.1.0-rc.1 of openda-go were released. Then the cronjob of opendal-go-services built new artifacts and pushed them to the main branch. The commit should be ce0b4d343ae758fd63f8c340f4c99de4309f9f96. Later we got a set of tags for the opendal-go-services: v0.1.0-rc.1, s3/v0.1.0-rc.1, etc.
I found that v0.1.0-rc.1 is tagged with the correct commit, while the rest of them are tagged with f2e8851055abbd2b7c45d0f496152cb56dc6f4ae, the previous commit. That indicates all of the services/tag use old artifacts.

Steps to Reproduce
Release opendal-core and opendal-go version.
Expected Behavior
All tags should be the correct commit.
Additional Context
No response
Are you willing to submit a PR to fix this bug?

[ ] Yes, I would like to submit a PR.

I suspect there is a cache when checkout across GHA jobs. Maybe we can checkout the specific tag in the Tag job after it was tagged in the Generate job.


npm install should be quiet

There should be a way to silence output from npm install for successful installations (--quiet comes to mind). Even currently when there is nothing to install it outputs a blank line for some reason. This is quite annoying if using npm from a crontab or other environment where output usually means something needs to be debugged.

The arg is --silent.  Or npm config set loglevel warn if you want to only print warnings and errors.  Or you can pipe it to /dev/null.
All configuration options are documented in npm help config

Thanks for the info. Sorry about the failure to rtfm. I would recommend adding --quiet as an alias as it more conventional iirc.

Note: Even with --silent 'npm install' seems to omit an empty line

I just ran npm 1.1.1 using "npm install --silent" and had debug output for the packages it installed. Regression?

If you want it truly 100% silent, then direct the output to /dev/null.
npm install &>/dev/null
and that will be 100% silent.

Just a quick comment here, since I'm also looking for a way to silence npm (update, though).
Using the above method sure does silence NPM.. It even removes the spinning /, which was another thing I had been wishing for for a long time.
Soo, using &>/dev/null silences NPM alright, but at the same time removes any indication of progress. Meh... :(
Still wishing for a --silent or --quiet flag, that just removes any spamming output, except the nice working-indicator.

+1

Just a quick comment here, since I'm also looking for a way to silence npm (update, though).

@nesler so we've been using this for installs- could add one for update using this

@nesler or you can grab the tarball directly w/o using the childproc approach w/ http://node-machine.org/machinepack-npm/download-package

@mikermcneil thanks for sharing!
switched to enpeem just because of a single line

@othiym23 Any thoughts on @monokrome's idea regarding making npm silent by default?

@SimenBIn general, the Unix philosophy is a great way to create simple, composable tools (and is a cornerstone of the philosophy of small modules that npm advocates). npm the tool, though, is not a small tool, and already does many things, and is an end-user tool. Making npm quieter by default would make it easier to use in tooling pipelines, but would make it much more confusing for casual users, which would in turn make it much more time-consuming to support (small usability tweaks have large knock-on impacts on how many new issues get filed against npm). As one of the people primarily responsible for supporting npm, I'm not enthusiastic about doing things that make npm harder to support, and as such @monokrome's change isn't one I'm interested in making.

@othiym23 Thanks for the detailed response. That makes sense!

Telling people what actually breaks when there is an error and not telling them all the stuff that they don't care about doesn't seem like it would make things harder to support.

We get many, many support issues from people who take the absence of output as evidence that the command didn't work, which is why many of npm's formerly silent subcommands have sprouted some (minimal) output over the life of npm@2.

This verbose behaviour is extremley annoying to say the least and in a direct opposite to how most other tools works.

@othiym23  regardless of what is silent per default it's really strange that there isn't a way to disable the summary tree at the end.    If npm is an end user tool, which tool is the one I should use for automation which has full package.json support?

+1
during npm install today, it popped up about a thousand popup error boxes warning me about missing files. That should NOT EVER EVER EVER EVER EVER EVER EVER EVER happen.

+1 what @thomasf said: adding --no-summary flag could be good thing if we don't want to modify a logLevel behaviour.

--no-summary would be great (or even better gets omitted in --quite mode)

+1 for a --no-summary flag.
Having the option to decide whether to output the summary would be very helpful.

redirecting output to stdout is a non-starter. i want to see error messages.
being verbose by default is fine, provided there is a way to reduce it
i have no interest in spinners, dependency trees, or any of the other crap that npm spits out—even though i specifically run with --loglevel=warn or --silent or --quiet. i even have spin = false in my config but nothing seems to keep that effing progress meter off my screen.
a tool written by tools for tools.

@walgitrus For npm@3 at least, I do not think the spin is an actual config setting. Are you looking for progress?

Apologies for nagging away at this again but please, no tree by default.
I have to agree that, as much as I love and appreciate npm, I do find that 913 lines of output (including the tree) to install a relatively simple package.json for watching, compiling and browser syncing my style files is shouting "something is wrong" when nothing is wrong.
I know npm is doing wonderful things for me (reliably installing 2031 directories, 9435 files) but I am perfectly capable of typing tree node_modules/ on those occasions that I actually need to see the tree

@iainhouston in the meantime, try --depth 0:
npm list --depth 0

Thanks @qw3rtman, npm install --depth 0 does cut down the output to a sensible level

Also +1 on a --no-summary option. Seeing that module-tree after npm install in our CI-logs is absolutely horrible.

+1

neither npm install --silent or --quiet seem to hide the tree - is there no way of achieving this?
We've found in our user research that the tree is complex and confusing. We're trying to add a nice "all done" message using a postinstall script, but it gets output before the tree, and therefore not seen by the user.

I would also love to be able to silence npm installs again (this used to work in the Heroku buildpack, but hasn't for a while).

@hunterloftis  and @joelanman, @rmilesson:
Until they fix this, you can pipe the output to dev/null (or out-null if you're using Powershell).

@Pharylon but that would hide any actually useful output, such as errors

1 on a "not show the tree" option

Can this issue please be opened again? It may have worked in 2012, but it does not work now

@qw3rtman: Even better: npm install --depth -1 will only print a single line upon completion: ``-- (empty)`

Hi, what is the solution?

This ticked was closed in the second comment https://github.com/npm/npm/issues/2040#issuecomment-3504495. But it really should be reopened.

Yes,  please reopen.

In my experience, an install script from a dependency doesn't respect neither --silent or --quiet, so even if I want to use --quiet to log warnings, to suppress repeated logs from progress bars of npm scripts of packages I have to use &>/devl/null to redirect everything to dev/null.

Agreed. Should be reopened. Trying to use npm programmatically and I've absolutely no interest in seeing output from it. As of npm@3 it's impossible to get rid of the progress bar (so far that I've tried)

@shellscape Have you tried --no-progress?

@iarna couldn't find that trigger in the code. note that I'm using npm programmatically. do you know where the flag-equivalent is hiding?

@shellscape We don't support using npm as a library. (As I'm sure you've discovered, those APIs are... uh, let's say… not well designed for that purpose. The only officially supported way to consume npm from other software is via a child process. But like any flag, you can pass it in to npm.load like:npm.load({progress: false}, …).

Another way to disable the progress bar is to set progress=false in .npmrc.
To disable warnings and errors, you can also set loglevel=silent.

@shellscape But testing the progress bar shows that there is an outstanding bug that means it isn't always actually disabled. =/ On the plus side, we'll have that fixed v soon. (I have the patch written–it's as simple as correcting the construction of the gauge object.)

@iarna thanks for the tips and the heads up about the bug, much appreciated

The main problem that persists is the lack of possibility of hiding the summary tree. It's amazing to me (or appalling, you choose) that an option is not even available. If all the options that are there now (silent and quiet) are to be preserved for backwards compatibility, a new option should be added (--no-tree? --no-summary?)

@mcdado See https://github.com/npm/npm/issues/10732.

Thanks @KenanY, even though you made me even more sad for a moment 😿

Hi Forrest @othiym23

Making npm quieter by default would make it easier to use in tooling pipelines, but would make it much more confusing for casual users

I'm using npm v3 shipped with node.js v6. My package.json contains only 12 production dependencies and 14 devDependencies.
As one of the casual users I have to admit that 671 lines of summary dependency tree after a npm i is killing me.
$ npm ls | wc
     671    2893   26039

Can you please reconsider what a casual user actually want?
Thank you! We love NPM :)

+1
npm print about 1100 lines to CI log.

@isaacs forgive me if I am wrong, but the npm install depedency tree is still printed, even when using &>/dev/null
not sure how or why that could be, but it seems to be the case, I haven't followed this thread in awhile, but having the option to not log the dependency tree as well, would be a nice to have.

Well, after more than five long years, this is finally going to be fixed -> #10732 :)

Is it possible to make npm link silent as well? is it with the --silent flag? I am on version 4.6.1 not sure if using that flag works with npm link.


Add verbose attribute to ansible plugin

New verbose attribute with integer value was added to ansible plugin for
prepare step. It will enable different verbose levels for ansible-playbook.
--verbose option or verbose attribute from fmf file will be applied.
Add tests.
Update docs.

Hi @psss,
I've decided to use verbose attribute or --verbose option depending what is bigger. Please have a look.

Tests seems to be failing:
ansible-playbook: error: unrecognized arguments: /var/ARTIFACTS/work-advancedG2lrlE/plans/features/advanced/discover/default/tests/tests/prepare/ansible/data/playbook.yml

fixed
On Mon, Nov 29, 2021 at 5:57 PM Petr Šplíchal @.***>
wrote:

Tests seem to be failing:
ansible-playbook: error: unrecognized arguments: /var/ARTIFACTS/work-advancedG2lrlE/plans/features/advanced/discover/default/tests/tests/prepare/ansible/data/playbook.yml
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/psss/tmt/pull/938#issuecomment-981824501, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ANNRVY4VWOLCDBMH3BFRTMDUOOWIJANCNFSM5HRIRHJA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

/packit test

Hi @psss, I added extra-args attribute and fixed tests.

/packit test

Tests are green, the only failure is the known Could not resolve host issue (@thrix fyi).


Improve challenge description in Spanish

Rephrase the challenge description to make it more understandable in Spanish, due to false friends and words order.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Thanks!


Business Logic for get product Identifiers

Added Business Logic for get product Identifiers.

Ignore this PR as target branch was selected wrongly.

check


baetyl-38 set init node props

Codecov Report

Merging #182 (d9fcf85) into master (02763c2) will decrease coverage by 0.15%.
The diff coverage is 15.38%.

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
- Coverage   68.82%   68.67%   -0.16%
==========================================
  Files          70       70
  Lines        4792     4804      +12
==========================================
+ Hits         3298     3299       +1
- Misses       1072     1082      +10
- Partials      422      423       +1

Impacted Files
Coverage Δ

api/sync.go
51.85% <15.38%> (-12.44%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02763c2...d9fcf85. Read the comment docs.


HOTFIX: Try to complete Send even if no bytes were written

If there are pending bytes in the transport layer, we may
complete a send even if no bytes were recorded as written.
We assume bytes are written when they are in the netWriteBuffer,
but we only consider the send as completed when it's in
the socket channel buffer.
This fixes a regression introduced via 0971f66ff546. The impact is
that we would sometimes throw the following exception in
MultiRecordsSend.writeTo:
if (completed())
    throw new KafkaException("This operation cannot be invoked on a complete request.");

Added unit test verifying the bug fix. While in the area, I simplified one of the
SslSelectorTest methods.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

One job passed, two failed with the flaky:

testNoDescribeProduceOrConsumeWithoutTopicDescribeAcl


chore(package.json): upgrade lodash to v4

Attempt to solve issue #1257.
@kwonoj when running the tests on IE10, I noticed an error of getNative is undefined, where getNative was part of lodash, so this PR updates lodash. The tests still did not pass in IE10, but for different (unknown) reasons. Anyway, let's see if this PR helps with issue #1257 after we run on saucelabs.

I'm seeing travis throws by lodash with this PR, any ideas?

module.js:339
throw err;
^
Error: Cannot find module 'lodash/string/escapeRegExp'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/travis/build/ReactiveX/RxJS/node_modules/markdown-doctest/node_modules/babel/node_modules/babel-core/lib/util.js:20:33)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)

Travis log : https://travis-ci.org/ReactiveX/RxJS/builds/105688729

Ok, that one was fixed by updating npm to v3. But I didn't see any reports from saucelabs yet.

Does it not triggered on your repo? It's expected to PR does not trigger saucelabs.

Nothing triggers, apparently...

Interesting. It only requires

travis enabled
set environment variable in travis configuration
should not be PR

Merged with 2c65ed4, thanks @staltz . For setting up saucelabs, ping me anytime if you need additional details.


UI: Make navbar full width

This makes the main navbar full-width, matching GitHub's design. I also tested and ensured this change does not affect the mobile layout.
Before

After

Codecov Report

Merging #5998 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5998   +/-   ##
=======================================
  Coverage   38.76%   38.76%
=======================================
  Files         332      332
  Lines       48938    48938
=======================================
  Hits        18969    18969
  Misses      27222    27222
  Partials     2747     2747

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6606d65...d82bd15. Read the comment docs.

@zeripath please do not merge without adding needed labels and milestone

@silverwind but the username on the secondary menu should also be align with the top menu.

It is aligned with the container below not visible in the screenshot. Will think about something for this user menu, not happy with it.


Reply "button" uses a strange color

Is this color used anywhere?

Why not use this color?

@rebornix is this suppose to be a button or a text area? It's a button in the code but it's styled to look like a text area.

This was fixed with PR #56595


@nuxtjs/component-cache - cannot hydrate when use new fetch() in component

Version
2.12
Reproduction link
https://codesandbox.io/s/modest-blackwell-uvtxt
Steps to reproduce
go to https://codesandbox.io/s/modest-blackwell-uvtxt and reload project browser few times
What is expected ?
cache works properly
What is actually happening?
got error Mismatching childNodes vs. VNodes:

This bug report is available on Nuxt community (#c185)

Related: https://github.com/nuxt/nuxt.js/issues/7161


feat(ws): add "socket" property on server object

Makes the raw socket instance access consistent across client.socket and server.socket. Also drops server.readyState getter in favor of server.socket.readyState (-1 as a value no longer a thing).

Released: v0.36.0 🎉
This has been released in v0.36.0!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Can links be created in Net CORE 3.1?

I working on an application that requires a shareable link and I am using Net CORE 3.1 and C#. Are there any examples or resources that will help me?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 69601057-a846-2eea-33b4-9e1760981e88
Version Independent ID: 5cbaae53-7d99-8075-609a-30d82c9ad0c8
Content: Share a file with a link - OneDrive API - OneDrive dev center
Content Source: docs/rest-api/api/driveitem_createlink.md
Product: onedrive
GitHub Login: @rgregg
Microsoft Alias: rgregg

The Microsoft Graph SDK supports .net core (check the "getting started" section in the Graph developer site).
The documentation for the corresponding Graph API has some examples for additional languages.

I am still struggling and have failed to get any of the examples running using Visual Studio 2019, Net Core 3.1 and C#. My application seems straightforward. Currently, we use the OneDrive "Share" function to generate a shareable link to a file or a folder and paste it into label making software for a QR code that users can use their phone and the QR code to look up information on our corporate OneDrive. I would like to automate that process in the applications we are developing. The ability to do that as part of the application is eluding us. My feeling is that this has been done and we should be able to see a working example that can guide us in our implementation. When I look at this example I am getting lost in the first part where it sets up the "authProvider" instance. When I try to determine how to do that in my application, I am looking at a bewildering array of possibilities, none of which I understand. I will continue to work with this and look at the examples and try to make them work, but it seems a lot harder than it should be to me.

Thanks for your feedback. This is a question for Microsoft Graph; I'll tag for our helpful bot to provide a link.


Update schema.graphql

_Loan has not been finished, my apologies

Can you please clone and work directly out of this repo (rather than have another fork).

Done in this PR already: https://github.com/papercliplabs/messari-subgraphs/pull/4


problems with JanusGraph

Hi,
I do not know if JanusGraph (beneath TinkerPop) is expected to work or not. However, I've been having a problem where the vertices I create are not stored to disk. They appear to be created but when I reopen the DB, using gremlin from the JanusGraph distro, there are no vertices in the DB. I have created a simple test (attached). This is the behavior I get (the 'submission' arg just selects the attached simple test case):
bash$ java -jar /Users/drs/develop/scala/xml/xml-ccache/target/scala-2.12/ccache-assembly-0.0.1-SNAPSHOT.jar submission
09:17:14,402  INFO GraphDatabaseConfiguration:1381 - Set default timestamp provider MICRO
09:17:14,456  INFO GraphDatabaseConfiguration:1553 - Generated unique-instance-id=ac10fa0127916-odysseus-local1
09:17:14,497  INFO Backend:466 - Configuring index [search]
09:17:14,521  INFO Backend:183 - Initiated backend operations thread pool of size 8
09:17:14,620  INFO KCVSLog:744 - Loaded unidentified ReadMarker start time 2017-04-26T13:17:14.571Z into org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller@135606db
>>>>>> v[4320]
bash$ janusgraph-0.1.0-hadoop2/bin/gremlin.sh
objc[27917]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x1017e74c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1019684e0). One of the two will be used. Which one is undefined.

         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
plugin activated: janusgraph.imports
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/drs/develop/scala/xml/xml-ccache/testing/janusgraph-0.1.0-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/drs/develop/scala/xml/xml-ccache/testing/janusgraph-0.1.0-hadoop2/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.spark
plugin activated: tinkerpop.tinkergraph
gremlin> graph = JanusGraphFactory.open('berkeleyje:test.db')
==>standardjanusgraph[berkeleyje:/Users/drs/develop/scala/xml/xml-ccache/testing/test.db]
gremlin> graph.vertices()
gremlin>
bash$

Thanks for any advice!
ScalaGremlin.txt

Hi @schiebel, I tried out your example, and I believe the reason that your vertex is not being persisted is because you are not committing a transaction.  If believe if you add graph.tx().commit() after you add the vertex, it should now be visible from your gremlin console, at least that seemed to work for me.

Excellent! Indeed it does. Thank you very much for taking the time to help with my problem, @tolbertam


Make systemtests build operator registry with olm manifests

Type of change

Enhancement / new feature

Description
From #4356 but this time building image inside pod so OLM tests can be run in kubernetes and openshift. This also helps not adding more prerequisites to run systemtests locally.
It builds and push the custom operator registry image to the image-registry specified in OCP4_EXTERNAL_IMAGE_REGISTRY env var, but if not specified we try to push it to the default image-registry we can get from the cluster.
Also, important to highlight, the org used to push the image is the namespace of where the olm installation is being made. I know it would be nicer to do it into a specific namespace made to hold the new image and get something like image-registry.openshift-image-registry.svc:5000/custom-images-namespace/custom-operator-registry-image:latest but that would force us to set image-puller permissions for the new namespace to each namespace where we are deploying enmasse (currently openshift-operators and enmasse-infra), here I just tried to avoid that but if we agree we want I can change it :)

Checklist

[ ] Update/write design documentation in ./documentation/design
[x] Write tests and make sure they pass
[ ] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[x] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

@enmasse-ci run tests profile=acceptance OLM

:heavy_check_mark: Test Summary :heavy_check_mark:
TEST_PROFILE: acceptance
TEST_CASE:
TOTAL: 18
PASS: 18
FAIL: 0
SKIP: 0
BUILD_NUMBER: 507

Closing as it's been continued in #4441


MTB won't work with macOS 12.6

UUID is the same as in 12.5: A4B49485-0377-4FAB-8D8E-E3B8018CFC21
AppleMail is now Version 16.0 (36<IP_ADDRESS>.1) in macOS 12.6
Please fix this.
Thank You!

Same here. No longer works. Thanks in advance for e fix!

Worked in macOS 11.6.(whateverMinorVersionItWas) Big Sur; doesn't work now in macOS 11.7 Big Sur.
Mail.app has same UUID: D985F0E4-3BBC-4B95-BBA1-12056AC4A531 as it did previously.
I edited MailTrackerBlocker's Info.plist to add a new section:
<key>Supported11.7PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
just underneath the existing one for 11.6.
I followed the instructions here https://c-command.com/spamsieve/help/resetting-mail-s-privat to successfully delete Mail's Private Plug-Ins Folder; I didn't need to do the whole restart with SIP off procedure, it deleted right away.
Still doesn't work.

@edmechem Thanks for the 11.7 UUID confirmation. Feel free to open a PR next time that happens. Unfortunately, you can't change the Info.plist in your local mailbundle due to signing.
@berkue Thanks for the 12.6 UUID.
Should be all fixed in 0.7.4.

I'm still getting the error with this file.


Compatibility with opensearch 2.18.0

Description
Compatibility with OpenSearch 2.18.0
Issues Resolved

#134

Test
Deploying a development environment using wazuh-dashboard-plugin:


DBZ-8353 Migrate SQL server testsuite to async engine

https://issues.redhat.com/browse/DBZ-8353

@vjuranek ould you please doublecheck the test failures?


⚠ Bofrost.at has degraded performance

In 1ab08fc, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1063 ms

Resolved: Bofrost.at performance has improved in bacae84 after 35 minutes.


New IBM DB2 Template Required

Why the new feature should be added
Currently, when using the QueryDSL package with IBM DB2 for pageable queries via JPAQuery, the generated SQL query follows this structure:
select * from ( select inner2.*, rownumber() over (order by id) as rownumber_ from (select * from .... fetch first 100 rows only ) inner2 ) where rownumber_ > 50 order by rownumber_
This structure, while functional, is not as efficient or standard as the LIMIT ... OFFSET ... pattern supported by many modern SQL databases. The LIMIT ... OFFSET ... pattern is more concise and can lead to improved performance and readability of the generated SQL queries.
The ability to generate SQL queries using the LIMIT ... OFFSET ... pattern would benefit users who work with databases like IBM DB2, where this syntax is supported and preferred. This feature would make QueryDSL more versatile and aligned with common SQL practices.
How the new feature should work
Currently, the generated SQL query in IBM DB2 with JPAQuery for pageable results uses the ROWNUMBER() window function combined with a nested query structure. The new feature should alter this behavior to generate SQL queries using the LIMIT ... OFFSET ... pattern instead.
The expected behavior would be:
The generated SQL query should look like this:
select * from .... limit 100 offset 50;
This change should seamlessly integrate with existing QueryDSL functionality without affecting other database dialects or users who prefer the current behavior.
It should be configurable, allowing users to choose between the current ROWNUMBER() based approach and the new LIMIT ... OFFSET ... approach based on their database and performance needs.
This enhancement would improve the flexibility and performance of QueryDSL when used with IBM DB2, making it more adaptable to different SQL dialects and user preferences.

Hi,
Sadly, you will get no help here. Team gave up on maintaining this project but won't let anyone else to step in to keep project active.
If you keen on fixing this and sharing with the community, you can send to me on my fork and I will get it released.
https://github.com/OpenFeign/querydsl/
Testing DB2 on circle CI proved to be very challenging.
Cheers


upd(wine): 7.2 -> 7.6

Actually, can you just remove this package, as I don't wish to maintain it anymore


fails to parse files with async await

this example file fails to parse when I use the async await syntax
// src/testfile.js
const { add } = require('../')

const timeout = n => new Promise(resolve, setTimeout(resolve, n))

const runAfterOneSecond = async (x, y) => {
  await timeout(1000)
  return add(x, y)
}

this is the error:
> findImports('./src/testfile.js', { relativeImports:true, absoluteImports:false, packageImports:false })
Error in `undefined`: Error: Line 7: Unexpected token =>

actually, I just ran the same file from master and there is no issue. Maybe a minor version bump could be sent out soon?


SpotBugs:    generated com.hedera*Codec.toJSON() methods compares string as Objects not as their values. Must use isEmpty()

Description
Comparison of String objects using == or != in in all methods com.hedera*Codec.toJSON()
for example:
generated file ./hapi/build/generated/source/pbj-proto/main/java/com/hedera/hapi/node/token/codec/AccountInfoJsonCodec.java
line:
if (data.memo() != "") fieldLines.add(field("memo", data.memo()));

Steps to reproduce

./gradlew clean assemble
check ./hapi/build/generated/source/pbj-proto/main/java/com/hedera/hapi/node/token/codec/AccountInfoJsonCodec.java methid toJSON()

Additional context
No response
Hedera network
other
Version
0.53
Operating system
Other

@alex-kuzmin-hg please move this ticket to the PBJ repo


Gobblin MapReduce Deployment Fails

I am trying to run Gobblin on MapReduce. In my NameNode gobblin-dist folder I am doing this - [mike@name1 gobblin-dist]$ bin/gobblin-mapreduce.sh --projectversion 0.6.2-861-g18a135e --conf ../work_dir/wikipedia.pull
I have added my hdfs uri properties in conf/gobblin-mapreduce.properties and also set all env vars like GOBBLIN_WORK_DIR etc. Standalone deployment works fine.
However MapReduce fails with this -
Exception in thread "main" gobblin.runtime.JobException: Job job_PullFromWikipedia_1471397156942 failed
at gobblin.runtime.AbstractJobLauncher.launchJob(AbstractJobLauncher.java:363)
at gobblin.runtime.mapreduce.CliMRJobLauncher.launchJob(CliMRJobLauncher.java:84)
at gobblin.runtime.mapreduce.CliMRJobLauncher.run(CliMRJobLauncher.java:61)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
at gobblin.runtime.mapreduce.CliMRJobLauncher.main(CliMRJobLauncher.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Can someone please help?

This is a generic exception, indicating that one of the map tasks in the MR job failed. You need to check the logs of the map tasks that failed and look for the exception that caused the failure.
Typically, you can get all the map tasks logs by running yarn logs -applicationId [app-id]