endpoint: Remove duplicate check endpoint in disconnecting state

identityResolutionIsObsolete() and ModifyIdentityLabels() are called with
LockAlive() being held so there is no need to check aliveness again.

This change is

Coverage decreased (-0.03%) to 44.137% when pulling 86bc8f0376297fdf551aab4ba8da5b086cb60a74 on pr/tgraf/remove-duplicate-identity-check into acced7e5e0836fd6e79b6b17e2473876f1f75d2f on master.

test-me-please

test-me-please

Provisioning failure: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/13159/
15:40:14      k8s2-1.14: Fetched 3,493 kB in 2s (1,677 kB/s)
15:40:14      k8s2-1.14: Reading package lists...
15:40:14      k8s2-1.14: Reading package lists...
15:40:14      k8s2-1.14: Building dependency tree...
15:40:14      k8s2-1.14:
15:40:14      k8s2-1.14: Reading state information...
15:40:14      k8s2-1.14:
15:40:14      k8s2-1.14: No apt package "kubeadm", but there is a snap with that name.
15:40:14      k8s2-1.14: Try "snap install kubeadm"
15:40:14      k8s2-1.14:
15:40:14      k8s2-1.14:
15:40:14      k8s2-1.14: No apt package "kubectl", but there is a snap with that name.
15:40:14      k8s2-1.14: Try "snap install kubectl"
15:40:14      k8s2-1.14:
15:40:14      k8s2-1.14:
15:40:14      k8s2-1.14: No apt package "kubelet", but there is a snap with that name.
15:40:14      k8s2-1.14: Try "snap install kubelet"
15:40:14      k8s2-1.14: E: Unable to locate package kubernetes-cni
15:40:14      k8s2-1.14: E: Unable to locate package kubelet
15:40:14      k8s2-1.14: E: Unable to locate package kubeadm
15:40:14      k8s2-1.14: E: Unable to locate package kubectl
15:40:14  The SSH command responded with a non-zero exit status. Vagrant
15:40:14  assumes that this means the command failed. The output for this command
15:40:14  should be in the log above. Please read the output to determine what
15:40:14  went wrong.

test-me-please


unixcw : init at 3.5.1

Motivation for this change
I would like to add the unixcw package to nixpkgs
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Hi Ryan,
Thanks for looking at my pull request. I'm still new to this.
Is it possible to update a pull request with a squashed commit
or to I have to close this pull request and open a new one?

@GrahamcOfBorg build unixcw

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: unixcw
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: unixcw
Partial log (click to expand)
shrinking /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1/bin/cwgen
shrinking /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1/bin/cw
shrinking /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1/lib/libcw.so.6.6.1
gzipping man pages under /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1/share/man/
strip is /nix/store/21ymadblbmsbb2bk4q7gl4kjasp8zmgd-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1/lib  /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1/bin
patching script interpreter paths in /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1
checking for references to /build in /nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1...
postPatchMkspecs
/nix/store/z28slb8zadw796n7hmg7vx16a2sjzfmn-unixcw-3.5.1

Success on aarch64-linux (full log)
Attempted: unixcw
Partial log (click to expand)
shrinking /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1/bin/cwgen
shrinking /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1/bin/cw
shrinking /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1/lib/libcw.so.6.6.1
gzipping man pages under /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1/share/man/
strip is /nix/store/qg2agrqkf240s656d207zqhipl0bc2id-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1/lib  /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1/bin
patching script interpreter paths in /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1
checking for references to /build in /nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1...
postPatchMkspecs
/nix/store/rlnyxyhfinmxk59jdasi7rrmx8k54xb7-unixcw-3.5.1


Add multi-select to Quick Pick extension API

It would be nice there was a QuickPickOption that enables the user to select multiple items by, for example, holding shift while navigating the item list or control-clicking items. This would be very useful for extensions which can generate getters/setters among others.

dupe of #238


HCL syntax to yaml in example

I changed the HCL Syntax to YAML in the example. I have only tested teh Build step since I don't have a Ballerina Central token.
Purpose
Github switched from HCL to YAML syntax and from October onwards HCL workflows will not run
Goals
Help users using the Ballerina Github Actions
Approach
Changed and did a test run
User stories
Reading the example in the Readme file will explain how to use this action with yaml syntax
Release note
Translated example in Readme from HCL to YAML syntax
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning

Thank you Martin for the contribution!.


[BUG] users are unable to stand up openSUSE Leap 15.4 RKE1 downstream servers

Rancher Server Setup

Rancher version: v2.6.7-rc3
Installation option (Docker install/Helm Chart): HA helm

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):

Proxy/Cert Details: self signed
ami-053835e36b16f97d0
RKE_VERSION- v1.3.13-rc4
-RANCHER_LOCAL_KUBERNETES_VERSION v1.24.2-rancher1-1
RANCHER_HA_HARDENED - false
AWS_User- ec2-user

Information about the Cluster

Kubernetes version:
Cluster Type (Local/Downstream): downstream 3 workers, 1cp 1etcd
-RKE1
ami-053835e36b16f97d0
ssh user - ec2-user

User Information
logged in as admin
Describe the bug
whenever a user tries to stand up a RKE1 "openSUSE Leap 15.4" server with ami-053835e36b16f97d0
Cluster health check failed: Failed to communicate with API server during namespace check: Get "https://...:**/api/v1/namespaces/kube-system?timeout=45s": context deadline exceeded
To Reproduce

create an HA rancher cluster
try to create downstream cluster described

Result
downstream cluster fails to be created. error in UI thrown - Cluster health check failed: Failed to communicate with API server during namespace check: Get "https://...:**/api/v1/namespaces/kube-system?timeout=45s": context deadline exceeded
Expected Result
downstream cluster builds correctly.
Screenshots

Additional context

closing this to investigate further and reopen with more info


[tracy] update to 0.9.0

Fixes https://github.com/microsoft/vcpkg/issues/27781.
update to 0.9.0.
All features are tested successfully in the following triplet:
x64-windows
x64-windows-static
x64-linux

Duplicate: https://github.com/microsoft/vcpkg/pull/27703


sequencer: implement oracle-related actions

follow up to https://github.com/astriaorg/astria/pull/1236.
slinky contains Msg types which should be implemented as actions within the sequencer:

https://github.com/skip-mev/slinky/blob/158cde8a4b774ac4eec5c6d1a2c16de6a8c6abb5/proto/slinky/oracle/v1/tx.proto
https://github.com/skip-mev/slinky/blob/158cde8a4b774ac4eec5c6d1a2c16de6a8c6abb5/proto/slinky/marketmap/v1/tx.proto

┆Issue Number: ENG-786

This issue is stale because it has been open 45 days with no activity. Remove stale label or this issue
be closed in 7 days.


Curie behavior conflict

Im having trouble with curies and what appears to be a difference in behavior in hyperclient vs hal-browser.   Hyperclient is templating urls when not expected.
My server returns:
"curies": [
      {
        "name": "osdi",
        "href": "http://opensupporter.github.io/osdi-docs/{rel}",
        "templated": true
      }
    ],
    "osdi:tags": {
      "href": "http://demo.osdi.io/api/v1/tags",
      "title": "The collection of tags in the system"
    },

In the hal browser, the curie is just used for documentation links and it does not reformat the link URL, which is already absolute.
But in hyperclient, it is reformatting the url for the link itself as:

http://opensupporter.github.io/osdi-docs/http://demo.osdi.io/api/v1/tags

How do I reconcile this?  Can I disable curie reformatting in hyperclient?
Reference: #64

pull request fix created

This is clearly a bug, thanks for suggesting a fix.

I added a feature (hack?) in my fork to allow the caller to set optional custom query_params.  I've made it a pull request just for discussion, curious to hear your thoughts.
events_link=api._links['events']
events_link.query_params= { filter: "modified_date gt '2016-01-01'" }
events=events_link['items']

About this issue here, why are you using a curie in the osdi:tags example? Should this just be tags, in which case the issue is moot?

perhaps we should separate the two issues and I'll move the query params out of this issue.
I think the issue of avoiding expansion when the href is already absolute should stay open.

I think there is a misinterpretation of how curies are supposed to be used in HAL.  Curies are meant to shorten the key names in a _links hash, not the actual href associated with a link in the _links hash, as well as provide a link to the human readable documentation for said link.
https://tools.ietf.org/html/draft-kelly-json-hal-07#section-8.2

8.2.  Link relations
Custom link relation types (Extension Relation Types in [RFC5988])
SHOULD be URIs that when dereferenced in a web browser provide
relevant documentation, in the form of an HTML page, about the
meaning and/or behaviour of the target Resource.  This will improve
the discoverability of the API.

So actually, hyperclient shouldn't be doing any template expansion when dealing with curie syntax at all when navigating to a curied link.

The CURIE Syntax [W3C.NOTE-curie-20101216] MAY be used for brevity
for these URIs.  CURIEs are established within a HAL document via a
set of Link Objects with the relation type "curies" on the root
Resource Object.  These links contain a URI Template with the token
'rel', and are named via the "name" property.
{
"_links": {
"self": { "href": "/orders" },
"curies": [{
"name": "acme",
"href": "http://docs.acme.com/relations/{rel}",
"templated": true
}],
"acme:widgets": { "href": "/widgets" }
}
}
The above demonstrates the relation "http://docs.acme.com/relations/
widgets" being abbreviated to "acme:widgets" via CURIE syntax.

When a curie is present, the href template inside the curie is how to find the documentation, not the resources. In the example above (from the spec), the resource is widgets, but the curie href refers to the documentation for wigets.

Created pull request for that
https://github.com/codegram/hyperclient/pull/100

Fixed in https://github.com/codegram/hyperclient/pull/101.

Closed via https://github.com/codegram/hyperclient/pull/101.


TestWatchReconnRequest fails

--- FAIL: TestWatchReconnRequest (5.35s)
	watch_test.go:281: watch timed out

