Fix hdfs test

Description

Related Issue

Motivation and Context

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist:

[ ] Code compiles correctly.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Codecov Report

Merging #902 (77bf9f8) into main (bbf0c92) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #902   +/-   ##
=======================================
  Coverage   41.48%   41.48%
=======================================
  Files         106      106
  Lines        8259     8259
=======================================
  Hits         3426     3426
  Misses       4391     4391
  Partials      442      442

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
41.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


License: Add missing license file to the project

There was missing license file in the repository. As this is part of osbuild
project I have copy paste license we use in other repos.

@ochosi I am not sure if this repo is still in use or it shall be archived. As there was only one issue related to missing license - I have added common one.


Missing cookiecutter template option for init

Issue Type

Bug report

Molecule and Ansible details
ansible --version && molecule --version
ansible 2.9.6
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.8/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.2 (default, Feb 29 2020, 17:03:31) [GCC 9.2.0]
molecule 3.0.4.dev4+g21ce2f4d
   ansible==2.9.6 python==3.8

Molecule installation method (one of):

source

Ansible installation method (one of):

pip

Detail any linters or test runners used:
Desired Behavior
I'm attempting to create my own cookiecutter template to configure new roles. Ansible Galaxy provides users with a role skeleton. I am now attempting to further configure the molecule generated files.
I expected to be able to pass my custom cookiecutter configuration to molecule either through a flag or an environment variable.
Actual Behaviour
The documentation for molecule init scenario mentions a local cookiecutter template. The scenario command does a lookup for "driver_template" as a command argument but this value doesn't appear to ever be set in the project. Molecule then defaults to the local (project owned) cookiecutter template.
This appears to have been addressed in #2117. Am I missing something?

Hi,
I think the functionality of this was removed with: https://github.com/ansible-community/molecule/pull/2642
I think that the idea is that if you have a cookiecutter template you can directly use it to create it your role layout, instead of using  molecule init role/scenario

@nikParasyr thanks for the link.
I see how introducing cookicutter would add additional complexity to the project.
However, given that it is still a part of the project, would it make more sense to remove this feature with the remaining cookiecutter integration(s)?

@kevingentile i'm probably not the right person to "answer"/"decide" whether this should (or should not) be part of molecule but this is my personal opinion on this given these 2 points:

molecule had and still has a small/too limited number of active/"constant" contributors
adding support for a non-default cookiecutter template can add extra complexity

However, given that it is still a part of the project, would it make more sense to remove this feature with the remaining cookiecutter integration(s)?

Documentation/cli output should be updated to reflect the current situation. Since 3.0.3 custom cookiecutter templates are  not supported and therefore it should be clear that this is no longer supported
Cookiecutter is used to create a "sane" skeleton for ansible and molecule. Therefore completely removing cookiecutter is an overkill IMO. The question is can we, as a community, support and maintain custom templates???
For me, since 2.15 it was easy to maintain a custom cookiecutter template to init roles and scenarios that were beyond the default ones. I did not use the cli option for a custom template, i just directly used cookiecutter for the init part. IMHO the init part for roles/scenarios should be used to create a sane role/scenario. For more "advanced" use-cases documentation should indicate how to do it

this is just my opinion

Looking at bit more at #2642 this removed the option for custom driver templates. #2665 draft I was able to get the behavior I was looking for, specifically customizing the cookiecutter/molecule section of the scenario using the supported drivers. So as opposed to a driver template, here I'm looking for a "molecule template".

There are no plans to reinstate the custom template functionality in molecule, mainly because you can always create your own cookiecutter templates that do not rely on molecule itself.


cilium-etcd doesn't run after K8S restart

Bug reports
Title
The 'cilium-etcd' resource created by etcd-operator doesn't run after K8S restart
General Information

Cilium version: Cilium 1.2.3 4a41ef3 2018-09-17T17:56:54-07:00
Kernel version: 4.18.13-200.fc28.x86_64
Orchestration system version in use: K8S v1.12.1
etcd Version: 3.2.22

How to reproduce the issue

sudo mount bpffs /sys/fs/bpf -t bpf
kubeadm init --pod-network-cidr <IP_ADDRESS>/16
wget https://github.com/cilium/cilium/archive/v1.2.3.tar.gz
tar -xvf v1.2.3.tar.gz
cd cilium-1.2.3/examples/kubernetes/addons/etcd-operator/
export CLUSTER_DOMAIN=$(kubectl get ConfigMap --namespace kube-system coredns -o yaml | awk '/kubernetes/ {print $2}')
tls/certs/gen-cert.sh $CLUSTER_DOMAIN
tls/deploy-certs.sh
kubectl label -n kube-system pod $(kubectl -n kube-system get pods -l k8s-app=kube-dns -o jsonpath='{range<EMAIL_ADDRESS>"}{end}') io.cilium.fixed-identity=kube-dns
kubectl create -f ./
Join 2 workers and wait several minutes for Cilium, coredns and etcd pods to converge to a working state

kubectl get po -n kube-system
NAME                                                READY   STATUS    RESTARTS   AGE
cilium-89bk4                                        1/1     Running   1          14m
cilium-etcd-bvtgqv5n5n                              1/1     Running   0          11m
cilium-etcd-hwjpgl6m7t                              1/1     Running   0          10m
cilium-etcd-lcjbhg8hr4                              1/1     Running   0          13m
cilium-np5ww                                        1/1     Running   0          28s
cilium-p4hgp                                        1/1     Running   2          17m
coredns-576cbf47c7-mwrln                            1/1     Running   0          18m
coredns-576cbf47c7-zvktn                            1/1     Running   0          18m
etcd-operator-7cb79cdf99-4t8kw                      1/1     Running   0          17m
etcd-master-1                                       1/1     Running   0          17m
kube-apiserver-master-1                             1/1     Running   0          17m
kube-controller-manager-master-1                    1/1     Running   0          18m
kube-proxy-6sh45                                    1/1     Running   0          28s
kube-proxy-7dnh8                                    1/1     Running   0          18m
kube-proxy-9vfms                                    1/1     Running   0          14m
kube-scheduler-master-1                             1/1     Running   0          17m

kubectl get nodes
NAME                        STATUS   ROLES    AGE   VERSION
master-1                    Ready    master   19m   v1.12.1
worker-1                    Ready    <none>   14m   v1.12.1
worker-2                    Ready    <none>   64s   v1.12.1

Restart Kubelet and Docker on all VMs:

for i in $(kubectl get nodes | awk '!/NAME/ {print $1}'); do
    ssh $i 'sudo systemctl stop kubelet; sudo systemctl stop docker; sudo systemctl start docker; sudo systemctl start kubelet'
done

After restart 'cilium-etcd' PODs have 'Completed' status:

kubectl get po -n kube-system
NAME                                                READY   STATUS      RESTARTS   AGE
cilium-89bk4                                        1/1     Running     4          23m
cilium-etcd-bvtgqv5n5n                              0/1     Completed   0          20m
cilium-etcd-hwjpgl6m7t                              0/1     Completed   0          19m
cilium-etcd-lcjbhg8hr4                              0/1     Completed   0          23m
cilium-np5ww                                        0/1     Running     3          9m46s
cilium-p4hgp                                        0/1     Running     5          26m
coredns-576cbf47c7-mwrln                            1/1     Running     1          27m
coredns-576cbf47c7-zvktn                            1/1     Running     1          27m
etcd-operator-7cb79cdf99-4t8kw                      1/1     Running     2          26m
etcd-master-1                                       1/1     Running     1          27m
kube-apiserver-master-1                             1/1     Running     1          27m
kube-controller-manager-master-1                    1/1     Running     1          27m
kube-proxy-6sh45                                    1/1     Running     1          9m46s
kube-proxy-7dnh8                                    1/1     Running     1          27m
kube-proxy-9vfms                                    1/1     Running     1          23m
kube-scheduler-master-1                             1/1     Running     1          27m

Partial logs from 'etcd-operator-7cb79cdf99-4t8kw':
kubectl logs -f etcd-operator-7cb79cdf99-4t8kw -n kube-system
time="2018-10-18T17:59:08Z" level=info msg="etcd-operator Version: 0.9.2"
time="2018-10-18T17:59:08Z" level=info msg="Git SHA: a0032c1f"
time="2018-10-18T17:59:08Z" level=info msg="Go Version: go1.10"
time="2018-10-18T17:59:08Z" level=info msg="Go OS/Arch: linux/amd64"
time="2018-10-18T17:59:08Z" level=info msg="Event(v1.ObjectReference{Kind:\"Endpoints\", Namespace:\"kube-system\", Name:\"etcd-operator\", UID:\"1f10b48e-d2fd-11e8-856d-000d3a02980a\", APIVersion:\"v1\", ResourceVersion:\"3729\", FieldPath:\"\"}): type: 'Normal' reason: 'LeaderElection' etcd-operator-7cb79cdf99-4t8kw became leader"
time="2018-10-18T17:59:08Z" level=info msg="start running..." cluster-name=cilium-etcd pkg=cluster
time="2018-10-18T17:59:16Z" level=warning msg="all etcd pods are dead." cluster-name=cilium-etcd pkg=cluster
time="2018-10-18T17:59:24Z" level=warning msg="all etcd pods are dead." cluster-name=cilium-etcd pkg=cluster

