Optimize / refactor CowData, combining resize and fork to avoid unnecessary reallocations.

This PR optimizes CowData resize operations. This affects all non-trivial resizes for String and Vector (e.g. Packed arrays), including concatenation.
This PR includes #100694, because without it, leaks are occurring due to cyclic references that the previous implementation luckily avoided through unnecessary forking.
Reasoning
The current implementation of resize first forks if there are multiple owners, and then resizes the freshly forked array.
In the case that the needed array is larger than the previous array, time is wasted because a new location may have to be found for the larger buffer on the subsequent realloc, and the data has to be copied over again.
In the case that the needed array is smaller than the previous array, time is wasted looking for a larger buffer than necessary, and constructing (and subsequently destructing) more elements than necessary.
Benchmark
I've benchmarked plain String concatenation:
	String s1 = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
	String s2 = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";

	auto t0 = std::chrono::high_resolution_clock::now();
	for (int i = 0; i < 10000000; i ++) {
		// Test
		String s3 = s1 + s2;
	}
	auto t1 = std::chrono::high_resolution_clock::now();
	std::cout << std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0).count() << "ms\n";

This yields:

1349ms on master (8483d794ffec51a22d9dc8872cc082f9f0ece9db / ba2c5c1e6196b774d55baa45de54aab530db08e9)
825ms on this PR (77d8900235a8b0fe7e3b597d4f664533f60ee82e)

As such, it can be concluded that String concatenation through + can be 1.6x as fast as before. The PR is likely to affect and optimize many more functions involving String or Vector. The worst case that is optimized is resizing down a large vector of non-trivial elements to a size larger than 0.

Hrm. I'm kinda stumped as to what's leaking. I think it's foolproof, in any case foolproof if the CowData itself is not accessed from other threads (though access of refcount should be safe cross-thread). And besides, the previous implementation was also not safe from forking a 1-ref'd CowData from another thread, I think. Either I'm missing something obvious, or something fishy is going on.

Hrm. I'm kinda stumped as to what's leaking. I think it's foolproof, in any case foolproof if the CowData itself is not accessed from other threads (though access of refcount should be safe cross-thread). And besides, the previous implementation was also not safe from forking a 1-ref'd CowData from another thread, I think (through realloc). Either I'm missing some odd edge case or race condition, or something fishy is going on.

I think you're not setting the refcount on the new allocation, so it is undefined and maybe that's why it leaks? I only read the diffstat so this might be entirely wrong, but that is what comes to mind.

Oh my god... This leak is costing me and arm and a leg to debug. Here is a failing log for reference: https://github.com/godotengine/godot/actions/runs/12435300159/job/34720869143
I have finally tracked it down to the GDScript tests only. Normal operation does not appear to cause leaks. At this point, I am reasonably sure it's not my implementation that's causing it, but some kind of circular reference. Though it's hard to be completely certain.
If it is a circular reference, the current implementation of CowData appears to 'avoid' it somehow, but it's really hard to track down and I have, so far, not been able to re-create the bug / fix in my refactor by attempting to recreate CowData behavior in that class.
Running the unit tests locally without out_of_order_external.gd avoids the leak. Online, I had to disable all GDScript unit tests, because more than just one were causing the leak. But disabling them does avoid any leaks from appearing: https://github.com/Ivorforce/godot/actions/runs/12438440843

I'll look at this PR over the weekend. I have a suspicion but it'll take some single stepping, and Friday night is not the time for single stepping through CowData.

I think I finally fixed it.
So, GDScript does have cyclic references, and it calls a Vector destructor, and then halfway through the destruction, the array is referenced again. We should probably figure out that cyclic reference, because it really smells. But it's out of scope for me to address it.
Instead, I managed to handle it more graciously through #100694. With the change, CowData invalidates itself before destructing the array, and graciously handles being referenced or deallocated halfway through its own destruction. We'll see if the remote lsans agree, but this fixed the leak on my end.


feat(vscode): open server with current route path

Status
IN DEVELOPMENT
Description
Completely resolves #957 .
When opening the server's address on the browser, either via starting a development server or the status bar item, it considers the current route path and appends it to the address. This route path is deduced from the active file or directory, if possible.
Demonstration
https://github.com/VeryGoodOpenSource/dart_frog/assets/44524995/7da95e5e-60da-4863-9f0c-feb226e2c805
Type of Change

[x] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Closing for now. It was originally solving #957 but should now solve #992. Will consider re-opening when tackling #992 .


Trying to decrease VM size and running into some issues

Hello, all
I am trying to create a new deployment file for minimizing VM size, and I started the work based on https://github.com/cloudfoundry-community/cf-boshworkspace
It looks it's not maintained right now, my question got no response for several days.
Anyway, I create an deployment file based on it, and when deploying I always got error about consul component.
The deployment file starts from https://github.com/cloudfoundry/cf-release/tree/master/example_manifests and adds diego components.
And did changes based on https://github.com/cloudfoundry-community/cf-boshworkspace to change default jobs.
  Started updating job backbone_z1 > backbone_z1/0 (canary)
  Started updating job data > data/0 (canary)
  Started updating job services_z1 > services_z1/0 (canary)
  Started updating job health_z1 > health_z1/0 (canary)
  Started updating job cell_z1 > cell_z1/0 (canary)
  Started updating job ha_proxy_z1 > ha_proxy_z1/0 (canary)
  Started updating job api_z1 > api_z1/0 (canary)
  Started updating job brain_z1 > brain_z1/0 (canary)
     Done updating job backbone_z1 > backbone_z1/0 (canary) (00:02:24)
     Done updating job brain_z1 > brain_z1/0 (canary) (00:03:25)
   Failed updating job ha_proxy_z1 > ha_proxy_z1/0 (canary): `ha_proxy_z1/0' is not running after update (00:10:28)
   Failed updating job data > data/0 (canary): `data/0' is not running after update (00:10:39)
   Failed updating job cell_z1 > cell_z1/0 (canary): `cell_z1/0' is not running after update (00:10:55)
   Failed updating job health_z1 > health_z1/0 (canary): `health_z1/0' is not running after update (00:11:25)
   Failed updating job services_z1 > services_z1/0 (canary): `services_z1/0' is not running after update (00:11:27)
   Failed updating job api_z1 > api_z1/0 (canary): `api_z1/0' is not running after update (00:14:08)