Another one
=== RUN   TestWatchReconnRequest
2016-02-12 18:08:32.634256 I | etcdserver: name = node514218490942812466
2016-02-12 18:08:32.634281 I | etcdserver: data dir = /tmp/etcd691073929
2016-02-12 18:08:32.634328 I | etcdserver: member dir = /tmp/etcd691073929/member
2016-02-12 18:08:32.634339 I | etcdserver: heartbeat = 10ms
2016-02-12 18:08:32.634348 I | etcdserver: election = 100ms
2016-02-12 18:08:32.634357 I | etcdserver: snapshot count = 0
2016-02-12 18:08:32.634373 I | etcdserver: advertise client URLs = http://<IP_ADDRESS>:20408
2016-02-12 18:08:32.634385 I | etcdserver: initial advertise peer URLs = http://<IP_ADDRESS>:20407
2016-02-12 18:08:32.634409 I | etcdserver: initial cluster = node329837469360592218=http://<IP_ADDRESS>:20405,node4785672846810766913=http://<IP_ADDRESS>:20403,node514218490942812466=http://<IP_ADDRESS>:20407
2016-02-12 18:08:32.634450 I | etcdserver: name = node4785672846810766913
2016-02-12 18:08:32.634467 I | etcdserver: data dir = /tmp/etcd375594751
2016-02-12 18:08:32.634476 I | etcdserver: member dir = /tmp/etcd375594751/member
2016-02-12 18:08:32.634482 I | etcdserver: heartbeat = 10ms
2016-02-12 18:08:32.634487 I | etcdserver: election = 100ms
2016-02-12 18:08:32.634492 I | etcdserver: snapshot count = 0
2016-02-12 18:08:32.634500 I | etcdserver: advertise client URLs = http://<IP_ADDRESS>:20404
2016-02-12 18:08:32.634506 I | etcdserver: initial advertise peer URLs = http://<IP_ADDRESS>:20403
2016-02-12 18:08:32.634519 I | etcdserver: initial cluster = node329837469360592218=http://<IP_ADDRESS>:20405,node4785672846810766913=http://<IP_ADDRESS>:20403,node514218490942812466=http://<IP_ADDRESS>:20407
2016-02-12 18:08:32.634720 I | etcdserver: name = node329837469360592218
2016-02-12 18:08:32.634752 I | etcdserver: data dir = /tmp/etcd750839378
2016-02-12 18:08:32.634763 I | etcdserver: member dir = /tmp/etcd750839378/member
2016-02-12 18:08:32.634772 I | etcdserver: heartbeat = 10ms
2016-02-12 18:08:32.634780 I | etcdserver: election = 100ms
2016-02-12 18:08:32.634787 I | etcdserver: snapshot count = 0
2016-02-12 18:08:32.634796 I | etcdserver: starting member 2211da3935471694 in cluster 47111e9824bc06a8
2016-02-12 18:08:32.634826 I | raft: 2211da3935471694 became follower at term 0
2016-02-12 18:08:32.634836 I | raft: newRaft 2211da3935471694 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2016-02-12 18:08:32.634841 I | raft: 2211da3935471694 became follower at term 1
2016-02-12 18:08:32.634921 I | etcdserver: advertise client URLs = http://<IP_ADDRESS>:20406
2016-02-12 18:08:32.634942 I | etcdserver: initial advertise peer URLs = http://<IP_ADDRESS>:20405
2016-02-12 18:08:32.634958 I | etcdserver: initial cluster = node329837469360592218=http://<IP_ADDRESS>:20405,node4785672846810766913=http://<IP_ADDRESS>:20403,node514218490942812466=http://<IP_ADDRESS>:20407
2016-02-12 18:08:32.635110 I | etcdserver: starting member 1acd4738a081feb4 in cluster 47111e9824bc06a8
2016-02-12 18:08:32.635165 I | raft: 1acd4738a081feb4 became follower at term 0
2016-02-12 18:08:32.635186 I | raft: newRaft 1acd4738a081feb4 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2016-02-12 18:08:32.635199 I | raft: 1acd4738a081feb4 became follower at term 1
2016-02-12 18:08:32.635286 I | etcdserver: starting member ca90a3d83571719 in cluster 47111e9824bc06a8
2016-02-12 18:08:32.635313 I | raft: ca90a3d83571719 became follower at term 0
2016-02-12 18:08:32.635323 I | raft: newRaft ca90a3d83571719 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2016-02-12 18:08:32.635329 I | raft: ca90a3d83571719 became follower at term 1
2016-02-12 18:08:32.648948 I | etcdserver: set snapshot count to default 10000
2016-02-12 18:08:32.648998 I | etcdserver: starting server... [version: 2.3.0-alpha.0+git, cluster version: to_be_decided]
2016-02-12 18:08:32.649364 I | etcdserver: set snapshot count to default 10000
2016-02-12 18:08:32.649391 I | etcdserver: starting server... [version: 2.3.0-alpha.0+git, cluster version: to_be_decided]
2016-02-12 18:08:32.650306 I | etcdserver: set snapshot count to default 10000
2016-02-12 18:08:32.650333 I | etcdserver: starting server... [version: 2.3.0-alpha.0+git, cluster version: to_be_decided]
2016-02-12 18:08:32.650750 N | etcdserver: added member ca90a3d83571719 [http://<IP_ADDRESS>:20405] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.650837 N | etcdserver: added member 1acd4738a081feb4 [http://<IP_ADDRESS>:20407] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.650919 N | etcdserver: added local member 2211da3935471694 [http://<IP_ADDRESS>:20403] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.651131 N | etcdserver: added member ca90a3d83571719 [http://<IP_ADDRESS>:20405] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.651268 N | etcdserver: added local member 1acd4738a081feb4 [http://<IP_ADDRESS>:20407] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.651362 N | etcdserver: added member 2211da3935471694 [http://<IP_ADDRESS>:20403] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.651412 I | rafthttp: the connection with 2211da3935471694 became active
2016-02-12 18:08:32.651473 I | rafthttp: the connection with ca90a3d83571719 became active
2016-02-12 18:08:32.651541 N | etcdserver: added local member ca90a3d83571719 [http://<IP_ADDRESS>:20405] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.651589 N | etcdserver: added member 1acd4738a081feb4 [http://<IP_ADDRESS>:20407] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.651611 I | rafthttp: the connection with 1acd4738a081feb4 became active
2016-02-12 18:08:32.651638 N | etcdserver: added member 2211da3935471694 [http://<IP_ADDRESS>:20403] to cluster 47111e9824bc06a8
2016-02-12 18:08:32.651706 I | rafthttp: the connection with ca90a3d83571719 became active
2016-02-12 18:08:32.652277 I | rafthttp: the connection with 2211da3935471694 became active
2016-02-12 18:08:32.652563 I | rafthttp: the connection with 1acd4738a081feb4 became active
2016-02-12 18:08:32.675392 I | raft: 1acd4738a081feb4 is starting a new election at term 1
2016-02-12 18:08:32.675457 I | raft: 1acd4738a081feb4 became candidate at term 2
2016-02-12 18:08:32.675464 I | raft: 1acd4738a081feb4 received vote from 1acd4738a081feb4 at term 2
2016-02-12 18:08:32.675476 I | raft: 1acd4738a081feb4 [logterm: 1, index: 3] sent vote request to ca90a3d83571719 at term 2
2016-02-12 18:08:32.675487 I | raft: 1acd4738a081feb4 [logterm: 1, index: 3] sent vote request to 2211da3935471694 at term 2
2016-02-12 18:08:32.675639 I | raft: ca90a3d83571719 [term: 1] received a MsgVote message with higher term from 1acd4738a081feb4 [term: 2]
2016-02-12 18:08:32.675654 I | raft: ca90a3d83571719 became follower at term 2
2016-02-12 18:08:32.675673 I | raft: ca90a3d83571719 [logterm: 1, index: 3, vote: 0] voted for 1acd4738a081feb4 [logterm: 1, index: 3] at term 2
2016-02-12 18:08:32.675694 I | raft: 2211da3935471694 [term: 1] received a MsgVote message with higher term from 1acd4738a081feb4 [term: 2]
2016-02-12 18:08:32.675714 I | raft: 2211da3935471694 became follower at term 2
2016-02-12 18:08:32.675738 I | raft: 2211da3935471694 [logterm: 1, index: 3, vote: 0] voted for 1acd4738a081feb4 [logterm: 1, index: 3] at term 2
2016-02-12 18:08:32.675770 I | raft: 1acd4738a081feb4 received vote from ca90a3d83571719 at term 2
2016-02-12 18:08:32.675777 I | raft: 1acd4738a081feb4 [quorum:2] has received 2 votes and 0 vote rejections
2016-02-12 18:08:32.675789 I | raft: 1acd4738a081feb4 became leader at term 2
2016-02-12 18:08:32.675798 I | raft: raft.node: 1acd4738a081feb4 elected leader 1acd4738a081feb4 at term 2
2016-02-12 18:08:32.675976 I | raft: raft.node: 2211da3935471694 elected leader 1acd4738a081feb4 at term 2
2016-02-12 18:08:32.676000 I | raft: raft.node: ca90a3d83571719 elected leader 1acd4738a081feb4 at term 2
2016-02-12 18:08:32.676459 I | etcdserver: published {Name:node514218490942812466 ClientURLs:[http://<IP_ADDRESS>:20408]} to cluster 47111e9824bc06a8
2016-02-12 18:08:32.676604 I | etcdserver: published {Name:node329837469360592218 ClientURLs:[http://<IP_ADDRESS>:20406]} to cluster 47111e9824bc06a8
2016-02-12 18:08:32.676750 I | etcdserver: published {Name:node4785672846810766913 ClientURLs:[http://<IP_ADDRESS>:20404]} to cluster 47111e9824bc06a8
2016-02-12 18:08:32.676866 I | etcdserver: setting up the initial cluster version to 2.3
2016-02-12 18:08:32.677062 N | etcdserver: set the initial cluster version to 2.3
2016-02-12 18:08:32.677146 N | etcdserver: set the initial cluster version to 2.3
2016-02-12 18:08:32.677182 N | etcdserver: set the initial cluster version to 2.3
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016/02/12 18:08:32 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix localhost:node4785672846810766913.sock->@: write: broken pipe"
2016-02-12 18:08:32.817192 E | rafthttp: failed to read ca90a3d83571719 on stream Message (net/http: request canceled)
2016-02-12 18:08:32.817225 I | rafthttp: the connection with ca90a3d83571719 became inactive
2016-02-12 18:08:32.817715 E | rafthttp: failed to read 1acd4738a081feb4 on stream MsgApp v2 (net/http: request canceled)
2016-02-12 18:08:32.817733 I | rafthttp: the connection with 1acd4738a081feb4 became inactive
2016-02-12 18:08:32.818638 E | rafthttp: failed to read 1acd4738a081feb4 on stream MsgApp v2 (net/http: request canceled)
2016-02-12 18:08:32.818657 I | rafthttp: the connection with 1acd4738a081feb4 became inactive
--- FAIL: TestWatchReconnRequest (0.21s)
	cluster.go:723: grpc: the client connection is closing


Possible to use without cookies?

Is it possible to get sessions working with the client without cookies? For instance, rather than using cookies in a browser-led GET, is it possible to use POST with JSON content? We have a project that we would like to release a React Native client for, and cookies are not ideal.

@Panoplos  Could you modify the headers of HTTP request?  You just modify the Cookie field in request headers.


IOS support?

Love this tool, any chance it could support IOS simulators as well? (Or is there a react-native-run-ios?)
(To list IOS devices on mac -> xcrun simctl list devices)

Sorry, it's been a busy couple of months. I think it would be easy enough to support IOS as well. Thanks!


Azure function v4 using .NET 7 throws error Grpc.Core: Error loading native library

Machine - MacBook Pro M2
OS - macOS Ventura 13.0
.NET 7 azure function v4 throws the error on launch as below
Grpc.Core: Error loading native library. Not found in any of the possible locations: /Users/[username]/Documents/Codes/AzureFuncProj/AzureFuncProj/bin/Debug/net7.0/.azurefunctions/libgrpc_csharp_ext.arm64.dylib,/Users/[username]/Documents/Codes/AzureFuncProj/AzureFuncProj/bin/Debug/net7.0/.azurefunctions/runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib,/Users/[username]/Documents/Codes/AzureFuncProj/AzureFuncProj/bin/Debug/net7.0/.azurefunctions/../../runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib.
The same function works fine on Windows machine.

This is a known issue with Durable extension and that Grpc.Core has no native support for MacOS.
See https://github.com/microsoft/durabletask-dotnet/issues/148 for a workaround


None of my Steam games load.

I have been trying to unlock some achievements recently and it doesn't work. When I try to load up a game to unlock achievements, nothing loads! I've tried this on ALL my steam games.

you need open your steam and don't stayed offline.

Same bug, black screen. Steam Online on.

Temporary fix: open the game page (don't need to launch the game) in your Steam Library before opening it with SAM.


Extremely slow operational speed

The program is extremely slow, I am measuring 51.81MB/s speed only on Windows with 4 providers from 4 different backbones.
@Tensai75 can you please improve the programs performance, so it would work better on huge consolidated NZB files? I would like to see ideally at least 100x the current speed, that way making it run through my 21TB nzb file throughout 1 hour instead of 121.
nzbrefresh --provider providers.json --debug all.nzb
NZBRefresh v0.0.0-alpha-3
Starting segment check of 30283012 segments
Checking segments :       (62172/30283... [----------------------------------------]     [15m 1s|121h 38m 15s]

21TB was the referenced content size of the nzb, as I see you have double of that. Maybe it's just the Windows version of the application which is so slow...

The bottleneck is the provider with the slowest speed as a combination of the lowest connections and the highest response time.
My tests generally resulted in average response times for the STAT command of around 50 ms. So if the slowest provider has 100 connections and the an average response time of 50 ms, the programme can process around 2000 segments per second in best case (if no upload is required). The faster the response time is, the more segments can be processed. But if the slowest provider has only 50 connections and the same average response time (or worse), the overall speed drops to 1000 segments/s (or less).
So, the only way to increase the overall speed is to use more connections and I might add at some time the ability to use more than one account from the same provider, as suggested in this issue here: #6
In your case, using the windows version, it could be the same problem I am having. On my Win10 PC, for some reason, nzbrefresh cannot establish more than 100 working tcp connections. If more connections are opened, the packets are dropped and the connections are closed by the operating system. I have this issue only on Windows and nzbrefresh is working perfectly fine on my Ubuntu PC.
To check this, use the -d option and check the log file for NNTP Pool Eerrors such as EOF or other errors indicating that a connection has been closed. Or use a smaller NZB file and check the number of connections used by each provider at the program end. If not all providers have used at least 90% of the maximum number of connections specified in the config, then there is probably a problem with your connections as well.
Although I have been trying to troubleshoot this problem for a long time, I still have no idea what is causing it. But I'm pretty sure it's not a problem with nzbrefresh, but rather a system limitation or maybe even a hardware problem.

@Tensai75 Is it possible to queue up multiple segment stat requests with a single NNTP packet sent and then get a response from the provider to everything asked all at once, that way making that 50ms time apply for multiple segments checked not just one per connection? so i.e. 100 connection, to each we send 100 article ids at once, and then wait for response, can it work like that or you tested that already and it's not possible to do that?

@Tensai75 Is it possible to queue up multiple segment stat requests with a single NNTP packet sent

No, unfortunately this is not possible. Each STAT request is an individual request. They cannot be combined. See: https://datatracker.ietf.org/doc/html/rfc3977#section-6.2.4


Make a versioned release

It would be great if the (tex) template was available as a release that I can include in my tex file[^1], e.g.,
\usepackage{csthesis}

[^1]:  Or as document class, whatever makes the most sense/is easiest to do in TeX.
Use cases:
I want to be able to apply and update the template to newer versions easily, but not necessarily have version control-like relation to the template repo.

I could fork and sync with upstream, but...then my fork is public.
I could make a repo and use the template as a submodule, then stay up to date that way, but... submodule, boo. :/

More ideally I want a setup similar to writing papers  "use SCCS template style"[^2], and I could just get the latest release and include it. Also just for versioning purposes, this repo needs releases and tags.
[^2]: Actually, would avoid AU and SCCS in template name, they may change. Something generic, "csthesis" etc., would be better.

Excellent idea, I'll work on it.


/accounts API endpoint should allow filtering by active/thirdparty flags.

Related to #527.  The Dashboard is loading non-active and thirdparty accounts, when it should only be loading active and non-thirdparty accounts.
It looks like the dashboard is making a REST call to /api/1/accounts and is passing active=true as a URL param.  However, that endpoint does not use that URL filter.
https://github.com/Netflix/security_monkey/blob/develop/security_monkey/views/account.py#L315
Solution is to add an active/thirdparty filter to AccountPostList::get()

Fixed in #642


Implement exploreData in F#

Based on the R implementation that is already in source

I'll take a stab at this.  Dennis


Updated: losslesscut 2.7.1

${}

48c7fd77-9d9b-48e3-9613-fcefeced73ab

Newer version of losslesscut (3.17.27) is now available in master. 255ea75e80a12dbeca72dd1288bd7686f50c77be


feat: remove fix-path dependencies

With the update of the packages it seems to be no longer necessary to use this fix-path. I removed it and everything worked normally, I think we can go on without it and if we find any unforeseen, maybe develop native.

fix-path is a fix for linux and macos systems. I'll try this on linux but need some time.

Working normally here on linux


Add more SMTP servers. iCloud, Outlook etc.

Here are some server names and ports for some other providers that I found with a quick search
iCloud
Server name:  smtp.mail.me.com
Port:  587
Outlook
Server name:  smtp.live.com
Port:  587
Office365
Server name:  smtp.office365.com
Port:  587
Yahoo
Server name:  smtp.mail.yahoo.com
Port:  465

I will try to do so. But it will take some time. :)


Add manifest profiles definition

For now this PR supports only simple profile inheritance, limited to dev (by default) and release base profiles.


[Feature Request] "Craftables" Tabs Shows set as Default Recipes Only System (aka. C.T.D.R.O or Ceet-Dro)

Hello Emily! I'm using this mod well. But when I use the recipe data pack, there are two or more specific items in the 'Craftables' tab, so it's inconvenient to find the craft recipe I want to find. So I wrote like this because I wanted you to create a system where only the specified items in the 'Craftables' tab are displayed when certain recipes are 'set as default recipes'

This has a notable number edge cases and interactions to consider that make me believe it'd be pretty difficult to implement this, even workshopped.

If there are two recipes to craft axes and you only have the materials for one, but it's not defaulted, should it show up?
What happens if you want to see all the recipes for some items but also want to have a default set?
What happens with craftables that have multiple items? Should it only consider the first defaulted item? What if half of the outputs are defaulted elsewhere but half aren't?

Overall these seem pretty hard to resolve with an answer most users would find agreeable. There are other potential solutions to this problem, like specifying which recipes you don't want to show up or similar.
I'll leave this open but those are my thoughts at the moment.

Thank you for replying even though you may be busy. Looking at your answer, my thoughts were too short.
So, in the "Recipes" tab, you can add a button with the description "Hide from Craftables tab" next to a specific recipe, Or, when you press a specific key for a specific item in the "Craftable" tab, how about hiding it until you later display it again in a specific way in the "Recipes" tab (e.g. by pressing a specific key again for a hidden recipe)?

Something like that might be better, yeah.

Thank you So much, I'll think about it a little longer.. Have a happy day Emily.


Doubts about assessment metrics in dissertations

Thank you very much for your frequent work. Here are the results of my reproduction training, the evaluation metrics are recall and NDCG, while the paper results show HR and NDCG, and the recall value of the code training is very close to the HR, is it a problem of the code, or a clerical error of the paper? This is rather confusing to me.

Hi,
HR is equivalent to Recall when it comes with only 1 ground truth.


Cannot perform rollup on this package. Package to ES2015 instead of commonjs?

Hi,
I'm having a problem perform rollup on this package. I know this may be a problem with the rollup-plugin-commonjs . I have already filed a issue at https://github.com/rollup/rollup-plugin-commonjs/issues/87
However, my question is how do I package this into ES2015 module instead of a commonjs module? I tried to change the tsconfig.json but did not figure out how to properly build it. Or I did not figure out how to properly install from my own github repo here https://github.com/sunshineo/angular2-infinite-scroll
I ended up doing some crazy manual changes that you can see at https://github.com/sunshineo/angular2-infinite-scroll/commits/master
Please help. Thank you very much!

Actually, I might have made a mistake when build into ES2015 module.

I've confirmed that the changes I made at https://github.com/sunshineo/angular2-infinite-scroll/commits/master works for rollup. I don't need rollup-plugin-commonjs anymore.

sound like it has something to do with rollup. not sure.

@orizens , the current project cannot be rolled up by their rollup-plugin-commonjs is probably their issue, I've filed issue with them at https://github.com/rollup/rollup-plugin-commonjs/issues/87 . However how can we package this into a es2015 (es6) model? In that case, it will be rolled up directly by the rollup main project, and many other benefits I'm sure.
I tried to do this myself, but ended up with something unusable. https://github.com/sunshineo/angular2-infinite-scroll/commits/es2015 . I cannot install it when have
"angular2-infinite-scroll:"git+https://github.com/sunshineo/angular2-infinite-scroll#es2015"

in my package.json . I can't even import it correctly in my code.

this needs further investigation - what do you mean by package it to es6 model? is there other similar ng2 package that you're able to work with?

@orizens I'm no expert on JS standards. When I build my project to es2015 using typscript tsc, it can rollup (together with the angular2 core stuff) without the need of rollup-plugin-commonjs. Once I add some dependencies that are commonjs, for example I added angular2 material and this, I need to use the rollup-plugin-commonjs to rollup. And it worked with angular2 material but not this one.

this plugin isn't based on rollup and should work with tsc.

Hi @orizens . Rollup is not something you base on. https://github.com/rollup/rollup http://rollupjs.org/

Rollup is a next-generation JavaScript module bundler. Author your app or library using ES2015 modules, then efficiently bundle them up into a single file for use in browsers and Node.js – even if you use advanced features like bindings and cycles.

From what I can tell, this project is written in typescript and compiled into ES5 commonjs module according to configurations here https://github.com/orizens/angular2-infinite-scroll/blob/master/tsconfig.json
I wonder if it is possible to compile it into ES2015 module that meet ES2015 standard. So that rollup can bundler it.
I tried, but I did not figure it out.

Hello, everyone. For this particular problem, I solved it using a feature called "namedExport" feature of the rollup common js plugin
https://github.com/rollup/rollup-plugin-commonjs/issues/87


Create a sample app setup that runs on GAE

It would be helpful if we have a complete setup for a sample app (e.g. Storage) that users can grab and deploy directly without any editing effort.
Ideally the structure would look like this:
--- pom.xml
--- README.md
--- src/paths/to/main/StorageSample.java
--- src/main/webapp/WEB_INF/appengine-web.xml
--- src/main/webapp/WEB_INF/web.xml
so the user just need to clone the folder and run: mvn appengine:deploy and deploy the app onto their GAE host.

Some are in
https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine
https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/flexible
and java8 branch:
https://github.com/GoogleCloudPlatform/java-docs-samples/tree/java8-master/java8-appengine
On Mon, Mar 13, 2017 at 2:19 PM, Shin Fan<EMAIL_ADDRESS>wrote:

It would be helpful if we have a complete setup for a sample app (e.g.
Storage) that users can grab and deploy directly without any editing effort.
Ideally the structure would look like this:
--- pom.xml
--- README.md
--- src/paths/to/main/StorageSample.java
--- src/main/webapp/WEB_INF/appengine-web.xml
--- src/main/webapp/WEB_INF/web.xml
so the user just need to clone the folder and run: mvn appengine:deploy
and deploy the app onto their GAE host.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1742,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAE4zcfIz7_xCFGaRGpg-FBMw9te_K6Eks5rlbLmgaJpZM4Mb1NW
.

Those samples are not using google-cloud-java. It would be good to have at least one sample that runs with google-cloud-java clients.

https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/bookshelf-standard
uses GCS, I'll get something into java-docs-samples next week.

I think https://github.com/GoogleCloudPlatform/java-docs-samples/issues/558 is the right place to track this request; I will close out the present issue.


Token parsing issues in SWRL rules

I encountered a small issue with SWRL rules containing properties or classes with underscores in their names. The following rule is not correctly parsed:
my_class(?thing) -> Plan(?thing).

The problem seems to be the call to tokenize_atom inside the predicate swrl_phrase in the file parser.pl. I'm adding a screenshot of the debugger below. You can see how my_class has been split.

Thanks for the report! I'll have a look into this.

Hi Daniel,
Thanks for taking the time to look into this. I just found two more small issues related to the SWRL rules parsing. I'm gonna report them here in this comment, rather than opening a new issue if you don't mind.
Cannot write decimal numbers
It seems like decimal numbers are not correctly parsed. Consider the following rule:
hasDataValue(?thing, ?value), greaterThan(?value, 0.8) -> Person(?thing).

Parsing will stop at the point in the decimal number, as shown in the screenshot below (you can see how the RuleAtom variable appears to be incomplete):

I managed to make it work by modifying the rule to only stop at a point after a closing parenthesis. I'm not sure if it's the proper way to do it, though. I'm adding the modified predicate below:
swrl_file_rule_(NS,RuleTerm) -->
  blanks, string(RulesCodes), ")", blanks, ".",
  { atom_codes(RuleAtom1, RulesCodes),
    atom_concat(RuleAtom1, ')', RuleAtom), !,
    swrl_phrase(RuleTerm, RuleAtom, NS) }, !

Strings literals are not properly parsed
Strings containing characters treated as token delimiters are not properly parsed. Here's a rule that it's affected by this:
hasDataValue(?thing, ?value), contains(?value, "type.person") -> Person(?thing).

Assuming that points are properly parsed (otherwise parsing will stop at the point in "type.person"), you end up with the situation shown in the screenshot below, where parsing fails because the point in the middle splits the contents in two. I'm not sure how to handle this.

The first issue is indeed related to tokenize_atom/2 splitting atoms at underscore characters. I think best would be to use a different tokenizer, or to fix the token sequence after calling it by iterating once over all tokens and creating a modified token sequence on the way
I cannot reproduce the second issue. Parsing floats seems to work fine here, this I have tried: ['greaterThan(?age, 16.5)', '->', 'Adult(?p)'] and the parser output seems fine.
Hmm I see, I guess best would be again if this would be handled better in the tokenizer, such that "type.person" only yields one token. Probably it would be ok to handle quotations in the tokenizer.

So it seems most of the issues could be solved through a better tokenizer


go get fails

I've tried on both Linux and Windows.
+ go get -u github.com/lyft/protoc-gen-validate
# github.com/lyft/protoc-gen-validate
src/github.com/lyft/protoc-gen-validate/main.go:12:34: cannot use module.Validator() (type "github.com/envoyproxy/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Module) as type "github.com/lyft/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Module in argument to "github.com/lyft/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Init("github.com/lyft/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".DebugEnv("DEBUG_PGV")).RegisterModule:
        "github.com/envoyproxy/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Module does not implement "github.com/lyft/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Module (wrong type for Execute method)
                have Execute(map[string]"github.com/envoyproxy/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".File, map[string]"github.com/envoyproxy/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Package) []"github.com/envoyproxy/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Artifact
                want Execute(map[string]"github.com/lyft/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".File, map[string]"github.com/lyft/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Package) []"github.com/lyft/protoc-gen-validate/vendor/github.com/lyft/protoc-gen-star".Artifact

Ah, I didn't even notice you moved the repo to a new name.
go get -u github.com/envoyproxy/protoc-gen-validate works.


Don't include log messages with log level "AUDIT" in regular service log file

This pull request resolves an issue with log messages with log level AUDIT ending up in regular service log file (<service>.log) in addition to the service audit log file (<service>.audit.log).
Background
We implemented AUDIT log level by adding a new log level constant which contains the highest log level number (CRITICAL + 10).
Default Python log level filtering works using "include log messages with log level  and above" approach. This means messages with AUDIT log level will always be included in the logs because AUDIT is the highest level.
In most cases that's not desired. That's especially true for production deployment where default log level is INFO and we have dedicated log file with audit log messages. We don't want audit log messages to also end up in the regular service log file where they just cause noise.
Implementation wise, I needed to implement it using a log filter - we exclude log messages with level AUDIT if log level is set to INFO or higher, but not to AUDIT. I couldn't make a simpler change like setting AUDIT log level constant to lower than INFO, because then we would have the opposite problem (non AUDIT messages would also end up in the audit log file).
NOTE: To aid with the debugging, AUDIT log messages are also included in a regular service log file if log level is set to DEBUG of if system.debug config option is set to True. When debug is enabled there are many more log messages coming from other places so AUDIT should be the least of your concerns :)
Resolves #4502 (thanks to @nmaludy for reporting it).
TODO

[x] Integration tests

Added integration tests in 11111ffd5f126e252537114c5ce550f64d783659.

Randomly found out just now while debugging some other things that this doesn't work correctly on production gunicorn deployments.
I believe issue is related to another change, I'm digging in.

^Second time is the charm - #4621.
The code was correct, but we were using incorrect logging config for API services with packages so those log messages weren't filtered out by default.


sjb: +o errexit is not respected in host scripts

https://ci.openshift.redhat.com/jenkins/view/All/job/ami_build_origin_int_rhel_fork/16/consoleFull#-206914687858b6e51eb7608a5981914356
########## STARTING STAGE: MAKE A TRELLO COMMENT ##########
+ [[ -s /var/lib/jenkins/jobs/ami_build_origin_int_rhel_fork/workspace/activate ]]
+ source /var/lib/jenkins/jobs/ami_build_origin_int_rhel_fork/workspace/activate
++ export VIRTUAL_ENV=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345
++ VIRTUAL_ENV=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345
++ export PATH=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345/bin:/sbin:/usr/sbin:/bin:/usr/bin
++ PATH=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345/bin:/sbin:/usr/sbin:/bin:/usr/bin
++ unset PYTHON_HOME
++ export OCT_CONFIG_HOME=/var/lib/jenkins/jobs/ami_build_origin_int_rhel_fork/workspace/.config
++ OCT_CONFIG_HOME=/var/lib/jenkins/jobs/ami_build_origin_int_rhel_fork/workspace/.config
+ set +o nounset +o errexit
+ [[ -n <none> ]]
+ trello comment 'A fork ami has been created for this card: `_16`' --card-url '<none>'
++ export status=FAILURE
++ status=FAILURE
+ set +o xtrace
########## FINISHED STAGE: FAILURE: MAKE A TRELLO COMMENT ##########

cc: @stevekuznetsov

Also, in the same job, a non-zero exit code of a command does not result in failing the stage:
Checking out files:  99% (18738/18927)
Checking out files: 100% (18927/18927)
Checking out files: 100% (18927/18927), done.
mv: cannot move ‘origin’ to a subdirectory of itself, ‘origin/origin’
/data/src/github.com/openshift/origin /data/src/github.com/openshift ~
Branch fix-negative-unavailable-replicas set up to track remote branch fix-negative-unavailable-replicas from origin.
Switched to a new branch 'fix-negative-unavailable-replicas'
+ set +o xtrace
########## FINISHED STAGE: SUCCESS: PREPARE REPOSITORIES ##########

Re: the first thing -- not super interested in making that work as it's bad practice anyway. I understand it will make porting the fork_ami stuff harder, but I think that is OK.
Re: the second thing -- do you have a reproducer?

@stevekuznetsov what is the suggested way to execute stages that shouldn't fail the job once they fail because we don't really care, eg. a Trello comment? Should we support the intent in the sjb syntax?

Re: the second thing -- do you have a reproducer?

I just realized that the error was hit inside the command I run over ssh.

what is the suggested way to execute stages that shouldn't fail the job once they fail because we don't really care, eg. a Trello comment? Should we support the intent in the sjb syntax?

Make the Bash not fail -- for example:
if ! trello_comment ...; then
    echo "Oh well"
fi

See also man trap:
       trap [-lp] [[arg] sigspec ...]
              If a sigspec is ERR, the command arg is executed whenever a a pipeline (which may consist of a single simple command), a list, or
              a  compound  command  returns  a  non-zero exit status, subject to the following conditions.  The ERR trap is not executed if the
              failed command is part of the command list immediately following a while or until keyword, part of the test in an  if  statement,
              part  of a command executed in a && or || list except the command following the final && or ||, any command in a pipeline but the
              last, or if the command's return value is being inverted using !.  These are the same  conditions  obeyed  by  the  errexit  (-e)
              option.

Looks like you were using an old base for your branch, problem should be fixed with 78a0e9c24767d5acf0c5519edc260c5baf5ef2e4 and https://github.com/openshift/aos-cd-jobs/commit/b1d17d59c5b68006fc31c93743d5e532c28ad920

Looks like you were using an old base for your branch, problem should be fixed with 78a0e9c and openshift/aos-cd-jobs@b1d17d5

Unlike, my fork is just lacking the last 2 days of commits. https://github.com/kargakis/aos-cd-jobs/commits/master

Sorry, I misread your output -- it was an SSH session you started, not one SJB did. Closing this as it's a user  error and not from the framework.


Floating terrain or terrain at height > 0

Firstly, thank you so much for this module already. Works amazing for 99% of maps. For zero-g maps i would love to place cover floating in space which would involved setting two "height" values. the top and bottom of the terrain. Right now, all terrain starts at height 0.
I'm not requesting integration with Walls and Wall Height, just for a way to do floating terrain.
Pictured: A Terrain wall placed at H2-H4, which should not block line of sight for two S1 units at H0

Thanks for the feature request. This has now been added in v0.3.3.


Use Groupie Kotlin ViewHolder and Item

A rework of #1178.

I removed the overrides and formatted the code. The link you referenced didn't talk about formatting class signatures, so I used the official Kotlin style guide instead.


Version 2.1.8 does not work

after i upgraded to the new version of the plugin and because it did not work I had to reinstall the old version, all works now.
Can we look into why the new version of the plugin does not work? I use wpengine as my hosting provider and have to use version 2.0.2

As you can read in the main page of the SAML plugin:
Using the SAML Plugin in WPengine or similar

This kind of WP hosting used to cache plugins and protect the wp-login.php view. You will need to contact them in order to disable the cache for this SAML plugin and also allow external HTTP POST to wp-login.php

Be sure that you did those steps. And if continue failing, let me know what problems you experienced so I can fix.


Update nan dependency to 2.0.x

This is needed for compatibility with the latest io.js release(s).
@3rd-Eden Can you do a release for this?  Thanks.

Hrm, this is mildly annoying.  io.js v3.x needs gcc 4.8 for its C++11 support but adding that to the .travis.yml somehow makes istanbul disappear from the PATH...

Reimplemented the hash in pure JS and the CI is all green now.  Seems to be slightly faster too, at least on my system.

@bnoordhuis Thanks for the pull request, but I have no idea why tests are passing as I'm pretty sure that hashing required 64 bit bit shifting in order to correctly generate a stable hashring. And that was the reason I moved to a binary addon in the first place.

The C++ code uses (unsigned) int and that's 32 bits on all platforms node runs on.

That is an excelent point lol.


feat: Adding subscription properties to streaming pull response in third party pubsub.proto.

This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/6642309c-0b6a-4617-8bd6-75cfdbd54d4c/targets

[ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 382318016
Source-Link: https://github.com/googleapis/googleapis/commit/e9b2b616a20a11c97c7ac912536e82d33d006104
PiperOrigin-RevId: 379784268
Source-Link: https://github.com/googleapis/googleapis/commit/551681f25e36b11829e87e580281350461f4f3f5
PiperOrigin-RevId: 378718217
Source-Link: https://github.com/googleapis/googleapis/commit/08c4eeb531c01ad031134dca94b18e3f7dd35902
PiperOrigin-RevId: 378266372
Source-Link: https://github.com/googleapis/googleapis/commit/9e3105549a35520f215359065c11e8dce15e18af
PiperOrigin-RevId: 377081269
Source-Link: https://github.com/googleapis/googleapis/commit/a5f96d06ef57e325761bad010f460d0c5dbeccda
PiperOrigin-RevId: 376047466
Source-Link: https://github.com/googleapis/googleapis/commit/1d2c8471073454fb7ab8d5fa6885025fe8a0e3c9

Hey can we get this PR merged? Keeping it open will prevent synthtool from suggesting additional changes to the repo.

Hey can we get this PR merged? Keeping it open will prevent synthtool from suggesting additional changes to the repo.

Before merging I’d like to resolve the requested changes? Can you deprecate methods using ProjectSubscriptionName instead of removing them? Same with ProjectSnapshotName?

Hey can we get this PR merged? Keeping it open will prevent synthtool from suggesting additional changes to the repo.

Before merging I’d like to resolve the requested changes? Can you deprecate methods using ProjectSubscriptionName instead of removing them? Same with ProjectSnapshotName?


blockchain/state_manager: add appropriate state transition aesthetics

Summary of changes

Changes introduced in this pull request:

adds functionality to the state manager to reveal five trees on the info level tracer whenever desired
prints five ascii-formatted trees that resemble the forest logo upon successful state migration nv18 and nv19

Reference issue to close (if applicable)
🌲 for #2775
Other information and links

Change checklist

[x] I have performed a self-review of my own code,
[ ] I have made corresponding changes to the documentation,
[ ] I have added tests that prove my fix is effective or that my feature works (if possible),
[ ] I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Uncomment incorrectly commented-out line in code sample to launch emulator

In the code snippet describing the code required to launch an Android Emulator on the Azure Pipeline agent, the line which invokes sdkmanager to download the emulator image is commented out. However, this emulator image is not preloaded on the agent VMs, so this line must be uncommented for these instructions to work. In the solution to this Developer Community post, similar code is provided by a Microsoft rep with the line in question uncommented.

It's worth noting that #5723 suggests that this entire codeblock is outdated on the MacOS 10.14 agents. However, with the modification suggested in this PR, it's been my experience that this code block still works as expected on the 10.14 agents, and I'm not aware of any newer mechanism for launching an emulator on the pipeline agents.

@sphanley Thanks for your contribution!


Android : Action Button Icons don't display,

I followed the given payload guidelines to add action buttons, everything works fine except push notification doesn't display any icons for action buttons.
Given links about how to copy the icon files to res/drawable folder seems outdated!! I could not figure out how and where to copy the custom icons for action buttons.

Tried to execute the hook script as well, but no help.
module.exports = function (ctx) {
// make sure android platform is part of build
if (ctx.opts.platforms.indexOf('android') < 0) {
return;
}
var filestocopy = [
    {
        "res/icons/android/newitems.png":
        "platforms/android/res/drawable/new.ico"
    },
     {
         "res/icons/android/important.png":
         "platforms/android/res/drawable/important.png"
     },
];
var fs = require('fs');
var path = require('path');
// no need to configure below
var rootdir = process.argv[2];

filestocopy.forEach(function(obj) {
    Object.keys(obj).forEach(function(key) {
        var val = obj[key];
        var srcfile = path.join(rootdir, key);
        var destfile = path.join(rootdir, val);
        console.log("src :" + srcfile + "  -- des :" + destfile);
        //console.log("copying "+srcfile+" to "+destfile);
        var destdir = path.dirname(destfile);
        if (fs.existsSync(srcfile) && fs.existsSync(destdir)) {
            fs.createReadStream(srcfile).pipe(
               fs.createWriteStream(destfile));
            console.log("src :" + srcfile + "  -- des :" + destfile);
        }
    });
});

};

Do you have any adb output? Where are the links about how to copy the icon files to res/drawable folder?

Here is the suggested link http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/
It was posted in Nov 2013, I am not sure the folder structures are still valid for latest platforms.
I use Visual Studio cordova tools (CTP 3.1) for development.

@tssutha Can you post an example of the payload you send to the device which shows the Action buttons?

I use the PushSharp library at my server side.
"data": {
"notId": 1,
"title": "This is the title",
"message": "This is 5 new documents to read.",
"actions": [
{
"icon": "importantItems",
"title": "IMPORTANT",
"callback": "window.onOpenImportantItems"
},
{
"icon": "newItems",
"title": "NEW ITEMS",
"callback": "window.onOpenNewItems"
}
],
"style": "inbox",
"summaryText": "There are %n% notifications",
"sound": "beep.wav",
"count": 2
}
I have the similar issue for notification sound as well... I am not sure where to copy the sound files
res/drawable or res/raw, there is not clear information about the custom file location. It seems possible to do in Java applications, but could not figure out how to do it with Cordova apps.
Appreciate your help.

@tssutha looking at you copy functionality you are copying newitems.png to new.ico and important.png to important.png. But then in your payload you call the icons importantItmes and newItems. So those names don't match anything in the res/drawable folder.

Sorry, that was my mistake, i copied the code at different time, that' why it seems like a mismatch
anyways here is the actual code and payload, but it is not working at all, the notification sound also not working.
Is there any way to play a default sound for android?
Payload
"data": {
"notId": 0,
"title": "This is the title",
"message": "This is 7719 notification.",
"actions": [
{
"icon": "ic_important_black_24dp.png",
"title": "IMPORTANT",
"callback": "window.onOpenImportantItems"
},
{
"icon": "ic_fiber_new_black_24dp.png",
"title": "NEW ITEMS",
"callback": "window.onOpenNewItems"
}
],
"style": "inbox",
"summaryText": "There are %n% notifications",
"image": "https://dl.dropboxusercontent.com/u/887989/antshot.png",
"sound": "beep.wav",
"count": 2
}
}
Hook Script
module.exports = function (ctx) {
// make sure android platform is part of build
if (ctx.opts.platforms.indexOf('android') < 0) {
return;
}
var filestocopy = [
    {
        "res/icons/android/ic_fiber_new_black_24dp.png":
        "platforms/android/res/drawable/ic_fiber_new_black_24dp.png"
    },
     {
         "res/icons/android/ic_important_black_24dp.png":
         "platforms/android/res/drawable/ic_important_black_24dp.png"
     },
];

var fs = require('fs');
var path = require('path');

// no need to configure below
var rootdir = process.argv[2];

filestocopy.forEach(function(obj) {
    Object.keys(obj).forEach(function(key) {
        var val = obj[key];
        var srcfile = path.join(rootdir, key);
        var destfile = path.join(rootdir, val);
        console.log("src :" + srcfile + "  -- des :" + destfile);
        //console.log("copying "+srcfile+" to "+destfile);
        var destdir = path.dirname(destfile);
        if (fs.existsSync(srcfile) && fs.existsSync(destdir)) {
            fs.createReadStream(srcfile).pipe(
               fs.createWriteStream(destfile));
            console.log("src :" + srcfile + "  -- des :" + destfile);
        }
    });
});

};

@tssutha remove the extensions (.png/.wav) from the payload you send to the device. Android just searches res for the file name of any extension.

Still not working... is that android folder structure has changed? does it look at different folder structure based on resolution ?

@tssutha did you get this resolved?

+1

@tssutha did you get this resolved?

can you let me know where you have put the callback function in your application

@chetankabra you can put you call back where ever you want as long as it is addressable from the window object. so app.accept would be the accept function in the app object.
Also, I'm closing this as the original requester did not respond for 3 months.


makeStyles dir @material-ui/core/styles breaks my build

There's no much details to put here. I'm supposed to present a project to my boss right now, as in today. And I can't deploy it because
./node_modules/notistack/dist/notistack.esm.js Attempted import error: 'makeStyles' is not exported from '@material-ui/core/styles'.
This error is appearing in other areas as well.
Please fix this or I'll have to choose another UI platform. Thanks
@oliviertassinari

Follow https://github.com/iamhosseindhv/notistack/issues/412 for the support of Material-UI v5 in notistack.


Resolving Conflict and Refactoring

Changes Made:

[x] #418  Resolved a conflict in the package.json file.
[x] Uninstalled the react-google-button package to streamline dependencies.

Fixed these issues encountered during development:

[x] Corrected import statements for createContext.
[x] Adjusted the naming of the import path for privacy policy.
[x] Updated the property assignment in the Testimonial component class to className.

@codewithmurali deployment preview isn't there

@Priyaaa1 is the issue fixed, the site's still not active ?

@rohitroy-github now it's working

Yeah. Cool.


[Doc:] Helidon MP Validation

Helidon MP Validation documentation (according to the new documentation structure).
Path: /HelidonMP/Enterprise
Should cover General Bean Validation and Jersey validation

[x] Overview (should be created)
[x] Maven Dependency (may be reused from current doc)
[x] Usage (should be created)
[x] API (should be created using Bean Validation documentation)
[x] Configuration (should be created)
[x] Reference (should be created)
[x] Examples (may be reused from Helidon repo)
[x] Additional Information (if applicable)

I completed my review in the PR.


Fix command injection vulnerability

I've replaced all instances of exec within the code with execFile and slightly modified the workflow of the supplyReset function to get rid of the pipe to grep.

@69 this looks good to me! I'm not a sherif, just taking a look because I thought this bounty was till open. Just out of curiosity, was there a way to exploit that this PR is remediating?

@69 this looks good to me! I'm not a sherif, just taking a look because I thought this bounty was till open. Just out of curiosity, was there a way to exploit that this PR is remediating?

Hey @Kristoff-Harris, just stepping in here for @69. A PoC for the exploit can be found here, but to summarise, we've seen some uses of this package where external (user) input, can be provided to the Root constructor, leading to Command Injection.
Looking forward to seeing you active in the community!
-Adam

@adam-nygate Please take a look at this https://github.com/nodef/heroku-addonpool/commit/b1a5b316473ac92d783f3d54ee048d54082da38d
If you run the POC in RunKit with heroku-addonpool 0.1.16, you'll see the regex that wolfram77 introduced has fixed that specific abuse case in the Huntr.dev ticket. I'm curious if @69 knew of another exploit that could bypass Wolfram77's fix.

@adam-nygate Thanks for the warm welcome! I'm really excited to get involved :)
If you have a moment, please take a look at this nodef@b1a5b31
If you run the POC in RunKit with heroku-addonpool 0.1.16, you'll see the regex that wolfram77 introduced has fixed that specific abuse case in the Huntr.dev ticket. I'm curious if @69 knew of another exploit that could bypass Wolfram77's fix.

@Kristoff-Harris yeah I think you're right! This must have squeezed through our checks on a disclosure that was made to our platform. Thanks for the spot!
Also, in case you haven't heard, we just started paying out for disclosures. Feel free to check it out here: https://www.huntr.dev/app/bounties/disclose


How to use the stretch extension to perform a left-hand stretch

I'm trying to use the diagram to make the character stretch to the left instead of centering, but no matter what I'm filling in the divisor, he doesn't seem to get it right, and I suspect I'm stupid

The easiest way could be modifying your costume and use the fact that the image does not need to be centered at the crosshair

Or you move the sprite at the same time as the stretch, which works too


Bump flavor for edpm baremetal job

centos-9-stream-crc-4xlarge have 16vcpu_48GB.
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running

recheck

/lgtm

/hold
need some changes for crc spec

/hold cancel

/lgtm ... thanks Sandeep

recheck

/lgtm

recheck


protocol/packp: add ReferenceUpdateRequest message

Add ReferenceUpdateRequest message with its Encode and Decode functions.

Current coverage is 73.72% (diff: 87.20%)

Merging #147 into master will decrease coverage by 1.66%

@@             master       #147   diff @@
==========================================
  Files            78         81     +3
  Lines          5091       5256   +165
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           3838       3875    +37
- Misses          804        943   +139
+ Partials        449        438    -11

Powered by Codecov. Last update 8c0f194...97d9ceb

rebase

Rebase pending, I will wait to see if we merge https://github.com/src-d/go-git/pull/153 or not.


mnemosyne: 2.7.2 → 2.10.1

Description of changes
Update Mnemosyne to 2.10.1. This also fixes sync with mobile app, which didn't work for me on 2.7.
Changelog: https://github.com/mnemosyne-proj/mnemosyne/releases
NB! This PR updates Mnemosyne to the latest version available at SourceForge.
Development apperars to happen mostly in GitHub, instead, and version 2.11 is only available on GitHub.
I couldn't figure out how to build the GitHub repo with NixOS, though, I would appreciate if someone helped with this.
Until this is done, we cannot get the latest version, 2.11, to work through Nix.
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
[ x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 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

[ ] Fits CONTRIBUTING.md.

You may upgrade the version to 2.11 and replace your src with
  src = pkgs.fetchFromGitHub {
    owner = "mnemosyne-proj";
    repo = "mnemosyne";
    rev = version;
    hash = "sha256-McTeZuqWO/cPRW/ojVSgLBBtBniYwcIjUbmQF1aB4cQ=";
  };

I managed to build the 2.11 version, while having the error when executing it:
  File "/nix/store/jy162ka72j6y050s2rqj93cp8amzrip9-mnemosyne-2.11/lib/python3.11/site-packages/mnemosyne/pyqt_ui/main_wdgt.py", line 8, in <module>
    from mnemosyne.pyqt_ui.ui_main_wdgt import Ui_MainWdgt
 ModuleNotFoundError: No module named 'mnemosyne.pyqt_ui.ui_main_wdgt'

Do you have any idea to solve it?

I managed to build the 2.11 version, while having the error when executing it:
  File "/nix/store/jy162ka72j6y050s2rqj93cp8amzrip9-mnemosyne-2.11/lib/python3.11/site-packages/mnemosyne/pyqt_ui/main_wdgt.py", line 8, in <module>
    from mnemosyne.pyqt_ui.ui_main_wdgt import Ui_MainWdgt
 ModuleNotFoundError: No module named 'mnemosyne.pyqt_ui.ui_main_wdgt'

Do you have any idea to solve it?

:D
When I said "I couldn't figure out how to build the GitHub repo with NixOS", I meant exactly that - I could build a package, but not in a way that it would work. I'm as stuck as you are. Meanwhile, 2.10.1 works quite nicely, so we could merge this one, making Mnemosyne usable until we figure out 2.11.


correct cosine_proximity loss

Missing minus sign in front. It was there in 1.13 but it got removed for some reason. Without that negative sign, the accuracy remains extremely low, near 0.

This has been fixed and has been cherrypicked into 2.0 release. Thank you!


Update diesel to 2.0

I followed https://diesel.rs/guides/migration_guide.html to update the diesel dependency from 1.4 to 2.0. The diesel dependency is extracted to shared and re-exported to be used by the web and daemon modules. This makes sure both modules use the same version and when updating only one place needs to be touched.

Have been running this on miningpool.observer without any problems for the last 24h.


detect cpu thread auto

Hi !
Thanks for sharing this miner :) Would it be possible that instead of putting the number of CPU in config.txt for threads, the miner detects it automatically ?
Thank you for your time.

Yeah, v1.0.0 add the function, thread setting to 0 means "CPU max threas - 1", I'll release it before Nimiq mainnet


Switch to Github Action instead of travis

Can you remove .travis.yml too?

Sure, But I'm waiting to GA to work before

Closing in favor of #76 (we enabled GA after this PR was open, and github seems to not detect this PR...)


heif-convert binary is missing

The port does not install the heif-convert binary. It is needed to have support for HEIC files (e. g. iPhones). It skippes silently if the binary is not found.
Added in Pull Request 44

Btw: its almost impossible to "fix" the database later. You have to remove the originals and run purge and cleanup multiple times. I just started a fresh restart because I have 7 years of live photos

Thanks, the PR has been merged.
Sorry for the inconvenience to restart your photos.


Unresolved dependency

After these commands
activator new PROJECTNAME play-swagger-service
cd PROJECTNAME
activator run

I got
unresolved dependency: me.andrz.jackson#jackson-json-reference;0.1.2: not found

@slavaschmidt is it just me?
thanks in advance!

Thanks for creating an issue. I'll look into it.
Actually, we have travis CI running on master of the play-swagger so it should be possible to find all needed dependencies.
I'll double check the template.

I guess it has something to do with https://github.com/zalando/play-swagger/issues/27?

Seems like this could be an issue with repository format (mvn vs ivy)

Same problem here. https://dl.bintray.com/zalando/maven/ doesn't actually contain any artifacts in me.andrz.jackson namespace.
We tried to use a version from https://bintray.com/adjohnson916/maven/jackson-json-reference/ but unfortunately there is no version 0.1.2 and 0.2.0 is broken.
We just could fix it by building jackson-json-reference by our own (without your patches I think).
Could you please provide a working version in https://dl.bintray.com/zalando/maven/?

Thanks for bringing it up. Strange that it can be build by the travis-ci... I'm completely puzzled by that fact
Will address this issue as next.

@matterche @zcsongor hey guys, could you please try the last version of the template? I moved the jackson-son-reference into the Zalando's bintray to make sure it is available and not broken until public version of it will be available.

It works! :) Thanks for your effort!

@zcsongor Wow, that was quick! Thanks for quick response and testing it!

FYI resolved https://github.com/adjohnson916/jackson-json-reference/issues/22


Lab 08: Deploying Docker containers to Azure App -

Contact Details
<EMAIL_ADDRESS>What happened?
Exercise : 02
Task: 01
Step: 08   (It's labeled step 1 in the current version of the lab. Previous step is 7.)
"1. Click on Save and Run and wait for the pipeline to execute successfully"
Description of issue:
Clicking "Save and Run" in the "Save and run" dialog box displays:
TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.
I believe this is due to a change in an earlier lab to the eShopOnWeb project.
Disabling "Require a minimum number of reviewers" lets the lab continue.
We either need to reset this change, or ask the students to create a new project.
Repro steps:
1.
1.
1.
Lab
Other
Relevant screenshots
paste here 😉
Do you want to help us? 👏

[ ] Create a Pull Request by following this project's Contribution Guide

Thanks @microsmith. We will have this fixed in our next release. You should see the PR soon.


[Bugfix] Hide kubecontext prompt if there is no current context

This hides the kubecontext prompt if there is no current context set in ~/.kube/config. Essentially, this prevents a namespace from being shown all on its own.
BEFORE this PR - no context set:

AFTER this PR - no context set:

BEFORE & AFTER this PR (i.e. no change) - context set:

Would be nice if this got merged, as I just implemented the same feature and came here looking for unmerged PRs before submitting my own.


Color code links with standard blue

Links are colored blue, we should color text links styled as code blue
as well otherwise users cannot tell that they are actually links.
Closes:
https://github.com/airbrake/airbrake-docs/issues/398
Before
Page in screenshot: https://airbrake.io/docs/performance-monitoring/updating-to-pybrake-from-deprecated-versions/

After

Thanks @marcelomazza! 👍


[fix] [broker] [branch-3.0] Fast fix infinite HTTP call createSubscriptions caused by wrong topicName

Similar to: #20131
The master branch has fixed the issue by https://github.com/apache/pulsar/pull/19841( Since it will makes users can not receive the messages which created in mistake, we did not cherry-pick https://github.com/apache/pulsar/pull/19841 into other branches, see detail https://github.com/apache/pulsar/pull/19841)
Motivation
Background of Admin API PersistentTopics.createSubscription
It works like this:

createSubscription( tp1 )
is partitioned topic?
no: return subscriptions
yes: createSubscription(tp1-partition-0)....createSubscription(tp1-partition-n)

Background of the issue of TopicName.getPartition(int index)
String partitionedTopic = "tp1-partition-0-DLQ";

TopicName partition0 = partitionedTopic.getPartition(0);// Highlight: the partition0.toString() will be "tp1-partition-0-DLQ"(it is wrong).The correct value is "tp1-partition-0-DLQ-partition-0"

Issue
Therefore, if there has a partitioned topic named tp1-partition-0-DLQ, the method PersistentTopics.createSubscription will works like this:

call Admin API ``PersistentTopics.createSubscription("tp1-partition-0-DLQ")`
is partitioned topic?
yes, call TopicName.getPartition(0) to get partition 0 and will get tp1-partition-0-DLQ , then loop to step-1.

Then the infinite HTTP call PersistentTopics.createSubscription makes the broker crash.
Modifications
Quick fix(this PR does it)
If hits the issue which makes the topic name wrong, do not loop to step 1.
Long-term fix
The PR https://github.com/apache/pulsar/pull/19841 fixes the issue which makes the topic name wrong, and this PR will create unfriendly compatibility, and PIP 263 https://github.com/apache/pulsar/issues/20033 will make compatibility good.
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

x

The master branch has fixed the issue by #19841 Since it will makes users can not receive the messages which created in mistake, we did not cherry-pick #19841 into other branches, see detail #19841)

@poorbarcode I didn't find the reason why #19841 wasn't cherry-picked to branch-3.0 . Please provide the details here. Thanks.


Cannot import Context and SDK from javascript-sdk

When upgrading to 1.2.4, I can longer access Context and SDK:

I was able to resolve this by installing @absmartly/javascript-sdk and leaving the import statements as they are.


Concept: Beta process

I am not really sure about this part, but I run out of ideas. Please check how you like my take on description of beta process and drop any hints you have.


DPL-1001 Research and refine BGE requirement tasks and efforts

User story
Possible scope of work discussed during team backlog refinement.

Create new BGE pipeline (setting up the new purposes & pipeline config in Limber, adding straight stamps instead of any new labware creators)
Integration Suite test for the above
Bed verifications for the above (copied from existing pipelines)
Allow blending of pool tubes from PCR Free and ISC arms & validate the pairing is correct
Ability to fail wells on both arms at once (Not MVP)

Who are the primary contacts for this story
Matthew M., Sara W.
Who is the nominated tester for UAT
e.g. John S (don't include surnames in public repos)
Acceptance criteria
To be considered successful the solution must allow:

[ ] add a list of acceptance criteria here
[ ] ...

Dependencies
This story is blocked by the following dependencies:

#<issue_no.>
sanger/#<issue_no.>

References
https://docs.google.com/presentation/d/1UvMcZhYmTwj2yqSXtp6Tv_d-s8hFX152OGH7_JF4Y7A/edit#slide=id.g292a0708915_0_150
Additional context
Add any other context or screenshots about the feature request here.

Closing as research is done. Will update with any comments from future meetings.


Add ansible support

I am currently running Machinaris on my two machines, and I now would like to convert my main farmer/controller to also be a NAS. I found this awesome project called ansible-nas, which uses ansible to automagically install on a remote machine many different types of utilities which are convenient to have (plex streaming, movie download, backup utilities, home automation etc.).
I was wondering if there could be interest into making this project a simple plug-and-play ansible role, since both tools compliment each other and ease deployment on new machines
@guydavis let me know what you think, I can look into this feature myself, even though I started learning ansible one week ago.
To make this happen we should only need an ansible role, like the ones available for the mentioned project here. You would creare the needed folders, get the required folder and port mappings (from a config) and then spin up machinaris from that

Closing as stale.


Combination of [loop, slideToClickedSlide, centeredSlides] doesn't show elements properly

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/s/swiper-slides-per-view-auto-forked-sy45mf
Bug description
I want to create infinite slider with possibility to select element by click.
Steps to reproduce:

Use script to add swiper component
Use:

loop: true
slidesPerView: 5
slideToClickedSlide: true
centeredSlides: true

Click on right or left element several times

Expected Behavior
Selected element always in center. List of elements have infinite behavior
Actual Behavior
Selected element always in center. After some clicks there are empty space except new elements
Check example here
Swiper version
11.0.3
Platform/Target and Browser Versions
Wondows/Chrome 118.0.5993.118
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

I have the same problem.

Same for me

I'm having the same issue, but I've noticed that it happens independently of slideToClickedSlide. I've tried downgrading to 10.3.1 but it has the same issue and additionally slideToClickedSlide behaves erratically, scrolling in the wrong direction on occasion.

Also experiencing the same issue here

Same for me, also I experience this issue when dragging slides.
Does someone have a solution?

I got this bug as well,

In the beginning, when you click on "slide 8", it move to the left but doesn't create the "slide 6"

Same issue here, even worst when you use slidePerView: auto

It seems that the loop and centeredSlides props are not good friends together, especially when setting slidePerView to auto
Since I have responsive slides, on larger screens where conditions are met it works mostly fine, but in mobile it fails every time.
Take a look at this example from Swiper original demos with some custom slider parameters:
{
      slidesPerView: "auto",
      loop: true,
      centeredSlides: true,
      ...
}

https://codepen.io/arl1nd/full/qBvBdRv
Play with viewport width and refresh the page, it will randomly set centered slide which sometimes is last slide, and sometimes is first slide, on some other cases it fails to create the loop as well.
Hopefully the team will take into consideration this soon and provide a fix.

Also facing this issue in React, with fixed width slides and Slider props:

modules={[FreeMode]}
freeMode={{ enabled: true, sticky: true, momentum: false, momentumBounce: false, minimumVelocity: 100 }}
loop
centeredSlides
slidesPerView="auto"

It only happens if I drag. Arrow buttons with swiper.slideNext() or swiper.slidePrev() work fine. Looks like the looping doesn't fill enough slides in time.

The issue still persists in the latest version (11.0.6). I'm using these options
 {
  slidesPerView: 'auto',
  loop: true,
  slideToClickedSlide: true,
}

When I remove one of these options, everything seems to work fine. The problem also seems to only occur when clicking the last slides. So it feels to me like the loop options does not calculate the "looped" slides correctly.

I have params:
                                                        slidesPerView={5}
							initialSlide={initialSLideTwo}
							direction={'vertical'}
							loop={true}
							modules={[Navigation]}
							onSlideChange={(slide) => handleSlideChange(slide, 2)}
							centeredSlides={true}
							navigation={true}

and i had same problem. I add centeredSlidesBounds. It shouldn't work as documentation says, but it works for me

Just asking... has there been any progress on this?

Same issue here. Did anyone find a solution?

The problem in my case is centeredSlides, if I do not set that prop then the behaviour is infinite and there are no gaps. But in that case, if working i.e. in a desktop then the active element is always on the left.
I tried using initialSlide but that just moves the first visible slide to whatever position in the array. Not a solution.
Checking other issues it seems this problem was already in version 10, and although version 11 of Swiper technically has a different loop version, the issue still persists.

It's even worse when you have this setup:
modules: [Navigation, Mousewheel, FreeMode],
      direction: 'horizontal',
      slidesPerView: "auto",
      freeMode: {
        enabled: true,
        sticky: true,
        momentum: true,
      },
      loop: true,
      centeredSlides: true,

has there been any progress on this?

I fix it in next way -> onClick={() => swiperRef.current?.swiper.slideToLoop(index)}
const swiperRef = useRef<SwiperRef | null>(null);
return (
    <Swiper
        ref={swiperRef}
        modules={[Keyboard, Mousewheel, Pagination, Navigation]}
        **slidesPerView={"auto"}**
        slidesPerGroup={1}
        spaceBetween={0}
        **centeredSlides={true}**
        **loop={true}**
    >
        {personas.map((item, index) => (
            <SwiperSlide
                **onClick={() => swiperRef.current?.swiper.slideToLoop(index)}**
                key={item.id}
            >
                <Image src={item.images.main}/>
            </SwiperSlide>
        ))}
    </Swiper>
);

I fix it in next way -> onClick={() => swiperRef.current?.swiper.slideToLoop(index)}
const swiperRef = useRef<SwiperRef | null>(null);
return (
    <Swiper
        ref={swiperRef}
        modules={[Keyboard, Mousewheel, Pagination, Navigation]}
        **slidesPerView={"auto"}**
        slidesPerGroup={1}
        spaceBetween={0}
        **centeredSlides={true}**
        **loop={true}**
    >
        {personas.map((item, index) => (
            <SwiperSlide
                **onClick={() => swiperRef.current?.swiper.slideToLoop(index)}**
                key={item.id}
            >
                <Image src={item.images.main}/>
            </SwiperSlide>
        ))}
    </Swiper>
);

No, you does not. You just show one slide per group. And you have not even faced the issue

This seems to work for me.
on : {
  click : (swiper) => {
    if(swiper.clickedIndex > swiper.activeIndex){
       swiper.slideNext()
    }else{
        swiper.slidePrev()
    }
}

This kinda work for me.
var swiper = new Swiper(".mySwiper", {
        slidesPerView: "auto",
        spaceBetween: 30,
        loop: true,
        slidesPerView: 5,
        centeredSlides: true,
        on: {
          click: (swiper) => {
            if (swiper.clickedIndex > swiper.activeIndex) {
              swiper.slideNext();
            } else {
              swiper.slidePrev();
            }
          }
        },
        pagination: {
          el: ".swiper-pagination",
          clickable: true
        }
      });

I experience same issue

I found a solution.
The problem lies in using the "slideToClickedSlide" option.
The "slideToClickedSlide" option seems to have a bug when used with "loop" option.
Instead of using the "slideToClickedSlide" option, use "swiper.slideToLoop(index)" within the onClick event of each slide.

Here's how I got this problem solved:
`
let swiper = new Swiper(".swiper", {
loop: true,
slidesPerView: "auto",
spaceBetween: 16,
centeredSlides: true,
});
swiper.slides.forEach(slide => {
slide.onclick = () => {
slider.slideToLoop(slide.dataset.swiperSlideIndex);
}
})
`

Here's how I got this problem solved:
`let swiper = new Swiper(".swiper", {
loop: true,
slidesPerView: "auto",
spaceBetween: 16,
centeredSlides: true,
});
swiper.slides.forEach(slide => {
slide.onclick = () => {
slider.slideToLoop(slide.dataset.swiperSlideIndex);
}
})`

Here's how I got this problem solved:
let swiper = new Swiper(".swiper", {
  loop: true,
  slidesPerView: "auto",
  spaceBetween: 16,
  centeredSlides: true,
});

swiper.slides.forEach(slide => {
  slide.onclick = () => {
    slider.slideToLoop(slide.dataset.swiperSlideIndex);
  }
})

It's weird that this behaviour is not yet fixed. This is basic swiper usage.

Here's how I got this problem solved:
let swiper = new Swiper(".swiper", {
  loop: true,
  slidesPerView: "auto",
  spaceBetween: 16,
  centeredSlides: true,
});

swiper.slides.forEach(slide => {
  slide.onclick = () => {
    slider.slideToLoop(slide.dataset.swiperSlideIndex);
  }
})

loopAdditionalSlides: 1

I've been dealing with this issue over and over and after a thorough troubleshooting I came at this conclusion:
How?
Having fluid images (width: 100% - height: auto) causes this issue.
Why?
Because some slides are incorrectly calculated because browser cannot determine its intrinsic width and height in which case Swiper incorrectly measures the size of 0px for those slides. This is usually caused by images with loading=lazy attribute.
Relying solely on aspect-ratio property won't make any change either.
FIX
Change loading=lazy to loading=eager and it should work.
For me it did perfectly!

This Bug still exists. No fix really worked for me.
Please, I beg you, fix this :-/

I've been dealing with this issue over and over and after a thorough troubleshooting I came at this conclusion:
How? Having fluid images (width: 100% - height: auto) causes this issue.
Why? Because some slides are incorrectly calculated because browser cannot determine its intrinsic width and height in which case Swiper incorrectly measures the size of the slides. This is usually caused by images with loading=lazy attribute.
Relying solely on aspect-ratio property won't make any change either.
FIX Change loading=lazy to loading=eager and it should work.
For me it did perfectly!

I doubt it has to do with lazyloading, considering I am removing entirely the loading attribute, and it will still poorly behave for next action, and very poorly for previous action. I am sure it's related with the node injection while in loop as every time will fail finding the center when images are injected on top or bottom of the slide list.

I've been dealing with this issue over and over and after a thorough troubleshooting I came at this conclusion:
How? Having fluid images (width: 100% - height: auto) causes this issue.
Why? Because some slides are incorrectly calculated because browser cannot determine its intrinsic width and height in which case Swiper incorrectly measures the size of the slides. This is usually caused by images with loading=lazy attribute.
Relying solely on aspect-ratio property won't make any change either.
FIX Change loading=lazy to loading=eager and it should work.
For me it did perfectly!

I doubt it has to do with lazyloading, considering I am removing entirely the loading attribute, and it will still poorly behave for next action, and very poorly for previous action. I am sure it's related with the node injection while in loop as every time will fail finding the center when images are injected on top or bottom of the slide list.

Have you tried to set fixed width/height? This is to verify the miscalculations from  elements.

for anyone interested I have a little bit different setup and bug, but at least i found a workaround for it, that may help others
so i have swiper like this
<Swiper
    slidesPerView={1.5}
    centeredSlides={true}
    spaceBetween={16}
    loop={true}
>
    {images.map((imagePath, index) => (
        <SwiperSlide key={index}>
            <Image
                width="100%"
                imagePath={imagePath}
            />
        </SwiperSlide>
    ))}
</Swiper>

the problem is that the last slide that should be partially shown from the left isn't shown up until i swipe slider a little bit. from HTML i just see that slides aren't shuffled meaning slide with last index isn't moved to the beginning of the list like it should
the idea of fixed width mentioned by @arl1nd worked for me, but i didn't want to make image width fixed, so i added dummy div of fixed width 1px into slide and now last slide is correctly shuffled and shown from the left
this way there is no noticeable change from user perspective (image width is still dynamic) and everything seems to work as expected
<Swiper
    slidesPerView={1.5}
    centeredSlides={true}
    spaceBetween={16}
    loop={true}
>
    <div className={styles.swiperWorkaround} />
    {images.map((imagePath, index) => (
        <SwiperSlide key={index}>
            <Image
                width="100%"
                imagePath={imagePath}
            />
        </SwiperSlide>
    ))}
</Swiper>

.swiperWorkaround {
    width: 1px;
}


Regular Expression support for exclude namespaces and/or include-namespaces

Overview
It would be great to have regex support (sorry if it is today, I didn't see it in any issues or docs), for the include and exclude namespaces options. For clusters with large amounts of namespaces or known patterns for app-specific namespace vs. k8s-provided namespaces etc.
Problem
Let's say I want to scan all namespaces on a cluster except for a pattern like "internal-*"
Solution
I would want kubescape to scan all namespaces that didn't match "internal-*" on the cluster
Alternatives
N/A
Additional context
I am happy to explain further, but I wanted to verify that this wasn't possible today first. Then, I hope the request makes sense for regex support on namespace inclusion/exclusion.

Hi @adamjk-dev, kubescape has the exceptions mechanism, which supports regex out of the box.
Is it fits your needs?

Actually, looking at this... I would prefer to have the ability to "exclude namespaces" on a RegEx, so that those namespaces aren't scanned at all or part of the report.
The exceptions mechanism (still trying to get it to run with mine), seems to ignore them in the scoring, but the way I read it, it would still scan those namespaces.
I, for example, want to scan all namespaces on a cluster except for those named "openshift-.*" (it is a RedHat OpenShift cluster, and all of those namespaces are upstream controlled, so I am more interested in skipping those namespaces altogether on my cluster).
Does that make sense?

Hi @adamjk-dev yes, this makes sense but this is exactly why we added the exception mechanism. With the exceptions, the resources will be scanned but also ignored.
In any case, we will definitely consider your request.
You mentioned that it is not working for you, please feel free to share more about it here or on our Slack channel.
/cc @yossi77 @giblix

Sure thing, I grabbed latest and it looks like it worked as follows (I don't see anything about namespaces following openshift-* in my output report):
Exclusions file:
⇒  cat kubescape-exclusions.json                                                           [8/02/23| 7:50AM]
[
    {
        "name": "ignore-kube-namespaces",
        "policyType": "postureExceptionPolicy",
        "actions": [
            "alertOnly"
        ],
        "resources": [
            {
                "designatorType": "Attributes",
                "attributes": {
                    "namespace": "openshift-.*"
                }
            }
        ]
    }
]

Command run:
⇒  kubescape scan --enable-host-scan --verbose --exceptions kubescape-exclusions.json --format html --output kubescape-report.html

@adamjk-dev it it worked for you, can we close this issue?

Yes, will do.


Added support for Forge's new brewing API. Closes #221

The old system is still in place, all I did was add in the new stuff where it needed.

Just a few minor things. Thanks for this and good job on following my code style.

No problem!
Done the changes you asked :3

Oh sorry, forgot to do that one.
Anything else ? :3