[BUG]host not found in upstream "longhorn-backend" in /etc/nginx/nginx.conf:32 nginx: [emerg] host not found in upstream "longhorn-backend" in /etc/nginx/nginx.conf:32

kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml

kubectl version

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.11", GitCommit:"27522a29febbcc4badac257763044d0d90c11abd", GitTreeState:"clean", BuildDate:"2021-09-15T19:21:44Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.11", GitCommit:"27522a29febbcc4badac257763044d0d90c11abd", GitTreeState:"clean", BuildDate:"2021-09-15T19:16:25Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}

kubectl get pod -n longhorn-system

NAME                                        READY   STATUS             RESTARTS   AGE
engine-image-ei-d4c780c6-7tnsp              1/1     Running            0          3h4m
engine-image-ei-d4c780c6-kmzf4              1/1     Running            0          3h4m
instance-manager-e-505291fd                 1/1     Running            0          3h4m
instance-manager-e-f96f3bdb                 1/1     Running            0          3h4m
instance-manager-r-964f478b                 1/1     Running            0          3h4m
instance-manager-r-da069176                 1/1     Running            0          3h4m
longhorn-driver-deployer-79bdcb4cc7-hptxg   0/1     Init:0/1           0          5h19m
longhorn-manager-fx5hg                      1/1     Running            31         5h19m
longhorn-manager-lmgw5                      1/1     Running            31         5h19m
longhorn-ui-788fd8cf9d-mjxzz                0/1     CrashLoopBackOff   66         5h19m

kubectl logs longhorn-ui-788fd8cf9d-mjxzz  -n longhorn-syste

2021/10/20 12:28:08 [warn] 1#1: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:7
nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/nginx.conf:7
2021/10/20 12:28:08 [emerg] 1#1: host not found in upstream "longhorn-backend" in /etc/nginx/nginx.conf:32
nginx: [emerg] host not found in upstream "longhorn-backend" in /etc/nginx/nginx.conf:32

kubectl get svc -n longhorn-system

NAME                TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
longhorn-backend    ClusterIP   <IP_ADDRESS>     <none>        9500/TCP   5h37m
longhorn-frontend   ClusterIP   <IP_ADDRESS>   <none>        80/TCP     5h37m

kubectl describe pod longhorn-ui-788fd8cf9d-mjxzz -n longhorn-system

Name:         longhorn-ui-788fd8cf9d-mjxzz
Namespace:    longhorn-system
Priority:     0
Node:         worker-2/<IP_ADDRESS>
Start Time:   Wed, 20 Oct 2021 15:09:13 +0800
Labels:       app=longhorn-ui
              pod-template-hash=788fd8cf9d
Annotations:  cni.projectcalico.org/podIP: <IP_ADDRESS>/32
              cni.projectcalico.org/podIPs: <IP_ADDRESS>/32
Status:       Running
IP:           <IP_ADDRESS>
IPs:
  IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/longhorn-ui-788fd8cf9d
Containers:
  longhorn-ui:
    Container ID:   containerd://0291c4e00100f526e59f0f644dc23c5aa6cddf7e9816f63a358cb1dd35e62369
    Image:          longhornio/longhorn-ui:v1.2.2
    Image ID:       docker.io/longhornio/longhorn-ui@sha256:c7500a13af46cc1c7fff7d8660d69ce0edb8926f81a2dbb17c8b9d711a2d44fb
    Port:           8000/TCP
    Host Port:      0/TCP
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Wed, 20 Oct 2021 20:48:50 +0800
      Finished:     Wed, 20 Oct 2021 20:48:55 +0800
    Ready:          False
    Restart Count:  70
    Environment:
      LONGHORN_MANAGER_IP:  http://longhorn-backend:9500
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-8cszw (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  default-token-8cszw:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-8cszw
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                 node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason   Age                      From     Message
  ----     ------   ----                     ----     -------
  Warning  BackOff  2m2s (x1539 over 5h41m)  kubelet  Back-off restarting failed container

curl <IP_ADDRESS>:9500

{"data":[{"actions":{},"id":"v1","links":{"self":"http://<IP_ADDRESS>:9500/v1"},"type":"apiVersion"}],"links":{"latest":"http://<IP_ADDRESS>:9500/v1","self":"http://<IP_ADDRESS>:9500/"},"resourceType":"apiVersion","type":"collection"}

curl  <IP_ADDRESS>:80

curl: (7) Failed connect to <IP_ADDRESS>:80; Connection refused

kubectl -n longhorn-system describe svc longhorn-backend

Name:              longhorn-backend
Namespace:         longhorn-system
Labels:            app=longhorn-manager
Annotations:       <none>
Selector:          app=longhorn-manager
Type:              ClusterIP
IP Families:       <none>
IP:                <IP_ADDRESS>
IPs:               <IP_ADDRESS>
Port:              manager  9500/TCP
TargetPort:        manager/TCP
Endpoints:         <IP_ADDRESS>:9500,<IP_ADDRESS>:9500
Session Affinity:  ClientIP
Events:            <none>

I also encountered the same problem, but I tried to restart all nodes and run normally. You can try it.
befor
after

you could ref to https://github.com/longhorn/longhorn/issues/1490#issuecomment-649003076

I am running ubuntu 20.04 , Rancher 2.6.2. After installing longhorn , I am getting this issue. This is most probably looks like dns issue. I do not see csi pods, services ,deployment

I am running ubuntu 20.04 , Rancher 2.6.2. After installing longhorn , I am getting this issue. This is most probably looks like dns issue. I do not see csi pods, services ,deployment. I am using calico network.

It should be the case as @jenting mentioned. However, it's quite interesting because of two comments related to calico.
cc @longhorn/qa

I wiped out RKE cluster and created RKE2 cluster and longhorn worked in very first attempt. :)

I wiped out RKE cluster and created RKE2 cluster and longhorn worked in very first attempt. :)

Good to here 👍 ,  still use calico or other CNI?

Its calico, but we are going to explore cilium as well.

Hello,
I encountered the same problem.
I am using RKE2 to create the cluster and, because I have two networks, the CNI I use is calico and multus.
And I found this problem will occur with scenario like this:
For example the cluster has 4 nodes: node-1, node-2, node-3, node-4
And 2 networks: net-1 and net-2
node-1 and node-2 connect to only one network. (e.g.: net-1)
node-3 and node-4 connect to both net-1 and net-2
When Install longhorn, the longhorn-ui pod will encounter the same error.
But if all nodes above are connected to net-1 and net-2
longhorn can be installed and work.

you could ref to #1490 (comment)

I referred to that. Doing curl longhorn-backend:9500 in longhorn-ui gave me the expected output. I then proceeded to manually delete longhorn-driver-deployer-5b49bfbf97-knt6z pod, and when it started anew, it progressed successfully to deploy longhorn for me in about three minutes or so.
Then, the longhorn-ui website was still unresponsive (loading animations, then timing out; the free space rpm counter chart at the main page grayed out showing nothing), so I killed all longhorn old pods (I started installing longhorn yesterday evening). So, I deleted all 13h old pods, and when they started anew, the webui started working.

rebooting the master node seems to fix the issue.

If it does not help, you may need also reboot the worker node, in my environment, I have 3 worker nodes, only the pod scheduled to one of them having the DNS issue, in this case, I rebooted the master and the worker node, the issue seems fixed


feat(springboot-plugin): Add trace view

This PR adds a trace view into the spring-boot plugin:

Also spring-boot service is refactored to the class, for preserving infromation about spring-boot version used.

Let's merge. Thanks! @mmelko


Go error when running dev mode

I recently updated my SST CLI to 0.1.80 from 0.1.2. When running the frontend portion of one of my projects, I receive the following error. I don't see any relevant info in the logs regarding this error, but can provide those too if it would be helpful.
level=ERROR msg="exited with error" err="json: cannot unmarshal number into Go value of type map[string]string"

do you have a primary sst dev terminal up? when it's up can you hit http://localhost:13557/api/env?directory=path/to/frontend and see what comes back?

Thanks for getting back to me @thdxr.
I seem to be having some kind of bootstrap or local cache issues. Running things this morning produced the following console error and log error. It's also odd to me that version 0.1.80 is being shown here when the command line reports 0.1.87 - I only have a local version of SST so I don't think it's picking up a system wide installation from Homebrew or NPM.
Another thing that's strange is my stage malcorn is what things should be running on but the mosaic console shows malcorn2 which is an old test stage I was trying yesterday to see if a fresh stage would work.
My other projects are deploying just fine. Do you have any guidance on what steps I need to take to wipe any cache files or bootstraps. I can't find any related Buckets or Parameters in AWS and the sst folder in Application Support has been previously cleaned in an attempt to clear out any old/corrupted artifacts.
Mosaic Console

Error in sst.log

SST Version

After a series of reboots and clearing some AWS items, it's back up and running! Thanks for your help here.


Huge memory spike for parallel preload

I've debugged curious case of OOM error in our system and found out that there's unexpected, huge memory spike in certain situations with Repo.preload.
Environment

Elixir version (elixir -v): 1.9.4, 1.10.2
Database and version: PostgreSQL 11.7
Ecto version (mix deps): 3.4.3
Database adapter and version (mix deps): ecto_sql 3.4.3, postgrex 0.15.3
Operating system: Linux, macOS

Current behavior
When ALL of the following are true, the 2nd Repo.preload causes memory spike of couple of GB:

preload twice (preload again after it was already preloaded)
the preloads need to have [has_many_assoc_for_schema_a: [belongs_to_assoc_for_schema_b: has_many_assoc_for_schema_a]
there's more than 1 top level assoc preloaded
preloading is executed concurrently (in_parallel: true, which is default)

With this you can observe the spike (~1 GB in the minimal example app I link below, and we see 3-5 GB in our system). With explicit in_parallel: false there's no mem usage at all, and the 2nd preload is basically a no-op like it should be.
I created a minimal project with ecto + ecto_sql, with couple of schemas that mimics our setup, which allows reproducing this problem in consistent way: https://github.com/sickill/ecto-preload-bug (instructions on how to trigger and observe the spike are in the README).
The amount of records for the top-level has-many assoc for schema "a" plays a role here, with a handful of records the spike is there but rather not very noticable. As the amount of records grows the spike seems to grow exponential-ish.
First preload:

All data gets preloaded and you can't even see any mem usage change.
Now, when you try to preload again:

Expected behavior
No significant extra memory usage, like with in_parallel: false case.

I was intrigued by this, since we had an unexplained memory spike on our server a while back. I'm not sure if my message is going to add much, but...

I replicated the steps via the github repo
I notice that the memory is all in the iex process itself

I notice a :erlang.garbage_collect clears it up. This is me running (I don't mean to suggest this makes the problem any less real. Unless you call GC, the memory stays there, and secondly it looks like it really uses all that memory at some point, so in the situation where you get a couple of these requests happening simultaneously it might be that none of them can complete)

The parallel version of twice takes about 10 times as long to run as the twice_not_in_parallel version

~/d/ecto-preload-bug> iex -S mix
Erlang/OTP 22 [erts-10.6.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

Interactive Elixir (1.10.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> for _ <- 1..5, do: :timer.tc(PreloadBug, :once, [])
[{217921, :ok}, {73794, :ok}, {55639, :ok}, {54505, :ok}, {54770, :ok}]
iex(2)> for _ <- 1..5, do: :timer.tc(PreloadBug, :twice, [])
[{939461, :ok}, {969553, :ok}, {583063, :ok}, {820106, :ok}, {588589, :ok}]
iex(3)> for _ <- 1..5, do: :timer.tc(PreloadBug, :twice_not_in_parallel, [])
[{64426, :ok}, {67241, :ok}, {58815, :ok}, {54584, :ok}, {58423, :ok}]
iex(4)>

I did a bit more investigation and recorded some results on a PR to the repo @sickill created
https://github.com/sickill/ecto-preload-bug/pull/1

What is the erlang version you're using? I wonder if this could be related to https://bugs.erlang.org/browse/ERL-1216

I'm using this:
andy@Andrews-MacBook-Pro ~/d/ecto-preload-bug> elixir -v
Erlang/OTP 22 [erts-10.6.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
Elixir 1.10.0 (compiled with Erlang/OTP 22)

Just upgraded to 23, since that issue linked is marked resolved in 23 (I'm installing via brew). And it seems that the issue is still there:
andy@Andrews-MacBook-Pro ~/d/ecto-preload-bug> elixir -v
Erlang/OTP 23 [erts-11.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

Elixir 1.10.3 (compiled with Erlang/OTP 22)

andy@Andrews-MacBook-Pro ~/d/ecto-preload-bug> iex -S mix < mycommand.exs
iex(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> ...(10)> 00:00:00.882 [info]  ###### Start ######
00:00:00.882 [info]  ###### Preloading first time ######
00:00:00.888 [info]  running async with 2 assocs
00:00:00.889 [info]  streams started
00:00:00.907 [info]  returning preload assoc
00:00:00.908 [info]  running sync
00:00:00.909 [info]  running sync
00:00:00.912 [info]  returning preload assoc
00:00:00.912 [info]  done running sync
00:00:00.912 [info]  returning preload assoc
00:00:00.912 [info]  done running sync
00:00:00.913 [info]  returning preload assoc
00:00:00.922 [info]  done running async
00:00:00.922 [info]  ###### Preloading second time ######
00:00:00.922 [info]  running async with 2 assocs
00:00:00.922 [info]  streams started
00:00:00.938 [info]  running sync
00:00:00.938 [info]  running sync
00:00:00.949 [info]  returning preload assoc
00:00:00.951 [info]  returning preload assoc
00:00:00.951 [info]  done running sync
00:00:00.951 [info]  returning preload assoc
00:00:00.951 [info]  done running sync
00:00:00.952 [info]  returning preload assoc
00:00:01.979 [info]  done running async
00:00:01.979 [info]  ###### Done ######
nil
iex(11)> ⏎
andy@Andrews-MacBook-Pro ~/d/ecto-preload-bug>

Thank you for investigating with the different OTP version

Erlang version I used to reproduce it:
Erlang/OTP 22 [erts-10.5.6] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Thank you ! 😍

Great, thanks @josevalim !
Given the investigation I did suggested an issue outside Ecto, I wonder if anyone is looking in the elixir kernel concurrency code to see why the code that was there before performed so badly.


AWS IAM database authentication support

Add support for AWS IAM to Flyway to enable organisations to use this authentication method when connecting databases (eg. Postgres and MySQL), and other AWS resources (eg. S3)

Could you explain how you expect this to work? It may just work as is - You'd configure your JDBC URL to point to a database instance like so:
flyway.url=jdbc:mysql://<RDS_INSTANCE_HOSTNAME>:<RDS_INSTANCE_PORT>
You then need to set the following properties:
flyway.jdbcProperties.verifyServerCertificate=true
flyway.jdbcProperties.useSSL=true

Set your flyway.user to be the database user and flyway.password to be the authentication token:
flyway.password=<AuthToken>
These steps were adapted from this post, so the SSL properties may not be required depending on your set up

Could you explain how you expect this to work? It may just work as is - You'd configure your JDBC URL to point to a database instance like so:
flyway.url=jdbc:mysql://<RDS_INSTANCE_HOSTNAME>:<RDS_INSTANCE_PORT>
You then need to set the following properties:
flyway.jdbcProperties.verifyServerCertificate=true
flyway.jdbcProperties.useSSL=true

Set your flyway.user to be the database user and flyway.password to be the authentication token:
flyway.password=<AuthToken>
These steps were adapted from this post, so the SSL properties may not be required depending on your set up

We will document this instead :)

We will document this instead :)

@DoodleBobBuffPants sorry for bumping an old issue, was this ever documented?

There's documentation here
If you have any questions, feel free to raise a new issue :)

@DoodleBobBuffPants The link no longer works.


Two network requests simultaneously

I have two network requests for A and B, at the end of A, B is being prepared; then AFHTTPRequestSerializerObservedKeyPaths objects are removed, but the B request and need to use the AFHTTPRequestSerializerObservedKeyPaths object, need to use such as observeValueForKeyPath:ofObject in:change:context keyPath. Does anyone have such a problem?Thanks!

For general help, please ask on StackOverflow.


Require 'yaml' library to fix issue in active user survey

The active user survey fails because it hasn't loaded the yaml library.
https://technologyprogramme.atlassian.net/jira/software/projects/GW/boards/251?selectedIssue=GW-1116

part of new_refactor branch


Add datetimeFormat override for displaying value

I've found a use-case where we want the picker to function the same but
display the selected date separately when closed. This allows a final
override for the value displayed in the text input.
Checklist
[x] I have added tests covering my changes
[x] All new and existing tests pass
[x] My changes required the documentation to be updated
  [x] I have updated the documentation accordingly
  [x] I have updated the TypeScript 1.8 type definitions accordingly
  [x] I have updated the TypeScript 2.0+ type definitions accordingly

Hi @andjosh, sorry for the delay. Good structured PR, left you some comments.


[Bug]: 1.3.0 OpenSearch distribution build fails to come up

Describe the bug
It looks as though the 1.3.0 staging Docker image might be failing to come up due to the InitialBootClassLoaderMetaspaceSize VM option used by the PA plugin.
The container logs outputted just showed the following:
Enabling OpenSearch Security Plugin
Killing opensearch process 130
OpenSearch exited with code 143
Performance analyzer exited with code 1

Logging onto the container itself and running the entry point script manually produced the following PA logs (no other logs under the /logs directory):
sh-4.2$ cat performance-analyzer.log
Unrecognized VM option 'InitialBootClassLoaderMetaspaceSize=30720'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

When searching older issues I came across opensearch-project/opensearch-build#504 which had "OpenJDK 64-Bit Server VM warning: Option InitialBootClassLoaderMetaspaceSize was deprecated in version 15.0 and will likely be removed in a future release." in one of the log entries as well which supports the claim of its removal.
To reproduce

Pull 1.3.0 staging docker image: docker pull opensearchstaging/opensearch:1.3.0
Run it: docker run -p 9200:9200 -d -p 9600:9600 -e "discovery.type=single-node" opensearchstaging/opensearch:1.3.0

Expected behavior
Container coming up successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Host / Environment
No response
Additional context
No response
Relevant log output
No response

@saratvemulapalli correct,  and removed in JDK-16 (in scope of https://bugs.openjdk.java.net/browse/JDK-8221173)

This is resolved now thanks @reta.

Just a follow-up here, I don't think it's an opensearch-build issue now but the PA plugin also needs to remove its references to the VM option.
I saw the following two references to it:

build.gradle
CLI script

I believe the error is still coming up in the Docker image because of this

@qreshi Can you create an issue in the PA repo to track?

@peternied Would it be possible to re-open this and move it to the PA repo since its the same issue?

I'd recommend creating fresh issues for each area that needs following up, linking back to this issue seems appropriate.

@qreshi we could add new issue (s) to PA repos (pull requests are out already)


Corrected links to docs in README.md

4 broken links had to be fixed...

Thanks @schwolf! Totally forgot to update those. But could you lead them to the new docs page? eg. https://inline-style-prefixer.js.org/docs/UsageGuides.html


Add chapter on good coding practices in R programming

Focus on reproducibility, not about learning R.
collection of resources:

[ ] https://jmbuhr.de/dataintro/
[ ] https://rstudio.github.io/renv/articles/renv.html
[ ] https://r4ds.hadley.nz/workflow-style

@lnnrtwttkhn it would be nice to have a messy data set, that one can turn into a tidy dataset. do you know a possibility where we can find such messy data? Maybe from one of the lab?


Update Generic Pages “about”

Automatically generated by Netlify CMS

👷 Deploy Preview for tech-works-for-us processing.

Name
Link

🔨 Latest commit
b3d31db6f72d40507d7c45b015350413c539b621

🔍 Latest deploy log
https://app.netlify.com/sites/tech-works-for-us/deploys/6511a67d8c18e9000871715e


Support ESP32S3 IDF 4.4

Hi，Can you support the newest esp32s3？

Hi @Kevincoooool
Which display driver are you planning to use?
It seems that esp-idf API is different between ESP32 and ESP32S3. So even if we support it, I'm not sure existing display drivers would work.

Hi @Kevincoooool
Which display driver are you planning to use?
It seems that esp-idf API is different between ESP32 and ESP32S3. So even if we support it, I'm not sure existing display drivers would work.

Hello, I've seen that the original warehouse of micropython already supports esp32s3. For the API part, just set DMA to auto during SPI initialization. Others are compatible. Can you merge the lvgl part in the master branch of the original warehouse? Thank you

Related discussion on https://github.com/lvgl/lv_binding_micropython/issues/208
Let's continue the discussion there.


Translate text

Say "translate text to be translate to language to be translated in"
For example, "translate how are you to chinese" or "translate hallo welt to english"
Note: English, Spanish, French, German, Italian and Portuguese are supported

Have made the changes @sara-02 :)

Done @sara-02

@hmangukia please fix your conflicts. Otherwise the PR is good to merge

Resolved the conflicts @the-ethan-hunt


Visual Format to Indicate locked in x or y [FEAT]

When the restriction to x (horizontal) or y (vertical) only is selected, it would be slick if the width or height properties could be reduced to visually reflect the type of movement available for the joystick... something like the image below perhaps?

Additionally or alternately, it might be nice to be able to select icons (such as font-awesome fa-arrows, fa-arrows-h, fa-arrows-v) to show the joystick movements as shown below.

Yep, that would be nice.


nostr-lmdb tokio panic

Describe the bug
I'm working on https://gpui.rs , I got a strange issue only happens when using lmdb database. It always panic when config client with database
thread '<unnamed>' panicked at /Users/x/.cargo/git/checkouts/nostr-7fe31184c4acbae8/fdd0d6a/crates/nostr-lmdb/src/store/mod.rs:65:12:
there is no reactor running, must be called from the context of a Tokio 1.x runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at core/src/panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
   0:        0x101e12cb4 - std::backtrace_rs::backtrace::libunwind::trace::h1c3451b342542f10
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:        0x101e12cb4 - std::backtrace_rs::backtrace::trace_unsynchronized::h3743cad8cc2d54de

I'm aldready set tokio runtime via main like this
#[tokio::main]
async fn main() {
...
}

To Reproduce
Repo: https://github.com/reyamir/gpui-app
Build:
cargo run

Expected behavior
nostr-lmdb is not panic
Build environment

Library: nostr-lmdb
Language: Rust
Language version: 1.82
Tag/commit: latest
OS+version: macOS 15

Checking the gpui lib seems they not use tokio. You've set tokio::main but evidently it's not used in
cx.background_executor().spawn(async move { ... })

Only LMDB panic because the RelayPool (and Client) uses async-utility crate which create a tokio context if not exists. I'm going to use it also for nostr-lmdb.
I can't run the gpui apps on QubesOS so I'll let you know when I patched it to test it.

you can install those deps to run gpui on linux https://github.com/longbridgeapp/gpui-component/blob/main/script/install-linux-deps

look like gpui they use smol instead of tokio. I wonder is there performance issue if we use difference async runtime like this?

The issue should be fixed at commit c9ccf750eb1007287308a1bd099ac01135ffe382
I reworked the async-utility library, now shouldn't have performance issues when used outside the tokio context (before was building a Runtime for every spawn function call).

you can install those deps to run gpui on linux https://github.com/longbridgeapp/gpui-component/blob/main/script/install-linux-deps

Thanks. The problem I guess is that I haven't a GPU or that I'm in a VM. I receive this error NoSupportedDeviceFound.

look like gpui they use smol instead of tokio. I wonder is there performance issue if we use difference async runtime like this?

This may be another improvement to do: support multiple async runtime. But not for now (and still not sure), I'll check for the future.


Document modular models / dynamic/static performance models

also document the following (as described by @bqpd):
Right now it's not safe to use the same ConstraintSet in multiple models. (this isn't the only case where it's unsafe; fundamentally this is because ConstraintSet.sub modifies in place instead of returning a new ConstraintSet). This isn't new to the refactor.

The above issues are no longer true.

changed title since our best practices have changed

I think this is closed by #953?

yes, that seems right.


[FEATURE REQUEST] Make connects to SignalGroups more reliable with Properties macro

Despite using the Properties macro I still need .connect_closure("notify::x" for SignalGroups. It would be nice to make this a bit more robust to refactoring. The simplest way would be to add an Obj::PROPERTY_X_NAME constant generated by the Properties macro.
But it could also be more advanced like Obj::foreign_connect_x_notify(signal_group, |x| ...)

see also #1094


File dependencies

I have a situation wherein there is a function
var someFunction(data)
{
//do some processing on data using jQuery and linq.js
return processedData;
}
Then I want to spwan a process
var someProcess=new Parallel(dataToSend);
someProcess.spawn(someFunction)
.then(function(data){
alert(data);
});
I don't understand how to use the require function , I need to use 2 script files namely jquery.js and linq.js in the someFunction. How do I use declare?

Please ask questions like this on stack overflow so as many as possible can benefit from the answers.


GetMD paths problem

[Mon Oct 31 15:03:15.305807 2022] [php7:notice] [pid 10] [client <IP_ADDRESS>:59290] Looking for me.txt in user folder
[Mon Oct 31 15:03:15.326457 2022] [php7:notice] [pid 10] [client <IP_ADDRESS>:59290] User folder has: /einstein/files/welcome.txt

Fixed in the dev branch

I probably re-broke this by fixing https://github.com/pondersource/sciencemesh-php/issues/96

Hm, no, it now shows GetMD {"ref":{"path":"/home/welcome.txt"},"mdKeys":null} so apparently this is now handled correctly.


token-2022: Add interest-bearing extension

Problem
People want interest-bearing tokens, ie. tokens whose value appears to increase at some rate.  This is all a trick, since the amount of tokens never actually changes, only the amount shown on the UI.
Solution
Add a new extension to provide support for interest-bearing tokens.  A few notes:

interest is always continuously compounding, which makes the math much nicer
since the interest rate can be updated, we need to make sure to take into account how much has accrued up until the point of change
the amount <-> ui amount conversion has possibilities of underflow since it's using native floats
the end-to-end test for the conversion is a bit gross.  It does a CPI since the return data isn't exposed through transaction simulations (yet!)

The rest of it should be straightforward!  I'm not 100% sold on using an i16 for the interest rate, and can be convinced otherwise.

For the integration test, I'm just realizing that we don't have simulate_transaction on BanksClient :sweat:

For the integration test, I'm just realizing that we don't have simulate_transaction on BanksClient 😓

Ah nuts, I didn't think of this need when I added the simulation option on send-tx. 😞


Add @discardableResult to async addDocument

Fix https://github.com/firebase/firebase-ios-sdk/issues/10640
I would like to propose a Pull Request to add the @discardableResult attribute to the async addDocument method in CollectionReference. This change would be consistent with the similar change made in PR #10661.

@peterfriese Thank you. I have already signed the CLA.
https://github.com/firebase/firebase-ios-sdk/pull/11151/checks?check_run_id=12882758677


EXM behaves incorrectly/crashes when transparent sync is used and EXM root is serialized

Reproducing scenario:

Install Sitecore 8.2 + EXM 3.4 (configure local MTA for example)
Create few messages in the EXM root.
Install Unicorn (I used Nuget package and publishing from VS) and configure Unicorn project to include EXM root: e.g.
Update  enableTransparentSync to "true"
Open EXM SPEAK app and create new message from One-Column or Two-column message template edit that message.

Problems:

"Message" tab in SPEAK app is never accessible, SPEAK app hangs
Sometimes W3wp process crashes

Note: I don't see anything in Sitecore log files.
Note 2: in case enableTransparentSync="false" EXM works as expected.

I would guess that EXM may be using Fast Query. Transparent Sync does not support Fast Query.
For applications that require Fast Query, you must disable Transparent Sync.

Note that #196 adds a log warning when fast: is used and transparent sync is on.


Create give-your-element-an-API.markdown

New Polycast markdown here @gauntface

Hey @fantompower - please go sign the CLA, I'd really love to integrate these, but I can't until the GoogleBot tells me so.  Thanks!

Hi Pete, it's Gabe!


Unexpected behaviour when converting points

Here https://github.com/tyrasd/geojsontoosm/blob/master/index.js#L106 points are deduplicated by using a hash on the coordinates to store them. This makes sense to deduplicate way nodes on output, but leads to only one point being processed if you happen to have multiple GeoJSON points with the same coordinates on input.
Probably it would make sense to treat points with attributes differently, but in any case the behaviour should be documented.

I just got stung by this doing an address import, which unfortunately we've only picked up on after importing. I'll work on a PR to fix this.


[vcpkg] bootstrap-vcpkg.bat fails

I'm not sure this is still an issue that needs solving? If someone still has this issue, please ping me and open a new issue.
Originally posted by @strega-nil in https://github.com/microsoft/vcpkg/issues/7903#issuecomment-597371500
I'm having this issue and new to github, please help me get rid of this error

Can you please provide more details?

@JackBoosY when i bootstrap it, the command prompt screen says the following:

and if u dont mind, as im new to github, im not clear how it is used, and has some confusions, so dont mind if i make any mistakes unknowingly in your profile

Which version of Visual Studio did you install? Did you install the English Language Package? And please provide your Windows SDK version.
Thanks.

visual studio code version :1.51.1
english language(uk) package for visual studio code has not been installed  earlier, but just now have installed it
im not sure about the sdk version

@deva22github Sorry, did you use Windows 10? Please use powershell instead of cmd and try again.
Thanks.

ok sure, thank you so much

git : fatal: destination path 'vcpkg' already exists and is not an empty directory.
At line:1 char:1

git clone https://github.com/Microsoft/vcpkg.git

  + CategoryInfo          : NotSpecified: (fatal: destinat...mpty directory.:String) [], RemoteException
  + FullyQualifiedErrorId : NativeCommandError

when using powershell, the above one was displayed @JackBoosY

@JackBoosY using powershell also gives the same message

@strega-nil can you please help me solve this issue?

@deva22github I've created this GNU-makefile to build vcpkg.  Maybe it will work for you?

@gvanem Sorry but what should i do with this gnu-file.. i dont get it correctly.. please give my steps

@gvanem sorry, the first step in the file even didnot work for me

@deva22github What step? And do you even have GNUmake.exe or make.exe. You should do a make -v and you'll see something like:
GNU Make 4.3.90
Copyright (C) 1988-2020 Free Software Foundation, Inc.
..

sorry, the first step of the file even does'nt work for me

i have gnumake.exe

i have gnumake.exe

And the other POSIX tools like date, sh, sed etc? I recommend you install Cygwin.
Cygwin has a package-manager/installer (setup.exe) that is far outperforms VCPKG.

can you please tell me what should be done if i get this?

i have installed sdk, c++ extensions, english language package

@deva22github please run:
> "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json

and post the results.

@strega-nil  it says, "The system cannot find the path specified."

@deva22github then could you run dir "C:\Program Files (x86)"?

@strega-nil

It looks like you only have Visual Studio 8 aka 2005?
vcpkg supports later versions starting with Visual Studio 2015.3, 2017 and 2019.
Visual Studio 2017 and 2019 community versions are free, just go here https://visualstudio.microsoft.com/ download and install.

1. Select the Community download https://download.visualstudio.microsoft.com/download/pr/9d2147aa-7b01-4336-b665-8fe07735e5ee/2706b53b5d7d6e8d12937b637648481eb45561a06f8fabef247350ed5233befa/vs_Community.exe
2. Run the downloaded vs_Community.exe
3. Be sure to install the Desktop Development with C++

4. the windows SDK by selecting Individual Components then scroll down

5. and the got to Language packs the English language pack.

@StarGate-One  i have visual studio code and not visual studio

@StarGate-One i have visual studio code and not visual studio

That is why it is not working - Visual Studio Code and Visual Studio are not the same.
vcpkg requirements https://github.com/microsoft/vcpkg#quick-start-windows

If you do not want to use Visual Studio, you must install some type of C/C++ compiler/linker for vcpkg to work, Cygwin and MSys2 have the g/g++ compiler/linker, but you will need to set Visual Studio Code up to use one of them instead.

@deva22github VS Code does not contain something to actually build the code; you'll need to install VS.

@StarGate-One  then i cannot use vs code for c++, where i have installed c++ extensions in visual code market place??

@StarGate-One @strega-nil thank you so much for explaining me about this <3

@deva22github if you are on Windows, install Visual Studio 2019 Community with the basics, like I posted above, then you can use both VS Code and vcpkg.
Just because you have Visual Studio installed, does not mean you must use the Visual Studio IDE to develop/code with. You can still use VS Code to write your code and then VS Code will go out behind the scenes and use Visual Studio to compile/link your project/program.

@StarGate-One
thanks a lot!, now I understood.


Improve generated build processes

Re-adds html5shiv to the list of Bower dependencies (fixes #90)
Fixes Grunt watch so that it only builds what is needed, depending on
what has been changed
Updates the copy task to include images, include HTML files in
subfolders, exclude HTML files from dependencies, include html5shiv
Adds copy to the css and js task aliases so that the changes get
copied to dist after they're run.

:fire:


Lazy Loading Issue

Hi, I am trying to follow this guide for implementing Server Side Rendering and I keep encountering an issue on using your module. From issues discussed elsewhere, its probably because your module is lazyLoaded... Any suggestions?

Hi @yashsriv, can you provide more information about the problem? If you have any specific error message or code sample (a repo on github maybe) it would be easier to help.

@yashsriv, library is now transpile to Javascript. Update to 1.3.0 and follow the breaking changes steps to include marked.js file to your application. Codelyzer should no longer be an issue.

Closing for inactivity, feel free to reopen if you can provide more information.


Error when creating book (missing metadata.json)

I get the following error when running the create command.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/syncabook/create.py", line 43, in create_ebook
✔ Using existing SMIL files from /books/mybook/smil.
❗ File metadata.json is not found. Please provide metadata
Title:     with open(metadatafile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/books/mybook/metadata.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/syncabook", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/syncabook/__main__.py", line 164, in main
    create_ebook(
  File "/usr/local/lib/python3.9/site-packages/syncabook/create.py", line 48, in create_ebook
    metadata['title'] = input('Title: ')
EOFError: EOF when reading a line

@seannymurrs, If you don't prepare metadata.json before creating the ebook, syncabook will ask you about the metadata (author, title, etc) interactively. It appears you have stdin set to something other than terminal? If so, try creating metadata.json beforehand. Example:
https://github.com/r4victor/syncabook/blob/master/tests/resources/civil_disobedience/metadata.json


Make node refcount changes atomic

This should ensure that in a multithreaded environment, only the last decrement will enter the delete block

both clang and gcc support __sync_fetch_and_add()

both clang and gcc support __sync_fetch_and_add()

It's really just the Windows specificity I needed there - how does the below sound?
if defined (_WIN32)
#include <winnt.h>
#define ngli_atomic_add(ptr, num) InterlockedExchangeAdd ((ptr), (num))
#else
#include <stdatomic.h>
#define ngli_atomic_add(ptr, num) __sync_fetch_and_add ((ptr), (num))
#endif

Ideally I wanted to use _Atomic here, but MSVC support is still experimental

Sounds good, I added that comment

I agree that this doesn't protect against all forms of race conditions (anything with data access certainly has to be protected externally), but I still think there is value in at least protecting reference count updates akin to how std::shared_ptr does it.
I'm definitely open to the more general discussion of what warranties node.gl should or shouldn't provide though.

We could use #include <stdatomic.h>
https://en.cppreference.com/w/c/language/atomic

We could use #include <stdatomic.h> https://en.cppreference.com/w/c/language/atomic It is standard now and more easy to manage.
Because of a late support of Microsoft for it
https://devblogs.microsoft.com/cppblog/c11-atomics-in-visual-studio-2022-version-17-5-preview-2/
This is not even supported by ISO C17 (2018) Standard (/std:c17)
Only a special flag enable to support it '/experimental:c11atomics'

We can stick to the old api

I added another commit moving the function to utils, and renaming to clarify order of operations and operand type. Now also using this in ycbcr_sampler_vk so all the refcount variables I found will be updated atomically.

Updated commit text to better reflect guidelines, and added to the changelog (including the previous rtt unit test PR update)


Fleck.ConnectionNotAvailableException issue

I got the exception while my application is working. And the exception caused the crash inside the websocket application because of the ConnectionNotAvailableException.
Unhandled Exception: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As aresult, the unobserved exception was rethrown by the finalizer thread. ---> Fleck.ConnectionNotAvailableException: Data sent while closing or after close. Ignoring.
   --- End of inner exception stack trace ---

Look up the msdn, it said the unhandled exception could be thrown as an nested aggregate exceptions . I found the code related to the ConnectionNotAvailableException in line 91 of WebSocketConnection.cs file.
taskForException.SetException(new ConnectionNotAvailableException(errorMessage));
I think this line should be enclosing in the try.. catch.. block, handling the unexpected exception and observe any of the inner exception.
try
{
  taskForException.SetException(new ConnectionNotAvailableException(errorMessage));
}
catch (AggregateException ae)
{
  foreach (var e in ae.InnerExceptions)
  {
	  // Handle the custom exception.
	  if (e is ConnectionNotAvailableException)
	  {
		  FleckLog.Error(e.Message);
	  }
	  // Rethrow any other exception.
	  else
	  {
		  throw;
	  }
  }
}

I'm having the same kind of problem with this particular line

Type:   System.AggregateException
Message:   A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.

Exception: System.Runtime.Serialization.SerializationException
Message: Type 'Fleck.ConnectionNotAvailableException' in Assembly 'Fleck, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
StackTrace:    at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)
at System.AppDomain.Serialize(Object o)
at System.AppDomain.MarshalObject(Object o)

Every time this happens, the web application that runs on IIS 7 restarts.
I'm using the compiled version in my app, so I'll try to recompile it with your try catch to see if it solve my problem.

This happens when you call IWebSocketConnection.Send and it results with an exception, but your application is not aware about the exception.
Please see this stackoverflow question for further details.


[SPARK-41290][SQL] Support GENERATED ALWAYS AS expressions for columns in create/replace table statements

What changes were proposed in this pull request?
Enables creating generated columns in CREATE/REPLACE TABLE statements by specifying a generation expression for a column with GENERATED ALWAYS AS expr.
For example the following will be supported:
CREATE TABLE default.example (
    time TIMESTAMP,
    date DATE GENERATED ALWAYS AS (CAST(time AS DATE))
)

To be more specific this PR

Adds parser support for GENERATED ALWAYS AS expr in create/replace table statements. Generation expressions are temporarily stored in the field's metadata, and then are parsed/verified in DataSourceV2Strategy and used to instantiate v2 Column.
Adds TableCatalog::capabilities() and TableCatalogCapability.SUPPORTS_CREATE_TABLE_WITH_GENERATED_COLUMNS This will be used to determine whether to allow specifying generation expressions or whether to throw an exception.

Why are the changes needed?
GENERATED ALWAYS AS is SQL standard. These changes will allow defining generated columns in create/replace table statements in Spark SQL.

Does this PR introduce any user-facing change?
Using GENERATED ALWAYS AS expr in CREATE/REPLACE table statements will no longer throw a parsing error. When used with a supporting table catalog the query should progress, when used with a nonsupporting catalog there will be an analysis exception.
Previous behavior:
spark-sql> CREATE TABLE default.example (
         >     time TIMESTAMP,
         >     date DATE GENERATED ALWAYS AS (CAST(time AS DATE))
         > )
         > ;
Error in query:
Syntax error at or near 'GENERATED'(line 3, pos 14)

== SQL ==
CREATE TABLE default.example (
    time TIMESTAMP,
    date DATE GENERATED ALWAYS AS (CAST(time AS DATE))
--------------^^^
)

New behavior:
AnalysisException: [UNSUPPORTED_FEATURE.TABLE_OPERATION] The feature is not supported: Table `my_tab` does not
support creating generated columns with GENERATED ALWAYS AS expressions. Please check the current catalog and
namespace to make sure the qualified table name is expected, and also check the catalog implementation which is
configured by "spark.sql.catalog".

How was this patch tested?
Adds unit tests

Can one of the admins verify this patch?

Does the SQL standard say anything about the restrictions of the generate expression? Can we allow GENERATED AS rand()? I think at least catalyst should have a rule to check the expression and make sure the data type is the same as column type.

Does the SQL standard say anything about the restrictions of the generate expression? Can we allow GENERATED AS rand()? I think at least catalyst should have a rule to check the expression and make sure the data type is the same as column type.

Checking for data type make sense.
Other restrictions we can enforce

no UDFs
only deterministic functions
no subqueries
no window functions
no aggregate functions
no generator functions
interdependence with other generated columns

This feature is very useful for us ,will it be released in 3.4？

when I add data to the table, do I need to explicitly give values to the GENERATED ALWAYS column or is it automatically assigned?

@dongjoon-hyun @huaxingao @sunchao I'd like to include this DS v2 API in 3.4 as this PR has been open for 3 months and this feature is very important to some downstream data sources and users. Are you OK with it? I think this PR is safe to backport as it only adds the API but does not implement it in builtin data sources.

+1 for your backporting decision, @cloud-fan .

Also cc @viirya , @RussellSpitzer , too.

Are we going to document this new SQL syntax somewhere, @allisonport-db and @cloud-fan ?

Looks good for backport.

Are we going to document this new SQL syntax somewhere

This is a long-standing problem. There are quite some features that only have DS v2 API but no implementation, e.g. UPDATE, MERGE, DELETE. I think we should make the testing in-memory catalog/table a builtin connector, so that we can document these SQL syntaxes with valid examples. cc @huaxingao

thanks, merging to master/3.4!


Trying to import json gets a parse error

I am trying to import a collection into postman. This collection is a backup of an existing collection by doing "Download all data".
When trying to import the backup file, it fails in parsing the JSON!.

I verfied the json in jsonlint.com and it is valid.
OS - Ubuntu 14.04 LTS
Chrome - Version 42.0.2311.90 (64-bit)
Downloaded the app from chrome store.

The backup file is meant for import in the packaged app (https://chrome.google.com/webstore/detail/postman-rest-client-packa/fhbjgbiflinjbdggehcddcbncdddomop?hl=en), not the legacy Postman application.


Check if we still need to evaluate non-critical error for the initial CRMP sending

Problem
<what's wrong or missing, please include any applicable:

expected behavior
actual behavior
steps to reproduce
system configuration
screenshots, images, logs, etc.

Proposed Solution
<suggested fix, suggested enhancement>

@yufengwangca what is this covering?

There is non-critical error defined for CRMP in CHIP.


Get rid of deprecated "documented_elsewhere" annotation

The documented_elsewhere annotation is removed in
code-annotations>=0.9.0.

Thanks for the pull request, @regisb! I've created OSPR-5013 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.
Feel free to add as much of the following information to the ticket:

supporting documentation
Open edX discussion forum threads
timeline information ("this must be merged by XX date", and why that is)
partner information ("this is a course on edx.org")
any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.
Please let us know once your PR is ready for our review and all tests are green.


Set up MUI

Import MUI, maybe create a couple components

Still on the fence on this one, maybe we can have a branch for MUI specifically in case someone doesn't want to use MUI?


Too many plots requested

Hello,
If we request more than 100 plots, the GUI plots some overflows

In the terminal I receive: Too many plots requested: 100

@thowell shouldn't it be easy to break from some loop somewhere at mjMAXLINE ?

This issue should be fixed.


Add macOS 15 (Sequoia) to _arch-n-opsys script

On macOS 15 Sequoia Developer Beta, the output of uname -r is 24.0.0.

Description
On macOS 15 Sequoia Developer Beta, the output of uname -r is 24.0.0. Add an extra case statement to support this version.
Related Issue
Fixes #315.
Motivation and Context
Title and #315 are self-descriptive.
How Has This Been Tested?
I modified /usr/local/smlnj/bin/.arch-n-opsys in my local install with this change on a macOS 15 machine.

will be included in 110.99.6 release


Request for modification related to absolute and relative paths in resolve.sync statement

Hello,
I hope this message finds you well. I'm reaching out to address a request regarding your dependency.
When using JS modules, it's often possible to read modules through aliases, absolute paths, or relative paths. Therefore, I'd like to propose the following modifications to the code:

existing syntax(index.js:80)try {
    resolvedPath = resolve.sync(actualSource, {
        basedir: path.dirname(file),
        extensions,
    });
}
catch (err) {
    if (viteConfig.publicDir !== false) {
        const publicDir = viteConfig.publicDir ?? "public";
        const publicActualSource = path.join(path.resolve(publicDir), actualSource);
        resolvedPath = resolve.sync(publicActualSource, {
            basedir: path.dirname(file),
            extensions,
        });
    }
    else {
        throw new Error("source cannot be resolved in actual path nor in 'Public' path.");
    }
}

Modification Syntax(index.js:80)try {
    resolvedPath = resolve.sync(actualSource, {                 // case 1
        basedir: path.dirname(file),
        extensions,
    });
} catch (err1) {
    try {
        resolvedPath = resolve.sync(`./${actualSource}`, {     // case 2 > sample: ./test1.js, ./test2Index.js, ...
            basedir: path.dirname(file),
            extensions,
        });
    } catch (err2) {
        try {
            resolvedPath = resolve.sync(`./${actualSource}/`, {     // case 3 > sample: ./test1/index.js, ./test2/index.js, ...
                basedir: path.dirname(file),
                extensions,
            });
        } catch (err3) {
            if (viteConfig.publicDir !== false) {                   // case 4 > public dir
                const publicDir = viteConfig.publicDir ?? "public";
                const publicActualSource = path.join(
                    path.resolve(publicDir),
                    actualSource
                );
                resolvedPath = resolve.sync(publicActualSource, {
                    basedir: path.dirname(file),
                    extensions,
                });
            } else {
                throw new Error(
                    "source cannot be resolved in actual path nor in 'Public' path."
                );
            }
        }
    }
}

log("resolved to:", resolvedPath);
return { found: true, path: resolvedPath };
} catch (err) {
logError(err.message);
return { found: false };
}

Thank you for your consideration.
Best regards.

did case 2 and case 3 not work for you? The resolve.sync() implements the node require.resolve() algorithm, which takes care of the case 2 and case 3 you mentioned. If you found a bug in their implementation, please create an issue on their GitHub repo.


Weirdly, if you try to instantiate the object a second time, it works the second time around. Hence, users on PinePhone and possibly other SOCs can use the following as a hotfix, until the problem is diagnosed.
https://github.com/OpenJarbas/HiveMind-voice-sat/compare/master...ChanceNCounter:pinephone-pa-kludge
NOTE TO READERS: The file may have been worked on since this issue was posted. You only care about my additions, not my deletions, when you look at that diff.

no longer applies, if needed reopen against ovos-dinkum-listener
wth mic plugins this will likely be a simple plugiin change if it happens again :)


replace-megaparsec-<IP_ADDRESS> testsuite test-textStub crashed ghc-9.4.3

This may be a ghc bug:
    test-textStub: internal error: Oops!  Entered absent arg Arg: $dOrd
    Type: Ord e
    In module `Replace.Megaparsec'
        (GHC version 9.4.3 for x86_64_unknown_linux)
        Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

Thanks for the bug report! Will investigate.

GHC v9.4.3 is the first version of GHC to include text v2.0.1. https://downloads.haskell.org/~ghc/9.4.3/docs/users_guide/9.4.3-notes.html

I upgraded GHC from v9.4.3 to v9.4.4 and the error went away and the whole test suite passed. So I guess it was some GHC problem which was fixed in v9.4.4.
Maybe this one https://gitlab.haskell.org/ghc/ghc/-/issues/22475 from the change log https://downloads.haskell.org/~ghc/9.4.4/docs/users_guide/9.4.4-notes.html


Appending to Cassandra collections

There should be a way to add / remove individual items from C* collections when invoking saveToCassandra.

Migrated to JIRA:
https://datastax-oss.atlassian.net/browse/SPARKC-34


Thread screen jumping around on android

A user reported that large threads have a habit of jumping around on them (see https://bsky.app/profile/trisalvagni.bsky.social/post/3kkehebyx7e2g)
It's possible that this is a bug in how the scroll position is maintained on load.

I had this at the bottom of a very long thread on iOS too, I don't think it's Android-specific. I'll try and find the thread and replicate it

Not sure if this is the same bug as what the other person was sharing, but this is the thread: https://bsky.app/profile/mozzius.dev/post/3kjqgddalf22e
https://github.com/bluesky-social/social-app/assets/10959775/4193e68c-840e-431a-8a0a-d2e50732e66d

We've fixed / worked around some of these cases.
Here's the latest on known jumps by type of post.
[OK] Timeline -> Text
[OK] Timeline -> QT of Text
[OK] Timeline -> Link
[OK] Timeline -> Image
[OK] Timeline -> QT of QT of Text
[JUMP] Timeline -> QT of Link
[JUMP] Timeline -> QT of Image
[OK] Timeline -> QT of QT of QT of Text
[OK] Timeline -> QT of QT of Link
[JUMP] Timeline -> QT of QT of Image
[JUMP] Timeline -> YouTube
[JUMP] Timeline -> QT of YouTube
[OK] Timeline -> QT of QT of YouTube

Other known issues:

Posts with no likes/RTs jump

When navigated from timeline (but we have the metrics, so should be fixable on front-end)
When navigated via QT (we don't have the metrics here, might need backend help)

Some unexplained problems:

Why does this post jump
Why is QT of QT of Link OK but QT of QT of Image jumps (aren't both embeds)
Why doesn't this post jump on native despite YouTube above?

I'm closing this issue as we've resolved most of the related issues (on main — pending the release). There's still more to do for quote posts, but I've opened https://github.com/bluesky-social/social-app/issues/2946 to track that.
Thanks everyone!


x1240 client—As ARA (Hon Man) I want to select an LP number (dropdown list - up to LP20) on the cytassist operation page, to help indentify LP numbers in the the request and will be needed for x1206 for 8 strip tube printing later on

Cytassist operation to have a dropdown list (LP1-LP20).
One number per labware.

@khelwood is it possible to get this information on the Cytassist view? sorry I realise its not on the story

@khelwood is it possible to get this information on the Cytassist view? sorry I realise its not on the story

@KatyTudor It already is in the cytassist view on UAT.

@khelwood sorry so it is, clearly wasn't looking properly this morning, sorry


Hide extra options when "Add Image"

See screenshot here: https://i.imgur.com/rFtmNOK.png
How can remove the "Description" pane?

1/ You should not, it's the alt attribute of image
2/ You can't. You can with CSS or something like that, but not via configuration


JSON: Add Object.from_json(any : JSON::Any)

If I already have a JSON::Any object from a prior JSON.parse(), I would like to use that JSON::Any to initialize any JSON.mapping() class or struct. Currently only accepts String or IO.
Use case would be if I need to inspect a JSON::Any object to determine what JSON.mapping() object I want to instantiate.
I made some partial progress here but got stuck in a chicken/egg scenario with regard to macro code generation.

https://github.com/crystal-lang/crystal/issues/3743

Following up in #3743 with example case for using JSON::Any.


Don't assume 200 responses are success responses for sms transport

From the bit of testing we have done, it seems that error responses still use 200 as a response code. We will need to parse the content of the response to determine whether the response is a success or error response.

Ready for review.

Left one comment, but otherwise looks good.

Ready for re-review.

:+1:


Enhancing UI of User Login Page

Description
I want to make some enhancements to the USER LOGIN page
Solutions Proposed

Change the colour of the login button to white
Removing redundant labels "Email" and "Password".
Improving hover effect on Forgot Password.
Add colour and underline to Register here.

Screenshots
Before

After

Additional Context
Please assign me this task under GSSoC'23.
Checklist

[x]  I have checked the existing issues
[x]  I have read the Contributing Guidelines
[x]  I would like to be assigned this task.
[x]  I am a GSSoC'23 contributor

Hey, tum toggle pr work kr rhe the n?

Nahi mai nahi kar raha tha @anmode

okk


feat: add yaml linting and solutions validation

closes #287
add workflows:

linter.yaml for YAML and Bash (future use)
validate-solutions.yaml for rendering and validating packages under solutions/

remove workflows:

guardrails-validation.yaml, same functionality included in validate-solutions.yaml
landing-zone-validation.yaml, same functionality included in validate-solutions.yaml

fix YAML lint errors throughout the repo, most notably:

no empty lines, but require one for last line in file
no trailing spaces
consistent indentations, including comments

note: indentation diffs don't show up properly in the PR for solutions/project/hub-env/fortigate/fortigate-ap-primary.yaml and
solutions/project/hub-env/fortigate/fortigate-ap-secondary.yaml, might be easier to see in VSCode.

reviewing over next 12h

@alaincormier-ssc are there any other changes coming or are we good to merge?

@alaincormier-ssc are there any other changes coming or are we good to merge?

unless more comments are on the way, I don't have any more changes to push.


--max-height

[x] I have read through the manual page (man fzf)
[o] I have the latest version of fzf
[x] I have searched through the existing issues
[x] I have searched the source-code :)

Info

OS

[x ] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x ] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
I think we're missing a --max-height option.  It's nice to not clear the screen but not wipe out everything on it, while having the list be only the size of the input items if they're short.
For example, you send in 5 items. fzf shows only 5 at the bottom of the screen, but if you send it 200 items, --maxheight='50%' prevents it from gobbling up all your recent commands.

See https://github.com/junegunn/fzf/commit/22cbd9fa58512ffdcc975bab37a55467d5e10968
seq 1 | fzf --height ~50%
seq 10 | fzf --height ~50%
seq 100 | fzf --height ~50%
seq 1000 | fzf --height ~50%


Update Worker subdomain DNS record instructions

Updates the "Subdomains must have a DNS Record" instructions to match the instructions found on the forum here. If this is incorrect, feel free to close. I was unable to get a Worker route working using the AAAA record instructions.

@dhruska I was able to get a worker route up and working with the IPv6 address specified. Closing the PR without merging, please let us know if it still doesn't work for you.


chore: update contracts addresses

This PR updates the addresses for the following contracts, for both stage and prod:

AlignedServiceManagerImplementation
BatcherPaymentServiceImplementation

Should we also update the docs contract addresses?


distinguish different iframe on one page on Browser

I have a iframe on the top page and both of them have debug, how show I namespace them?
I use debug via browserify-as-a-service build, version is 3.1.*.
// top
localStorage.setItem('debug','both:*');
var top=debug('both:top');
// iframe
localStorage.setItem('debug','both:*');
var ifr=debug('both:iframe');
var a=debug('both:a');
var b=debug('both:b')

How should I display debug one of top and iframe ,or both of them? Or disable both of them when bulid on line?
localStorage.removeItem('debug') works weird. It doesn't display at once if I made a change. Is there any document for the principle of debug?

I'm not sure what you're asking - could you elaborate a bit?


OpenMMIntegrator not storing snapshot at t=0.0

This is not true - the snapshot is stored, there's just no logging output.


graph conv net ontop of Faster RCNN in mmdetection

Could you suggest where I can implement a graph convolutional network? I would like to take the features from Faster R-CNN and pass them through a graph conv net. I'm unsure if I can do this in a new class (new ROI Head) or if in mm-lab there is some functions available elsewhere for this. I'm also unsure how the computational graph works in mmdetection: if we take the features from Faster R-CNN and pass it through another net, is this other net still able to be updated in back prop?
Thanks for your help
James

Hello @hhaAndroid, do you have any thoughts on this?
Thank you!


The live rendering will not work if NibDesignable is installed by CocoaPods

XCode will says warning: IB Designables: Ignoring user defined runtime attribute for key.
I founded that before I get crazy, please add it to README.

@WhaleWatching
What is your setup?
Xcode 6/7?

XCode 6

Can you share your project?
I just tried using NibDesignable via CocoaPods in a new project and it works.
I had to add @IBDesignable on my custom class as well like shown below..
import UIKit
import NibDesignable

@IBDesignable
class TestView: NibDesignable {

}

Maybe I didn't add the @IBDesignable, it's ok in put NibDesignable.swift to my project way without the @IBDesignable

Sorry this mistake is mine, and the File's Owner thing should be highlighted, for starter, it cases uncaughtable exc_bad_access code=2 error...

It is already there in the README.md
https://github.com/mbogh/NibDesignable#usage

I'm closing this issue since it has been 26 days since last activity.


Tune query optimizer rules at server level

My Environment

ArangoDB Version:        3.7.3
Storage Engine:             RocksDB
Deployment Mode:       Single Server
Deployment Strategy:   systemd
Infrastructure:               own
Operating System:        Ubuntu 18.04.5 LTS
Total RAM in your machine:        32Gb.
Disks in use:        HDD
Used Package:            Debian or Ubuntu .deb

This is just a question
Is it possible to tune (disable or force) query optimization rules server-wide, for ex. in arangod.conf ? This would be very useful when multiple client libraries, shell users… are accessing the same server.
Context: we're having issues with the new splice-subqueries rule that led to a performance drop between 3.4 and 3.7, and we'd like to easily be able to run test sets with and without this optimizer rule − another ticket will follow about this.
Thank you for any advice, or if you plan to integrate this some day.
Greetings,
Mathias

In 3.7 there is the --query.optimizer-rules startup option:
https://github.com/arangodb/arangodb/blob/3.7/CHANGELOG#L2101-L2111
This can also be used via arangod.conf.

Great, thank you so much, I totally missed that !


Corrected spelling and made the text more comprehensible

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

The diff is misleading: LGTM. Fixes bad head matter in the current version.

Thanks for making this fix @Sebarbossus, and thank you @lynxlynxlynx for reviewing 👍 👍


Update docstrings and type hint annotations in NEI class

This PR follows up on #19 by improving the NEI class, including

Docstrings for most of the class methods and attributes
Type hint annotations for many of the methods and attributes (where relevant)

I'll probably increase test coverage for NEI and make some other minor improvements here and there too.

Hello @namurphy! Thanks for submitting the PR.

In the file nei/classes/nei.py, following are the PEP8 issues :

Line 91:18: E251 unexpected spaces around keyword / parameter equals
Line 91:20: E251 unexpected spaces around keyword / parameter equals
Line 92:20: E251 unexpected spaces around keyword / parameter equals
Line 92:22: E251 unexpected spaces around keyword / parameter equals
Line 185:80: E501 line too long (88 > 79 characters)
Line 186:80: E501 line too long (90 > 79 characters)
Line 328:80: E501 line too long (115 > 79 characters)
Line 398:20: E251 unexpected spaces around keyword / parameter equals
Line 398:22: E251 unexpected spaces around keyword / parameter equals
Line 416:80: E501 line too long (85 > 79 characters)
Line 553:39: E225 missing whitespace around operator
Line 809:80: E501 line too long (82 > 79 characters)
Line 853:80: E501 line too long (89 > 79 characters)
Line 904:80: E501 line too long (84 > 79 characters)
Line 908:80: E501 line too long (86 > 79 characters)


KAFKA-14162: HoistField SMT should not return an immutable map for schemaless key/value

https://issues.apache.org/jira/browse/KAFKA-14162
The HoistField SMT currently returns an immutable map for schemaless keys and values - https://github.com/apache/kafka/blob/22007fba7c7346c5416f4db4e104434fdab265ee/connect/transforms/src/main/java/org/apache/kafka/connect/transforms/HoistField.java#L62
This can cause failures in connectors if they attempt to modify the SourceRecord's key or value since Kafka Connect doesn't document that these keys/values are immutable. Furthermore, no other SMT does this.
An example of a connector that would fail when schemaless values are used with this SMT is Microsoft's Cosmos DB Sink Connector - https://github.com/microsoft/kafka-connect-cosmosdb/blob/368566367a1dcbf9a91213067f1b9219a530bb16/src/main/java/com/azure/cosmos/kafka/connect/sink/CosmosDBSinkTask.java#L123-L130

@C0urante another small PR for you to review whenever you get a chance? Thanks!

Thanks @yashmayya . I had a minor comment.

Thanks. LGTM

Thanks for the review Chris!

we already strongly advise against mutating record with SMTs (see KAFKA-10720 for detail), since that does have the potential to break things.

Interesting, thanks for pointing this out - I wasn't aware of this.

One last remark--there are actually a couple of cases where the MaskField transform introduces immutability by adding Collections.emptyList() and Collections.emptyMap() to record keys/values

I feel like these are far less likely to be mutated by connectors since they aren't the top level value but I've gone ahead and made the minimal changes required in this PR itself. Could you please take another look?


Support Pydantic V2

Hi,
We are having issues using superannotate together with our internal tooling because of a different Pydantic version.  Would it be possible to support pydantic V2?
According to the migration guide it is possible to support the new version by only changing the import statements: https://docs.pydantic.dev/latest/migration/#continue-using-pydantic-v1-features
They support this by adding the pydantic.v1 module which contains the api from version 1.

Hi, thank you for your feedback, we plan to migrate to Pydantic V2 in the coming releases

Dependency restriction updated in the v4.4.16
https://pypi.org/project/superannotate/4.4.16/

Thank you for solving the issue so promptly!


Make as many non-executable demos executable as possible

Currently, several demos are not executed when the website is deployed, for a couple of reasons:

Execution time: qgrnn, qonn, quantum_neural_net

Requires access to hardware/external services or APIs: pytorch_noise, quantum_volume

Tricky to install dependency on CircleCI: qsim_beyond_classical

We should attempt to make as many executable as possible, as we will otherwise be unaware if they no longer work with the latest PL version. Of the above, it is likely that pytorch_noise and quantum_neural_net no longer work.
For the ones with currently a slow execution time, perhaps porting them to use backpropagation (rather than parameter-shift) will be beneficial, and allow them to be executable.
Note: for quantum_neural_net, it should be updated to use strawberryfields.tf and the CVQNN layers (rather than hand-coding the layers manually)
Todo:

[ ] Check if pytorch_noise still works
[ ] Check if quantum_neural_net still works
[ ] Install qsim on CircleCI
[ ] See if the slow demos can be made faster using backprop etc.

These are the three demos that we can currently try to make executable:

function_fitting_qsp.py
learning2learn.py (pending of a bug fix)
qnspsa.py


Get thumbnail information along with playlist information.

I am using the following ode to get the playlist information along with the thumbnail information but it does not return the thumbnail information. What am I missing?
Also how can I return a small thumbnail instead of the maximum size thumbnail that is returned by default?
var url='https://www.youtube.com/playlist?list=PLEFA9E9D96CB7F807';
var options = ['-j', '--flat-playlist', '-e', '--get-thumbnail'];
    youtubedl.getInfo(url, options, function(error, urlInformation)
    {
    });

I think this is a youtube-dl thing more than this specific Node.js connector


Can't get caret position right in react typescript project

react-simple-keyboard: "latest version"
https://codesandbox.io/s/react-simple-keyboard-typescript-demos-kj3r1?file=/src/KeyboardWrapper.tsx
I'm testing your example and currently using package in my personal project. But event time react set state for the new input value, the input component keep setting the caret position back to the end of line.
Can someone help me with this case ?

Hello @Littlewiz123,
I'm not sure what you mean. Could you provide a repro? I will be able to debug it when that is provided.
Thanks!
Francisco Hodge


Migration from self-hosted etcd to CRD based etcd-operator

Using a self-hosted ETCD install that was managed by etcd-operator 0.3.0. Is there a path forward to migrate to 0.5.0 and CRD? The migration instructions intend for you to delete the etcd cluster and recreate it which is not feasible in this case.

Sorry for the late reply... Dismiss this issue before.
We don't really support 0.3.0 due to our limited support bandwidth.
Please just recreate it.


Make downloads explicit

Make downloads explicit (unless auto_download is True). An Exception is raised if the necessary data isn't present, and users can either use the shell or python to run the downloads. Fixes #31
Relies on https://github.com/hammerlab/datacache/pull/7
A few questions that come to mind:

Did I hook into the right places?
Do you think the varcode should also have an auto_download flag to send along to pyensembl?

TODO:

Tests
README update

@iskandr Ready for review -- I think this addresses what we talked about: install, index, download -- let me know what you think

@iskandr I'm not clear from "However, I'd suggest merging this PR": is this ready to merge?

@iskandr the merge conflict was just a setup.py conflict that a rebase resolved


pagemap size

Hi,
I have a lot of rewrites of the same key-value in my software.
I see that the pagemap file grows each time I finish a cycle of such updates.
When does it shrink? If at all?
Thanks

Hi,
This file never shrinks and grows slowly. But it allows the main storage file to be shrinked instead, and makes an empty spaces (holes after deletions) reusable.

Hi,
This file never shrinks and grows slowly. But it allows the main storage file to be shrinked instead, and makes an empty spaces (holes after deletions) reusable.

Ok, thanks

Ok, thanks


Sanity check FIRE corpora for multilingual IR

For myself, get a better understanding of the setup of the FIRE corpora for recently-added multilingual IR capabilities.

The FIRE 2012 site appears to be down…
http://isical.ac.in/~fire/2012/adhoc.html

According to this paper:
Ad-hoc Information Retrieval focused on Wikipedia based Query Expansion and Entropy Based Ranking https://www.isical.ac.in/~fire/working-notes/working-notes/adhoc/adhoc_JU.pdf

The document collection for Bengali, Hindi and English contained 4,57,370 , 3,31,599 and 3,92,577 documents respectively.

Compared to Shi and Lin https://arxiv.org/pdf/1911.02989.pdf - Hindi and English numbers match exactly, but not Bengali: We report more 500,122.
But according to this paper:
An Empirical Study of Some Selected IR Models for Bengali Monolingual Information Retrieval https://arxiv.org/pdf/1706.03266.pdf there are 500121 Bengali documents, for queries 176-225 (see Table 2).
Above paper cites this paper:
A Case Study in Decompounding for Bengali Information Retrieval
https://link.springer.com/chapter/10.1007/978-3-642-40802-1_14
Which reports 500,122 documents as well.
Table below is from above paper:

And these are the results they report:

Questions for @Impavidity

We're using title or title + description queries?
The FIRE data page http://fire.irsi.res.in/fire/static/data shows two versions of qrels (version-I and version-II) which are we using?

Addressed by #915


[AWS] Cluster bootstrap fails with IngressStateEndpoints_MissingSubsets + operators not initialized

Similar to https://github.com/okd-project/okd/discussions/1655 but we're on AWS.
Describe the bug
Cluster bootrstrap fails with the below errors:
ERROR Cluster operator authentication Degraded is True with IngressStateEndpoints_MissingSubsets::OAuthClientsController_SyncError::OAuthServerDeployment_PreconditionNotFulfilled::OAuthServerRouteEndpointAccessibleController_SyncError::OAuthServerServiceEndpointAccessibleController_SyncError::OAuthServerServiceEndpointsEndpointAccessibleController_SyncError::WellKnownReadyController_SyncError: IngressStateEndpointsDegraded: No subsets found for the endpoints of oauth-server
ERROR OAuthClientsControllerDegraded: no ingress for host oauth-openshift.apps.openshift-self-hosted.sandbox....dev in route oauth-openshift in namespace openshift-authentication
ERROR OAuthServerDeploymentDegraded: waiting for the oauth-openshift route to contain an admitted ingress: no admitted ingress for route oauth-openshift in namespace openshift-authentication
ERROR OAuthServerDeploymentDegraded:
ERROR OAuthServerRouteEndpointAccessibleControllerDegraded: route "openshift-authentication/oauth-openshift": status does not have a valid host address
ERROR OAuthServerServiceEndpointAccessibleControllerDegraded: Get "https://<IP_ADDRESS>:443/healthz": dial tcp <IP_ADDRESS>:443: connect: connection refused
ERROR OAuthServerServiceEndpointsEndpointAccessibleControllerDegraded: oauth service endpoints are not ready
ERROR WellKnownReadyControllerDegraded: failed to get oauth metadata from openshift-config-managed/oauth-openshift ConfigMap: configmap "oauth-openshift" not found (check authentication operator, it is supposed to create this)
ERROR Cluster operator authentication Available is False with OAuthServerDeployment_PreconditionNotFulfilled::OAuthServerRouteEndpointAccessibleController_ResourceNotFound::OAuthServerServiceEndpointAccessibleController_EndpointUnavailable::OAuthServerServiceEndpointsEndpointAccessibleController_ResourceNotFound::ReadyIngressNodes_NoReadyIngressNodes::WellKnown_NotReady: OAuthServerRouteEndpointAccessibleControllerAvailable: failed to retrieve route from cache: route.route.openshift.io "oauth-openshift" not found
ERROR OAuthServerServiceEndpointAccessibleControllerAvailable: Get "https://<IP_ADDRESS>:443/healthz": dial tcp <IP_ADDRESS>:443: connect: connection refused
ERROR OAuthServerServiceEndpointsEndpointAccessibleControllerAvailable: endpoints "oauth-openshift" not found
ERROR ReadyIngressNodesAvailable: Authentication requires functional ingress which requires at least one schedulable and ready node. Got 0 worker nodes, 3 master nodes, 0 custom target nodes (none are schedulable or ready for ingress pods).
ERROR WellKnownAvailable: The well-known endpoint is not yet available: failed to get oauth metadata from openshift-config-managed/oauth-openshift ConfigMap: configmap "oauth-openshift" not found (check authentication operator, it is supposed to create this)
INFO Cluster operator baremetal Disabled is False with :
INFO Cluster operator cloud-controller-manager TrustedCABundleControllerControllerAvailable is True with AsExpected: Trusted CA Bundle Controller works as expected
INFO Cluster operator cloud-controller-manager TrustedCABundleControllerControllerDegraded is False with AsExpected: Trusted CA Bundle Controller works as expected
INFO Cluster operator cloud-controller-manager CloudConfigControllerAvailable is True with AsExpected: Cloud Config Controller works as expected
INFO Cluster operator cloud-controller-manager CloudConfigControllerDegraded is False with AsExpected: Cloud Config Controller works as expected
ERROR Cluster operator cluster-autoscaler Degraded is True with MissingDependency: machine-api not ready
ERROR Cluster operator console Degraded is True with ConsoleDefaultRouteSync_FailedAdmitDefaultRoute::DownloadsDefaultRouteSync_FailedAdmitDefaultRoute::RouteHealth_RouteNotAdmitted::SyncLoopRefresh_FailedIngress: ConsoleDefaultRouteSyncDegraded: no ingress for host console-openshift-console.apps.openshift-self-hosted.sandbox.....dev in route console in namespace openshift-console
ERROR DownloadsDefaultRouteSyncDegraded: no ingress for host downloads-openshift-console.apps.openshift-self-hosted.sandbox.....dev in route downloads in namespace openshift-console
ERROR RouteHealthDegraded: console route is not admitted
ERROR SyncLoopRefreshDegraded: no ingress for host console-openshift-console.apps.openshift-self-hosted.sandbox.....dev in route console in namespace openshift-console
ERROR Cluster operator console Available is False with RouteHealth_RouteNotAdmitted: RouteHealthAvailable: console route is not admitted
ERROR Cluster operator control-plane-machine-set Available is False with UnavailableReplicas: Missing 3 available replica(s)
ERROR Cluster operator control-plane-machine-set Degraded is True with NoReadyMachines: No ready control plane machines found
INFO Cluster operator etcd RecentBackup is Unknown with ControllerStarted: The etcd backup controller is starting, and will decide if recent backups are available or if a backup is required
ERROR Cluster operator image-registry Available is False with DeploymentNotFound: Available: The deployment does not exist
ERROR NodeCADaemonAvailable: The daemon set node-ca has available replicas
ERROR ImagePrunerAvailable: Pruner CronJob has been created
INFO Cluster operator image-registry Progressing is True with Error: Progressing: Unable to apply resources: unable to sync storage configuration: unable to get cluster minted credentials "openshift-image-registry/installer-cloud-credentials": secret "installer-cloud-credentials" not found
INFO NodeCADaemonProgressing: The daemon set node-ca is deployed
ERROR Cluster operator image-registry Degraded is True with Unavailable: Degraded: The deployment does not exist
ERROR Cluster operator ingress Available is False with IngressUnavailable: The "default" ingress controller reports Available=False: IngressControllerUnavailable: One or more status conditions indicate unavailable: DeploymentAvailable=False (DeploymentUnavailable: The deployment has Available status condition set to False (reason: MinimumReplicasUnavailable) with message: Deployment does not have minimum availability.), DNSReady=False (NoZones: The record isn't present in any zones.)
INFO Cluster operator ingress Progressing is True with Reconciling: ingresscontroller "default" is progressing: IngressControllerProgressing: One or more status conditions indicate progressing: DeploymentRollingOut=True (DeploymentRollingOut: Waiting for router deployment rollout to finish: 0 of 2 updated replica(s) are available...
INFO ).
INFO Not all ingress controllers are available.
ERROR Cluster operator ingress Degraded is True with IngressDegraded: The "default" ingress controller reports Degraded=True: DegradedConditions: One or more other status conditions indicate a degraded state: DeploymentAvailable=False (DeploymentUnavailable: The deployment has Available status condition set to False (reason: MinimumReplicasUnavailable) with message: Deployment does not have minimum availability.), DeploymentReplicasMinAvailable=False (DeploymentMinimumReplicasNotMet: 0/2 of replicas are available, max unavailable is 1: Some pods are not scheduled: Pod "router-default-5cc984c688-76gsn" cannot be scheduled: 0/3 nodes are available: 3 node(s) had untolerated taint {node-role.kubernetes.io/master: }. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.. Pod "router-default-5cc984c688-ghcgf" cannot be scheduled: 0/3 nodes are available: 3 node(s) had untolerated taint {node-role.kubernetes.io/master: }. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.. Make sure you have sufficient worker nodes.), DNSReady=False (NoZones: The record isn't present in any zones.), CanaryChecksSucceeding=Unknown (CanaryRouteNotAdmitted: Canary route is not admitted by the default ingress controller)
INFO Cluster operator ingress EvaluationConditionsDetected is False with AsExpected:
INFO Cluster operator insights ClusterTransferAvailable is False with NoClusterTransfer: no available cluster transfer
INFO Cluster operator insights Disabled is False with AsExpected:
INFO Cluster operator insights SCAAvailable is Unknown with :
INFO Cluster operator machine-api Progressing is True with SyncingResources: Progressing towards operator: 4.13.0-0.okd-2023-08-18-135805
ERROR Cluster operator machine-api Degraded is True with SyncingFailed: Failed when progressing towards operator: 4.13.0-0.okd-2023-08-18-135805 because minimum worker replica count (2) not yet met: current running replicas 0, waiting for [openshift-self-hosted-hml2n-worker-us-west-2a-jmhsb openshift-self-hosted-hml2n-worker-us-west-2a-s5qtb]
ERROR Cluster operator machine-api Available is False with Initializing: Operator is initializing
ERROR Cluster operator monitoring Available is False with UpdatingPrometheusOperatorFailed: reconciling Prometheus Operator Admission Webhook Deployment failed: updating Deployment object failed: waiting for DeploymentRollout of openshift-monitoring/prometheus-operator-admission-webhook: got 2 unavailable replicas
ERROR Cluster operator monitoring Degraded is True with UpdatingPrometheusOperatorFailed: reconciling Prometheus Operator Admission Webhook Deployment failed: updating Deployment object failed: waiting for DeploymentRollout of openshift-monitoring/prometheus-operator-admission-webhook: got 2 unavailable replicas
INFO Cluster operator monitoring Progressing is True with RollOutInProgress: Rolling out the stack.
INFO Cluster operator network ManagementStateDegraded is False with :
INFO Cluster operator network Progressing is True with Deploying: Deployment "/openshift-cloud-network-config-controller/cloud-network-config-controller" is waiting for other operators to become ready
INFO Deployment "/openshift-network-diagnostics/network-check-source" is waiting for other operators to become ready
INFO Cluster operator storage Progressing is True with AWSEBSCSIDriverOperatorCR_AWSEBSDriverControllerServiceController_Deploying: AWSEBSCSIDriverOperatorCRProgressing: AWSEBSDriverControllerServiceControllerProgressing: Waiting for Deployment to deploy pods
ERROR Cluster operator storage Available is False with AWSEBSCSIDriverOperatorCR_AWSEBSDriverControllerServiceController_Deploying: AWSEBSCSIDriverOperatorCRAvailable: AWSEBSDriverControllerServiceControllerAvailable: Waiting for Deployment
ERROR Cluster initialization failed because one or more operators are not functioning properly.
ERROR The cluster should be accessible for troubleshooting as detailed in the documentation linked below,
ERROR https://docs.openshift.com/container-platform/latest/support/troubleshooting/troubleshooting-installations.html
ERROR The 'wait-for install-complete' subcommand can then be used to continue the installation
ERROR failed to initialize the cluster: Cluster operators authentication, console, control-plane-machine-set, image-registry, ingress, machine-api, monitoring, storage are not available

install-config.yaml:
apiVersion: v1
baseDomain: valid.domain.dev
credentialsMode: Manual
controlPlane:
  platform:
    aws:
      type: m6id.xlarge
      zones:
        - us-west-2a
  replicas: 3
compute:
- name: worker
  platform:
    aws:
      type: m6id.xlarge
      zones:
        - us-west-2a
  replicas: 2
metadata:
  name: test-cluster-okd
platform:
  aws:
    region: us-west-2
    propagateUserTags: true
    userTags:
      adminContact: ...
pullSecret: '<valid-pull-secret>'
sshKey: "<valid-ssh-key>'

Version
openshift-install 4.13.0-0.okd-2023-08-18-135805
built from commit 26b887d89a13709170d9685ea1c133b3f865997d
release image quay.io/openshift/okd@sha256:59b1e486ed132fa084f654ca930d84a751c7956870f659ef522a9928bc200ec7
release architecture amd64

How reproducible
100% of the time.
Log bundle
The bootstrap machine is gone, so I can't generate those logs with ./openshift-install gather bootstrap --dir... if I am not mistaken? However, I can query logs with oc adm node-logs --role master....

Please attach (or upload to the public file sharing service) must-gather archive

ERROR Cluster operator machine-api Degraded is True with SyncingFailed: Failed when progressing towards operator: 4.13.0-0.okd-2023-08-18-135805 because minimum worker replica count (2) not yet met: current running replicas 0, waiting for [openshift-self-hosted-hml2n-worker-us-west-2a-jmhsb openshift-self-hosted-hml2n-worker-us-west-2a-s5qtb]

Seems two machines didn't come up? Have AWS created these machines?

Seems two machines didn't come up? Have AWS created these machines?

No they didn't, and no EC2 instances were visible in the EC2 console. I'm trying to figure out why that is the case in AWS.

Please attach (or upload to the public file sharing service) must-gather archive

I've managed to produce those logs with the given command, thanks. Currently parsing those, will follow up here asap.

Check Machine status in machine-api. Seems most failing operators are caused by workers missing - machine-api couldn't create them. control-plane-machine-set failing seems related to Machine API too


Prettier extension isn't working. I'm using it for a long time. But today it makes so much disturb

Environment (please complete the following information):

OS (e.g., Windows 10):
Extension version (e.g., 1.2.3):

Describe the bug:

Repro steps:

Expected behavior:

Additional context:

Done it's fixed.
The reason is with that extension developer. Some other people have faced it.
But now it's fine.


RSA + ECDSA allows an attacker to claim other ciphertexts as their own

I noticed something weird about the RSA+ECDSA mode, but I am not sure what the threat model for the library is so I'm not sure if it would be considered an attack.
I figured it would be most sensible not to describe it in a public issue just in case it turns out to be unintended behaviour, but there is no other reporting mechanism listed in the README. What's the right approach here?

Hi Katriel,
We use GitHub Issues to track all issues. Please feel free to describe it here.

The RSA+ECDSA mode uses an encrypt-then-sign:

first, it encrypts some ciphertext under a public RSA key, and
second, it signs that ciphertext with the private ECDSA key.

The problem with this pattern in general is that an attacker can strip the signature from a message and re-sign it with their own signature key, thus claiming the message as their own. For example, an aggregator app might have a single RSA private key but accept messages signed by various ECDSA keys (e.g. through instance.updateSenderVerifier(senderVerificationKey)), in which case a malicious sender could take someone else's message, strip the signature, and claim it as their own.
One fix for this should be to include the expected signature key under the encryption, such as through Tink's context. However, capillary doesn't use that.
I'm trying to understand at the moment how signing and encryption keys relate to each other; the abov assumes there are multiple signing keys for a particular encryption key, and I can't tell from the API whether that is allowed.

Cool, thanks! Pinning the verification key does indeed seem to rule out the attack I described above (cc @galadran with whom I've been discussing this 😺).
One related weird thing we noticed is that because keys don't seem to be really tied to a notion of app or device identity, an evil app can cause a misbinding if it knows another app's public key. (For example, in an HR app, Alex might honestly decrypt a notification "you're fired", even though the honest server sent the notification to someone else entirely.) Is that a problem?

Thanks Katriel and Dennis!
We intentionally didn't tie the RSA public keys to device identifier due to potential privacy concerns. Instead, we let the developers decide whether to include some form of a device identifier (e.g., the FCM token) in the plaintext to mitigate the attack you described.


Consider adding specific date range selector to timeline view controls

Would add it somewhere around here perhaps?

Related to https://github.com/NASA-AMMOS/aerie-ui/issues/826