Error 400007: `ha_proxy_z1/0' is not running after update

And after checking the log of ha_proxy_z1 job, I can see the main problem is the consul.
Finally Itt complains
==> Error starting agent: Failed to start Consul client: Failed to start lan serf: Failed to start TCP listener. Err: listen tcp <IP_ADDRESS>:8301: bind: address already in use

The main problem right now I see is error "Err: listen tcp <IP_ADDRESS>:8301: bind: address already in use", which means the consul_agent is not started correctly, and I also see it's not correct via "sudo monit summary"
root@fb3d94b6-0077-4358-9a28-69b163b9d970:~# sudo monit summary
The Monit daemon 5.2.5 uptime: 11m

Process 'consul_agent'              not monitored
Process 'metron_agent'              running
Process 'consul_template'           not monitored
File 'haproxy_config'               accessible
Process 'haproxy'                   running
System 'system_localhost'           running

But I do see they are running
root@81a1c783-da5d-4d5d-a419-c2c44345e285:/var/vcap/sys/log/consul_agent# ps axu | grep consul
root      4171  0.0  0.0  18124  1696 ?        S<   10:50   0:00 /bin/bash -exu /var/vcap/jobs/consul_agent/bin/agent_ctl start
root      4172  0.0  0.0  18124  1696 ?        S<   10:50   0:00 /bin/bash -exu /var/vcap/jobs/consul_agent/bin/agent_ctl start
root      4173  0.0  0.0   4352  1404 ?        S<   10:50   0:00 tee -a /var/vcap/sys/log/consul_agent/consul_agent.stdout.log
root      4174  0.0  0.0   4344  1488 ?        S<   10:50   0:00 logger -p user.info -t vcap.consul-agent
root      4175  0.0  0.0   4352  1400 ?        S<   10:50   0:00 tee -a /var/vcap/sys/log/consul_agent/consul_agent.stderr.log
root      4176  0.0  0.0   4344  1524 ?        S<   10:50   0:00 logger -p user.error -t vcap.consul-agent
vcap      4184  0.2  0.4<PHONE_NUMBER>0 ?        S<l  10:50   0:47 /var/vcap/packages/consul/bin/consul agent -config-dir=/var/vcap/jobs/consul_agent/config -recursor=<IP_ADDRESS>
root     24312  0.0  0.0  10472  2176 pts/0    S+   17:15   0:00 grep --color=auto consul

I can see the 8301 port is occupied by consul actually.
root@fb3d94b6-0077-4358-9a28-69b163b9d970:~# netstat -anp
udp        0      0 <IP_ADDRESS>:8301          <IP_ADDRESS>:*                           4195/consul

The versions are:
cf/230
diego/0.1450.0
etcd/27
garden-linux/0.330.0
bosh-aws-xen-hvm-ubuntu-trusty-go_agent/3202

Below are the constructed deployment manifest and logs for ha_proxy job, can someone had one look on it to see why the consul is out of control?
https://github.com/cloudfoundry-incubator/diego-release/files/177732/minimal-vms.txt
https://github.com/cloudfoundry-incubator/diego-release/files/177737/ha_proxy_z1.0.2016-03-17-19-05-08.zip

From monit log, I can see things like:
------------ STARTING agent_ctl at Thu Mar 17 10:50:58 UTC 2016 --------------
------------ STARTING agent_ctl at Thu Mar 17 10:52:03 UTC 2016 --------------
------------ STARTING agent_ctl at Thu Mar 17 10:53:14 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 10:54:25 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 10:55:37 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 10:56:49 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 10:58:00 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 10:59:11 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 11:00:22 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 11:01:33 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 11:02:45 UTC 2016 --------------
Removing stale pidfile...
------------ STARTING agent_ctl at Thu Mar 17 11:03:57 UTC 2016 --------------
Removing stale pidfile...

This issue was fixed in CF v231.  You can upgrade, or if you don't want to I can guide you to manually recover from this scenario.

I tried to kill consul_agent process for failed VMs and did "monit restart consul_agent"
And I can see some VMs are back.
Is the guide same with what I mentioned above?
If not, please show me the detail guide on it.
I would like to upgrade to v231 later.

After these manual works, I still have some issues in my "services_z1/0".
Process 'consul_agent'              running
Process 'metron_agent'              running
Process 'uaa'                       running
Process 'cloud_controller_worker_1' Execution failed
File 'nfs_mounter'                  accessible
Process 'route_registrar'           running
System 'system_localhost'           running

For cloud_controller_worker_ctl the error shows
root@9b5940f0-8c78-4eb2-8883-f6fc631492a6:/var/vcap/sys/log# cat cloud_controller_worker_ctl.err.log
[2016-03-18 09:38:52+0000] ------------ STARTING cloud_controller_worker_ctl at Fri Mar 18 09:38:52 UTC 2016 --------------
[2016-03-18 09:39:32+0000] ------------ STARTING cloud_controller_worker_ctl at Fri Mar 18 09:39:32 UTC 2016 --------------
[2016-03-18 09:40:12+0000] ------------ STARTING cloud_controller_worker_ctl at Fri Mar 18 09:40:12 UTC 2016 --------------
[2016-03-18 09:41:02+0000] ------------ STARTING cloud_controller_worker_ctl at Fri Mar 18 09:41:02 UTC 2016 --------------
[2016-03-18 09:41:32+0000] chown: changing ownership of ‘/var/vcap/nfs/shared’: Operation not permitted
[2016-03-18 09:41:32+0000] chown: changing ownership of ‘/var/vcap/nfs/shared’: Operation not permitted
[2016-03-18 09:41:33+0000] chown: changing ownership of ‘/var/vcap/nfs/shared’: Operation not permitted

root@9b5940f0-8c78-4eb2-8883-f6fc631492a6:/var/vcap/sys/log# ps axu |  grep cloud_controller
root     11479  0.0  0.0  19592  1552 ?        S<   09:41   0:00 /bin/bash /var/vcap/jobs/cloud_controller_worker/bin/cloud_controller_worker_ctl start 1
root     11480  0.0  0.0  19592  1552 ?        S<   09:41   0:00 /bin/bash /var/vcap/jobs/cloud_controller_worker/bin/cloud_controller_worker_ctl start 1
root     11490  0.0  0.0  19600  1816 ?        S<   09:41   0:00 /bin/bash /var/vcap/jobs/cloud_controller_worker/bin/cloud_controller_worker_ctl start 1
root     11492  0.0  0.0  19600  1816 ?        S<   09:41   0:00 /bin/bash /var/vcap/jobs/cloud_controller_worker/bin/cloud_controller_worker_ctl start 1
root     11503  0.0  0.0   5916  1940 ?        S<   09:41   0:00 logger -p user.error -t vcap.cloud_controller_worker_ctl.stderr
root     11505  0.0  0.0   5916  1900 ?        S<   09:41   0:00 logger -p user.info -t vcap.cloud_controller_worker_ctl.stdout
root     13770  0.0  0.0  10472  2236 pts/0    S+   09:58   0:00 grep --color=auto cloud_controller

Is there any known issue for this?
Regardless these errors, the instance is able to login and enable diego support.
I tried to push a simple nodejs APP to this instance, and I got same error mentioned in issue https://github.com/cloudfoundry/cf-release/issues/932
Uploading stanley...
Uploading app files from: /Users/stanleyshen/workspace/stanley/hello
Uploading 885, 2 files
Done uploading
OK

Starting app stanley in org test / space test as admin...
FAILED
Server error, status code: 404, error code: 250003, message: The stack could not be found: The requested app stack cflinuxfs2 is not available on this system.

Hey @StanleyShen
I'm not intimately familiar with the cloud_controller_worker.  You may wish to open an issue on the Cloud Controller repo or ask on the CAPI Slack channel.
/cc @utako @SocalNick

@StanleyShen have you had any luck with this issue? It looks like the error(s) are happening here:
https://github.com/cloudfoundry/cloud_controller_ng/blob/bf11ed99b03705a2dcc1cca4d57d8bc10cdeb7a1/bosh-templates/handle_local_blobstore.sh.erb#L4
You might want to bosh ssh onto the VM in question and check the permissions of /var/vcap/nfs/shared. As Amit mentioned, you might want to the latest CF which is now v233. Also worth noting, these custom deployments are difficult for us to debug. We have a lot of experience and CI proving the default deployment strategies work.
Please open an issue an issue in Cloud Controller if you are still having this problem.


Starting a docker job from a hub.docker.io private image

Hello,
We are trying to use chronos to run scheduled task, migration task in our case. The task seem to fail due to pulling the private image from hub.docker.com
below is an example of how our chronos JSON looks like
{
    "name": "migrationprocess",
    "cpus": "1",
    "mem": "2048",
    "uris": ["file:///root/.dockercfg"],
    "command": "python $APP_HOME/manage.py resetdb && python $APP_HOME/manage.py migrate_legacy_data",
    "container": {
        "type": "DOCKER",
        "image": "obytes/private_repo:latest",
        "volumes": [
            {
                "containerPath": "/var/lib/app",
                "hostPath": "/appdata/cc/staged/app",
                "mode": "RW"
            }
        ]
    },
    "environmentVariables": [{
        "GIT_BRANCH": "staging",
        "SETTING_FILE": "staging",
        "MARATHON_URI": "http://<IP_ADDRESS>:8080/",
        "PG_HOST": "<IP_ADDRESS>",
        "PG_PORT": "5002",
        "PG_LEGACY_HOST": "<IP_ADDRESS>",
        "PG_LEGACY_PORT": "5001"
    }]
}

I also made sure that /root/.dockercfg exists in all slaves, we already were able to clone the image with marathon using the same method.
It seems with chronos though, the task is failing and all what am getting in the mesos console is following
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1027 11:18:44.147454 25538 fetcher.cpp:76] Fetching URI 'file:///root/.dockercfg'
I1027 11:18:44.147578 25538 fetcher.cpp:179] Copying resource from '/root/.dockercfg' to '/tmp/mesos/slaves/20141026-234236-2521008394-5050-2110-4/frameworks/20141026-234236-2521008394-5050-2110-0000/executors/ct:1414408783695:2:migrationprocess/runs/c42045ab-0447-462c-a25a-606c78c6c3bc'

The above is logged in stderr with nothing in stdout
Any suggestions?

You should be able to provide the full container URL and avoid .dockercfg

Can this be closed?


Flutter crashes on a simple package typo

Steps to Reproduce

Create a regular flutter app
In the import statement misspell package
Run the command 'flutter run'

Logs
F:\my_projects\flutter_dev\flutter_udemy>flutter run -v
[  +84 ms] executing: [F:\programs\flutter] git rev-parse --abbrev-ref --symbolic @{u}
[ +374 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[  +67 ms] origin/stable
[   +1 ms] executing: [F:\programs\flutter] git rev-parse --abbrev-ref HEAD
[ +176 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[   +1 ms] executing: [F:\programs\flutter] git ls-remote --get-url origin
[ +941 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[   +1 ms] executing: [F:\programs\flutter] git log -n 1 --pretty=format:%H
[+1840 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +1 ms] 8661d8aecd626f7f57ccbcb735553edc05a2e713
[        ] executing: [F:\programs\flutter] git log -n 1 --pretty=format:%ar
[ +241 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[   +1 ms] 7 weeks ago
[   +1 ms] executing: [F:\programs\flutter] git describe --match v*.. --first-parent --long --tags
[ +161 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags
[        ] v1.2.1-0-g8661d8aec
[ +330 ms] executing: C:\Users\Hp\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ +458 ms] Exit code 0 from: C:\Users\Hp\AppData\Local\Android\sdk\platform-tools\adb devices -l
[        ] List of devices attached
60D15B12D13697L1511    device product:Y541-U02 model:HUAWEI_Y541_U02 device:HWY541-U transport_id:1
[ +531 ms] C:\Users\Hp\AppData\Local\Android\sdk\platform-tools\adb -s 60D15B12D13697L1511 shell getprop
[ +131 ms] ro.hardware = sc8830
[   +1 ms] ro.build.characteristics = default
[ +227 ms] "flutter run" took 1,435ms.
[        ] "flutter run" took 1,435ms.
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 612046df20868e19)
Crash report written to F:\my_projects\flutter_dev\flutter_udemy\flutter_05.log;
please let us know at https://github.com/flutter/flutter/issues.
Logs At F:\my_projects\flutter_dev\flutter_udemy\flutter_05.log
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter run
exception
UnsupportedError: Unsupported operation: Cannot extract a file path from a packgae URI
#0      _SimpleUri.toFilePath (dart:core/uri.dart:4587:7)
#1      DartDependencySetBuilder.build (package:flutter_tools/src/dart/dependencies.dart:93:58)
#2      HotRunner._refreshDartDependencies (package:flutter_tools/src/run_hot.dart:128:69)
<asynchronous suspension>
#3      HotRunner.run (package:flutter_tools/src/run_hot.dart:287:16)
<asynchronous suspension>
#4      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:405:37)
<asynchronous suspension>
#5      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:545:18)
#6      _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#7      _rootRunUnary (dart:async/zone.dart:1132:38)
#8      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9      _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#11     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#12     Future._complete (dart:async/future_impl.dart:473:7)
#13     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#14     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#15     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:294:13)
#16     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#17     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#18     _rootRunUnary (dart:async/zone.dart:1132:38)
#19     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#20     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#21     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#22     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#23     Future._complete (dart:async/future_impl.dart:473:7)
#24     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#25     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#26     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:294:13)
#27     AndroidDevice.targetPlatform (package:flutter_tools/src/android/android_device.dart)
#28     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#29     _rootRunUnary (dart:async/zone.dart:1132:38)
#30     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#31     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#32     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#33     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#34     Future._complete (dart:async/future_impl.dart:473:7)
#35     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#36     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#37     _rootRun (dart:async/zone.dart:1124:13)
#38     _CustomZone.run (dart:async/zone.dart:1021:19)
#39     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#40     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#41     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#42     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#43     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

flutter doctor
[✓] Flutter (Channel stable, v1.2.1, on Microsoft Windows
    [Version 10.0.17134.648], locale en-US)
    • Flutter version 1.2.1 at F:\programs\flutter
    • Framework revision 8661d8aecd (7 weeks ago), 2019-02-14
      19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android
    SDK version 28.0.3)
    • Android SDK at C:\Users\Hp\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful
      for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: F:\programs\androidstudio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[!] Android Studio (version 3.3)
    • Android Studio at F:\programs\androidstudio
    ✗ Flutter plugin not installed; this adds Flutter
      specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific
      functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1248-b01)

[✓] VS Code, 64-bit edition (version 1.32.3)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 2.24.0

[✓] Connected device (1 available)
    • HUAWEI Y541 U02 • 60D15B12D13697L1511 • android-arm •
      Android 4.4.2 (API 19)

! Doctor found issues in 1 category.

This was fixed indirectly by hot reload improvements I made, including the removal of _refreshDartDependencies


ESM - Angular 10 Tree Shaking Support?

WARNING in MyLogging.js depends on 'loglevel'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
How would I get rid of the warning? This happens during tree shaking and I'd like ascertain that optimization does take place?
Thank-you

I don't know anything about Angular's build process I'm afraid. However, I imagine the optimization is an analysis of how loglevel's exports are used, and whether that means that some of loglevel's own dependencies or code can be omitted from your bundle. Since loglevel is tiny and doesn't have any dependencies at all, you can safely skip that anyway, it shouldn't make any significant difference. I don't imagine that this disables all optimizations in your build, just the optimization of your loglevel usage specifically.
You can test this easily enough - try commenting our your import(s) of loglevel, and compare the bundle size to your normal build. If it makes no difference, the bundle size should differ only by the approximate size of loglevel itself, about 3KB. If it differs by a lot more that that, there's a larger problem where this is affecting your build optimizations. Assuming it indeed doesn't cause any problems, you can disable the warning using allowedCommonJsDependencies as in your link there.
This could also be fixed by migrating loglevel to ESM - if you're really interested, I'd be open to a PR that added that as an output from the build process, but it's a bit complicated to do whilst preserving the existing setup.

"This could also be fixed by migrating loglevel to ESM - if you're really interested, I'd be open to a PR that added that as an output from the build process, but it's a bit complicated to do whilst preserving the existing setup."
Absolutely :) I was looking for an ESM version of loglevel. That should solve the issue.

Ok, great! Feel free to open a PR for that, let me know if you have any questions en route. I do want to continue to support the existing UMD output, but I would be very happy to support more formats too if there's interest.


Create Linux Redis Recipe

Documentation: https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/redis-monitoring-integration#keyspace-config
Note for Engineer: This documentation seems to be outdated for this OHI and differs materially from the sample configuration file provided. The OHI specification is written according to product management best intuition, and therefore the recipe may require adjustment based on testing.
Required Configuration:

Hostname: Have user confirm default of localhost , or allow change
Port: Have user confirm default of 6379 , or allow change.

Hostname and port in both sections, redis-metrics and redis-invetory in the config file can be set based on the above values.

Password: Prompt Please enter a password if your Redis server is password protected:
Keys: PromptIf you would like to see metrics related to the length of selected keys, please enter the keys as a comma separated list in the following format 0:KEY_1, 1:KEY_2:

For Logging: Ensure that common log file directories/patterns & process name for Redis are populated in the beginning of the recipe.
Aha! Link: https://newrelic.aha.io/features/VIRTUOSO-64

@rishimukhop1 Am I correct that the default port provided in the ticket description is a typo? The default redis port is 6379 afaik

@rishimukhop1 Am I correct that the default port provided in the ticket description is a typo? The default redis port is 6379 afaik

Good catch @JakubKotkowiak. Yes it is a typo and I have corrected it. thanks!!

Good catch @JakubKotkowiak. Yes it is a typo and I have corrected it. thanks!!

Hello, we've attempted to prepare the SUSE integration for Redis but it's proving very problematic. For now according to what @rishimukhop1 stated we've laid it off and are concentrating on other recipes.

Hello, we've attempted to prepare the SUSE integration for Redis but it's proving very problematic. For now according to what @rishimukhop1 stated we've laid it off and are concentrating on other recipes.

Closed by https://github.com/newrelic/open-install-library/commit/a87c0d86201d949af6eb5a4aea1edb08e3cc15e7 and https://github.com/newrelic/open-install-library/commit/33f1674fb5021408d706a0f9d38913109967fd83

Closed by https://github.com/newrelic/open-install-library/commit/a87c0d86201d949af6eb5a4aea1edb08e3cc15e7 and https://github.com/newrelic/open-install-library/commit/33f1674fb5021408d706a0f9d38913109967fd83


"Spark Daemon" was blocked from opening because it is not from an identified developer.

Today the Spark hotkeys stopped working. I upgraded Spark to the latest version, didn't fix the problem. Rebooted and an error was displayed on startup saying:

"Spark Daemon" was blocked from opening because it is not from an identified developer.

Even if I run sudo spctl --master-disable then click the "Start Spark Daemon" button in the app it doesn't actually start. There does not appear to be any log messages in the Console that relate to this problem.

I did find some Console logs for this:
default	09:54:12.962779 +1100	Spark	subsystem: com.apple.SkyLight, category: default, enable_level: 0, persist_level: 0, default_ttl: 7, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
default	09:54:13.394525 +1100	Spark	subsystem: com.apple.AppKit, category: General, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 0, enable_private_data: 0
error	09:54:13.399581 +1100	Spark	ERROR: Setting <private> as the first responder for window <private>, but it is in a different window (<private>)! This would eventually crash when the view is freed. The first responder will be set to nil.
<private>
default	09:54:17.815471 +1100	Spark	subsystem: com.apple.securityd, category: unixio, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default	09:54:17.816263 +1100	lsd	SecTranslocateCreateSecureDirectoryForURL: created /private/var/folders/nm/3dhqnm9x5s5dvj818qrr4yzc0000gq/T/AppTranslocation/CA2130D7-4BBA-4EB0-905A-5F2F5136CD4F/d/Spark Daemon.app
default	09:54:18.365945 +1100	kernel	AMFI: allowing exception handler for 'Spark Daemon' (8250) because the process is unsigned.


Default values are ignored

I'm having a problem with a default value.
version: sbt-guardrail:<IP_ADDRESS>
Definition
properties:
  fieldOne:
    type: String
  fieldTwo:
    type: Boolean
    default: false

Generated code
case class Something(fieldOne: String, fieldTwo: Boolean = false)

So far, so good.
However, once I POST JSON without a value
{
  "fieldOne": "test"
}

I get the error
Attempt to decode value on failed cursor: DownField(fieldTwo)

Hello @andiskrauklis, I've been punting on this issue for a while (since #197, actually).
The challenge is that the default parameters are not known by the Decoder[Something] instance.
Additionally, should we apply the default value on the server (on decode but not encode)? What about the client (on decode but not encode)?
What might be a reasonable middleground would be to have a def defaults: JsonObject in the companion, then use deepMerge before attempting to decode, but I've never had a use for this feature, so I don't have any intuition around what is correct.


Warn about low freshness grade layers when checking a container

Is your feature request related to a problem? Please describe.
A partner would like to get a sense of the approximate Security Scanner score they could get, while doing a container check.
Avoiding a low score before publishing.
Describe the solution you'd like.
Since we already check the layers - we could warn if a lower grade layer is being used, allowing the partner to increment that and increase their chances of getting a good score.

This is also something the partner can implement on their own within their own CI/CD pipeline with Pyxis. We would not be able to give them an on-the-spot grade, and merely report back what the grade of the other layers within their image would be. They have access to the same information from Pyxis that preflight would. There is not a good reporting mechanism to implement this. I will leave this open for a week or so for additional comment, but this is likely to be closed.

That's the "official" answer I gave to the partner - they can interact with Pyxis from their CI.
But in my opinion there is a learning curve to doing that, for a partner that's not familiar with Pyxis' APIs.
I'm not expecting Preflight to grade their image. That's not what it's designed for.
But we do fetch layers from Pyxis and therefore can decide to throw a warning if - at the time of fetching - one or more layers are currently grade E or below for example.
It's a QoL for the partner in my opinion, to be able to get notified. Even via log in case of no better options.

therefore can decide to throw a warning

Warning might be OK; because users might update packages from base image with *dnf update
They sometime need to do it when base image has not been updated yet but RPM for CVE is already available in repositories

@acornett21 it may be down to wording, or choosing to do an INFO vs. a WARN etc'.
Clair scans the finalized image, and we aren't "competing" with it.
But it's reasonable to assume IMO that an image using an F grade base layer, won't end up getting an A from Clair.
So wording it like a "might get a low grade, please take a look" is a QoL.

We decided that this should not live in preflight, but a partner can make a curl to get this info from pyxis. See below:
export PYXIS_API_TOKEN="..."
export CONTAINER_SHA="sha256:..."
curl -s -X 'GET' 'https://catalog.stage.redhat.com/api/containers/v1/images?filter=docker_image_digest=='"${CONTAINER_SHA}"'&page_size=100&page=0' \
  -H 'accept: application/json' \
  -H 'X-API-KEY: '"${PYXIS_API_TOKEN}"'' | jq '{id: .data[0]._id, freshness_grades: .data[0].freshness_grades[] | {grade, creation_date}}'


Persistant per channel configuration

Allow replyrate, shutup, wakeup to be done on a per channel basis for chat programs like Discord, Slack, IRC, etc. Source level configuration for private message / dm. Create DB tables for source (Discord, Slack, Twitter, etc), server (where applicable), and channel. Source and server can both store private message settings. First server will be checked, and if it does not exist or has NULL entires for the options, it is loaded from the source instead.

This is kinda overkill for what the bot was designed to do.


fix(behavior_path_planner): add fallback for splitting the dynamic drivable area into left and right bounds

Description

There was a bug with the dynamic drivable area expansion where the expanded polygon could not be split into the left and right bound, leading the function to leave the original bounds unchanged.
With this PR, the issue no longer occurs.
Tests performed

Psim.
Evaluator (TIER IV PRIVATE LINK).
Effects on system behavior

When the dynamic drivable area expansion is used, there should no longer be cases where the drivable area is not expanded.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[X] I've confirmed the contribution guidelines.
[X] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@maxime-clem Test for drivable area extension is failed.
https://github.com/autowarefoundation/autoware.universe/actions/runs/5878233114/job/15939888625?pr=4646#step:7:335
In addition, DCO is failed too.
Could you check it?


Pledge(2) like utility for odb

Description
Add a utility to OpenROAD that lets pass authors pledge away certain operations during their code execution. If a pass performs an operation that it pledged not to odb would throw an error. Which would help prevent bugs like https://github.com/The-OpenROAD-Project/OpenROAD/pull/6289
Suggested Solution
These pledges are similar in nature to the FreeBSD pledge(2) syscall that lets process restrict the syscalls they can make as a security feature.
Ideally we would have some built-in mechanism to odb to pledge away write/delete operations on certain objects. Potentially, using RAII to undo them automatically.
Additional Context
https://man.openbsd.org/pledge.2

Wouldn't a temporary dont-touch be equivalent?  With only the one example I'm not sure what operations/semantics need pledging.

But you would have to set that on each net of those types. This would essentially be a global precheck.

Would you illustrate with some examples where this works be helpful?


Remote Execution - Run Windows Command

RunWindowsCommand java_action

@dashapaster Please handle the comments...

@mihaitusa review pls

@Alex-Persa Thanks for comments mate. We will handle it. :ok_hand:

We will use the cross platform powershell operation instead (cs-powershell)


[0.24] Backport of upstream 802

cherry-pick of the relevant commit of 0.24 upstream branch (see https://github.com/knative-sandbox/eventing-kafka/pull/802 for full reference)
regenerating the manifests we apply on our CI run, to reflect the changes on the yamls for this commit

/assign @devguyio

/lgtm


Adjust Footer

The footer styling properties can be adjusted as follows:
Height can be reduced and fixed
margins can be added
styling can be added

I have already raised a PR for this error. Kindly assign the task to me via gssoc extended and check out the PR.

@BhuwanSKumar  you have neither assigned it to me or checked my PR. I would like to work on the project I can make its UI and functionalities a lot better. Add appropriate tags and checkout my PR.


Some bt sensors stop updating when app on foreground

Happens pretty regularly that when having app on foreground, some nearby sensors stop from updating for 25-35 seconds and continues after that to work ok. More testing needed. This was on Galaxy S21 Ultra, Android 13.

I tested with two Android 13 phones side by side and seems that even if a sensor stops updating on first one, it keeps updating on the second one. This means that all the sensors are advertising okay.
Also noticed that on this another phone (Galaxy Note 20 Ultra), no such long pauses occur. Sometimes sensors stop from updating for 5-10 seconds but not for as long as on the S21 Ultra (25-35 seconds).
Will update this issue once I'll have new results or other comments worth to mention.

Closing older issue https://github.com/ruuvi/com.ruuvi.station/issues/389 and continuing on this card

Checking if latest OS13 update fixes this

Issue still exists, confirmed on S22 Ultra OS13

https://github.com/ruuvi/com.ruuvi.station/assets/50437378/bdf7bf53-583e-46cc-aa3a-b367b981f107

Probably this cannot be used due to Bluetooth library that is offered in OS

Closing this as this will be improved with sensor pairing feature.
This is one of those details that phone manufacturer has decided to do with Bluetooth cycles, we have no control over it.


Reverse mode autodiff for diag_post_multiply

Summary
Implemented custom reverse mode AD for diag_post_multiply() function. The implementation is based on the reverse mode implementation of diag_pre_multiply().
Tests
Added a test for prim where the arguments are of length zero.
Removed manual ad_tolerances from the mix test, similar to diag_pre_multiply(). Also added 4 mix tests, where the matrix is non-square.
Side Effects
None.
Release notes
Added custom reverse mode for diag_post_multiply() function.
Checklist

[x] Math issue #989

[x] Copyright holder: Gregor Pirš

@gregorp90 I pushed a fix for an OpenCL test issue that surfaced here.
@t4c1 @bbbales2 can I interest any one of you for a review?

@gregorp90 I pushed a fix for an OpenCL test issue that surfaced here.

@rok-cesnovar Thank you!


Decorrelate Distinct, Asc/Desc, Filterable fields from the faceted fields

This PR decorrelates the fields that need to be stored in facet databases (big inverted indexes for fast access) from the filterable fields, the previously named faceted fields are now named filterable fields and are the union of the distinct attribute, all the Asc/Desc criteria and, the filterable fields.
I added two tests to make sure that the engine was correctly generating the faceted databases when a distinct attribute or an Asc/Desc criteria were added, and one to make sure that it was impossible to filter on a non-filterable field even if it was a faceted one.
Note that the AttributesForFacetting has also been renamed into FilterableAttributes. But it will be the Transplant's job to do that on the API, this change is only visible to the milli's library users.

Related to https://github.com/meilisearch/transplant/issues/187.
Fixes #161 by returning the documents that don't have the Asc/Desc field at the end of the bucket.
Fixes #168.
Fixes #152.

bors merge


[Storage] add new stroage account kind "FileStorage" and "BlockBlobStorage" and new feature fileaadIntegration

Description

Add new storage account kind and fileaadintegration support to new api version 2017-08-01
Swagger PR: https://github.com/Azure/azure-rest-api-specs/pull/3864, still in review.
This is generated from my personal repo, send this for an early review, to reduce the risk for release this in Ignite. I will update the SDK when swagger PR merged (should not have much code change).
There's breaking change so upgrade version to 9.0. See details below.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] Please add REST spec PR link to the SDK PR

[x] I have read the contribution guidelines.

[ ] The pull request does not introduce breaking changes.

Since the Management Policy not supported in 2018-07-01 (only support on 2018-03-01-preview), I also add it to SDK SRP but with different Opeartion ID (per suggestion of lmazuel). This is breaking.

The Global Usage also removed, since will not support in new api versions (as location usage added).

I have upgrade SDK version to 9.0 for the breaking change.

General Guidelines

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[x] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[x] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[x] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

@dsgouda
The swagger PR is merged, and I have updated this PR with merged swagger PR.
Would you please help to review and merge this PR if not other issues asap?
Thanks!

@dsgouda
Thanks for the help to review and merge it!


unable to connect

LAN access is activated, it perfectly discovers the IP of the light bulb but does not connect.
unable to connect: IP:55443
Another application I have connects correctly

I need more information regarding your issue.
Do you have all dependencies installed, especially coreutils and openbsd-netcat?


Cache buckets

multiple keys per module

also consider cases where a single bucket has thousands of keys. probably should do a modular hash and break into multiple smaller modules


Inaccessible input_select options

Describe the bug
Menu dropdown items from input_select entity only display 5 max, rendering additional items inaccessible.
To Reproduce
type: vertical-stack
cards:
  - type: custom:bubble-card
    card_type: pop-up
    hash: '#quick_run'
    name: Quick Run
    icon: mdi:timer-outline
  - type: vertical-stack
    cards:
      - type: custom:mushroom-select-card
        entity: input_select.irrigation_zone
        fill_container: false
        name: Selected Zone
        secondary_info: none
        layout: horizontal

# Example configuration.yaml entry
input_select:
  irrigation_zone:
    options:
      - Zone1
      - Zone2
      - Zone3
      - Zone4
      - Zone5
      - Zone6
      - Zone7
      - Zone8
      - Zone9
      - Zone10

Expected behavior
All dropdown menu items to be accessible.
Screenshots
Unable to scroll to lower dropdown items.

Informations (please complete the following information):

OS: iOS and MacOS
Browser: Safari
Bubble Card version: 2.0.1
Home Assistant version: 2024.6.1

Additional context
Thank you for your very useful card! My dashboards couldn't live without it. :)
Thank you! 🍻

Hi, have you changed the top_margin? If yes I've realized that you can't use % anymore for these values. Something has changed in the v2, you can now use for example 50vh instead of 50%, I've just changed that example in the editor and I will do the same in the editor.
Also if you want a fixed height for your pop-up (e.g. 400px) you can do this:
    margin_top_mobile: calc(100vh - 400px)
    margin_top_desktop: calc(100vh - 400px)

That should fix your issue.

Thanks for looking into this. I hadn’t changed the top margins. The sample code I included in my OP is pretty much what I have. No frills or card_mod. :)
I added your code above to the bubble card, but that made it so I could only see and select the top entry in the input_select field unfortunately.

I've just fixed it, I will release a new version as soon as I can!

This issue is now fixed in the new betas 🙂
https://github.com/Clooos/Bubble-Card/releases/tag/v2.1.0-beta.2


No release notes

The current release (2.2.0) is not on the release page of this repository.
Furthermore I cannot find release notes anywhere.

The 2.2.0 release has now been added to the release page. Old releases can be found in the original repository.


When batch_size > 1, Rater flow is aggregating wrong groups for majority vote and average score.

Credit to @Panzy-18 to find this issue through his experiment.
As stated in https://github.com/CambioML/uniflow/pull/109#issuecomment-1888021544. When batch_size > 1, Rater flow is aggregating wrong groups for majority vote and average score.

Issue is fixed in https://github.com/CambioML/uniflow/pull/128.


Publish docs live

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/concepts/add-in-development-best-practices.md
:white_check_mark:Succeeded

docs/design/authentication-patterns.md
:white_check_mark:Succeeded

docs/develop/auth-external-add-ins.md
:white_check_mark:Succeeded

docs/develop/dialog-api-in-office-add-ins.md
:white_check_mark:Succeeded

docs/develop/troubleshoot-sso-in-office-add-ins.md
:white_check_mark:Succeeded

docs/excel/excel-add-ins-overview.md
:white_check_mark:Succeeded

docs/onenote/onenote-add-ins-page-content.md
:white_check_mark:Succeeded

docs/overview/office-add-in-availability.md
:white_check_mark:Succeeded

docs/overview/office-add-ins.md
:white_check_mark:Succeeded

docs/publish/centralized-deployment.md
:white_check_mark:Succeeded

docs/reference/manifest/webapplicationinfo.md
:white_check_mark:Succeeded

docs/reference/objectmodel/preview-requirement-set/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/preview-requirement-set/office.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.5/office.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.6/office.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.7/office.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


js[patch]: Inline lodash.set functionality to patch vulnerability

The lodash.set package is unmaintained and has a CVE: https://security.snyk.io/package/npm/lodash.set
The current lodash version has no CVEs: https://security.snyk.io/package/npm/lodash
I've inlined the relevant set functionality from the current version of lodash.
Let's be more careful with adding deps in the future!
@dqbd @nfcampos @agola11

We don't want loadsh as a dependency in python?


Refetch on address change

📝 Changed routes:

/dashboard/engine

(view full size)

Commit b062a809e173762617d3eb1d3ac2079b6c1f4c87 (https://thirdweb-j1yy0ue2g.thirdweb-preview.com).


Reminder: Change version of next release to 1.2.xx instead of 1.1.xx

Task description
Change version of next release to 1.2.xx instead of 1.1.xx.

Verified on testnet CCD app v1.2.30.


New version: Ferdium.Ferdium.Nightly version 6.7.1-nightly.8

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Hi @Alphrag,
The package didn't pass a Defender or similar security scan. This might be a false positive and we can rescan tomorrow.
(Automated response - build 570.)

Automatic Validation ended with:

Installation failed with exit code -1978335187 2024-01-15 01:58:24.796 [FAIL] Installer failed security check. Url: https://github.com/ferdium/ferdium-app/releases/download/v6.7.1-nightly.8/Ferdium-win-AutoSetup-6.7.1-nightly.8-ia32.exe Result: 0x80004005

(Automated response - build 570.)

/AzurePipelines run

@stephengillie Thanks for checking this out. I've had no trouble installing this version on my computer, and we haven't had any issues with security check before. So let's see if it resolves itself, otherwise I'll try to figure out what could be causing this.


8/11 Update

Updates associated with CEPAL and SEO

Docs Build status updates of commit a20d848:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows-iotcore/Downloads.md
:white_check_mark:Succeeded

windows-iotcore/GetStarted.md
:white_check_mark:Succeeded

windows-iotcore/Resources.md
:white_check_mark:Succeeded

windows-iotcore/Troubleshooting.md
:white_check_mark:Succeeded

windows-iotcore/commercialize-your-device/UEFIRequirements.md
:white_check_mark:Succeeded

windows-iotcore/connect-to-cloud/ConnectAppToCloud.md
:white_check_mark:Succeeded

windows-iotcore/connect-to-cloud/ConnectDeviceToCloud.md
:white_check_mark:Succeeded

windows-iotcore/connect-to-cloud/ManageDevices.md
:white_check_mark:Succeeded

windows-iotcore/connect-your-device/MBB.md
:white_check_mark:Succeeded

windows-iotcore/connect-your-device/Miracast.md
:white_check_mark:Succeeded

windows-iotcore/develop-your-app/BackgroundApplications.md
:white_check_mark:Succeeded

windows-iotcore/develop-your-app/InvestigateMemoryLeaks.md
:white_check_mark:Succeeded

windows-iotcore/develop-your-app/IoTCoreDefaultApp.md
:white_check_mark:Succeeded

windows-iotcore/develop-your-app/UnitTestsForIoTCore.md
:white_check_mark:Succeeded

windows-iotcore/developer-tools/python.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/DriverDeployment.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/PinMappings/PinMappingsDB.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/PinMappings/PinMappingsMBM.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/WakeOnTouch.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/iotnxp.md
:white_check_mark:Succeeded

windows-iotcore/mDNS.md
:white_check_mark:Succeeded

windows-iotcore/manage-your-device/DeviceManagement.md
:white_check_mark:Succeeded

windows-iotcore/release-notes/Insider/RPi3BP.md
:white_check_mark:Succeeded

windows-iotcore/release-notes/commercial/17763.md
:white_check_mark:Succeeded

windows-iotcore/release-notes/commercial/CreatorsUpdate.md
:white_check_mark:Succeeded

windows-iotcore/release-notes/commercial/October2018Update.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/adafruitkit.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/dragonboard.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/intel.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/minnowboard.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/nxp.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/quickstarter/DevelopApp.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/quickstarter/PrototypeBoards.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/rpi.md
:white_check_mark:Succeeded

windows-iotcore/windows-ce-app-container.md
:white_check_mark:Succeeded

windows-iotcore/windows-iot-core.md
:white_check_mark:Succeeded

windows-iotcore/windows-iot.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


feat(Order): the transfinite iteration of a map

Given φ : I → I where I is a complete lattice, and i₀ : I, we define the transfinite iteration of φ indexed by any well-ordered type J, this is transfiniteIteration φ i₀ : J → I. It sends ⊥ to i₀, the successor of a non maximal element j to φ (transfiniteIteration φ i₀ j), and a limit element j to the supremum of the elements transfiniteIteration φ i₀ l for l < j. We show it is a monotone function if i ≤ φ i for all i.
(Hopefully, this will be used in order to show Grothendieck abelian categories have enough injectives.)

Am I correct in saying this is pretty much OrdinalApprox.lfpApprox but generalized to other complete lattices? If so, then we should probably deal with deduplicating them.

Am I correct in saying this is pretty much OrdinalApprox.lfpApprox but generalized to other complete lattices? If so, then we should probably deal with deduplicating them.

I would be happy if this was a particular case of another construction, but please note that in the applications φ : I → I satisfies i ≤ φ i, but there is no reason that φ : I →o I.

Well, more precisely, I think OrdinalApprox.lfpApprox and TransfiniteIteration are both special cases of the following definition:
def transfiniteIterate {I J : Type*}
    [SupSet I] [LinearOrder J] [SuccOrder J] [WellFoundedLT J] (f : I → I) (n : J) : I → I :=
  SuccOrder.limitRecOn n
    (fun _ _ ↦ id) (fun _ _ g ↦ f ∘ g) (fun y _ IH ↦ ⨆ x : Set.Iio y, IH x.1 x.2)

There's no actual requirement that f be monotonic, but if isn't, then the limit case won't necessarily correspond to the limit.

Well, more precisely, I think OrdinalApprox.lfpApprox and TransfiniteIteration are both special cases of the following definition:
def transfiniteIterate {I J : Type*}
    [SupSet I] [PartialOrder J] [SuccOrder J] [WellFoundedLT J] (f : I → I) (n : J) : I → I :=
  SuccOrder.limitRecOn n
    (fun _ _ ↦ id) (fun _ _ g ↦ f ∘ g) (fun y _ IH ↦ ⨆ x : Set.Iio y, IH x.1 x.2)

There's no actual requirement that f be monotonic, but if isn't, then the limit case won't necessarily correspond to the limit. I'm not sure what works for your application, but I'd imagine that we'd actually want to use something like limsup instead of the supremum instead.

Thanks very much for the shorter definition!
I think I still want to use the supremum. Under the assumption i ≤ φ i, I show that the function which sends j to the jth iteration evaluated at i₀ : I is a monotone function.

The advantage with using the limsup (or really any more proper notion of a limit on complete lattices) is that it also gives us the dual notion of a transfinite iterate for functions with i ≤ f i without having to declare it separately.

The advantage with using the limsup (or really any more proper notion of a limit on complete lattices) is that it also gives us the dual notion of a transfinite iterate for functions with i ≤ f i without having to declare it separately.
If you want we can discuss this further on Zulip. I think it'd be really nice to link this definition to our existing ordinal API.

I am not sure there is a need to unify with OrdinalApprox.lfpApprox, as this definition is used only in one file, involves Ordinal rather than a well-ordered type J (which is very much what we want to consider in category theory, because J has a category structure) and in the file, it seems the definitional properties matter. It seems to me using limsup would only make things more complicated, and anyway in OrdinalApprox.lfpApprox, ⨆ is used, not limsup.

Thanks!
bors merge


Add a way to specify custom collection option lookup key for i18n

A custom key can specified with config.i18n_options_scope:
config.i18n_options_scope = lambda { |i18n_scope| "#{i18n_scope}.options" }

The default (above) returns simple_form.options - like it was always
before. But I can no easy override the options key like this:
config.i18n_options_scope = lambda { |i18n_scope| "#{i18n_scope}.other" }

In addition, if I want it to be somewhere else outside the regular
i18n_scope, I can do:
config.i18n_options_scope = lambda { |_| 'where.ever.i.want' }

This gives total flexibility where simple_form looks up translations of
collection options.
The current version always wants the config to be a lambda. One could
rewrite the implementation to work with a simple string
(config.i18n_options_scope = 'where.ever.i.want) if we want to give
the user total ease of defining the scope in case the scope does not
depend on the i18n_scope. Or the implementation could be that in case
of a single string the i18n_scope is automatically prepended, for
example:
config.i18n_options_scope = 'where.ever.i.want'

... means to look up under simple_form.where.ever.i.want. But for
explicitness sake requiring it to be a lambda always might be the
better choice (but I'm open to changes).

@plataformatec - any chance for a review/comment?

@doits sorry for the delay - what's the motivation behind this new configuration? Isn't the default i18n scope enough for your application? Would love to know more about to see if we should merge this or if the default behavior should be enough.

It is simple: I am using some other libraries that work with and lookup translations of collection values. So I already have defined them at a different namespace (in my case called activerecord.attribute_values - library name agnostic) and do not want to define them again but make simple form use them.
I could work round this if there was a way to set translations during runtime, something like:
I18n.available_locales.each do |loc|
  I18n.store_translation("#{loc}.simple_form.options", I18n.t("#{loc}.activerecord.attribute_values"))
end

This could be in an initializer and all was good. Do you maybe know a way to do something like this? Then this PR would be superfluous.

I think I found a solution to do it with I18n.backend.store_translations. So this can be closed unless store_translations does not work - will reopen it then.


Current version d53702d does not start

After upgrading there is an error while starting the plugin

Same here, log below.
appreciate the work you are doing!
Source: setup.py:192
First occurred: 07:48:42 (1 occurrences)
Last logged: 07:48:42

Setup failed for custom integration luxtronik2: Unable to import component: No module named 'custom_components.luxtronik2.const'```