Partial logs from 'cilium-etcd-bvtgqv5n5n':
kubectl logs -f cilium-etcd-bvtgqv5n5n -n kube-system
2018-10-18 17:45:14.415842 I | etcdserver/membership: added member 262e6357a02edfad [https://cilium-etcd-lcjbhg8hr4.cilium-etcd.kube-system.svc:2380] to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:14.415934 N | etcdserver/membership: set the initial cluster version to 3.2
2018-10-18 17:45:14.415967 I | etcdserver/api: enabled capabilities for version 3.2
2018-10-18 17:45:14.416026 I | etcdserver/membership: added member 868050aa093b4abf [https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380] to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:14.425013 I | etcdserver: published {Name:cilium-etcd-bvtgqv5n5n ClientURLs:[https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2379]} to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:14.425064 I | embed: ready to serve client requests
2018-10-18 17:45:14.425251 I | embed: serving client requests on [::]:2379
WARNING: 2018/10/18 17:45:14 Failed to dial <IP_ADDRESS>:2379: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate"; please retry.
2018-10-18 17:45:22.696785 I | etcdserver/membership: added member 2bd67aa87de05706 [https://cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc:2380] to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:22.696806 I | rafthttp: starting peer 2bd67aa87de05706...
2018-10-18 17:45:22.696819 I | rafthttp: started HTTP pipelining with peer 2bd67aa87de05706
2018-10-18 17:45:22.697633 I | rafthttp: started streaming with peer 2bd67aa87de05706 (writer)
2018-10-18 17:45:22.698297 I | rafthttp: started streaming with peer 2bd67aa87de05706 (writer)
2018-10-18 17:45:22.698611 I | rafthttp: started peer 2bd67aa87de05706
2018-10-18 17:45:22.698628 I | rafthttp: added peer 2bd67aa87de05706
2018-10-18 17:45:22.698658 I | rafthttp: started streaming with peer 2bd67aa87de05706 (stream MsgApp v2 reader)
2018-10-18 17:45:22.698755 I | rafthttp: started streaming with peer 2bd67aa87de05706 (stream Message reader)
2018-10-18 17:45:27.698746 W | rafthttp: health check for peer 2bd67aa87de05706 could not connect: dial tcp: lookup cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:45:32.698929 W | rafthttp: health check for peer 2bd67aa87de05706 could not connect: dial tcp: lookup cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:45:37.699049 W | rafthttp: health check for peer 2bd67aa87de05706 could not connect: dial tcp: lookup cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:45:42.699197 W | rafthttp: health check for peer 2bd67aa87de05706 could not connect: dial tcp: lookup cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:45:47.699320 W | rafthttp: health check for peer 2bd67aa87de05706 could not connect: dial tcp: lookup cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:45:52.699452 W | rafthttp: health check for peer 2bd67aa87de05706 could not connect: dial tcp: lookup cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:45:55.161424 I | rafthttp: peer 2bd67aa87de05706 became active
2018-10-18 17:45:55.161440 I | rafthttp: established a TCP streaming connection with peer 2bd67aa87de05706 (stream Message reader)
2018-10-18 17:45:55.161445 I | rafthttp: established a TCP streaming connection with peer 2bd67aa87de05706 (stream MsgApp v2 reader)
2018-10-18 17:45:55.172751 I | rafthttp: established a TCP streaming connection with peer 2bd67aa87de05706 (stream Message writer)
2018-10-18 17:45:55.173817 I | rafthttp: established a TCP streaming connection with peer 2bd67aa87de05706 (stream MsgApp v2 writer)
2018-10-18 17:45:57.699633 W | rafthttp: health check for peer 2bd67aa87de05706 could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2018-10-18 17:58:40.685038 N | pkg/osutil: received terminated signal, shutting down...
2018-10-18 17:58:40.685113 I | etcdserver: skipped leadership transfer for stopping non-leader member
2018-10-18 17:58:40.685294 I | rafthttp: stopped HTTP pipelining with peer 262e6357a02edfad
2018-10-18 17:58:40.685312 I | rafthttp: stopping peer 262e6357a02edfad...
2018-10-18 17:58:40.685505 I | rafthttp: closed the TCP streaming connection with peer 262e6357a02edfad (stream MsgApp v2 writer)
2018-10-18 17:58:40.685517 I | rafthttp: stopped streaming with peer 262e6357a02edfad (writer)
2018-10-18 17:58:40.685656 I | rafthttp: closed the TCP streaming connection with peer 262e6357a02edfad (stream Message writer)
2018-10-18 17:58:40.685665 I | rafthttp: stopped streaming with peer 262e6357a02edfad (writer)
2018-10-18 17:58:40.685714 I | rafthttp: stopped HTTP pipelining with peer 262e6357a02edfad

Partial logs from 'cilium-etcd-hwjpgl6m7t':
kubectl logs -f cilium-etcd-hwjpgl6m7t -n kube-system
2018-10-18 17:45:55.159309 I | etcdserver: starting server... [version: 3.2.22, cluster version: to_be_decided]
2018-10-18 17:45:55.160204 I | rafthttp: started streaming with peer 868050aa093b4abf (stream Message reader)
2018-10-18 17:45:55.160296 I | rafthttp: started streaming with peer 868050aa093b4abf (stream MsgApp v2 reader)
2018-10-18 17:45:55.160947 I | embed: ClientTLS: cert = /etc/etcdtls/member/server-tls/server.crt, key = /etc/etcdtls/member/server-tls/server.key, ca = , trusted-ca = /etc/etcdtls/member
/server-tls/server-ca.crt, client-cert-auth = true
2018-10-18 17:45:55.161317 I | rafthttp: peer 262e6357a02edfad became active
2018-10-18 17:45:55.161348 I | rafthttp: established a TCP streaming connection with peer 262e6357a02edfad (stream Message writer)
2018-10-18 17:45:55.161354 I | rafthttp: peer 868050aa093b4abf became active
2018-10-18 17:45:55.161359 I | rafthttp: established a TCP streaming connection with peer 868050aa093b4abf (stream Message writer)
2018-10-18 17:45:55.161457 I | rafthttp: established a TCP streaming connection with peer 262e6357a02edfad (stream MsgApp v2 writer)
2018-10-18 17:45:55.161470 I | raft: 2bd67aa87de05706 [term: 1] received a MsgHeartbeat message with higher term from 262e6357a02edfad [term: 21]
2018-10-18 17:45:55.161487 I | raft: 2bd67aa87de05706 became follower at term 21
2018-10-18 17:45:55.161494 I | raft: raft.node: 2bd67aa87de05706 elected leader 262e6357a02edfad at term 21
2018-10-18 17:45:55.161519 I | rafthttp: established a TCP streaming connection with peer 868050aa093b4abf (stream MsgApp v2 writer)
2018-10-18 17:45:55.170142 I | rafthttp: established a TCP streaming connection with peer 262e6357a02edfad (stream Message reader)
2018-10-18 17:45:55.170499 I | rafthttp: established a TCP streaming connection with peer 262e6357a02edfad (stream MsgApp v2 reader)
2018-10-18 17:45:55.172071 I | etcdserver/membership: added member 262e6357a02edfad [https://cilium-etcd-lcjbhg8hr4.cilium-etcd.kube-system.svc:2380] to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:55.172171 N | etcdserver/membership: set the initial cluster version to 3.2
2018-10-18 17:45:55.172208 I | etcdserver/api: enabled capabilities for version 3.2
2018-10-18 17:45:55.172277 I | etcdserver/membership: added member 868050aa093b4abf [https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380] to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:55.172611 I | etcdserver/membership: added member 2bd67aa87de05706 [https://cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc:2380] to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:55.172786 I | rafthttp: established a TCP streaming connection with peer 868050aa093b4abf (stream Message reader)
2018-10-18 17:45:55.173841 I | rafthttp: established a TCP streaming connection with peer 868050aa093b4abf (stream MsgApp v2 reader)
2018-10-18 17:45:55.183304 I | etcdserver: published {Name:cilium-etcd-hwjpgl6m7t ClientURLs:[https://cilium-etcd-hwjpgl6m7t.cilium-etcd.kube-system.svc:2379]} to cluster 3af7f4fa98d8f6e
2018-10-18 17:45:55.183319 I | embed: ready to serve client requests
2018-10-18 17:45:55.183547 I | embed: serving client requests on [::]:2379
WARNING: 2018/10/18 17:45:55 Failed to dial <IP_ADDRESS>:2379: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate"; please retry.
2018-10-18 17:45:55.210283 I | etcdserver: 2bd67aa87de05706 initialzed peer connection; fast-forwarding 8 ticks (election ticks 10) with 2 active peer(s)
2018-10-18 17:58:40.686282 W | rafthttp: lost the TCP streaming connection with peer 868050aa093b4abf (stream MsgApp v2 reader)
2018-10-18 17:58:40.686390 W | rafthttp: lost the TCP streaming connection with peer 868050aa093b4abf (stream Message reader)
2018-10-18 17:58:40.687593 N | pkg/osutil: received terminated signal, shutting down...
2018-10-18 17:58:41.187144 I | raft: 2bd67aa87de05706 [term 21] received MsgTimeoutNow from 262e6357a02edfad and starts an election to get leadership.
2018-10-18 17:58:41.187170 I | raft: 2bd67aa87de05706 became candidate at term 22
2018-10-18 17:58:41.187185 I | raft: 2bd67aa87de05706 received MsgVoteResp from 2bd67aa87de05706 at term 22
2018-10-18 17:58:41.187193 I | raft: 2bd67aa87de05706 [logterm: 21, index: 178] sent MsgVote request to 262e6357a02edfad at term 22
2018-10-18 17:58:41.187200 I | raft: 2bd67aa87de05706 [logterm: 21, index: 178] sent MsgVote request to 868050aa093b4abf at term 22
2018-10-18 17:58:41.187206 I | raft: raft.node: 2bd67aa87de05706 lost leader 262e6357a02edfad at term 22
2018-10-18 17:58:41.227869 I | raft: 2bd67aa87de05706 received MsgVoteResp from 262e6357a02edfad at term 22
2018-10-18 17:58:41.227889 I | raft: 2bd67aa87de05706 [quorum:2] has received 2 MsgVoteResp votes and 0 vote rejections
2018-10-18 17:58:41.227910 I | raft: 2bd67aa87de05706 became leader at term 22
2018-10-18 17:58:41.227921 I | raft: raft.node: 2bd67aa87de05706 elected leader 2bd67aa87de05706 at term 22
2018-10-18 17:58:41.289441 W | rafthttp: lost the TCP streaming connection with peer 262e6357a02edfad (stream MsgApp v2 reader)
2018-10-18 17:58:41.290024 W | rafthttp: lost the TCP streaming connection with peer 262e6357a02edfad (stream Message reader)
2018-10-18 17:58:41.490074 E | rafthttp: failed to write 868050aa093b4abf on stream Message (write tcp <IP_ADDRESS>:2380-><IP_ADDRESS>:44072: write: broken pipe)
2018-10-18 17:58:41.490095 I | rafthttp: peer 868050aa093b4abf became inactive
2018-10-18 17:58:41.490230 W | rafthttp: lost the TCP streaming connection with peer 868050aa093b4abf (stream Message writer)
2018-10-18 17:58:41.690092 E | rafthttp: failed to write 262e6357a02edfad on stream Message (write tcp <IP_ADDRESS>:2380-><IP_ADDRESS>:33576: write: broken pipe)
2018-10-18 17:58:41.690198 I | rafthttp: peer 262e6357a02edfad became inactive
2018-10-18 17:58:41.690305 W | rafthttp: lost the TCP streaming connection with peer 262e6357a02edfad (stream Message writer)
2018-10-18 17:58:42.436410 W | etcdserver: failed to reach the peerURL(https://cilium-etcd-lcjbhg8hr4.cilium-etcd.kube-system.svc:2380) of member 262e6357a02edfad (Get https://cilium-etcd
-lcjbhg8hr4.cilium-etcd.kube-system.svc:2380/version: dial tcp: i/o timeout)
2018-10-18 17:58:42.436451 W | etcdserver: cannot get the version of member 262e6357a02edfad (Get https://cilium-etcd-lcjbhg8hr4.cilium-etcd.kube-system.svc:2380/version: dial tcp: i/o ti
meout)
2018-10-18 17:58:43.190063 W | raft: 2bd67aa87de05706 stepped down to follower since quorum is not active
2018-10-18 17:58:43.190090 I | raft: 2bd67aa87de05706 became follower at term 22
2018-10-18 17:58:43.190097 I | raft: raft.node: 2bd67aa87de05706 lost leader 2bd67aa87de05706 at term 22
2018-10-18 17:58:43.190467 W | etcdserver: failed to reach the peerURL(https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380) of member 868050aa093b4abf (Get https://cilium-etcd
-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380/version: dial tcp: lookup cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: dial udp <IP_ADDRESS>:53: i/o timeout)
2018-10-18 17:58:43.190483 W | etcdserver: cannot get the version of member 868050aa093b4abf (Get https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380/version: dial tcp: lookup
 cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: dial udp <IP_ADDRESS>:53: i/o timeout)
2018-10-18 17:58:45.090004 I | raft: 2bd67aa87de05706 is starting a new election at term 22
2018-10-18 17:58:45.090029 I | raft: 2bd67aa87de05706 became candidate at term 23
2018-10-18 17:58:45.090038 I | raft: 2bd67aa87de05706 received MsgVoteResp from 2bd67aa87de05706 at term 23
2018-10-18 17:58:45.090047 I | raft: 2bd67aa87de05706 [logterm: 22, index: 179] sent MsgVote request to 868050aa093b4abf at term 23
2018-10-18 17:58:45.090053 I | raft: 2bd67aa87de05706 [logterm: 22, index: 179] sent MsgVote request to 262e6357a02edfad at term 23
2018-10-18 17:58:45.158907 W | rafthttp: lost the TCP streaming connection with peer 868050aa093b4abf (stream MsgApp v2 writer)
2018-10-18 17:58:46.290051 I | raft: 2bd67aa87de05706 is starting a new election at term 23
2018-10-18 17:58:46.290098 I | raft: 2bd67aa87de05706 became candidate at term 24
2018-10-18 17:58:46.290117 I | raft: 2bd67aa87de05706 received MsgVoteResp from 2bd67aa87de05706 at term 24
2018-10-18 17:58:46.290133 I | raft: 2bd67aa87de05706 [logterm: 22, index: 179] sent MsgVote request to 868050aa093b4abf at term 24
2018-10-18 17:58:46.290147 I | raft: 2bd67aa87de05706 [logterm: 22, index: 179] sent MsgVote request to 262e6357a02edfad at term 24
2018-10-18 17:58:46.822509 W | rafthttp: lost the TCP streaming connection with peer 262e6357a02edfad (stream MsgApp v2 writer)
2018-10-18 17:58:47.687783 I | etcdserver: skipped leadership transfer for stopping non-leader member
2018-10-18 17:58:47.687863 W | etcdserver/api/v3rpc: failed to receive watch request from gRPC stream ("rpc error: code = Unavailable desc = body closed by handler")
2018-10-18 17:58:47.687917 I | rafthttp: stopped HTTP pipelining with peer 262e6357a02edfad
2018-10-18 17:58:47.687955 I | rafthttp: stopped HTTP pipelining with peer 868050aa093b4abf
2018-10-18 17:58:47.687967 I | rafthttp: stopping peer 262e6357a02edfad...
2018-10-18 17:58:47.687979 I | rafthttp: stopped streaming with peer 262e6357a02edfad (writer)
2018-10-18 17:58:47.687999 I | rafthttp: stopped streaming with peer 262e6357a02edfad (writer)

Partial logs from 'cilium-etcd-lcjbhg8hr4':
kubectl logs -f cilium-etcd-lcjbhg8hr4  -n kube-system
2018-10-18 17:44:39.099300 I | etcdserver: setting up the initial cluster version to 3.2
2018-10-18 17:44:39.099441 I | etcdserver: published {Name:cilium-etcd-lcjbhg8hr4 ClientURLs:[https://cilium-etcd-lcjbhg8hr4.cilium-etcd.kube-system.svc:2379]} to cluster 3af7f4fa98d8f6e
2018-10-18 17:44:39.099546 I | embed: serving client requests on [::]:2379
WARNING: 2018/10/18 17:44:39 Failed to dial <IP_ADDRESS>:2379: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate"; please retry.
2018-10-18 17:44:39.129416 N | etcdserver/membership: set the initial cluster version to 3.2
2018-10-18 17:44:39.129472 I | etcdserver/api: enabled capabilities for version 3.2
2018-10-18 17:44:42.608132 I | etcdserver/membership: added member 868050aa093b4abf [https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380] to cluster 3af7f4fa98d8f6e
2018-10-18 17:44:42.608157 I | rafthttp: starting peer 868050aa093b4abf...
2018-10-18 17:44:42.608191 I | rafthttp: started HTTP pipelining with peer 868050aa093b4abf
2018-10-18 17:44:42.609055 I | rafthttp: started streaming with peer 868050aa093b4abf (writer)
2018-10-18 17:44:42.609596 I | rafthttp: started streaming with peer 868050aa093b4abf (writer)
2018-10-18 17:44:42.610475 I | rafthttp: started peer 868050aa093b4abf
2018-10-18 17:44:42.610500 I | rafthttp: added peer 868050aa093b4abf
2018-10-18 17:44:42.610533 I | rafthttp: started streaming with peer 868050aa093b4abf (stream Message reader)
2018-10-18 17:44:42.610648 I | rafthttp: started streaming with peer 868050aa093b4abf (stream MsgApp v2 reader)
2018-10-18 17:44:43.102504 W | etcdserver: failed to reach the peerURL(https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380) of member 868050aa093b4abf (Get https://cilium-etcd
-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380/version: dial tcp: lookup cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: no such host)
2018-10-18 17:44:43.102525 W | etcdserver: cannot get the version of member 868050aa093b4abf (Get https://cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc:2380/version: dial tcp: lookup
 cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: no such host)
2018-10-18 17:44:44.098955 W | raft: 262e6357a02edfad stepped down to follower since quorum is not active
2018-10-18 17:44:44.098986 I | raft: 262e6357a02edfad became follower at term 2
2018-10-18 17:44:44.098992 I | raft: raft.node: 262e6357a02edfad lost leader 262e6357a02edfad at term 2
2018-10-18 17:44:44.833887 I | raft: 262e6357a02edfad no leader at term 2; dropping index reading msg
2018-10-18 17:44:45.498991 I | raft: 262e6357a02edfad is starting a new election at term 2
2018-10-18 17:44:45.499015 I | raft: 262e6357a02edfad became candidate at term 3
2018-10-18 17:44:45.499023 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 3
2018-10-18 17:44:45.499032 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 3
2018-10-18 17:44:46.799001 I | raft: 262e6357a02edfad is starting a new election at term 3
2018-10-18 17:44:46.799028 I | raft: 262e6357a02edfad became candidate at term 4
2018-10-18 17:44:46.799037 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 4
2018-10-18 17:44:46.799045 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 4
2018-10-18 17:44:47.610630 W | rafthttp: health check for peer 868050aa093b4abf could not connect: dial tcp: lookup cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:44:48.398936 I | raft: 262e6357a02edfad is starting a new election at term 4
2018-10-18 17:44:48.398962 I | raft: 262e6357a02edfad became candidate at term 5
2018-10-18 17:44:48.398970 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 5
2018-10-18 17:44:48.398983 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 5
2018-10-18 17:44:49.798964 I | raft: 262e6357a02edfad is starting a new election at term 5
2018-10-18 17:44:49.798986 I | raft: 262e6357a02edfad became candidate at term 6
2018-10-18 17:44:49.798994 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 6
2018-10-18 17:44:49.799002 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 6
2018-10-18 17:44:51.298932 I | raft: 262e6357a02edfad is starting a new election at term 6
2018-10-18 17:44:51.298957 I | raft: 262e6357a02edfad became candidate at term 7
2018-10-18 17:44:51.298964 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 7
2018-10-18 17:44:51.298971 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 7
2018-10-18 17:44:51.833981 W | etcdserver: timed out waiting for read index response
2018-10-18 17:44:52.398970 I | raft: 262e6357a02edfad is starting a new election at term 7
2018-10-18 17:44:52.398995 I | raft: 262e6357a02edfad became candidate at term 8
2018-10-18 17:44:52.399003 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 8
2018-10-18 17:44:52.399011 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 8
2018-10-18 17:44:52.610762 W | rafthttp: health check for peer 868050aa093b4abf could not connect: dial tcp: lookup cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host
2018-10-18 17:44:53.998999 I | raft: 262e6357a02edfad is starting a new election at term 8
2018-10-18 17:44:53.999031 I | raft: 262e6357a02edfad became candidate at term 9
2018-10-18 17:44:53.999040 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 9
2018-10-18 17:44:53.999049 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 9
2018-10-18 17:44:55.798929 I | raft: 262e6357a02edfad is starting a new election at term 9
2018-10-18 17:44:55.798961 I | raft: 262e6357a02edfad became candidate at term 10
2018-10-18 17:44:55.798972 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 10
2018-10-18 17:44:55.798981 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 10
2018-10-18 17:44:57.199051 I | raft: 262e6357a02edfad is starting a new election at term 10
2018-10-18 17:44:57.199080 I | raft: 262e6357a02edfad became candidate at term 11
2018-10-18 17:44:57.199103 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 11
2018-10-18 17:44:57.199112 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 11
2018-10-18 17:44:57.610931 W | rafthttp: health check for peer 868050aa093b4abf could not connect: dial tcp: lookup cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: d
ial udp <IP_ADDRESS>:53: i/o timeout
2018-10-18 17:44:58.834195 W | etcdserver: timed out waiting for read index response
2018-10-18 17:44:58.999035 I | raft: 262e6357a02edfad is starting a new election at term 11
2018-10-18 17:44:58.999083 I | raft: 262e6357a02edfad became candidate at term 12
2018-10-18 17:44:58.999100 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 12
2018-10-18 17:44:58.999117 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 12
2018-10-18 17:45:00.598974 I | raft: 262e6357a02edfad is starting a new election at term 12
2018-10-18 17:45:00.599001 I | raft: 262e6357a02edfad became candidate at term 13
2018-10-18 17:45:00.599009 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 13
2018-10-18 17:45:00.599019 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 13
2018-10-18 17:45:02.498909 I | raft: 262e6357a02edfad is starting a new election at term 13
2018-10-18 17:45:02.498941 I | raft: 262e6357a02edfad became candidate at term 14
2018-10-18 17:45:02.498950 I | raft: 262e6357a02edfad received MsgVoteResp from 262e6357a02edfad at term 14
2018-10-18 17:45:02.498959 I | raft: 262e6357a02edfad [logterm: 2, index: 5] sent MsgVote request to 868050aa093b4abf at term 14
2018-10-18 17:45:02.611099 W | rafthttp: health check for peer 868050aa093b4abf could not connect: dial tcp: lookup cilium-etcd-bvtgqv5n5n.cilium-etcd.kube-system.svc on <IP_ADDRESS>:53: n
o such host

All TLS certs in place:
kubectl get secret -n kube-system | grep cilium
cilium-etcd-client-tls                           Opaque                                3      129m
cilium-etcd-peer-tls                             Opaque                                3      129m
cilium-etcd-sa-token-d8v8g                       kubernetes.io/service-account-token   3      128m
cilium-etcd-server-tls                           Opaque                                3      129m
cilium-token-cfxhn                               kubernetes.io/service-account-token   3      128m

Workaround

cd cilium-1.2.3/examples/kubernetes/addons/etcd-operator/
kubectl delete -f cilium-etcd-cluster.yaml
kubectl create -f cilium-etcd-cluster.yaml
Back to normal:

NAME                                                READY   STATUS    RESTARTS   AGE
cilium-89bk4                                        1/1     Running   34         3h
cilium-etcd-9mqbfzzr2c                              1/1     Running   0          92s
cilium-etcd-cv4b25nlfw                              1/1     Running   0          110s
cilium-etcd-p49z25r78r                              1/1     Running   0          44s
cilium-np5ww                                        1/1     Running   33         167m
cilium-p4hgp                                        1/1     Running   35         3h4m
coredns-576cbf47c7-mwrln                            1/1     Running   1          3h5m
coredns-576cbf47c7-zvktn                            1/1     Running   1          3h5m
etcd-operator-7cb79cdf99-4t8kw                      1/1     Running   2          3h4m
etcd-master-1                                       1/1     Running   1          3h4m
kube-apiserver-master-1                             1/1     Running   1          3h4m
kube-controller-manager-master-1                    1/1     Running   1          3h4m
kube-proxy-6sh45                                    1/1     Running   1          167m
kube-proxy-7dnh8                                    1/1     Running   1          3h5m
kube-proxy-9vfms                                    1/1     Running   1          3h
kube-scheduler-master-1                             1/1     Running   1          3h4m

@jek-a This is a known issue of the etcd-operator. It will be addressed by the following new project: https://github.com/cilium/cilium-etcd-operator. Feel free to try it out, it only lacks docs before we can announce it.

@tgraf Thanks!
I checked this new project. It looks very straightforward, so the docs is not a problem. The cilium-etcd-operator deployment creates a permanent job to check if etcd cluster is running. I will try it out later. For now, I bootstrapped standalone etcd cluster with k8s analogy and use it for Cilium.

@tgraf Today, I tried to install k8s + Cilium using 'cilium-etcd-operator', but unfortunately it did not work. I have submitted a bug.

@jek-a The issue has been fixed. The latest release also takes care of automatically creating the secrets if they don't exist.

@tgraf I tried it one more time today and it still does not work properly. I submitted a new bug again. Don't know if you tried to test it. Unfortunately I don't have a time to play with it anymore, cause I need K8S with Cilium ASAP. So I created a working solution: https://github.com/jek-a/k8s-cilium-deployment
If you want you can check it out. So, this ticket can be closed.


Invalid image

What Etcher version are you running? - 1.0.0-beta.10

(You can check this at runtime in the bottom right corner of the application. If you're running Etcher locally, please let us know in which commit or branch you're in.)

What operating system and architecture are you running Etcher in? - Windows 7 x64 Enterprise

(For example: Windows 10 x64, OS X 10.11.4 x64, Ubuntu 14.04 x86.)

What is the behaviour you're experiencing? How can we reproduce it? Yes, it keeps on telling the image is invalid, but it's in .iso format.
Do you have any input on how this can be fixed/improved? N/A
Was this happening on a previous version? N/A
Do you see any meaningful error information on DevTools? N/A

(You can open DevTools by pressing Ctrl+Alt+I, or Cmd+Alt+I if you're running OS X.)

*If you're having an error when flashing an image to a drive: *
(Feel free to delete this whole section if it doesn't apply.)

Can you reproduce the issue with a different image or drive?
Can you share a link to the exact image you're trying to flash, so we can test it ourselves?
At which point of the flashing does the error happens? (right at the beginning, randomly, etc)
What was the format of the drive before attempting to flash to it?

*If Etcher is failing to detect your drive: *
(Feel free to delete this whole section if it doesn't apply.)

Can you post the output of the script that applies to your operating system from the following list?:

OS X
GNU/Linux
Windows

Hi @poohomar ,
Thanks for reporting. I believe the issue is that the file extension is in uppercase, causing the check to fail. I'll push a fix in a minute. For now, renaming to lowercase should suffice as a workaround.

Thanks for the fast response, all is well now and appreciate the knowledge!

Dowload this image https://downloads.lede-project.org/releases/17.01.4/targets/brcm2708/bcm2710/lede-imagebuilder-17.01.4-brcm2708-bcm2710.Linux-x86_64.tar.xz
Mac OS   1.4.4 etcher
invalid image error:

@fremindmm tarballs aren't supported yet, you'll have to extract the image beforehand

I've added an issue to track tarball support

@jhermsmeier Even if Etcher did support tarballs, I don't think it'd be able to flash the 'image' that @fremindmm has downloaded...

@fremindmm I did a bit of digging, and I suspect the file you actually want is https://downloads.openwrt.org/releases/17.01.4/targets/brcm2708/bcm2710/lede-17.01.4-brcm2708-bcm2710-rpi-3-ext4-sdcard.img.gz which Etcher should support already.


Development: Make the number of allowed self-learning-feedback requests configurable

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[ ] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[ ] I strictly followed the server coding and design guidelines.
[ ] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[ ] I added pre-authorization annotations according to the guidelines and checked the course groups for all new REST Calls (security).
[ ] I documented the Java code using JavaDoc style.

Client

[ ] Important: I implemented the changes with a very good performance, prevented too many (unnecessary) REST calls and made sure the UI is responsive, even with large data.
[ ] I strictly followed the client coding and design guidelines.
[ ] Following the theming guidelines, I specified colors only in the theming variable files and checked that the changes look consistent in both the light and the dark theme.
[ ] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[ ] I added authorities to all new routes and checked the course groups for displaying navigation elements (links, buttons).
[ ] I documented the TypeScript code using JSDoc style.
[ ] I added multiple screenshots/screencasts of my UI changes.
[ ] I translated all newly inserted strings into English and German.

Motivation and Context

Description

The number of allowed self-learning feedback requests can be specified in a .yaml file by server admins now.
Steps for Testing

Prerequisites:

1 Instructor
1 Student
1 Programming Exercise

If you have access to a test server, set artemis.athena.allowed-self-learning-feedback-attempts property in the .yaml configuration. Otherwise, the default value is 3.

Create a programming exercise as usual and allow self-learning feedback requests.
As a student, make a submission and request self-learning feedback a couple of times.
Make sure that the specified number is taken into account.

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance
[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[ ] Code Review 1
[ ] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Exam Mode Test

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

Summary by CodeRabbit

New Features

Introduced a configuration to control the number of self-learning feedback attempts for exercises with a default value of 3.
Added a user interface check to manage alert messages based on allowed self-learning feedback attempts.

Bug Fixes

Corrected the method name for clarity in the participation integration tests.

Tests

Updated test cases to include the allowedSelfLearningFeedbackAttempts property check.

I don't think adding a transistent Value to a database model class and then setting it only in one single endpoint is a good approach.
Ideally we would use a DTO here, but since this endpoint returns an exercise with all its details that would get quite big and a lot of work. So a better solution imo is a small endpoint to just retrive this number of allowed feedback requests.


Potentially Misunderstanding SIP disabling?

So I think there is a disconnect between the mySIMBL and my computer.
Does the green Icon indicate SIP is on or off?

Terminal indicates it is off.
Is my command wrong in Terminal?

As a result(or not?) I cannot open any plugins. (I can click Open and nothing loads/opens. Looked through processes but couldn't find anything.)

Order of screenshots is wrong,  but point stands mac os  High Sierra 10.13.3.
Early 2015 Macbook Pro.

Yup currently
Green = Disabled for SIP and AMFI
Green = Installed for osax and Agent


table cell content going to parent on aplly

I have the following code on my editor

   Hello World

When I click Aplly with the TD selected, the TD gets deleted and the code goes to the TR

Looks like you've selected TR, which is why you get <tr... in the editor. If you have TD selected you should only get <td...


Quantity.to_df(): clean up needed.

This method handles all the into-df conversions of the .result np.array calculations. Due to the complexity of the code involved in making broadcasting happen for the different data manipulation and aggregation methods there is a lot of if-else spaghetti code inside this method right now.
This should be cleaned properly if time allows.

Outdated.


AIO external_url pointing to a local folder troubles

Hi, thanks for the library.
I've been looking at using dash-bootstrap-templates with django-plotly-dash. Just looking at using one of the themes so the page looks nicer, not giving the user a theme changer.
Importing dash-bootstrap-templates is adding the AIO componentes whether they're used or not, which register their js with the following code:
https://github.com/AnnMarieW/dash-bootstrap-templates/blob/dfa2b3207d9a8729cfc6ebace4ee566139ebaf83/src/aio/__init__.py#L13
When I instruct django-plotly-dash to embed the js imports needed for the app (with serve_locally set to False), the following line is added to the html:
[...]
<script src="/Users/spiqueras/[SOME_MORE_LOCAL_FOLDERS]\clientsideCallbacks.js"></script>
[...]

The url then gets interpreted as a relative url (e.g. localhost:port/Users/...) which obviously fails with a 404 Not Found.
Now I have absolutely no idea how it's working for anyone else (I assume some build step is involved or django-plotly-dash is being dumb) and I realize that my setup with django-plotly-dash is unconventional, but I'm looking at my options to either avoid the AIO components entirely if possible.

Hi @spiqueras
Thanks for reporting.  Can you try version 1.1.2 and see if you get the same results?

Hi @spiqueras
Thanks for reporting. Can you try version 1.1.2 and see if you get the same results?

Hi. Tested 1.1.2, no errors there.
For what is worth my temp fix in 1.2.4 is to monkeypatch the library before creating the dash app:
def break_dash_bootstrap_templates_aio():
    # Empties _js_dist in dash-bootstrap-templates' aio package to prevent adding the wrong script
    import aio
    aio._js_dist = []

Hi @spiqueras !
Can you try with this simple example with dash_bootstrap_templates v1.2.4 that doesn't use any AIO ThemeSwitchAIO/ThemeChangerAIO ?
from dash import Dash, dcc, html
import plotly.express as px
import dash_bootstrap_components as dbc
from dash_bootstrap_templates import load_figure_template

load_figure_template("vapor")

app = Dash(__name__, external_stylesheets=[dbc.themes.VAPOR])

df = px.data.gapminder()

dff = df[df.year.between(1952, 1982)]
dff = dff[dff.continent.isin(df.continent.unique()[1:])]
fig = px.line(
    dff, x="year", y="gdpPercap", color="continent", line_group="country"
)

app.layout = html.Div([
    html.H1("Dash Bootstrap Template Demo", className="bg-primary text-white p-2"),
    html.Div(
        [
            dbc.Button("Primary", color="primary"),
            dbc.Button("Secondary", color="secondary"),
            dbc.Button("Success", color="success"),
            dbc.Button("Warning", color="warning"),
            dbc.Button("Danger", color="danger"),
            dbc.Button("Info", color="info"),
            dbc.Button("Light", color="light"),
            dbc.Button("Dark", color="dark"),
            dbc.Button("Link", color="link"),
        ],
    ),
    dcc.Graph(figure=fig)
])

if __name__ == "__main__":
    app.run(debug=True)

That works fine here, I guess that django-plotly-dash is messing around...

Can you try with this simple example with dash_bootstrap_templates v1.2.4 that doesn't use any AIO ThemeSwitchAIO/ThemeChangerAIO ?
from dash import Dash, dcc, html
import plotly.express as px
import dash_bootstrap_components as dbc
from dash_bootstrap_templates import load_figure_template

load_figure_template("vapor")

app = Dash(__name__, external_stylesheets=[dbc.themes.VAPOR])

df = px.data.gapminder()

dff = df[df.year.between(1952, 1982)]
dff = dff[dff.continent.isin(df.continent.unique()[1:])]
fig = px.line(
    dff, x="year", y="gdpPercap", color="continent", line_group="country"
)

app.layout = html.Div([
    html.H1("Dash Bootstrap Template Demo", className="bg-primary text-white p-2"),
    html.Div(
        [
            dbc.Button("Primary", color="primary"),
            dbc.Button("Secondary", color="secondary"),
            dbc.Button("Success", color="success"),
            dbc.Button("Warning", color="warning"),
            dbc.Button("Danger", color="danger"),
            dbc.Button("Info", color="info"),
            dbc.Button("Light", color="light"),
            dbc.Button("Dark", color="dark"),
            dbc.Button("Link", color="link"),
        ],
    ),
    dcc.Graph(figure=fig)
])

if __name__ == "__main__":
    app.run(debug=True)

Hi @sdidier-dev
When running that example serve_locally is set to True, so clientsideCallbacks.js is served normally. But I am running Dash with serve_locally set to False. If I modify these lines:
app = Dash(__name__, external_stylesheets=[dbc.themes.VAPOR], serve_locally=False)
app.enable_dev_tools(dev_tools_serve_dev_bundles=False)

Full example code
from dash import Dash, dcc, html
import plotly.express as px
import dash_bootstrap_components as dbc
from dash_bootstrap_templates import load_figure_template

load_figure_template("vapor")

app = Dash(__name__, external_stylesheets=[dbc.themes.VAPOR], serve_locally=False)
app.enable_dev_tools(dev_tools_serve_dev_bundles=False)

df = px.data.gapminder()

dff = df[df.year.between(1952, 1982)]
dff = dff[dff.continent.isin(df.continent.unique()[1:])]
fig = px.line(
    dff, x="year", y="gdpPercap", color="continent", line_group="country"
)

app.layout = html.Div([
    html.H1("Dash Bootstrap Template Demo", className="bg-primary text-white p-2"),
    html.Div(
        [
            dbc.Button("Primary", color="primary"),
            dbc.Button("Secondary", color="secondary"),
            dbc.Button("Success", color="success"),
            dbc.Button("Warning", color="warning"),
            dbc.Button("Danger", color="danger"),
            dbc.Button("Info", color="info"),
            dbc.Button("Light", color="light"),
            dbc.Button("Dark", color="dark"),
            dbc.Button("Link", color="link"),
        ],
    ),
    dcc.Graph(figure=fig)
])

if __name__ == "__main__":
    app.run(debug=True)

With that change, opening http://<IP_ADDRESS>:8050 will fire a request like this one:
GET http://<IP_ADDRESS>:8050/ ... /.venv/lib/python3.11/site-packages/aio/clientsideCallbacks.js

Which matches what I was seeing with django-plotly-dash, i.e. a local folder path being interpreted as a relative url.


[operator] bump operator version to v0.104.0

@frzifus can you handle the conflicts

Resolved @jaronoff97 @TylerHelmuth

@frzifus one of the tests is failing and rerunning isn't working :(

did something change in 0.104.0?

Nothing I am aware about. The output off     --- FAIL: chainsaw/smoke-pod-dns-config (365.29s) does also not rly help.

@frzifus does the test pass locally?

this seems to be the issue (ran it locally)
⫸ k logs poddnsconfig-collector-6d9c74b776-xsh9q
Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "logging" for id: "logging" (valid values: [nop otlp otlphttp file loadbalancing debug])
2024/08/01 15:25:52 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "logging" for id: "logging" (valid values: [nop otlp otlphttp file loadbalancing debug])

this is because we're using the k8s distro which no longer has the logging exporter. @TylerHelmuth I can push a fix in the operator repo for the test there and we can ignore this test failure until the 106 release. @frzifus can you add this to the exclude regex here?

FTR: https://github.com/open-telemetry/opentelemetry-operator/pull/3192


the TTS will talk as soon as something pop up on a screen even if it mean to talk over it self

the TTS will talk as soon as something pop up on a screen even if it mean to talk over it self

Probably a duplicate of #26, this will be fixed with https://github.com/goatcorp/DalamudPlugins/pull/949


Does it work with Meteor.users? Doesn't seem to be the case

Let me check. I'll get back to you soon.

Seems to be working all right.  Do you have a code example where it's not working?

Sorry for late reply ... I didn't keep the code. I moved on and decided to just activate and reactivate the document.


merge from arlac77/template-arlac77-github,arlac77/template-esm-only

package.json

chore(deps): add ^7.3.1 remove ^7.3.0 (devDependencies.c8)

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Pypi publishing

I wonder, though, if more versions of Python could be supported.

I wonder, though, if more versions of Python could be supported.

Tests can be done for other python versions. Should I add it?

Tests can be done for other python versions. Should I add it?

I meant publishing in the first place.

Tests can be done for other python versions. Should I add it?

I meant publishing in the first place.

The deploy job, which uses Python 3.10, just makes sure that Twine can run and upload the distribution to PyPI. It should not influence the compatibility with other versions of Python. It should be tested in the previous step, and we can add other versions there. We can set up the version python_requires='>=3.x' in the setup.py


0.9.8: temp value may cause EXC_BAD_ACCESS code=1.

Like java code below:
        // 2. Devices & Connections
        Log.i(TAG, "Start to build Device & Connection relations of GlobalNetwork: " + Id());
        for (NetworkConfig.DeviceBaseConfig dev : GetDeviceConfs().values()) {
            networkChangeLsnrs.broadcast(l -> l.DeviceAdded(this, dev));
        }

        // 3. Groups
        Log.i(TAG, "Start to build Group relations of GlobalNetwork: " + Id());
        for (NetworkConfig.GroupConfig group : GetGroupConfs().values()) {
            networkChangeLsnrs.broadcast(l -> l.GroupAdded(this, group));
        }

will translated to code below:
AndroidUtilLog_iWithNSString_withNSString_(GlobalNetwork_TAG_, JreStrcat("$@", @"Start to build Device & Connection relations of GlobalNetwork: ", [self Id]));
  for (NetworkConfig_DeviceBaseConfig * __strong dev in nil_chk([((id<JavaUtilMap>) nil_chk([self GetDeviceConfs])) values])) {
    [((BaseListenerList *) nil_chk(networkChangeLsnrs_)) broadcastWithBaseListenerList_Lam:GetCapturingLambda(@protocol(BaseListenerList_Lam), @"GlobalNetwork_lambda$10", @selector(lWithId:),
    ^void(id _self, BaseGlobalNetwork_NetworkChangeLsnr * a) {
      void (^block)() = objc_getAssociatedObject(_self, (void *) 0);
      block(_self, a);
    },
    ^void(id _self, BaseGlobalNetwork_NetworkChangeLsnr * l){
      [((BaseGlobalNetwork_NetworkChangeLsnr *) nil_chk(l)) DeviceAddedWithGlobalNetwork:self withNetworkConfig_DeviceBaseConfig:dev];
    }
    )];
  }
  AndroidUtilLog_iWithNSString_withNSString_(GlobalNetwork_TAG_, JreStrcat("$@", @"Start to build Group relations of GlobalNetwork: ", [self Id]));
  for (NetworkConfig_GroupConfig * __strong group in nil_chk([((id<JavaUtilMap>) nil_chk([self GetGroupConfs])) values])) {
    [((BaseListenerList *) nil_chk(networkChangeLsnrs_)) broadcastWithBaseListenerList_Lam:GetCapturingLambda(@protocol(BaseListenerList_Lam), @"GlobalNetwork_lambda$11", @selector(lWithId:),
    ^void(id _self, BaseGlobalNetwork_NetworkChangeLsnr * a) {
      void (^block)() = objc_getAssociatedObject(_self, (void *) 0);
      block(_self, a);
    },
    ^void(id _self, BaseGlobalNetwork_NetworkChangeLsnr * l){
      [((BaseGlobalNetwork_NetworkChangeLsnr *) nil_chk(l)) GroupAddedWithGlobalNetwork:self withNetworkConfig_GroupConfig:group];
    }
    )];
  }

In the translated code above, when call GetDevicwConfs().values() ( translated to: for (NetworkConfig_DeviceBaseConfig * __strong dev in nil_chk([((id<JavaUtilMap>) nil_chk([self GetDeviceConfs])) values]))), it will first returns a HashMap<>, and then get values in it. But when I start to access values in it. The temp HashMap returned is already deallocated by ARC before I access it.
I have tried solution like below and it works ( holding all temp returned HashMap<> and Collection<> in local storage ):
  id<JavaUtilMap> maps = ((id<JavaUtilMap>) nil_chk([self GetDeviceConfs]));
  id<JavaUtilCollection> objs = nil_chk([maps values]);
  for (NetworkConfig_DeviceBaseConfig * __strong dev in objs) {
 // do something...
  }

So, my question is, how could I fix all problems above without manual-editing the translated code?

Something more:

Only crash when the returned value is temp allocated and returned.
If the returned temp value is already hold by any other object, code will not crash.

In my previous app-version, all GetDeivceConfs() & GetGroupConfs() are hold by static storage, but the latest app-version, all returned values are cloned before, so the returned value must be saved.
So, the problem is how to generate code for holding any returned temp-allocated value in local storage.

The HashMap returned by GetDeviceConfs() should live for the duration of the current autoreleasepool, unless the HashMap is created in another thread. If that is the case, the @RetainedLocalRef annotation will help.
https://github.com/google/j2objc/blob/master/annotations/src/main/java/com/google/j2objc/annotations/RetainedLocalRef.java
You can add this annotation to a local variable like this to ensure that it is retained for the duration of its scope:
@RetainedLocalRef Map deviceConfs = GetDeviceConfs();

Hopefully my previous comment has helped. If the issue persists, please reopen this bug and add more info if possible, including the GetDeviceConfs() implementation.


[Error] Some elements were generated as Black Rectangles

How to Fix ?
A key error occurs when the elements are named or grouped incorrectly. Before creating an issue, make sure that you have followed the instructions guide correctly.
If the issue still persists, create an issue with the following details included.

Error Message

Output console with LATEST Release (1.0.4) and master branch:
Creating Element { name: Rectangle 1, type: RECTANGLE }
Element with the name: `Rectangle 1` cannot be parsed. Would be displayed as Black Rectangle
Creating Element { name: Line 1, type: LINE }
Element with the name: `Line 1` cannot be parsed. Would be displayed as Black Rectangle
Creating Element { name: Rectangle 2, type: RECTANGLE }
Element with the name: `Rectangle 2` cannot be parsed. Would be displayed as Black Rectangle
Creating Element { name: Abrir DIAR, type: TEXT }

Project successfully generated at E:\desenv\Tkinter-Designer\build.

When I build my project some elements were generated as Black Rectangles...

Link to the Figma File

Snippet File Data exported by API:
{
  "document": {
    "id": "0:0",
    "name": "Document",
    "type": "DOCUMENT",
    "children": [
      {
        "id": "0:1",
        "name": "Page 1",
        "type": "CANVAS",
        "children": [
          {
            "id": "1:2",
            "name": "Desktop - 1",
            "type": "FRAME",
            "blendMode": "NORMAL",
            "children": [
              {
                "id": "1:3",
                "name": "Rectangle 1",
                "type": "RECTANGLE",
                "blendMode": "PASS_THROUGH",
                "absoluteBoundingBox": {...},
                "constraints": {...},
                "fills": [{"blendMode": "NORMAL", "type": "SOLID", "color": {...}}],
                "strokes": [],
                "strokeWeight": 1.0
              },
              {
                "id": "1:5",
                "name": "Line 1",
                "type": "LINE",
                "blendMode": "PASS_THROUGH",
                "absoluteBoundingBox": {...},
                "constraints": {...},
                "fills": [],
                "strokes": [{"blendMode": "NORMAL", "type": "SOLID", "color": {...}}],
                "strokeWeight": 5.0
              },
              {
                "id": "1:7",
                "name": "Rectangle 2",
                "type": "RECTANGLE",
                "blendMode": "PASS_THROUGH",
                "absoluteBoundingBox": {...},
                "constraints": {...},
                "fills": [{"blendMode": "NORMAL", "type": "SOLID", "color": {...}}],
                "strokes": [],
                "strokeWeight": 1.0
              },
              {
                "id": "1:8",
                "name": "Abrir DIAR",
                "type": "TEXT",
                "blendMode": "PASS_THROUGH",
                "absoluteBoundingBox": {...},
                "constraints": {...},
                "fills": [{"blendMode": "NORMAL", "type": "SOLID", "color": {...}}],
                "strokes": [],
                "strokeWeight": 1.0
              }
            ],
            "absoluteBoundingBox": {...},
            "constraints": {...},
            "clipsContent": true,
            "background": []
          }
        ],
        "backgroundColor": {...},
        "prototypeStartNodeID": null,
        "flowStartingPoints": [],
        "prototypeDevice": {...}
      }
    ]
  },
  "components": {...},
  "componentSets": {...},
  "schemaVersion": 0,
  "styles": {...},
  "name": "Untitled",
  "lastModified": "2022-01-18T00:25:42Z",
  "thumbnailUrl": "https://s3-alpha-sig.figma.com/thumbnails/5525c6fe-a3aa-47be-8356-6a99d3c3b9fc?Expires=1643587200&Signature=gg8HDn3u6lnfjRzlaPRyEv4c6cxKUbMot5iRFwyk7IRqiKhcicCkmZocH6YKE537obHp~Rr4DFQCKqG3AKP3wPzU6yA~9AaFANJKYikaZzT5u2RhFm1i5m~ZorpM2TTNEAsOe5ZFzW8Z~zl-yTv1zKJh0ZmZUnTR86ZuL~qD3WTGUBNsTjEMlykDn0qSM6GyRO6EZybs47qCZLOXPBLZ1u1sw0ksJw68g6gK6QwYRPgWfcmXQKI55uk95aAP8ObOLRFke3c1ZRhtpdRJlEuKDSBf~LbmzxMWvX5QnmR-45GGiOl6d~PFnb3O7KpWogounAYFhd5vnsIAoW9i7dPtnw__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
  "version": "1465422841",
  "role": "owner",
  "editorType": "figma",
  "linkAccess": "inherit"
}

I propose a fix in PR #180

Hey Ralph, I saw the PR and the main reason the code was producing black rectangles was that you did not follow the naming guide.
https://github.com/ParthJadhav/Tkinter-Designer/blob/master/docs/instructions.md#formatting-your-figma-design-top

Thanks for the changes and working on them. But the changes you made would break the code. I'll tell the reasons in the comments of the code itself.


Added PWA

Added vite PWA plugin
Added various icon images to support PWA on different platforms
Added settings in vite.config.ts to support PWA settings

Looks good


XLSX file is coming empty but when I repair it is coming fine

Description
I am using github.com/xuri/excelize/v2 v2.7.1
To create the xlsx file
I used simple code
`package main
import (
"fmt"
"github.com/xuri/excelize/v2"

)
func main() {
f := excelize.NewFile()
defer func() {
if err := f.Close(); err != nil {
fmt.Println(err)
}
}()
// Create a new sheet.
index, err := f.NewSheet("Sheet2")
if err != nil {
fmt.Println(err)
return
}
// Set value of a cell.
f.SetCellValue("Sheet2", "A2", "Hello world.")
f.SetCellValue("Sheet1", "B2", 100)
// Set active sheet of the workbook.
f.SetActiveSheet(index)
// Save spreadsheet by the given path.
if err := f.SaveAs("./Book1.xlsx"); err != nil {
fmt.Println(err)
}
}`
But when I open the xlsx file (Books.xlsx) it comes up empty

If I try to repair the xlsx file then data is coming

OS - ubuntu
Go version - go version go1.21.0 linux/amd64
I updated the github.com/xuri/excelize/v2 to latest version v2.7.1
For your reference my go.mod
`module excelize
go 1.21.0
require github.com/xuri/excelize/v2 v2.7.1
require (
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/richardlehane/mscfb v1.0.4 // indirect
github.com/richardlehane/msoleps v1.0.3 // indirect
github.com/xuri/efp v0.0.0-20230802181842-ad255f2331ca // indirect
github.com/xuri/nfp v0.0.0-20230819163627-dc951e3ffe1a // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/text v0.12.0 // indirect
)
`

Description I am using github.com/xuri/excelize/v2 v2.7.1 To create the xlsx file
I used simple code
`package main
import ( "fmt"
"github.com/xuri/excelize/v2"

)
func main() { f := excelize.NewFile() defer func() { if err := f.Close(); err != nil { fmt.Println(err) } }() // Create a new sheet. index, err := f.NewSheet("Sheet2") if err != nil { fmt.Println(err) return } // Set value of a cell. f.SetCellValue("Sheet2", "A2", "Hello world.") f.SetCellValue("Sheet1", "B2", 100) // Set active sheet of the workbook. f.SetActiveSheet(index) // Save spreadsheet by the given path. if err := f.SaveAs("./Book1.xlsx"); err != nil { fmt.Println(err) } }`
But when I open the xlsx file (Books.xlsx) it comes up empty
If I try to repair the xlsx file then data is coming
OS - ubuntu Go version - go version go1.21.0 linux/amd64
I updated the github.com/xuri/excelize/v2 to latest version v2.7.1
For your reference my go.mod `module excelize
go 1.21.0
require github.com/xuri/excelize/v2 v2.7.1
require ( github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect github.com/richardlehane/mscfb v1.0.4 // indirect github.com/richardlehane/msoleps v1.0.3 // indirect github.com/xuri/efp v0.0.0-20230802181842-ad255f2331ca // indirect github.com/xuri/nfp v0.0.0-20230819163627-dc951e3ffe1a // indirect golang.org/x/crypto v0.12.0 // indirect golang.org/x/net v0.14.0 // indirect golang.org/x/text v0.12.0 // indirect ) `

I also changed the go version to 1.20.7 still getting the same error

the same issues ，golang v1.21

the same issues ，golang v1.21

@gengxun, there are some incompatible changes in the Go 1.21.0 encoding/xml library. I have given feedback to the Go team and created a patch for it (golang/go#61881). I suggest waiting for the next minor releases or using the Go 1.20.7 or previous version. Also reference issues issues #1465, #1595, #1603, #1608, #1614, #1619 and #1620.

the same issues ，golang v1.21

@gengxun, there are some incompatible changes in the Go 1.21.0 encoding/xml library. I have given feedback to the Go team and created a patch for it (golang/go#61881). I suggest waiting for the next Go 1.21.1 minor releases or using the Go 1.20.7 or previous version. Also reference issues #1465, #1595, #1603, #1608, #1614, #1619 and #1620.

@lakshy-amagi, I've tested with LibreOffice <IP_ADDRESS>, Ubuntu 22.04.1 LTS, and it works well. Please check and make sure your Go version was not 1.21.0. There are any more info to reproduce this issue?

@lakshy-amagi, I've tested with LibreOffice <IP_ADDRESS>, Ubuntu 22.04.1 LTS, and it works well. Please check and make sure your Go version was not 1.21.0. There are any more info to reproduce this issue?

Thanks, @xuri for the fast response in local I changed the version to 1.20.7 it did the trick but need to check whether it will work in my production. I will let you know if it works until then please don't close this ticket.

I confirm the problem. I was unpleasantly surprised to see empty sheets.

1.20.6 - OK
1.20.7  -OK
1.21.0 - FAIL, empty sheets

@stvoidit There are some incompatible changes in the Go 1.21.0 encoding/xml library. I have given feedback to the Go team and created a patch for it golang/go#61881, and the Go team has added golang/go#62051 to the Go 1.21.1 milestone. I suggest using the Go 1.20.7 and previous Go released version or waiting for the next Go minor releases.

@stvoidit There are some incompatible changes in the Go 1.21.0 encoding/xml library. I have given feedback to the Go team and created a patch for it golang/go#61881, and the Go team has added golang/go#62051 to the Go 1.21.1 milestone. I suggest using the Go 1.20.7 and previous Go released version or waiting for the next Go minor releases.

Good news! I am glad that there will already be a fix in the next patch. Thank you very much.

Hi @lakshy-amagi, it seems still not have enough info or feedback to reproduce this issue, so I'll close this issue, if you have any questions, please let me know to reopen this anytime.

Hi @lakshy-amagi, it seems still not have enough info or feedback to reproduce this issue, so I'll close this issue, if you have any questions, please let me know to reopen this anytime.

Sorry @xuri for the late response I just deployed it yesterday it is working fine with the golang version 1.20.7.
Thanks for the help!!!


APP-1329 - Disable html enconding in the ticket subject

Codecov Report

Merging #97 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #97   +/-   ##
=======================================
  Coverage   88.27%   88.27%
=======================================
  Files          41       41
  Lines        1126     1126
  Branches      132      132
=======================================
  Hits          994      994
  Misses         91       91
  Partials       41       41

Continue to review full report at Codecov.

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


Implement Index for Object

Sometimes I like to pass around JSON Object's after filtering them out of a bigger JSON structure.
As it stands right now, if I want to access its fields with the same easy indexing syntax, I first have to put i JsonValue again, which feels kind of pointless.
Would you accept a PR that also implements Index directly for Object?

That sounds perfectly reasonable and should be pretty easy to do. If you'd like to commit a PR for that I'd more than welcome it :).


Fix markdown formatting errors in odk-migrate-to-odk.md

This PR fixes some markdown formatting errors that I didn't see in PyCharm but are present in the published GH pages.

Sorry for the inconvinience @matentzn


datastore commands

Commands that use the API from https://github.com/Azure/azure-rest-api-specs/pull/12879

Moved to https://github.com/Azure/azure-cli-extensions/pull/2998


Ignore zenodo badge links when running the link-checker

Fixes #8

Tests are passing now! I will merge this.


Add end-to-end tests

Add end to end tests using dex and playwright.
The scaling tests are commented out because both hydra and kratos logic is bugged:

The units don't share the secret that the apps use
Scaling up hydra sets the unit's status to maintenance without changing it back.

To run the tests you need to run:
tox -e integration

In order to keep the models after the test run is finished, you need to run:
tox -e integration -- --keep-models --model test-model

Then to rerun the tests without having to redeploy the charms you just need to run:
tox -e integration -- --keep-models --model test-model --no-deploy

To run the tests in debug mode (to see the playwright browser launch) you need to run pytest directly (without tox):
PWDEBUG=1 PYTHONPATH=. pytest


Figure out how to build on Windows

If this is still of interest I'd love to help out. I'm trying to build on Windows 10 with little luck. Any leads you may have found?

@mattgallivan Thanks for the offer! I don't have a Windows VM at the moment, so I have to say I have not done much here. It should in principle be possible to build since Concorde claims to be Ansi C, and at the same time its dependencies are available as Windows libraries (though for older versions of Windows). If you have the time and don't mind getting down into Windows build issues, a good starting point may be to try and build Concorde by itself on Windows (that is, outside of this library). If that is possible, fixing the setup.py in this library to do the build should be easy. Note that you definitely want to use QSOpt 1.1 beta for that. Another avenue is to see if you can find a compiled version on the Concorde page that runs on your system. The compiled versions claim to be compatible with Windows XP; not sure how that will work out on Windows 10.


Map Orphanet's non-rare diseases to Mondo (list included)

Orphanet seems to have several non-rare diseases in it's ontology, simply labeled as e.g. "NON-RARE IN EUROPE: Melanoma" (Which is just regular Melanoma then).
Seems like none of these diseases are mapped to any other ontology and no other equivalency mapping out there seems to cover these.
Would it be possible for MONDO to cover/map these? Or is there a reason to leave these diseases as-is?
Our team's already gone over the list of these Orphanet resources and added the appropriate MONDO IDs where possible.
Mind you that there were some Orphanet resources we were not able to map to any MONDO equivalent.
I've left those out of the list below (I'll create another ticket if necessary to add those diseases to MONDO).
It's quite the list, I know :sweat_smile:

Orphanet ID
Mondo ID
Label (from Orphanet)
Synonym (from Orphanet)

Orphanet:924
MONDO:0007035
NON RARE IN EUROPE: Acanthosis nigricans

Orphanet:464463
MONDO:0005036
NON RARE IN EUROPE: Adenocarcinoma of stomach

Orphanet:415268
MONDO:0005061
NON RARE IN EUROPE: Adenocarcinoma of the lung

Orphanet:3153
MONDO:0005488
NON RARE IN EUROPE: Adolescent idiopathic scoliosis

Orphanet:99888
MONDO:0003924
NON RARE IN EUROPE: Adrenocortical adenoma

Orphanet:85142
MONDO:0014200
NON RARE IN EUROPE: Aldosterone-producing adenoma
Primary aldosteronism due to Conn adenoma | Aldosterone-secreting adenoma | Aldosteronoma | Conn adenoma

Orphanet:238616
MONDO:0004975
NON RARE IN EUROPE: Alzheimer disease

Orphanet:825
MONDO:0005306
NON RARE IN EUROPE: Ankylosing spondylitis
Ankylosing spondylarthritis | Bechterew syndrome

Orphanet:36297
MONDO:0005351
NON RARE IN EUROPE: Anorexia nervosa

Orphanet:80
MONDO:0007140
NON RARE IN EUROPE: Antiphospholipid syndrome
Hughes syndrome | Antiphospholipid antibody syndrome | Familial lupus anticoagulant

Orphanet:1162
MONDO:0005259
NON RARE IN EUROPE: Asperger syndrome

Orphanet:625
MONDO:0009755
NON RARE IN EUROPE: Atypical mole
Dysplastic nevus | Clark nevus

Orphanet:106
MONDO:0005258
NON RARE IN EUROPE: Autism

Orphanet:462
MONDO:0007810
NON RARE IN EUROPE: Autosomal dominant ichthyosis vulgaris

Orphanet:1232
MONDO:0013662
NON RARE IN EUROPE: Barrett esophagus

Orphanet:97562
MONDO:0007709
NON RARE IN EUROPE: Benign familial hematuria

Orphanet:34145
MONDO:0005342
NON RARE IN EUROPE: Berger disease
IgA nephropathy

Orphanet:1244
MONDO:0007194
NON RARE IN EUROPE: Bicuspid aortic valve

Orphanet:157980
MONDO:0001187
NON RARE IN EUROPE: Bladder cancer

Orphanet:93393
MONDO:0007217
NON RARE IN EUROPE: Brachydactyly type A3
Brachymesophalangy V | Brachydactyly-clinodactyly

Orphanet:93385
MONDO:0007222
NON RARE IN EUROPE: Brachydactyly type D

Orphanet:50838
MONDO:0007275
NON RARE IN EUROPE: Carpal tunnel syndrome

Orphanet:555
MONDO:0005130
NON RARE IN EUROPE: Celiac disease
Celiac sprue | Gluten intolerance | Gluten-induced enteropathy | Coeliac disease | Gluten-sensitive enteropathy | Idiopathic steatorrhea | Nontropical sprue | Coeliac sprue

Orphanet:164
MONDO:0000820
NON RARE IN EUROPE: Cerebral cavernous malformations
Brain cavernous hemangioma

Orphanet:1983
MONDO:0005404
NON RARE IN EUROPE: Chronic fatigue syndrome
Myalgic encephalomyelitis | Chronic fatigue immune dysfunction syndrome

Orphanet:1002
MONDO:0043537
NON RARE IN EUROPE: Cluster headache
Erythroprosopalgia of Bing | Ciliary neuralgia | Red migraine | Horton headache | Erythromelalgia of the head | Histaminic cephalalgia | Histamine headache | Histamine cephalalgia | Migrainous neuralgia | Cluster migraine

Orphanet:466667
MONDO:0005575
NON RARE IN EUROPE: Colorectal cancer

Orphanet:206
MONDO:0005011
NON RARE IN EUROPE: Crohn disease

Orphanet:1648
MONDO:0007488
NON RARE IN EUROPE: Dementia with Lewy body
Lewy body dementia | DLB | Diffuse Lewy body disease | Cortical Lewy body disease

Orphanet:243377
MONDO:0005147
NON RARE IN EUROPE: Diabetes mellitus type 1
Insulin-dependent diabetes mellitus

Orphanet:243761
MONDO:0001134
NON RARE IN EUROPE: Essential hypertension

Orphanet:529819
MONDO:0008327
NON RARE IN EUROPE: Exfoliation syndrome
Pseudoexfoliation syndrome | XFS

Orphanet:276271
MONDO:0014448
NON RARE IN EUROPE: Familial dysalbuminemic hyperthyroxinemia
Bisalbuminemia

Orphanet:426
MONDO:0017774
NON RARE IN EUROPE: Familial hypobetalipoproteinemia

Orphanet:155
MONDO:0024573
NON RARE IN EUROPE: Familial isolated hypertrophic cardiomyopathy
Familila or idiopathic hypertrophic obstructive cardiomyopathy

Orphanet:2794
MONDO:0005349
NON RARE IN EUROPE: Familial otosclerosis

Orphanet:336
MONDO:0006761
NON RARE IN EUROPE: Fibromuscular dysplasia of arteries

Orphanet:41842
MONDO:0005546
NON RARE IN EUROPE: Fibromyalgia

Orphanet:459690
MONDO:0001153
NON RARE IN EUROPE: Gender dysphoria

Orphanet:357
MONDO:0007745
NON RARE IN EUROPE: Gilbert syndrome
Hyperbilirubinemia type 1 | Familial cholemia

Orphanet:362
MONDO:0040671
NON RARE IN EUROPE: Glucose-6-phosphate-dehydrogenase deficiency
Favism | G6PD deficiency

Orphanet:100642
MONDO:0004277
NON RARE IN EUROPE: Gonorrhea

Orphanet:855
MONDO:0007699
NON RARE IN EUROPE: Hashimoto thyroiditis
Hashimoto hypothyroidism

Orphanet:139498
MONDO:0021001
NON RARE IN EUROPE: Hemochromatosis type 1
C282Y/C282Y hemochromatosis | Classic hemochromatosis | HFE-related hemochromatosis

Orphanet:862
MONDO:0003233
NON RARE IN EUROPE: Hereditary essential tremor

Orphanet:387
MONDO:0006559
NON RARE IN EUROPE: Hidradenitis suppurativa
Fox den disease | Ectopic acne | Pyoderma fistulans significa | Verneuil disease | Acne inversa

Orphanet:89939
MONDO:0100161
NON RARE IN EUROPE: Hyperkalemic renal tubular acidosis
Renal tubular acidosis type 4

Orphanet:413
MONDO:0007761
NON RARE IN EUROPE: Hyperlipoproteinemia type 4
HLP type 4 | Familial hypertriglyceridemia

Orphanet:2227
MONDO:0005486
NON RARE IN EUROPE: Hypodontia
Tooth agenesis

Orphanet:2810
MONDO:0005665
NON RARE IN EUROPE: Idiopathic facial palsy
Bell palsy

Orphanet:651
MONDO:0005712
NON RARE IN EUROPE: Idiopathic infantile nystagmus
Congenital idiopathic nystagmus | Motor congenital nystagmus

Orphanet:69127
MONDO:0001341
NON RARE IN EUROPE: Immunoglobulin A deficiency
SIgAD | Selective immunoglobulin A deficiency

Orphanet:83449
MONDO:0006802
NON RARE IN EUROPE: Inappropriate antidiuretic hormone secretion syndrome
SIADH

Orphanet:464293
MONDO:0011191
NON RARE IN EUROPE: Infantile capillary hemangioma

Orphanet:319684
MONDO:0013461
NON RARE IN EUROPE: Inosine triphosphate pyrophosphatase deficiency

Orphanet:2335
MONDO:0015486
NON RARE IN EUROPE: Isolated keratoconus

Orphanet:459696
MONDO:0100076
NON RARE IN EUROPE: Juvenile idiopathic scoliosis

Orphanet:484
MONDO:0006823
NON RARE IN EUROPE: Klinefelter syndrome
47,XXY syndrome

Orphanet:319681
MONDO:0006065
NON RARE IN EUROPE: Lactase non-persistence in adulthood

Orphanet:33409
MONDO:0007899
NON RARE IN EUROPE: Lichen sclerosus
Lichen sclerosus et atrophicus

Orphanet:411533
MONDO:0005105
NON RARE IN EUROPE: Melanoma

Orphanet:45360
MONDO:0007972
NON RARE IN EUROPE: MeniÞre disease

Orphanet:411969
MONDO:0004955
NON RARE IN EUROPE: Metabolic syndrome

Orphanet:802
MONDO:0005301
NON RARE IN EUROPE: Multiple sclerosis

Orphanet:521399
MONDO:0011122
NON RARE IN EUROPE: Non rare obesity

Orphanet:64738
MONDO:0002305
NON RARE IN EUROPE: Non rare thrombophilia

Orphanet:33271
MONDO:0013209
NON RARE IN EUROPE: Non-alcoholic fatty liver disease
NAFLD

Orphanet:415300
MONDO:0000499
NON RARE IN EUROPE: Non-arteritic anterior ischemic optic neuropathy
NAION

Orphanet:488201
MONDO:0005233
NON RARE IN EUROPE: Non-small cell lung cancer
NSCLC

Orphanet:280110
MONDO:0005382
NON RARE IN EUROPE: Paget disease of bone
Osteitis deformans

Orphanet:319705
MONDO:0005180
NON RARE IN EUROPE: Parkinson disease

Orphanet:319698
MONDO:0010564
NON RARE IN EUROPE: Partial color blindness, deutan type
Partial achromatopsia, deutan type | Deuteranopia

Orphanet:319691
MONDO:0010565
NON RARE IN EUROPE: Partial color blindness, protan type
Partial achromatopsia, protan type

Orphanet:706
MONDO:0011827
NON RARE IN EUROPE: Patent arterial duct
Patent ductus arteriosus | Persistent patency of the arterial duct

Orphanet:58208
MONDO:0005904
NON RARE IN EUROPE: Pericarditis

Orphanet:120
MONDO:0008228
NON RARE IN EUROPE: Pernicious anemia
Acquired pernicious anemia | Biermer anemia | Biermer disease | Addison-Biermer anemia | Juvenile onset pernicious anemia

Orphanet:2870
MONDO:0008231
NON RARE IN EUROPE: Peyronie syndrome
Induratio penis plastica

Orphanet:26823
MONDO:0010896
NON RARE IN EUROPE: Pigment-dispersion syndrome

Orphanet:3185
MONDO:0008487
NON RARE IN EUROPE: Polycystic ovary syndrome
PCOS | Stein-Leventhal syndrome

Orphanet:466673
MONDO:0041052
NON RARE IN EUROPE: Post-herpetic neuralgia

Orphanet:449262
MONDO:0013214
NON RARE IN EUROPE: Primary bile acid malabsorption

Orphanet:619
MONDO:0005387
NON RARE IN EUROPE: Primary ovarian failure
Premature ovarian failure

Orphanet:40050
MONDO:0011849
NON RARE IN EUROPE: Psoriatic arthritis

Orphanet:284130
MONDO:0008383
NON RARE IN EUROPE: Rheumatoid arthritis

Orphanet:3140
MONDO:0005090
NON RARE IN EUROPE: Schizophrenia

Orphanet:378
MONDO:0010030
NON RARE IN EUROPE: Sj÷gren syndrome
Sjögren-Gougerot syndrome | Sicca syndrome

Orphanet:458713
MONDO:0000724
NON RARE IN EUROPE: Specific language impairment

Orphanet:489
MONDO:0006460
NON RARE IN EUROPE: Thyroglossal duct cyst
Thyroglossal tract cyst

Orphanet:856
MONDO:0007661
NON RARE IN EUROPE: Tourette syndrome
Gilles de la Tourette syndrome | Tourette disease | GTS

Orphanet:35056
MONDO:0011182
NON RARE IN EUROPE: Trimethylaminuria
Fish-odor syndrome

Orphanet:771
MONDO:0005101
NON RARE IN EUROPE: Ulcerative colitis
Ulcerative proctosigmoiditis

Orphanet:319658
MONDO:0001071
NON RARE IN EUROPE: Unexplained intellectual disability

Orphanet:1480
MONDO:0002070
NON RARE IN EUROPE: Ventricular septal defect
Interventricular communication | VSD

Orphanet:3435
MONDO:0008661
NON RARE IN EUROPE: Vitiligo

Orphanet:97354
MONDO:0007020
NON RARE IN EUROPE: Wernicke encephalopathy
Dementia due to thiamine deficiency

Orphanet:907
MONDO:0008685
NON RARE IN EUROPE: Wolff-Parkinson-White syndrome
Ventricular familial preexcitation syndrome

ORCID-ID in case it's necessary
0000-0002-9584-9618

Hi @Sean-Ontoforce, thanks so much for this, this is great. I'll work on adding these mappings to Mondo.

I created a spreadsheet here


Is issue body being posted?

If everything works correctly, this issue body should be posted.

It works


Integrate with Netbox

Is the intent for it to be "hosts that get Tinkerbell hardware objects defined get pushed to Netbox"? Or "Use Netbox as a source of truth for building Tinkerbell hardware objects"? Or both?
Either/any way, I think it would be a useful integration!


Testing requires expression be writable, even if source model is provided

I am attempting to write some unit tests for a validator which validates a model like this:
public class Query
{
    [FromQuery(Name = "include")]
    public string Include { get; set; }

    [FromQuery(Name = "sort")]
    public string Sort { get; set; }

    [FromQuery(Name = "page")]
    public Dictionary<string, string> Page { get; set; }

    [FromQuery(Name = "filter")]
    public Dictionary<string, string> Filter { get; set; }

    [FromQuery(Name = "fields")]
    public Dictionary<string, string> Fields { get; set; }

    [BindNever]
    public int? PageNumber => Page?.GetInt32Value("number");
    [BindNever]
    public int? PageSize => Page?.GetInt32Value("size");
    [BindNever]
    public int? PageLimit => Page?.GetInt32Value("limit");
    [BindNever]
    public int? PageOffset => Page?.GetInt32Value("offset");
}

What's important to note is the validator validates the derrived properties like PageNumber, PageSize, etc.
RuleFor(x => x.PageNumber)
    .GreaterThan(0)
    .When(x => x.PageNumber.HasValue)
    .WithMessage(PageNumberGtZ);

Validation on this is working great and I have it tied into my asp.net core model binder.  Perfect.
I'm writing some unit tests around this, and I'm seeing that I cannot seem to test any of the validation rules for derived properties.  For example:
[Theory]
[InlineData(0)]
[InlineData(-1)]
public void Validate__Given_Query__When_PageNumberLteZero__Then_Error
    (int pageNum)
{
    // CreateQuery builds a Query and populates the internal dictionary accordingly
    Validator.ShouldHaveValidationErrorFor(x => x.PageNumber, CreateQuery(pageNumber: pageNum));
}

gets me an error like:
Expression must be writable

I'm wondering why this expression has to be writable since I'm providing the value via the second argument.  The expression just needs to be invoked with the given T objectToTest as a target.  It actually looks like ShouldHaveValidationErrorFor does just this, however TestValidationResult attempts to set the value back on the T objectToTest (called instanceToValidate at this point).
Perhaps an option could be to skip setting the value on instanceToValidate in scenarios where a source instance was provided instead of a simple value.  If you agree, I'd be happy to put together a PR for this.

Thanks, yes a pull request would be great. That'd be a nice enhancement.
Alternatively, in this case I'd suggest just skipping using the testhelper and invoke Validate manually and perform assertions on the results. The main benefit of the testhelper is the automatic property setting etc, so if you don't need that then you don't lose that much by just performing the assertions manually.


Graphics editing status, no Finish event triggered.

Describe the bug
Graphic editing status, mouse over other DOM elements, click on the element, the graphic does not trigger the Finish event.
Editing within the map area, everything is normal.

Hey， @JamesLMilner ，If you have time, could you please take a look at this issue。

Hey @Thunder7991 - I will take a look when I get some time. I am away this week and don't always have as much time as I'd like to work on Terra Draw unfortunately.

@Thunder7991 if I am understanding correctly, you are saying clicking outside of the map DOM element when trying to close a polygon (or maybe other mode) is triggering onFinish or closing the polygon. This is expected behaviour as Terra Draw does not attach event listeners to other DOM nodes within your page. and only has listeners on the map container. As such I will close this issue as it sounds like this is working as intended.
If I have misunderstood your issue, please feel free to raise a new issue with clear reproduction steps and explanation of what you are expecting to happen. Thanks!

@Thunder7991 if I am understanding correctly, you are saying clicking outside of the map DOM element when trying to close a polygon (or maybe other mode) is triggering onFinish or closing the polygon. This is expected behaviour as Terra Draw does not attach event listeners to other DOM nodes within your page. and only has listeners on the map container. As such I will close this issue as it sounds like this is working as intended.
If I have misunderstood your issue, please feel free to raise a new issue with clear reproduction steps and explanation of what you are expecting to happen. Thanks!

You understand that it is correct. During the drawing process, if you click the DOM element, the graphic does not trigger the Finish incident. In my FOCK version, I tried to make a judgment in related events and solved this problem.
onClick(event: TerraDrawMouseEvent) {
		if (this.selected.length) {
			this.setCursor(this.cursors.dragEnd);
			// If we have finished dragging a coordinate or a feature
			// lets fire an onFinish event which can be listened to
			if (this.dragCoordinate.isDragging()) {
				this.onFinish(this.selected[0]);
			} else if (this.dragFeature.isDragging()) {
				this.onFinish(this.selected[0]);
			} else if (this.dragCoordinateResizeFeature.isDragging()) {
				this.onFinish(this.selected[0]);
			}

			this.dragCoordinate.stopDragging();
			this.dragFeature.stopDragging();
			this.dragCoordinateResizeFeature.stopDragging();
			this.rotateFeature.reset();
			this.scaleFeature.reset();
			// this.deselect();
		}
      ...


Now time to roast you in Lua

you can do a lot more with Source bozo!

you can do a lot more with Source bozo!
i know, i use source.

in fact, ive been working on a mod for THREE months WITH SOURCE.

yeah we should stop hating on this guy, he probably spent so much time making this!

yes your right we should! he totally did all the code all by himself so smart

fake the commits were made by jigsaw. anyways this pr should be closed right now since it's shitty and the guy just thinked it was good but not because shadowmario don't want android support for the main version of psych.

BRO DOESN'T KNOW SARCASM EXISTS 😂

in fact, ive been working on a mod for THREE months WITH SOURCE.

Then why do you know nothing about Nimu going to change the whole source with dumb stuffs? Wannabe?

Then why do you know nothing about Nimu going to change the whole source with dumb stuffs? Wannabe?

DONT YOU THINK I DIDNT KNOW THAT!?

 Wannabe?

DONT YOU THINK I DIDNT KNOW THAT!?

 Takes absolutely 0 effort.
Typing on their keyboard? What, typing ":)" is something to be congratulated for? Are they some programmer god by typing ":)"?

Nice argument.


Non ASCII characters in comments cause issues on python 2.7.12

The agent (and maybe also driver) fails to run due to the presence of the non ascii ® character in comments.
The error generated is (for example) :
SyntaxError: Non-ASCII character '\xc2' in file /var/lib/openstack/src/f5-openstack-agent/f5_openstack_agent/lbaasv2/drivers/bigip/agent_manager.py on line 238, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Please either remove these characters or specify an encoding as per pep-0263

These characters were pulled as part of a previous commit.  I could find no instances of non-ASCII characters remaining.

Recommend adding a pipeline check in travis (script or pep enforcement) to block future changes from introducing these characters.

Filed https://github.com/F5Networks/f5-openstack-agent/issues/1057 as enhancement to prevent future problems.


Custom sort key for dataframe.read_parquet with multiple paths as input

dask.dataframe.read_parquet accepts a list of paths as input. It uses natural_sort_key under the hood to sort the paths in several places. In my case parquet files are not in the natural order and I'd like to sort them outside and keep the same order inside the read_parquet, so I do monkey patching like this to make it work:
with (mock.patch.object(dask.dataframe.io.parquet.core, 'natural_sort_key', new=lambda p: p),
      mock.patch.object(dask.dataframe.io.parquet.utils, 'natural_sort_key', new=lambda p: p)):
    return dd.read_parquet(paths, index='index', calculate_divisions=True)

It would be great if there was a parameter to control the sort key (disable natural_sort_key or provide my own).

Thanks for the issue @alexgorban. Out of curiosity, how are your files being produced?
@rjzamora does it make sense to use the given file order if users provide a list of paths?

does it make sense to use the given file order if users provide a list of paths?

Yes. This has come up before (I’ll need to find the original issue and link later). It may be a bit easier to make it optional to sort a user-provided path list now.

Out of curiosity, how are your files being produced?

Files are created using Apache Arrow with filenames sorted alphabetically (pyarrow.Table.sort_by doesn't support custom key functions) and have the following format: {hash}_{a}_{b}_{c}_{d}.parquet, ex.<PHONE_NUMBER>2400723454_1120_000_1140_000. Their order is important because they have a sorted index column and their metadata stored with this order.  Full details about the dataset format can be found here https://github.com/waymo-research/waymo-open-dataset/blob/master/tutorial/tutorial_v2.ipynb.
Thanks a lot for considering implementing this feature!

Thanks for explaining alexgorban! Please feel free to provide feedback on the proposed solution in https://github.com/dask/dask/pull/10061. The current plan is to simply preserve the order of a user-provided path list, but to use natural sorting when a directory or glob-pattern is specified.


How to get the bird training data?

Is there possible that we can get the training data?
To obtain the training data, please register by filling the form at the following link:
https://goo.gl/forms/5lVxpO2CWM0v4Gbj2 <-- is closed.
Thank you.
/bird_species_classification$ python modify_data.py
Traceback (most recent call last):
  File "modify_data.py", line 67, in <module>
    rename_files()
  File "modify_data.py", line 21, in rename_files
    files = listdir(source)
FileNotFoundError: [Errno 2] No such file or directory: './train_data/blasti'

I have uploaded it on Kaggle. You can get the dataset from there.
here's the link to the dataset: https://www.kaggle.com/akash2907/bird-species-classification
I have uploaded the link in the readme file too.


27 it design

Changed overall theme and colors of the site to 27IT design principles.

Ljoti labi!


change backbone to DLA102, performance degradation

Hi, @xinzhuma
Have you test backbone such as DLA102?
When change config file dla34 to dla102, the 3D AP is only 10 which is 6% performance degradation compared to default config setting.
Wishing for your reply.

there are some bugs in the implementation of larger backbones

Hi, @xinzhuma
Congratulation for monodistill is accepted by ICLR22. Two months ago, I also wanted to do some work on KD-det for mono 3d task, but I used monodle and monoflex repo to create one teacher model(such as better backbone and etc.) and fail to see any performance improvement.
Now, I want to know if monodistill work is based on monodle repo like GUPNet?
Also, I want to know if you have tried to use teacher which is trained on RGB images rather than lidar? how about your performance.
Wishing for your reply!

hi @Senwang98
Thanks for your attention. This work is based on MonoDLE and GUPNet, and the code will be released for reproducibility. We scheduled it in March due to the Spring Festival and the ECCV DDL. We also try to train the teacher net using the pre-trained depth maps, which is also working.  Please refer to Section 4.3 (DORN) and Appendix A5 in https://arxiv.org/pdf/2201.10830.pdf for more details.

It seems that there are some bugs in the implementation of larger DLA backbones, and I haven't checked the relevant code carefully, sorry for that. Someone has told me that they substituted the DLA with ResNet, and larger backbones did work at that setting. Hope this information is helpful.

@xinzhuma
Got it!
I will try it and thanks again for your time. I will close this issue later.


feat: 🚀 advanced Get

Summary

Implemented Paths
Implemented Get

TODO:

[x] changeset
[x] arrow syntax (if needed)
[x] README
[x] Path implementation with autocomplete

related issue https://github.com/ts-essentials/ts-essentials/issues/226

We'd be really interested in this feature!
Personally got here from this SO post: https://stackoverflow.com/questions/58434389/typescript-deep-keyof-of-a-nested-object

@welljsjs @renataogarcia @VladSez I will need to bump TypeScript lower boundary with these 2 types, because TS 4.1 is quite upset with excessively deep and possibly infinite type instantiation
Is it okay for you?

cc @welljsjs @renataogarcia @GTOsss @VladSez I'm planning to merge it by the end of the month as it requires a breaking change (deprecation of support for TypeScript 4.1)


WIP: Rewrite  some code

This commit removes the contribution of a user that we cannot
trace to gain their consent for the licence change.
WIP because I'm not yet convinced it is right.

I already did this in #5808

Gee, how'd I miss that?  Closing this.


fix(versions): update Activiti/activiti-cloud-application-chart versions

UpdateBot pushed helm dependency: example-runtime-bundle to: 7.1.3

UpdateBot commands:
updatebot push-version --kind helm example-runtime-bundle 7.1.3


Bad constructors when using as a node module

I'm having an issue with the exported modules from ECSY not instantiating correctly.
i've added ECSY to my project via npm i ecsy or yarn add ecsy.
when i try to use the demo code as a standalone js file that is loaded in at rutime i.e., like any modern babel & webpack/parcel project  <script type="application/javascript" src="./src/index.js"></script> in my index.html
I get the following depending on how it is imported:
import {World, System, TagComponent } from 'ecsy':

Uncaught TypeError: _index.World is not a constructor

import {World, System,TagComponent} from 'ecsy/build/ecsy.module':

Uncaught TypeError: Class constructor System cannot be invoked without 'new'

right now, the only way it works is if i run the project as an inline-script via the web-module (which is unrealistic for real-world use).
What is the correct way to use ECSY as a node module for bundled application builds?

Hey @xevrem I think the first way should work. Maybe this boilerplate project will help you get setup with webpack:
https://github.com/MozillaReality/ecsy-webpack-boilerplate
Let me know if you still are having issues.

ooh! thanks, I'll give it a go the next chance I have!

yay! it appears it is working!
you can see my experiments with it and pixi.js here as well as with my own variation of an ecs-framework [feel free to steal ides :)]
side note: still does not appear to like parcel :(

can we close this?

You can hack it to work in parcel by adding "browserslist": ["> 5%"] to the package.json file. [reference].

nice, ended up using something similar in a .babelrc everything appears to work ok now

I had the same error with typescript + webpack.  I was using ts-loader with webpack but couldn't get this working.
I had to switch to the @babel/preset-typescript ( via babel-loader ) and add the > 2% to preset-env arguments.
    [ '@babel/preset-env', {
      targets: {
        browsers: ["> 2%"]
      }
    }],

Fun times!

I also had this problem when using Parcel and TypeScript. @AndrewJakubowicz has properly demonstrated the fix for this. It is not a problem with ecsy but rather with the way external tools are configured to transpile and package it, and as such I do believe we can close this issue. @fernandojsg

Thank you @snowfrogdev crossing it now.