Brilliant shout, thank you.
For now renaming file /custom_components/luxtronik2/correction to /custom_components/luxtronik2/const.py+ HA restart does the trick.

Should be fixed with new version.


AETHER-139 - handover test on staging to Nucleus

Handover fixes for adding new state to handle enb transfer message.
and also fixing decoding of handover messages.

@badhrinathpa @asreek can you please review code.

retest this please

retest this please

retest this please

retest this please

retest this please

retest this please


ReasonML bindings

This is a nice project, would be even nicer if there were bindings to ReasonML and Typescript.
Cheers.

Thanks.
I'll consider adding bindings once more people want this.


Video thumbnails in Dolphin (KDE) not shown

Issue description
When using Dolphin to browse a folder with videos, the video thumbnails are not shown.
On the other hand, image thumbnails are correctly shown. Manually creating video thumbnails with ffmpegthumbnailer also works.
Steps to reproduce

Set services.xserver.desktopManager.plasma5.enable = true; in configuration.nix
Start Plasma.
wget http://www.engr.colostate.edu/me/facil/dynamics/files/flame.avi
dolphin
Enable "Preview" option in Dolphin
Observe that no thumbnail for flame.avi is shown

Technical details

System: NixOS: 17.03
Nix version: 1.11.14
Nixpkgs version: "17.03.1825.df7e518568"
Sandboxing enabled: false

In recent nixos-versions, the thumbnail is being shown correctly, i.e. I can't reproduce the issue. Has probably been fixed in the mean-time, or the defaults have changed (on a debian-machine video-thumbnails have been disabled by default).
So IMO this issue should be closed.
Technical details

system: "x86_64-linux"
host os: Linux 4.14.79, NixOS, 18.09.1228.a4c4cbb613c (Jellyfish)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.1.3
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Thanks for checking up!


[DT-789] Add Access Type Icons

Addresses
https://broadworkbench.atlassian.net/browse/DT-789
Summary
Add icons to the Access Type column in the Dataset table in the Data Library
Tooltip appears when you hover over the icon
https://github.com/user-attachments/assets/643ca121-41ab-41d4-b82c-4747a09df5a6

Have you read Terra's Contributing Guide lately? If not, do that first.

Label PR with a Jira ticket number and include a link to the ticket
Label PR with a security risk modifier [no, low, medium, high]
PR describes scope of changes
Get a minimum of one thumbs worth of review, preferably two if enough team members are available
Get PO sign-off for all non-trivial UI or workflow changes
Verify all tests go green
Test this change deployed correctly and works on dev environment after deployment

I think from the mocks, the same icons need to be in the filter panel as well:

Additionally, in the case where there are multiple access types, the column should show a "Mixed" value:

Additionally, in the case where there are multiple access types, the column should show a "Mixed" value:

@rushtong Are there datasets that have multiple access types? I thought the "Mixed" value would only apply to studies with datasets that have different access types

Added the icons to the filter list:


Have it support convert pretrained nlp model from PaddlePaddle to tensorflow ?

I want to convert pretrained nlp model from PaddlePaddle to tensorflow ?
like bert or elmo (https://github.com/PaddlePaddle/LARK/tree/develop/BERT).
Is that have been supported and tested?

Sorry, we do not support convert to tensorflow model from paddle model at present.

I want to convert pretrained nlp model from PaddlePaddle to tensorflow ?
like bert or elmo (https://github.com/PaddlePaddle/LARK/tree/develop/BERT).
Is that have been supported and tested?

Sorry, we do not support convert to tensorflow model from paddle model at present.


nerdfonts: 2.3.3 -> 3.0.0

Description of changes
https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 229817 run on x86_64-linux 1

1 package built:

koreader

Could we maybe get a mention of this in the NixOS release notes? nerdfonts 3.0 includes two major breaking changes.


Joining process takes forever in a busy environment

We are using openthread in a busy ether where we have different networks & lots of nodes.
In such environment it takes forever for a node to join.
To Reproduce
Prepare a busy environment with multiple networks & many nodes.
Try to join a node to a specific network.
Expected behavior
Node join process should finish with "Join Success" as one commissioner is able to let this node in.
Current behavior
Node tries to join multiple times to the network we are not expecting and fails with "Join Failed".
Multiple tries of joining finishes with the same result.
What happens
First of all OPENTHREAD_CONFIG_JOINER_MAX_CANDIDATES = 2 by default.
This means that node will try to join only to "best" 2 nodes from discovery result.
If all "best" nodes are nodes from a network that we are not expecting - "Join success" will never happen.
How about additional PANID checking so that we can have different PANIDs in the mJoinerRouters table?
I would say that having 1 "best" node from every discovered PANID should be enough.

@mwilniewiec , thanks for raising this issue.
Thread's commissioning process assumes that networks will be configured with the Joiner ID(s) that they are looking to join. These Joiner IDs are encoded in Steering Data TLVs included in the Discovery Response messages. The Joiner looks for its Joiner ID in the received Steering Data TLVs to filter the set of networks it will attempt to join. In this scenario, we expect the number of networks (i.e. PAN IDs) to be small (typically one) and we want the device to try different neighbors if attempts are failing.
Are you able to use the existing Steering Data TLV mechanism to help with filtering?

@jwhui thanks for the answer.
I was aware that there is something like Steering Data and Bloom Filters, but I was pretty sure we checked it long time ago and for some reason we omitted it.
From what I see it may be useful and we can try it but it's more complex to us as our commissioner is currently not aware of joiners that are expected to join. Join attempts are transferred directly to cloud and commissioner receives a a joiner PSKd or a reject.
We first need to make some joiner testing with extra OT logs as we see that our OPENTHREAD_CONFIG_JOINER_MAX_CANDIDATES is currently set to 65 which is really high but joining process doesn't match our understanding and we don't know what we are missing.
I think we can also try an OT patch that will put more PANIDs to a mJoinerRouters table as its really simple to write.
Later we will try to rearrange our joining process to introduce steering data on the commissioner.
One thing that be problematic is our network sizes (up to 100 devices). In such cases collisions in bloom filters are really high:
n=30 p=0.140
n=50 p=0.294
n=100 p=0.625

Still... We have lots of networks around 30 devices so we can benefit there.
It looked wrong to me that with default settings joiner may never join to an expected network.
But as you said... Using steering data + increasing OPENTHREAD_CONFIG_JOINER_MAX_CANDIDATES should potentially fix the problem.
Closing for now, thanks for help

@jwhui
As I sad earlier we had to investigate problem a little bit more as we had different expectations from the code we read.
Things that we found:

In busy environment our Commissioner (NCP) is not found in a discover result, it is almost always found in scan result, but hardly ever in discover. Why the difference between the two is so huge? PS. changing commissioner channel helps as expected.
We see that CoapSecure.Connect() gives us callback after 2 minutes (when joiner is rejected), possibly we close DTLS session in a wrong way on the commissioner side. What is a correct way to do that?
We see that there are lots of duplicates (pairs of extAddresses) in discover/scan result, is it expected? Shouldn't we have only unique entries in mJoinerRouters in joiner.cpp ?


fix(test/#843): Fix windows output for test cases

Issue: esy @test run stopped producing output on all the windows devices I tried.
Defect: Linking in reason-sdl2 brings in the -mwindows flag, which causes the application to not allocate or attach console.
Fix: Explicitly attach a console for the test runner.
Fixes #843  - I guess we both hit this at the same time, @Et7f3 !

Ah yeah make sense. I think I will upstream to rely.


webpage javascript content caching

is this possible? If so, I can attempt it.

Not sure what the issue is here.
We switched to WKWebView and added a feature to even clear the cache.
Check out v2.1 or newer and get back to use if you have any more questions but please provide some details.


Run tests on PRs and rename old reference to master

Cleans up the CI a bit:

Rename macOS to macos to fix linting warning
Rename old reference to master
Run the tests when PRs are submitted

@sammyd looks like these tests are failing on development as well - I'll create an issue to get that fixed as well


reduce number of keys to make keydicts faster

I tried doing something fancy, but this worked better. :-/

@whoburg, ready for review


Remove duplicate job from CD workflow

What is being addressed
The CD workflow (deploy_tre) deploys the mgmt infra twice - one directly and another from the call to "make all". This PR removes the first one (which saves 1.5 minutes).

I see @marrobi. I suggest we'll add aliases to support this flow in the make file, I guess a "setup" one that includes everything up to the tre-deploy which is the environment specific.


docs: scripts have moved to https://www.infracost.io/docs/features/co…

…nfig_file/, see https://github.com/infracost/docs/pull/146

Any ideas why the PR is failing on the AWS tests? PRs after this PR aren't failing on that issue

Any ideas why the PR is failing on the AWS tests? PRs after this PR aren't failing on that issue

Fixed in https://github.com/infracost/infracost/pull/1285/commits/20ad5d4f573ac3db856404c11e7be449c3c5573c which is in master.


High IO Overhead and Low GPU Utilization During Pretraining on Time-300B Dataset

Hi,
Thank you for sharing the dataset and codebase! I’m currently using the Time-300B dataset and your code to pretrain a Time-MOE model. However, I’ve noticed significant IO overhead during data loading, which results in very low GPU utilization.
In your paper, you mentioned training with 128 A100 GPUs, which makes me curious about how you organized the dataset loading to achieve such efficiency. Could you share any insights or best practices on optimizing data loading for large-scale pretraining?
Thanks again for your work and support!
Best regards

Thank you for your interest in our work!
The dataset (BinaryDataset) for Time-300B in this repository, used in training Time-MoE, dynamically reads sequences from disk, which can result in significant disk I/O demands. To address this, we've implemented optimizations to reduce the load.
Could you please provide details about your hardware environment, such as whether you're using an SSD or HDD and what type of GPU you have? In our Time-MoE training, we evaluated the data loader's efficiency on NVIDIA A800 and H800 GPUs with SSDs, and we didn't encounter any I/O bottlenecks, even with the TimeMoE-50M model.
I recently tested the GPU utilization when training TimeMoE-50M on an H800 GPU with SSD. The command used was:
python torch_dist_run.py main.py -m Maple728/TimeMoE-50M -d Time-300B --micro_batch_size 32 --global_batch_size 1024 --dataloader_num_workers 8

Below is the GPU utilization graph:

Additionally, I compared the training speed between using the BinaryDataset (which reads data dynamically from disk) and the GeneralDataset (which reads data from memory). The results are as follows:

Data Loader Strategy
Training Speed (s/iter)

BinaryDataset
1.31

GeneralDataset
1.30

BinaryDataset Results:

GeneralDataset Results:

As shown, the training speed is comparable even for TimeMoE-50M.
Here are some tips that may help resolve your issue:

Use torch_dist_run.py for model training if you have multiple GPUs.
Adjust the micro_batch_size until the GPU memory is fully utilized.
Increase the dataloader_num_workers if necessary, although the default of 4 workers is typically sufficient.

We hope this helps you in optimizing your training process. If you have further questions, please don't hesitate to ask!

Thank you for the detailed information and optimization tips!
I recently moved the dataset to an SSD and retested the training. The IO bottleneck is indeed resolved, and the training process is now much smoother with significantly improved GPU utilization.
Once again, thank you for your support and guidance!


getRegistration ignores scope

Should the getRegistration method in the runtime template optionally include the scope as an arg (if one has been defined)?
https://github.com/NekR/offline-plugin/blob/e2fd1ab6126664a72e6529b7d6f19c3c80e60099/tpls/runtime-template.js#L223
So something like this:
<% if (ServiceWorker.scope) { %>
navigator.serviceWorker.getRegistration(<%- JSON.stringify(ServiceWorker.scope) %>).then(function(registration) {
 <% } %>
...

@lilfolr sounds legit, would you consider sending a PR our way?

Can do. Have a bit on at work atm, but I'll try get something out for you to review in the coming weeks


Missing Daemon Attr Flag

Enhancement summary
Add support to render daemon attr flag -cvcompression=gzip in eos_cli_config_gen
Which component of AVD is impacted
eos_cli_config_gen
Use case example
Need to configure additional flag. See following link for list of commonly used flags:
https://aristanetworks.force.com/AristaCommunity/s/article/terminattr-most-commonly-used-flags-and-sample-configurations
Describe the solution you would like
Add following key to the daemon_terminattr data model:
cvcompression: < none | gzip >
Describe alternatives you have considered
using raw eos_cli, not ideal
Additional context
No response
Contributing Guide

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

That is right, we do not need this and haven't needed this for 3 years, which is why I've put a note inside the article as well
Note that compression is enabled by default since TerminAttr 1.6.1 and CVP 2019.1.0 and it’s redundant to specify it in the daemon configuration.
Some old builders might still have that in CV, but we've been removing them there too.

Thanks both for the clarification. Closing the issue


Calendar create issue on Android Samsung device

This PR contains only formatting change

@andzejsw There are two commits. changes are in the first commit. and the second I mistakenly import the color two times then fix it.


 The image uses golang:1.13 as its base image. We should upgrade both to Go 1.15.

Closed by #11


[ISSUE #276] Support serverless workflow

Fixes #276 .
Motivation
add workflow module,support serverless-workflow dsl and asyncapi
Modifications
add eventmesh-workflow-go module。
Abstract event sending/consumption into task execution. This module implements task queue, task executor, and task scheduler.
Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@walterlife please check the CI fail tasks.


[DOCS] Discuss 502/504 error when stopping EC2 instance during Session Stickyness Demo

During [SHAREDALL] [DEMO] Seeing Session Stickiness in Action, during Stage 1G we are directed to stop the EC2 instance that the client becomes sticky with. This stop action leads immediately to a 502 Bad Gateway error for about 30-60 sec., then a 504 Gateway Time-out error after that for about the same time. Then the LB correctly routes a running instance.
For students unfamiliar with how the ALB does health checks, this will be distracting/disorienting and will seem like a configuration error. Add a note in the lab instructions that describe this behavior so that students know that they have successfully completed the lab despite the behavior.

Moving to labs repo.


Path with spaces not working under Windows 10

Hi,
I'm not totally sure what the exact issue is, but having a project which contains spaces (the project is on a different drive, too) can't be opened by VSCode. The loaded project looks like "D:\this\ is\ only\ one\ folder".
Removing the call EscapePathSpaces before assigning args to proc.StartInfo.Arguments solved the issue for me though.
As I don't know what the exact cause is (Win10? Or because of the newest VSCode version?) I thought I'll just let you know.
Best,
Mawey

Fixed, the problem was on the plugin, the EscapePathSpaces call is not needed on a Windows system


inline horizontal button

i want to create inline horizontal buttons ( default is vertical) how to do that (ie. add class to button)
my code is below
var fileTime = [00,12]
for (var i=0;i<fileTime.length;i++){
  (function () {
    var time = String(fileTime[i].pad(2))
    var mybutton = L.easyButton({
      id: time,
      states: [{
        icon: '' + time + '',
        onClick: function (e) {
          changeMapByButton(time)
          alert(time)
        }
      }]
    });
    mybutton.addTo(map)
  })();
}

You can group your buttons with L.easyBar and then style that bar with the .leaflet-bar selector.
Based on the code you shared, it would look roughly like this:
var fileTimes = [00,12];
var buttons = fileTimes.map(function(t){
    var time = String(t.pad(2))
    return L.easyButton({
      id: time,
      states: [{
        icon: '' + time + '',
        onClick: function (e) {
          changeMapByButton(time)
          alert(time)
        }
      }]
    });
  });

var bar = L.easyBar(buttons);  // wrap your buttons with an easyBar
bar.addTo(map); // add the bar to your map

then a little bit of css to get your buttons aligned:
.leaflet-bar {
    /* style your buttons horizontally here */
}

This code is untested, but the general idea should help you get started.

i have already done this but not work
my css for leafletbar
.leaflet-bar {
position: fixed;
z-index: 1000;
top: 20px;
left: 75px;
}
it move this bar to top but button didn't in one line

the code you shared adds each button separately. Based on what you're describing, you need to use an L.easyBar to group the buttons.
var buttons = [];                          // NOTE: use a separate array to collect the buttons
var fileTime = [00,12]
for (var i=0;i<fileTime.length;i++){
  (function () {
    var time = String(fileTime[i].pad(2))
    var mybutton = L.easyButton({
      id: time,
      states: [{
        icon: '' + time + '',
        onClick: function (e) {
          changeMapByButton(time)
          alert(time)
        }
      }]
    });
    buttons.push(mybutton)                 // NOTE: add to the buttons array instead of the map
  })();
}

var bar = L.easyBar(buttons);              // NOTE: create an easyBar with the buttons
bar.addTo(map);                            // NOTE: add the bar to the map

This will group the buttons under a parent element that you can then style to fit your needs.

@atstp as i said above i have completely done this code you mention but when i add my css to leaflet bar
.leaflet-bar {
position: fixed;
z-index: 1000;
top: 20px;
left: 75px;
}
it move this bar on top but button inside it didn't in one line

okay, in that case, I need a bit more info to give you better help.
What do you think is causing your issue, and what have you already tried to resolve it?
Also, if you share a minimal, running example, that would make it easier for me to help you.

@atstp
this is mycode http://jsfiddle.net/b2zxLdor/18/

okay, thanks.
What have you tried (that hasn't worked)?

done i have just fixed my problem thanks for help

@shinnobi : can you update your jsfiddle? or show the styling snippet here? thanks

@shinnobi You committed one of the most cardinal sins of google searches: "I fixed it!"...  And you didn't provide the fix. Please. Provide. The fix.

sorry for late commend i upload this code http://jsfiddle.net/w47s96pt/ for inline button
thanks you for all


birthday format change, database user input insertion add

There is no way for it to actually get inputted into the database until authentication is done , but this should give you some assistance


Open Competition counter results in error

Line 99: var act = MockDataService.getActivityById(actID) results in error if getActivityById returns null (Activity not found)
Better would be var act = MockDataService.getActivityById(actID) || 0     ?


Zoom Improvements

Problem
Currently if you zoom out beyond the original original zoom factor, whitespace shows around the top level pane.
Improvements
Allow zoom out much more (maybe not infinitely!) to make large canvases possible.
Make sure zoom in/out does so around around the current center of the screen (not sure what it's doing at the moment)
Implement a pan feature to move around a large zoomed canvas (touch and mouse versions - both could use "click and drag" on the background I think?)

The canvas is already large, but the problem is that somehow it doesn't start you on the center of it anymore. Previously zooming was around the center of the screen.
Maybe it's related to the previous menubar changes, as I only don't see the zoom button on the bottom anymore.
Panning of the canvas is supported, and uses the secondary mouse button or two fingers on touch.

Didn't know pan was implemented.
I can't figure out how to get it to work, but I'm using a touchpad (on Mac)....
I'll look into what may have happened to zoom buttons - maybe I broke that...
This is what I get if from starting view I do a zoom out.

I think some of these issues have to do with MainOverlay changing from a StackPane to a BorderPane.

As a workaround the few first lines in layout.css could be changed to the following:

ToplevelPane {
-fx-translate-x: -4000;
-fx-translate-y: -2000;
}

The translation is applied already - so problem reduced.
Re-wrote the issue to better describe it (panning also).
low-priority, but a nice bug to get someone involved in the project with a fix?
Label "easy fix" or "low-hanging fruit" and welcome FOSS contributors?


Update quickstarts and minor docs spruces

Description

Update references in documentation from master branch to main
Resolve deprecation warnings from az group deployment command in quickstarts (2225)
Add steps for deployment using SQL Store backend, and fix issues related to that (2326)
Update deployment template references to use the docker template, per the comment on 2326

Related issues
Fixes #2225 and #2326
Testing
Tested manually by following updated quickstart instructions (used my branch for the updated deployment template url, otherwise SQL Server deployment instructions still fail ala #2326).
FHIR Team Checklist

[x] Update the title of the PR to be succinct and less than 50 characters
[ ] Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
[ ] Tag the PR with the type of update: Bug, Dependencies, Enhancement, or New-Feature
[ ] Tag the PR with Azure API for FHIR if this will release to the Azure API for FHIR managed service (CosmosDB or common code related to service)
[ ] Tag the PR with Azure Healthcare APIs if this will release to the Azure Healthcare APIs managed service (Sql server or common code related to service)
[ ] CI is green before merge
Review squash-merge requirements

Semver Change (docs)
Skip (docs)

Thank you @aidanplunkitt for these fixes!

/azp run

Looks great @aidanplunkitt!! Thanks for the contribution.


global: highlights support

Adding highlights fields support by adding specific configuration entry.

ES reference:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html
ES-DSL:
http://elasticsearch-dsl.readthedocs.io/en/latest/search_dsl.html#highlighting
Records-REST:
Probably just have to be plugged in default_search_factory similar to how default_facets_factory is plugged.


Cordova FCM plugin

Hi! I'm trying to use Cordova FCM plugin with my tabris app. This plugin requires google-services.json file to be in the android specific folder. According to the error log, this is the right folder in tabris /home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/. I was trying to use cordova hook before build, but not sure whether it's my error in hook script or somewhere else. Here is the hook source https://github.com/Gregivy/quiz/blob/master/cordova/before_build.js

Can you post the build log?

I'm using cloud building.

https://tabrisjs.com/Gregivy/apps/580522a89b51b0e4872d0c96/3/log

@Gregivy That link is only accessible by you; you'll need to post the contents to a Gist, pastebin, or similar and link it here.

@cookieguru http://pastebin.com/66HzESrJ

@Gregivy Not sure why the build hook is not working as expected but the folder you want to copy in is correct.

When creating build hooks you can also test those in a regular cordova build environment on your local machine. Usually a faster turnaround than to use the tabris build service.

I'll try before prepare hook and add some console log in the script, may be it will help to figure out what's going on.

It didn't help. Actually nothing even appeared in the log, may be I don't understand some fundamental things about cordova hooks. Are you sure that it is written correctly? The hook script I mean.

It was a hook error as I expected. Now I have a different kind of error:
Parsing json file: /home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/google-services.json
:processDebugGoogleServices FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':processDebugGoogleServices'.

No matching client found for package name 'com.quizez'

I suspect that the problem could be with copying google-services file, perhaps it's empty.

I have finally managed to compile the app. The problem was with the difference in package names in google console and cordova config file. I'll test the plugin and write here the review.

@Gregivy Good to hear. Let us know how you progress.

@mpost I have tested the plugin. The app receives notifications. Both tokens and topics methods are working. But the onNotification event never starts in app itself because the plugin uses javascript protocol to talk with app. I think its ok for webviews but I don't know is there any workaround for tabris.

I found about javascript protocol here: https://github.com/fechanique/cordova-plugin-fcm/issues/23

the plugin uses javascript protocol to talk with app. I think its ok for webviews but I don't know is there any workaround for tabris.
Tabris.js uses JavaScript as well so I'm not sure what the issue would be.

@cookieguru I checked the java source of the plugin and saw that the plugin tries to find webview in the app and if found it sends data to this webview by modifying the url. Like this javascript:someFunction(..)

Ah yes I see that now--it depends on CordovaWebView and fails if the view is null.  Are you dependent on FCM or can you use phonegap-plugin-push? #989
If you need FCM you might be able to fork this and tweak the way it works.  Tabris.js supports the DOM events API so you can emit an event and have your JS code listen to that.

@cookieguru Yes, I need a FCM push plugin. I have tried another firebase plugin https://github.com/arnesson/cordova-plugin-firebase. It works but notification event doesn't fire either. When I have more time I will try to make a tabris specific version of one of these plugins.

Can you do your own notifications with the Firebase plugin?  With today's release of Tabris.js 1.10 Websocket support is official, and the Firebase plugin should work with a minor tweak; see #823

The plugin https://github.com/arnesson/cordova-plugin-firebase recently has an update to 0.1.18. You should try with that one again as it has an interesting PR merged that could solve your issue: https://github.com/arnesson/cordova-plugin-firebase/commit/437b228c1e19518e6ec83f1c24326c04fb80adc4

It works on android now, however there was problem with receiving notifications in background, callback didn't fire. Found solution here https://github.com/arnesson/cordova-plugin-firebase/issues/86. I used tabris onResume event to call onNotification function again.

@Gregivy That is 90% good to hear. Hope they fix the issue with the onResume as well.

From what I've seen this issue is because when having a background notification the notificationCallbackContext is lost thus you will never have the javascript called again. I solved the issue by saving the notificationCallbackContext as a CallbackContext so the garbage collector doesn't delete it as soon the application is in background. Now it works for background notification. I don't really understand the need to have it as a WeakReference so maybe check the memory usage of the application.

Google Firebase Cloud Messaging
Any help in implementing it for push notifications.
A step by step tutorial will be very appreciated. :-)

We have open sourced a newly created Tabris.js firebase plugin with cloud messaging support for Android: https://github.com/eclipsesource/tabris-plugin-firebase
The plugin requires Tabris.js 2 but should serve all your cloud messaging needs. Usage instructions are in the README. Issue and PRs are welcome. We also plan to add support for more of the various firebase features (like analytics and crash reporting) in the future.

With the tabris-plugin-firebase in place, I think this issue can be closed.


uniqueHostId for machine agent

The uniqueHostId isn't an available variable for the machine agent.
How is this determined?

I see it in roles/machine/templates/machine-agent-controller-info.xml.j2
This can be closed


panicked at 'range end index 2 out of range for slice of length 1', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mdns-sd-0.10.5/src/dns_parser.rs:1144:38

panicked at 'range end index 2 out of range for slice of length 1', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mdns-sd-0.10.5/src/dns_parser.rs:1144:38

Thanks for opening this issue. I've opened a PR to catch such error. If that works, I will add similar checks for some other internal functions as well.

I've merged in the patch. If there are any problems, please feel free to re-open this issue or create a new one.


winget configure should update configuration modules

Description of the new feature / enhancement
winget configure uses the modules under %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules\. These modules don't get automatically updated. If someone deleted the modules, the CLI would then fetch the latest ones from the PowerShell gallery. Ideally, a default behavior could be to upgrade any modules if there's a higher version available.
Proposed technical implementation details
No response

To add to it. If WinGet finds one of the modules underneath the $env:PSModulePath and it is outdated, it should fallback using the %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules\ as path (question mark?)


karaf system tests fail

looks like these are being replaced by jboss-fuse ones anyways? https://github.com/fabric8io/ipaas-quickstarts/pull/1353 so might just need removing from the catalog

I'm gonna close this as the jboss fuse system tests replace them for now


New data loading fires too early

Hello,
I've got an issue similar to this one https://github.com/paulirish/infinite-scroll/issues/549, but I think the solution given there doesn't apply to my case.
The data loading fires even if I don't reach the bottom of the page (so after a few scrolls, everything is loaded, and I'm not even at the bottom of the first data set...). Actually, it fires every time I stop scrolling. Every time I stop scrolling by releasing my mouse scroll, it fires, even if I scroll up.
The HTML code looks like (blade template):

  @foreach ($results->getItems() as $result)

...

  @endforeach

«

1

2

»

And here is the javascript code:
$('#jscroll').infinitescroll({
  navSelector   : ".pagination",
  nextSelector  : ".pagination a:last",
  itemSelector  : ".contenu",
  path: function(index) {
    return "?page=" + index;
  }
});

Here are some debug info:

When I load the page:

pixelsFromNavToBottom: 34.283447265625

When I scroll once:

["math:", -114, 34.283447265625]
["heading into ajax", "?page=2"]

When I scroll another time:

["contentSelector", div#jscroll]
["math:", -228, 34.283447265625]
["heading into ajax", "?page=3"]

Can anyone help me with this issue please?
Thank you

Shouldn't the latter number update when you load new content on to a page?
["math:", -200, -2882]

I have this same issue and I've checked that my pagination doesn't exist inside any element referenced in the configuration, if you exclude itself. I get an almost constant 100 unit scroll.
["math:", -300, -2882]

["math:", -400, -2882]

Until the former number exceeds the latter:
["math:", -2900, -2882]

And the script loads the content from the next page:
["heading into ajax", "?page=2"]
XHR finished loading: GET "http://localhost/?page=2".
["contentSelector", ol.link-list]

With the next scroll it decreases the former number by another 200 units.
["math:", -3100, -2882]

And fetches the third page.
Then it goes back in to 100 unit long scrolls and continues them until the end.
Simply looking at the log, it seems as though at least one of the numbers should update. Now it seems as if the script is thinking that it's at the end of the page constantly, because the amount you have scrolled exceeds the amount to scroll. One side effect of this is that new content gets loaded even when you scroll up.
I use the binder option to bind to a scrolling element. My window and document are always the same height (my body element is 100% x 100% position fixed, and HTML element is 100% x 100% as well). I have a main element inside the body which has overflow-y: scroll;

A missing html doctype declaration caused the same problem for me. Without the doctype, $(window).height() the same as $(document).height() in Chrome, so the _nearbottom function returns the wrong result.

Sorry to hear you're having trouble with Infinite Scroll.
Infinite Scroll v3 is out!. It's an all new re-write, so take a look at how to upgrade from v2.
I recommend upgrading to v3. Please open a new issue if you run into trouble with Infinite Scroll v3.