[BUG] Publisher errors out when deleting an API

Release version
2.0.2
Describe the bug
When creating an API + version set in a first run (with overrides) and deleting the API afterwards (still overrides present in overrides file, COMMIT_ID set), the deletion errors out:
2022-11-16T09:14:58.1372573Z info: Publisher[0]
2022-11-16T09:14:58.1373340Z       Beginning execution...
2022-11-16T09:14:58.1472594Z info: Publisher[0]
2022-11-16T09:14:58.1473431Z       Getting files from commit ID 4d80f4161076fc8261355c2178e5026a140abba6...
2022-11-16T09:14:58.1878195Z info: Microsoft.Hosting.Lifetime[0]
2022-11-16T09:14:58.1879089Z       Application started. Press Ctrl+C to shut down.
2022-11-16T09:14:58.1883433Z info: Microsoft.Hosting.Lifetime[0]
2022-11-16T09:14:58.1884045Z       Hosting environment: Production
2022-11-16T09:14:58.1887265Z info: Microsoft.Hosting.Lifetime[0]
2022-11-16T09:14:58.1887861Z       Content root path: /home/vsts/work/1/s
2022-11-16T09:14:58.2464781Z info: Publisher[0]
2022-11-16T09:14:58.2465553Z       Processing files deleted in commit ID...
2022-11-16T09:14:58.2966042Z info: Publisher[0]
2022-11-16T09:14:58.2967552Z       Deleting policy policy in API petstore-v7...
2022-11-16T09:15:01.3385909Z crit: Publisher[0]
2022-11-16T09:15:01.3387690Z       System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/vsts/work/1/s/Team-XXXX/apis/petstore-v7'.
2022-11-16T09:15:01.3390232Z          at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
2022-11-16T09:15:01.3391240Z          at System.IO.Enumeration.FileSystemEnumerator`1.Init()
2022-11-16T09:15:01.3391998Z          at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
2022-11-16T09:15:01.3392929Z          at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
2022-11-16T09:15:01.3393839Z          at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
2022-11-16T09:15:01.3394589Z          at System.IO.DirectoryInfo.EnumerateFiles()
2022-11-16T09:15:01.3395686Z          at publisher.Api.TryGetExistingSpecificationFile(ApiDirectory apiDirectory, ServiceDirectory serviceDirectory) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 256
2022-11-16T09:15:01.3397153Z          at publisher.Api.ProcessDeletedApi(ApiName apiName, ApiInformationFile deletedApiInformationFile, ApiSpecificationFile deletedSpecificationFile, JsonObject configurationApiJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 216
2022-11-16T09:15:01.3398546Z          at publisher.Api.<>c__DisplayClass0_0.<<ProcessDeletedArtifacts>b__4>d.MoveNext() in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 29
2022-11-16T09:15:01.3399621Z       --- End of stack trace from previous location ---
2022-11-16T09:15:01.3400269Z          at System.Threading.Tasks.Parallel.<>c__50`1.<<ForEachAsync>b__50_0>d.MoveNext()
2022-11-16T09:15:01.3401072Z       --- End of stack trace from previous location ---
2022-11-16T09:15:01.3401926Z          at common.IEnumerableExtensions.ForEachParallel[T](IEnumerable`1 enumerable, Func`2 action, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/common/Functional.cs:line 45
2022-11-16T09:15:01.3403274Z          at publisher.Api.ProcessDeletedArtifacts(IReadOnlyCollection`1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 23
2022-11-16T09:15:01.3404956Z          at publisher.Service.ProcessDeletedArtifacts(IReadOnlyCollection`1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, ListRestResources listRestResources, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Service.cs:line 21
2022-11-16T09:15:01.3406543Z          at publisher.Publisher.ProcessDeletedCommitIdFiles(IReadOnlyCollection`1 deletedCommitIdFiles, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 131
2022-11-16T09:15:01.3407609Z          at publisher.Publisher.RunWithCommitId(CommitId commitId, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 105
2022-11-16T09:15:01.3408539Z          at publisher.Publisher.Run(CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 69
2022-11-16T09:15:01.3409443Z          at publisher.Publisher.ExecuteAsync(CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 47
2022-11-16T09:15:01.3411313Z info: Microsoft.Hosting.Lifetime[0]
2022-11-16T09:15:01.3414894Z       Application is shutting down...
2022-11-16T09:15:01.3415546Z fail: Microsoft.Extensions.Hosting.Internal.Host[9]
2022-11-16T09:15:01.3416021Z       BackgroundService failed
2022-11-16T09:15:01.3417004Z       System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/vsts/work/1/s/Team-XXXX/apis/petstore-v7'.
2022-11-16T09:15:01.3417769Z          at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
2022-11-16T09:15:01.3418399Z          at System.IO.Enumeration.FileSystemEnumerator`1.Init()
2022-11-16T09:15:01.3419078Z          at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
2022-11-16T09:15:01.3419930Z          at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
2022-11-16T09:15:01.3420784Z          at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
2022-11-16T09:15:01.3421609Z          at System.IO.DirectoryInfo.EnumerateFiles()
2022-11-16T09:15:01.3422333Z          at publisher.Api.TryGetExistingSpecificationFile(ApiDirectory apiDirectory, ServiceDirectory serviceDirectory) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 256
2022-11-16T09:15:01.3423743Z          at publisher.Api.ProcessDeletedApi(ApiName apiName, ApiInformationFile deletedApiInformationFile, ApiSpecificationFile deletedSpecificationFile, JsonObject configurationApiJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 216
2022-11-16T09:15:01.3425073Z          at publisher.Api.<>c__DisplayClass0_0.<<ProcessDeletedArtifacts>b__4>d.MoveNext() in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 29
2022-11-16T09:15:01.3427750Z       --- End of stack trace from previous location ---
2022-11-16T09:15:01.3428372Z          at System.Threading.Tasks.Parallel.<>c__50`1.<<ForEachAsync>b__50_0>d.MoveNext()
2022-11-16T09:15:01.3429094Z       --- End of stack trace from previous location ---
2022-11-16T09:15:01.3429878Z          at common.IEnumerableExtensions.ForEachParallel[T](IEnumerable`1 enumerable, Func`2 action, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/common/Functional.cs:line 45
2022-11-16T09:15:01.3431295Z          at publisher.Api.ProcessDeletedArtifacts(IReadOnlyCollection`1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 23
2022-11-16T09:15:01.3433097Z          at publisher.Service.ProcessDeletedArtifacts(IReadOnlyCollection`1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, ListRestResources listRestResources, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Service.cs:line 21
2022-11-16T09:15:01.3434484Z          at publisher.Publisher.ProcessDeletedCommitIdFiles(IReadOnlyCollection`1 deletedCommitIdFiles, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 131
2022-11-16T09:15:01.3435472Z          at publisher.Publisher.RunWithCommitId(CommitId commitId, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 105
2022-11-16T09:15:01.3436333Z          at publisher.Publisher.Run(CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 69
2022-11-16T09:15:01.3437161Z          at publisher.Publisher.ExecuteAsync(CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 47
2022-11-16T09:15:01.3437959Z          at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
2022-11-16T09:15:01.3438638Z crit: Microsoft.Extensions.Hosting.Internal.Host[10]
2022-11-16T09:15:01.3439522Z       The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.
2022-11-16T09:15:01.3440783Z       System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/vsts/work/1/s/Team-XXXX/apis/petstore-v7'.
2022-11-16T09:15:01.3442010Z          at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
2022-11-16T09:15:01.3442792Z          at System.IO.Enumeration.FileSystemEnumerator`1.Init()
2022-11-16T09:15:01.3444095Z          at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
2022-11-16T09:15:01.3444839Z          at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
2022-11-16T09:15:01.3445564Z          at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
2022-11-16T09:15:01.3446093Z          at System.IO.DirectoryInfo.EnumerateFiles()
2022-11-16T09:15:01.3446693Z          at publisher.Api.TryGetExistingSpecificationFile(ApiDirectory apiDirectory, ServiceDirectory serviceDirectory) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 256
2022-11-16T09:15:01.3447956Z          at publisher.Api.ProcessDeletedApi(ApiName apiName, ApiInformationFile deletedApiInformationFile, ApiSpecificationFile deletedSpecificationFile, JsonObject configurationApiJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 216
2022-11-16T09:15:01.3449162Z          at publisher.Api.<>c__DisplayClass0_0.<<ProcessDeletedArtifacts>b__4>d.MoveNext() in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 29
2022-11-16T09:15:01.3449923Z       --- End of stack trace from previous location ---
2022-11-16T09:15:01.3450371Z          at System.Threading.Tasks.Parallel.<>c__50`1.<<ForEachAsync>b__50_0>d.MoveNext()
2022-11-16T09:15:01.3450944Z       --- End of stack trace from previous location ---
2022-11-16T09:15:01.3451590Z          at common.IEnumerableExtensions.ForEachParallel[T](IEnumerable`1 enumerable, Func`2 action, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/common/Functional.cs:line 45
2022-11-16T09:15:01.3452862Z          at publisher.Api.ProcessDeletedArtifacts(IReadOnlyCollection`1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Api.cs:line 23
2022-11-16T09:15:01.3454348Z          at publisher.Service.ProcessDeletedArtifacts(IReadOnlyCollection`1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, ListRestResources listRestResources, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Service.cs:line 21
2022-11-16T09:15:01.3455605Z          at publisher.Publisher.ProcessDeletedCommitIdFiles(IReadOnlyCollection`1 deletedCommitIdFiles, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 131
2022-11-16T09:15:01.3456478Z          at publisher.Publisher.RunWithCommitId(CommitId commitId, CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 105
2022-11-16T09:15:01.3457225Z          at publisher.Publisher.Run(CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 69
2022-11-16T09:15:01.3458194Z          at publisher.Publisher.ExecuteAsync(CancellationToken cancellationToken) in /home/vsts/work/1/s/apiops/tools/code/publisher/Publisher.cs:line 47
2022-11-16T09:15:01.3458876Z          at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
2022-11-16T09:15:01.3812637Z Exit code is 255

Expected behavior
Deleting an API, even if Version Set override ID is present in override file
Actual behavior
Errorring out when deleting an API if Version Set override ID is present in override file
Reproduction Steps
Create a Pet Store API, give it a version set, override the version set id in an override file and deploy. Delete the API.

Directory ./apis/ is completely gone after delete, FYI. That might be the problem in the first place.
Is there any way we could add Acceptance Tests to run these kind of scenarios? :)


add test for cronjobs without implementing QuirrelClient

This PR adds a test that ensure that CronJobs also work on endpoints that don't adhere to all guidelines given by QuirrelClient, but only respond in 200/non-200.

Coverage increased (+2.8%) to 80.408% when pulling c973ca620b877006ba9907e0c328d1b03606955f on test-cron-without-client into c6cb5693ecd4be888c43dfa0bdc12ce683c9fd75 on main.


Roll Flutter Engine from fdc667ebb34e to 4199cbba4a10 (3 revisions)

https://github.com/flutter/engine/compare/fdc667ebb34e...4199cbba4a10
2024-10-14<EMAIL_ADDRESS>Remove unnecessary use of std::vector (flutter/engine#55796)
2024-10-14<EMAIL_ADDRESS>Remove fl_keyboard_view_delegate_subscribe_to_layout_change and just access the object directly via a method (flutter/engine#55817)
2024-10-13<EMAIL_ADDRESS>Split out FlKeyboardLayout into its own class (flutter/engine#55816)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


/etc/ssh/sshd_config disappears on upgrade to 1.5.1 when using a non-default console

Upon upgrade, ssh is no longer accepted. It appears /etc/ssh/sshd_config disappears on each reboot.

RancherOS Version: (ros os version)
1.5.1
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
digitalocean (via droplet Gui deployment)

I have the same behavior. 1.5.1 running on VMware.

Same here, running VMware build.
I have added the sshd_config to the cloud-config.yml before upgrading nodes, which is working fine:
- content: |+
    ChallengeResponseAuthentication no
    UsePAM yes
    X11Forwarding no
    PrintMotd no
    AcceptEnv LANG LC_*
    Subsystem	sftp	/usr/lib/openssh/sftp-server
    ClientAliveInterval 180
    UseDNS no
    PermitRootLogin no
    ServerKeyBits 2048
    AllowGroups docker
  owner: root
  path: /etc/ssh/sshd_config
  permissions: "0600"

Thanks @nlseven - since mine was already broken, it didn't like that formatting and wouldn't take on reboot.
I did it this way though, rebooted, and it took and was reformatted like yours - so there's something about cloud-config that I don't understand.
My sshd_config persists through reboots now, but only contains what you've posted.
write_files:
  - path: /etc/ssh/sshd_config
    permissions: "0600"
    owner: root
    content: |+
        ChallengeResponseAuthentication no
        UsePAM yes
        X11Forwarding no
        PrintMotd no
        AcceptEnv LANG LC_*
        Subsystem	sftp	/usr/lib/openssh/sftp-server
        ClientAliveInterval 180
        UseDNS no
        PermitRootLogin no
        ServerKeyBits 2048
        AllowGroups docker

Thanks @nlseven - since mine was already broken, it didn't like that formatting and wouldn't take on reboot.
I did it this way though, rebooted, and it took and was reformatted like yours - so there's something about cloud-config that I don't understand.
My sshd_config persists through reboots now, but only contains what you've posted.

No problem. I grabbed the sshd_config file from a working 1.5.0 node and stripped the comments, so this is using the regular Rancher defaults. The upside is that it won't tack on the last 5 lines on each reboot like the old version sometimes does.

This should happen when using a non-default console.
You can upgrade with --upgrade-console, this should work:
ros os upgrade --upgrade-console

But it will delete the old console, please back up your data.
I will update the RN to remind other users.

@niusmallnan yes, --upgrade-console fixed it for me. I couldn't figure out the magic in ros to get a new version of the console.

I submit a issue #2683 around this.

Sorry, #2683 is not actually related.

Tested with rancher/os:v1.5.2-rc1 from May 21
Verified fixed
Test:

Rancheros v1.5.1 switch to other console
Upgrade to rancheros v1.5.2-rc1

Result：

can connect via ssh
/etc/ssh/sshd_config exists


add NETSHAER_INTERFACE_SOCKET to set the interface socket name in doc…

i have done something  to adapter v2 plugin architecture which need static interface.socket  config
so  add an environment variable  NETSHARE_INTERFACE_SOCKET to do this

@wanghaibo can you fix the conflicts so we can merge this?

make a mistake  when merge , close this for the moment


negative training loss

when training trdimp, the loss of bb_ce is negative. Same problem when I tried to train super_dimp. Is the loss of bb_ce supposed to be negative?

when training trdimp, the loss of bb_ce is negative. Same problem when I tried to train super_dimp. Is the loss of bb_ce supposed to be negative?

Hey,have you done this issue? is it normal that got the minus bb_ce loss?


Found transfert edge in graph not supposed be here

{
"from_stop_id": "IDFM:26602",
"to_stop_id": "IDFM:463222",
"travel_time": 9,
"transfer_type": 2,
"type": "transfer",
},
Maire de Montrouge to Mairie de Montouge no metro transfert

Correspond to transfert within the station but in the opposite direction


JuliaCon 2020 | Keynote: Conic Optimization in Julia and JuMP | Juan Pablo Vielma

JuliaCon 2020 | Keynote: Conic Optimization in Julia and JuMP | Juan Pablo Vielma https://www.youtube.com/watch?v=DGsYIHLnR4U
This timestamps can be improved. Also, old timestamps are placed in weird place in description, be sure to remove them.
00:00 Welcome!
00:50 What is Conic Optimization (CO)?
01:51 Why we should use CO?
03:00 Overview of Conic Optimization in JuMP
04:12 Example: controlling drone that need avoid some obstacles
07:28 Example: computational results
08:32 Do I really need to learn CO?
09:40 Why using CO? Reason 1: Linear-programming-like duality
11:33 Why using CO? Reason 2: Faster and more stable algorithms
12:21 Historical interplay between JuMP and CO
16:03 Pure Julia-based continuous solvers supporting variety of cones
18:51 Hypatia.jl solver
21:35 Interior point algorithms, central path and barriers
24:35 More cones = more smaller models
26:15 Benchmarking Hypatia.jl
27:43 Final remarks
29:55 Q&A: In your opinion how macro heavy JuMP is?
31:22 Q&A: How general are cones shown on presentations?
32:31 Q&A: Are there any key problems that you want overcome before release JuMP 1.0?

Great! I forgot I did the intro for this keynote haha


Repository.setHeadDetached fails with an internal assertion

When using this following promise
function checkOutCommit(repo,commit) {
  console.log('Changing HEAD to ', commit.id());
  repo.setHeadDetached(commit.id(), repo.defaultSignature, "Checkout: HEAD " + commit.id());
  console.log('Checking out HEAD');
  return Git.Checkout.head(repo, {
    checkoutStrategy: Git.Checkout.STRATEGY.FORCE
  });
}

I get the following output
Changing HEAD to  [Oid d1ef6ef21f21748b611e86514c4dfff07e0d8ff7]
Assertion failed: (handle->InternalFieldCount() > 0), function Unwrap, file /Users/johnh/.node-gyp/0.12.4/src/node_object_wrap.h, line 50.

While we are on it, was is the canonical way to check out on a particular tag in a detached state ? I tried the suggestions found on gitter and here

Using Git.Signature.default(repo) as signature works, though.

repo.defaultSignature is an instance method, not a property. try
  repo.setHeadDetached(commit.id(), repo.defaultSignature(), "Checkout: HEAD " + commit.id());

@maxkorp's comment is very likely the reason behind the crash. setHeadDetached no longer takes a Signature so I think we can close this.
There is #1127 open for introducing tighter type checking across all of NodeGit.

Closing per above.


⚠ Bofrost.be has degraded performance

In 517295a, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1039 ms

Resolved: Bofrost.be performance has improved in 87d3055 after 6 minutes.


How to import NER Annotation json file into label-studio to validate the annotation on the data ?

Hi,
I have a team that does the annotation for the NER problem. And for this annotation to start we installed label studio on their system.
So, once they finish the annotation and I want to bring their annotation in JSON file into my system and want to validate the annotation on the data they have annotated. So, my question is how can we validate the annotation on my system by importing there annotation JSON file and Data into the Label studio?
Please, provide suggestion on the validating the annotations. It help us to step up.
Thanks

Hi, in Label Studio Teams we have a special review stream & tools for this.
If you want to use opensource, I would suggest that you use the same labeling config and re-import exported JSON file. However you should extend your labeling config with choices like this:
  <Choices name="review" toName="image">
    <Choice value="good"/>
    <Choice value="bad"/>
  </Choices>

And use these choices as review marks in Quickview. Hope it helps.

Hi, in Label Studio Teams we have a special review stream & tools for this.
If you want to use opensource, I would suggest that you use the same labeling config and re-import exported JSON file. However you should extend your labeling config with choices like this:
  <Choices name="review" toName="image">
    <Choice value="good"/>
    <Choice value="bad"/>
  </Choices>

And use these choices as review marks in Quickview. Hope it helps.

You mean I need to add these Choice here in the code section as shown below:

@karndeepsingh Yes, just expand your labeling config with Choices before the last .

@makseq So, while exporting the JSON file, I need to add these choices in my config and export it. And then in my new device I have created a project where I have all the Sentences that has been imported already, So, I need to just import this JSON file that I got it exported from other device.
Please, correct me if my understanding is wrong.
Thanks

You are right! The main idea is as you described.


All values found in the mask "label" are zero.

When I tried to train the model using my own dataset(ADAM2021challenge,https://adam.isi.uu.nl/data/), it shows the error: All values found in the mask "label" are zero. I'm not sure where the error is generated

I have the same problem as you. How do you solve this problem? Thank you


[docs] Add initial quick start guide pointing to nested example docs.

Problem
The top-level documentation does not easily steer new developers to the proper nested documentation to pull together a tangible demo of CHIP running on actual dev boards.
Summary of Changes
Offer an initial cut at a Quick Start guide to provide an overview of the various Example apps and how to tie them together into a simple topology and working system by providing pointers and references to details for the various platform instances.

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

@turon Thanks for the docs update! Can you click through and sign the CLA? :)

@turon Note, doxygen error here

@turon Note, doxygen error here

Are such unresolved reference issues common when adding a new file to docs?
I've added docs/QUICK_START.md and reference it exactly as ./BUILDING.md, ./VSCODE_DEVELOPMENT.md, and others are referenced in the same file.  Do I need to split this into two PRs or commits, one that adds the file and another that references it?
RE:
/home/runner/work/connectedhomeip/connectedhomeip/docs/README.md:14: error: unable to resolve reference to './QUICK_START.md' for \ref command (warning treated as error, aborting now)

@turon note: the style differences are here: https://github.com/project-chip/connectedhomeip/pull/6885/commits/1c7af401ca7ca5d6233b169f84d5ef89efe1e384
Your doxygen error is here: https://github.com/project-chip/connectedhomeip/actions/runs/850524441
I'll push the re-style for you.

@turn Restyle pushed, note the instructions to do so are here: https://github.com/project-chip/connectedhomeip/pull/6885

@turon To your question above (sorry), I would say adding the new thing at the same time as part of this PR, otherwise Doxygen will fail.

Looks like another commit came in, now need to wait on restyle to check again.

@turon To your question above (sorry), I would say adding the new thing at the same time as part of this PR, otherwise Doxygen will fail.

The failure occurs whether or not I post one commit (reference to new file in same commit) or two (reference to new file separate).  I'm trying removing the reference to the new file altogether to see if that passes CI.

/rebase


Proxy

Hey! Thank you so much for this awesome library.
I bumped into the issue:
I can't figure out how to use this lib with proxy. Is there any way to do it?

Hey! I have no proxy near at hand. But pull requests are welcome. I guess you need to introduce additional config setting and use it here: https://github.com/romul/newrelic.ex/blob/master/lib/new_relic/agent.ex#L116..L118


How to retry streaming uploads

Consider this piece of code:
retries = Retry(total=3)
session = requests.Session()
session.mount('http://', HTTPAdapter(max_retries=retries))
with open('big_file.txt', 'rb') as f:
    session.put(url, data=f)

It has a bug.
When network error occurred during transmission of the file, the corresponding file handle points to some position inside the file. So the next retry performs new HTTP connection which uploads the rest of the file. Thankfully, in this case, Content-Length doesn't change, so the server waits for the rest of data and then disconnects after some timeout.
Here is the script which demonstrates this bug. And here is it's output.
So retries are almost useless for such uploads (they are useful in case of connection problems, though).
Now I can only think of external retrying by manual reopening / re-seeking of the file.
Is there any way to make requests to retry it 'right'?
Should this behavior be fixed in requests?

Wow. It seems in the latest version it was already fixed.
Probably here: https://github.com/shazow/urllib3/issues/459

Hey @theyoprst, you're correct, this should have been resolved in urllib3 in shazow/urllib3#1039. Are you still experiencing this issue in the latest version of requests?

Yep, as it looks like you were referring to the latest version of Requests. This doesn't seem to be reproducible with 2.13.0 which has the patch included in urllib3. Thanks for taking the time to open this issue, @theyoprst!


bug: Select component is not controllable

Bug report 🐞
Version & Environment

Version of browser - Google Chrome 92.0.4515.131 (Official Build) (64-bit)
Version of geist-ui/react - 2.2.0

Expected Behaviour
The Select component should give priority to the value prop, if the value prop is given then only select the item(s) in the value prop, making the component controllable.
Actual results (or Errors)
Currently, even after giving the value prop, the component still changes it's value, even if the state hasn't changed.
A codesandbox explaining the bug

You need to set the state to an explicit dependency to ensure that changes can be tracked:
useEffect(() => {
    setInterval(() => {
      setSelected(selected === 'public' ? 'private' : 'public')
    }, 4000)
  }, [selected])

Or, you can use no external dependencies:
useEffect(() => {
    setInterval(() => {
      setSelected((val) => (val === 'public' ? 'private' : 'public'))
    }, 4000)
  }, [])

After my test, both solutions are finished working properly.
However, if you depend on state only in FC components, state is not the value you see, the reason setInterval doesn't work is that the selected value it depends on doesn't change. This blog (a-complete-guide-to-useeffect) may help you understand this issue

This issue has been closed for a long time without activity, please reopen it if there is an update.


Resolution problem in Windows 10

I have been a long term Spyder user, nearly 3 years, and have used it on Ubuntu 18.04 LTS without any problems. At work, I was also using it on Windows 7 without any problems. However, recently I had an upgrade to Windows 10 and since then the screen looks pretty unpleasant. I am facing this problem only in Spyder; some parts of the screen are just way too large and is hurting the eyes.

I have Spyder as part of Anaconda distribution package with Spyder 3.3.6, I have also tried installing slightly older versions but the problem persists.
My current Windows 10 display resolution is set to 1680x1050. I have checked other relevant links and I have also tried scaling the DPI from Spyder with different options like 0.5, 1, 1.5, 2.5 but to no luck. Can anyone please help me here?

I have also tried scaling the DPI from Spyder with different options like 0.5, 1, 1.5, 2.5 but to no luck.

What happens in this case?

Thank you for responding @ccordoba12 !
Unfortunately, it doesnt rescale neatly. It just blows up in a worse manner (for ex: 2.5) or stays in the same way more or less (like 1 or 1.5).

have you tried autoscaling and windows instead of windows-vista?

Hey @Dan-Patterson Yes, I tried all.
However, as strange as it may sound may be, I just reset it to factory defaults and restarted the OS, and now everything is back to normal.
Hope this helps others.

These are the best news, i.e. when bugs get auto-solved!


How can i make sure the hash is consistent when saving the same model?

I'm using the Keras model.save('my_model.h5') function. Every time i save it, the hash changes, even though no changes were made to the weights or settings etc.
On this page: link, it shows there's a KERAS_CACHE_KEY, is that the culprit? or is some other change/timestamp happening on save?
I need to identify the specific model in the future and really just want to store it's hash for verification, but if i save the same model twice, i'll never know it was the same one. Can you please help point me in the right direction?

@bojangus Please have a look at link. Thanks!

@gadagashwini Thank you for the response, but this link is a tutorial on how to save a model. I have no problem saving the models. And i have no problem restoring the models and using them again either.
I am running the saved models through a hashing function (eg: from the hashlib module), and the same model comes out with a different hash every time it is saved, even if you re-save it just 5 seconds later. (the weights and parameters haven't changed).
The scenario i'm trying to reach is, the same model is saved at multiple different times, but has the same hash. Any idea on how i can achieve this?

Hi @k-w-w , anything i can do to help clarify this further?

Hi @k-w-w , I realise you're busy, if you could just give me some advice on how to work around it myself, or where to look, that would be great.

@bojangus,
Sorry for the delayed response. I think, recommendation in this case is to use Tensorflow Extended, TFX, which effectively handles End-To-End Machine Learning Pipelines. In your case, the versioning will be taken care by Tensorflow Serving, a sub system of TFX.


Backend changes for error handling phase 1

(WIP)
This commit adds titles to the AppsmithErrors that don't have any
Description

This PR adds missing titles to the generic Appsmith errors
It captures downstream error messages and code where applicable for each plugin
It introduces a new convention for defining Appsmith error codes e.g. "PE-GEN-5000", "PE-MYS-5000"

Fixes #19019 #19061 #19063 #19064
Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Manual

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=c578f38

/ok-to-test sha=2e140d6

/ok-to-test sha=c5c5139

/ok-to-test sha=d2671db

Closing this in favor of this PR


Added new bash versions for the pre and postprovision hooks and scripts

This change adds bash versions of the preprovision and postprovision hooks, as well as bash versions of the scripts those hooks call. This has been tested on Macos Sonoma 14.5 with a successful test deployment to Azure. I strove for cross platform compatibility by using the simplest forms of the various bash elements like arrays but have not tested it on Linux so can't confirm it will definitely work on that OS.
I've also broken out the azure.yaml preprovision and postprovision sections to have one each for Windows and POSIX.

Closing as I found a bug, I'll fix and submit another one.


CRD helper functions fail when the chart name is >12 characters

Tried to install a chart with the operator named orchestrator-sample and it failed due to label value in the sonataflowclsuterplatform CRD availability job having a label that was longer than the accepted 63 chars:
{"level":"error","ts":"2024-04-17T23:13:30Z","logger":"helm.controller","msg":"Release failed","namespace":"orchestrator","name":"orchestrator-sample","apiVersion":"orchestrator.parodos.dev/v1alpha1","kind":"Orchestrator","release":"orchestrator-sample","error":"failed to install release: failed post-install: warning: Hook post-install orchestrator/templates/sonataflows.yaml failed: 1 error occurred:\n\t* Job.batch \"orchestrator-sample-sonataflowclusterplatforms-crd-availability-check\" is invalid: spec.template.labels: Invalid value: \"orchestrator-sample-sonataflowclusterplatforms-crd-availability-check\": must be no more than 63 characters\n\n","stacktrace":"github.com/operator-framework/operator-sdk/internal/helm/controller.HelmOperatorReconciler.Reconcile\n\t/workspace/internal/helm/controller/reconcile.go:246\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"}

@chadcrum FYI


[Blog Post] Multiple Authentication Options for OpenSearch Dashboards

Signed-off-by: Aozixuan Priscilla Guan<EMAIL_ADDRESS>Description
Launch Blog Post: Multiple authentication options for OpenSearch Dashboards 2.4 release.
Issues Resolved
#1132
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

@here Looking at this now.

@natebower @cwillum Modified the contents as per suggestion. Please proceed with the final review and let me know if you have any concerns. Thank you so much !


Netbeans lockup while linting

Is there a way to see a log if the JSHint plugin (while linting) has caused a crash somehow? I had copied over some old javascript code to a new js file. I then did a format to align everything correctly. There was a few extra [return] rows that i wanted to delete. I happened to hit the delete button on one of the empty lines while it was saying that is was linting and it has locked up netbeans. OR of there isa way to do a debug while im working so i can send you the debug info?
Thnk
Mardonis

All unhandled errors are reported directly to user, so there are no
special logs to go through.
I believe debugging this would be a bad experience for the both of us.
Mostly because I would have to base any effort on very week assumptions.
From this standpoint, anything could be causing the trouble, another
module or even a buggy version of java.
On 12/04/2015 04:33 PM, Mardonis wrote:

Is there a way to see a log if the JSHint plugin (while linting) has
caused a crash somehow? I had copied over some old javascript code to
a new js file. I then did a format to align everything correctly.
There was a few extra [return] rows that i wanted to delete. I
happened to hit the delete button on one of the empty lines while it
was saying that is was linting and it has locked up netbeans. OR of
there isa way to do a debug while im working so i can send you the
debug info?
Thnk
Mardonis
—
Reply to this email directly or view it on GitHub
https://github.com/luka-zitnik/jshint-for-netbeans/issues/4.

Sorry for the delay. I was finally able to grab the error when all I did was open a js file the right click and hit format. Which it should format the js file correctly. The file only had about 1800 lines of code which iv formatted larger files before. Upon doing that I looked at the bottom and it said it was linting then a red error came up. Clicking it brought up the following error any ideas? Thank you.
java.lang.IllegalStateException
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3291)
at org.mozilla.javascript.gen.jshint_js_1.call(jshint.js)
at lukazitnik.jshint.JSHint.callJSHint(JSHint.java:183)
at lukazitnik.jshint.JSHint.lint(JSHint.java:101)
at lukazitnik.jshint.JSHint.lint(JSHint.java:62)
[catch] at lukazitnik.jshint.annotations.LintingThread.run(LintingThread.java:39)

Please update to version 1.1.5. It fixes this issue too.


symlink-install only creates symlinks in the build folder NOT the install folder, why?

Hi to reproduce this issue:
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone https://bitbucket.org/theconstructcore/ros2_build_tests.git
cd ~/ros2_ws
source /opt/ros/galactic/setup.bash
colcon build --symlink-install
source install/setup.bash
ros2 run build_test_pkg script1_exe

Expected behavior
I would expect that the symlinks are inside the install folder which is the one form where we use the files
Actual behavior
It's sourcing the build folder, which I don't understand its use then
this example uses a yaml file from the install path, and no matter what you do, you need to compile to update those changes, because the file used is the one in the install folder.
Is this intended to work like this? what is the advantage then of using symlink apart from the fact of not having to compile when we only change python scripts?
And even this it's not clear how this is accomplished, where are the symlinks in the install folder to be able to use the source version of the python scripts without compiling again?
I think this is a recurring question and it's really confusing for users.

This behavior is supported by the underlying build system and isn't implemented by colcon directly.
For example, here is where colcon tells ament_cmake packages to symlink install: https://github.com/colcon/colcon-ros/blob/d7a66047e5aac95ee31eee2ef837f76919e2be9e/colcon_ros/task/ament_cmake/build.py#L50-L53
The symlink installation for Python packages is more complex and relies on the develop verb. In truth, the source code for your example build_test_pkg package uses an "egg-link" file to the package subdirectory in build, so changing the sources will affect the installed environment as you desire. Unfortunately, the data_files specified in your setup.py don't get symlinked by Python. The fact that they're using a non-symlink-based system (egg-link) to take care of linking the Python code makes me wonder if the lack of cross-platform symlink support is one reason that it isn't done for data_files.

Thanks for the explanation.
Is there a fix?

This is confusing and inconsistent: the launch files  declared with CMakeLists.txt  install directives ARE symlinked in the install share folder!

I've encountered this problem as well. I need to use colcon build to recompile to update my changes (like .launch files). All the links are in the build folder. An inelegant way is to manually copy the links in the build to the install, but that is somewhat bothersome. Is there a better solution now?

Any news on this? It is still not working as expected.

I think this issue is mostly a duplicate of #169. There is discussion there of a possible solution. If you'd like to see that solution merged, please test it and provide feedback.


spgo NTLM　 invalid user credentials

Note: for support questions, please use stackoverflow and tag the post with #spgo.

I'm submitting a ...
0

I´m having some trouble when trying to retrieve a remote folder from sharepoint so that I can use it in vs code. Configuring the workspace went fine, but when I use command "SPGo:Retrieve folder", it asks me for sharepoint username and password. apparently, both inputs are correct, but it keeps showing me the error "Invalid user credentials. Please reset your credentials via the command menu and try again". Here are some information I think might be useful/necessary for solving this problem: (feel free to ask for more info if needed)

[ ] bug report

[ ] feature request

What is the current behavior?

If the current behavior is a bug, please

Your spgo.json file (You may replace corporate PII with "xxx")
{
"sourceDirectory": "src",
"sharePointSiteUrl": "https://**..",
"workspaceRoot": "c:\sp",
"publishWorkspaceOptions": {
"destinationFolder": "/",
"globPattern": "c:\sp\src\**\.",
"localRoot": "c:\sp\src"
},
"publishingScope": "Major",
"authenticationType": "NTLM"
}
Steps to reproduce

What is the expected behavior?

Please tell us about your environment:
SPGO  1.7.2
SharePoint 2019 Server

OS and Version
SharePoint Location (Online vs. On Premise)
Authentication Type (e.g. Digest, NTFS, ADFS)
NTFS

This is definitely broken. I have to rollback to pre 1.7.2 just to publish

Hello @onlyawt, @rjhadley
VSCode recently made a change (again!) to the internal request proxy. This specifically affects NTLM Auth.
can you review this issue and see if the proxy setting change fixes this for you?

Thank you! @chrishasz , confirmed this workaround fixes it.


(node:xxxx) UnhandledPromiseRejectionWarning TimeoutError: waiting for target failed: timeout 30000ms exceeded

Steps to reproduce
This is my docker code----
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 80
CMD [ "node", "server.js" ]
Tell us about your environment:

Puppeteer version:  "puppeteer": "^5.5.0"
OS :- Windows
Using this docker Image:- stefanscherer/node-windows

What steps will reproduce the problem?
Code for Puppeteer:----

Running the above code inside docker is giving an error

What is the expected result?
There should be no error, After running the app with headless true inside docker. It is working on my local machine.
What happens instead?

I am trying to solve it from the solution available on google but didn't help.
Solution Tried:-

Increasing ram to 1GB of the docker container.
Adding the timeout parameter in puppeteer.launch().
Added sandbox, disable-extensions, and few others didn't help.

i have same problem

I have same issue on image mcr.microsoft.com/windows/servercore:1809-amd64
it works fine on image if I use mcr.microsoft.com/windows:1809-amd64

The issue is not with the puppeteer library. The issue is running chrome headlessly.
Issue:- Fonts are missing while running chrome headlessly.
Solution:- I solved my issue by downloading fonts using this command in the Docker file. you can get the FontsToAdd.tar on Github just search this term on google
Command:-
download fonts necessary for chrome to run
ADD FontsToAdd.tar /Fonts/
WORKDIR /Fonts/
RUN ./Add-Font.ps1 Fonts


Panics when running

I get a panic when running with the following benchmark.
corylanou@Corys-MBP-2:~/go/src/github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new (master % u= origin/master)
$ cat benchmark.txt
goos: darwin
goarch: amd64
pkg: github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new
BenchmarkFib-8          92689851                12.8 ns/op             0 B/op          0 allocs/op
PASS
ok      github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new       1.211s

corylanou@Corys-MBP-2:~/go/src/github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new (master % u= origin/master)
$ benchdraw --x=source -filter=BencharkFib < ./benchmark.txt > ./out0.svg
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
gonum.org/v1/plot.(*Plot).NominalX(0xc00004b000, 0x0, 0x0, 0x0)
        /Users/corylanou/go/src/gonum.org/v1/plot/plot.go:393 +0x206
github.com/cep21/benchdraw/internal.(*Plotter).createPlot(0x18269c0, 0x0, 0xc0000a60a0, 0x1, 0x7ffeefbff555, 0xb, 0x7ffeefbff546, 0x6, 0x137abb9, 0x5, ...)
        /Users/corylanou/go/src/github.com/cep21/benchdraw/internal/plotter.go:78 +0x169
github.com/cep21/benchdraw/internal.(*Plotter).Plot(0x18269c0, 0x0, 0xc0000a60a0, 0x13eda80, 0xc00000e010, 0x137a3d7, 0x3, 0x1, 0x7ffeefbff555, 0xb, ...)
        /Users/corylanou/go/src/github.com/cep21/benchdraw/internal/plotter.go:40 +0x103
main.(*Application).run(0x18269c0, 0x0, 0x0)
        /Users/corylanou/go/src/github.com/cep21/benchdraw/main.go:196 +0xdc7
main.(*Application).main(0x18269c0)
        /Users/corylanou/go/src/github.com/cep21/benchdraw/main.go:131 +0x2f
main.main()
        /Users/corylanou/go/src/github.com/cep21/benchdraw/main.go:217 +0x2d

There is for sure something going on here.  I'll look into it and get back.  Thanks!!

Just following up, it's a bit more complicated to figure out than I thought :/ I wonder if it has to do with a single output.  The panic is because it thinks there's nothing to draw. I still want to resolve it, however.  I'll keep digging

Hello, same problem here with your sample data:
BenchmarkDecode/text=digits/level=speed/size=1e4-8           100            154125 ns/op          64.88 MB/s       40418 B/op         7 allocs/op
BenchmarkDecode/text=digits/level=speed/size=1e5-8            10           1367632 ns/op          73.12 MB/s       41356 B/op        14 allocs/op
BenchmarkDecode/text=digits/level=speed/size=1e6-8             1          13879794 ns/op          72.05 MB/s       52056 B/op        94 allocs/op
BenchmarkDecode/text=digits/level=default/size=1e4-8         100            147551 ns/op          67.77 MB/s       40418 B/op         8 allocs/op
BenchmarkDecode/text=digits/level=default/size=1e5-8          10           1197672 ns/op          83.50 MB/s       41508 B/op        13 allocs/op

benchdraw < ./src/change-benchmark > ./benchdraw.svg
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
gonum.org/v1/plot.(*Plot).NominalX(0xc00012a800, 0x0, 0x0, 0x0)
        /home/boris/go/pkg/mod/gonum.org/v1/plot@v0.0.0-20190615073203-9aa86143727f/plot.go:393 +0x206
github.com/cep21/benchdraw/internal.(*Plotter).createPlot(0xc1be40, 0x0, 0xc0000620f0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x76ba58, 0x5, ...)
        /home/boris/projects/benchdraw/internal/plotter.go:78 +0x169
github.com/cep21/benchdraw/internal.(*Plotter).Plot(0xc1be40, 0x0, 0xc0000620f0, 0x7e1c60, 0xc00000e018, 0x76b28b, 0x3, 0x1, 0x0, 0x0, ...)
        /home/boris/projects/benchdraw/internal/plotter.go:40 +0x103
main.(*Application).run(0xc1be40, 0x0, 0x0)
        /home/boris/projects/benchdraw/main.go:196 +0xdb5
main.(*Application).main(0xc1be40)
        /home/boris/projects/benchdraw/main.go:131 +0x2f
main.main()
        /home/boris/projects/benchdraw/main.go:217 +0x2d

Hi,
Sorry for the delay.  This is indeed an issue and it's not as simple as I thought to resolve.  Any help here or PR would be appreciated.


how does the initialisation of some sender adaptor closure objects work in the example code?

In the example implementation execution.hpp line 1171, we have
 template <class _T0, class _T1>
    struct __compose : sender_adaptor_closure<__compose<_T0, _T1>> {
      [[no_unique_address]] _T0 __t0_;
      [[no_unique_address]] _T1 __t1_;

and then on line 1195 we have
  return {(_T0&&) __t0, (_T1&&) __t1};

I'd expect 3 arguments to init the aggregate (the first one should init the base class). but there is no {} to init the base class sender_adaptor_closure. Is there anything I missed?

fixed


Fix sourcemaps

Add loadMaps: true option to sourcemaps?

The problem was with running both the autoprefixer and clean CSS LESS plugins. Fixed by using gulp-minify-css instead of the LESS plugin.


Support private registry for 'connectivity test' subcommand

We install cilium with helm into our EKS clusters. Our networking setup prevents pulling images from registries other than private ECR and a custom artifactory mirror. This is due to caching and security reasons.
Proposal / RFE
Is your feature request related to a problem?
The subcommand cilium connectivity test does not (yet) support a flag to override the registry.
When running the command, it stops after deploying the manifests:
$ cilium connectivity test
ℹ  Monitor aggregation detected, will skip some flow validation steps
✨ [arn:aws:eks:eu-central-1:233323431058:cluster/ekscilium-dev-m98cn0001] Deploying same-node deployment...
✨ [arn:aws:eks:eu-central-1:233323431058:cluster/ekscilium-dev-m98cn0001] Deploying client deployment...
✨ [arn:aws:eks:eu-central-1:233323431058:cluster/ekscilium-dev-m98cn0001] Deploying client2 deployment...
✨ [arn:aws:eks:eu-central-1:233323431058:cluster/ekscilium-dev-m98cn0001] Deploying other-node deployment...
⌛ [arn:aws:eks:eu-central-1:233323431058:cluster/ekscilium-dev-m98cn0001] Waiting for deployments [client client2 echo-same-node] to become ready...
Connectivity test failed: waiting for deployment client to become ready has been interrupted: context deadline exceeded

Reading the image location highlights the problem:
$ kubectl -n cilium-test get deploy -o yaml | grep " image:"
          image: quay.io/cilium/alpine-curl:v1.4.0@sha256:2550c747831ff575f2147149b088ea981c06f9b6bcd188756d1b82cc10997956
          image: quay.io/cilium/alpine-curl:v1.4.0@sha256:2550c747831ff575f2147149b088ea981c06f9b6bcd188756d1b82cc10997956
          image: quay.io/cilium/json-mock:v1.3.0@sha256:2729064827fa9dbfface8d3df424feb6c792a0ba07117b844349635c93c06d2b
          image: quay.io/cilium/json-mock:v1.3.0@sha256:2729064827fa9dbfface8d3df424feb6c792a0ba07117b844349635c93c06d2b

Describe the solution you'd like
Provide an additional flag to customize the deployed manifests for a registry override. Eg.
cilium connectivity test --registry=foo.example.com

I've transferred this feature request to the cilium/cilium-cli repository as it's about the CLI component.

Should we have below flags ?

curl-image
curl-image-version
json-mock-image
json-mock-version

It's mainly for consistent purpose with other command (e.g. cilium install -h)

Hi, I would like to take up this issue , could you please assign to me?

Thank you @feifeifeimoon. I've assigned the issue to you.

This issue is closed , but wondering if the linked PR #854 solved the whole issue. there are additional commands like : cilium hubble enable is solved. This seem to still require registry or additional options?


Error: Package Metadata Conflict When Recreating a Function with the Same Name

Search before asking

[X] I searched in the issues and found nothing similar.

Version
Pulsar Version : 2.11.1
Minimal reproduce step
The issue is related to creating and recreating functions within a development environment. The problem occurs when a function is initially created, subsequently deleted, and an attempt is made to recreate it using the same name. The error message received during the recreation attempt is as follows:
"detail": "code: 500, message: {"reason":"Package 'function://orgGroup1/org1tets1/licenseplate@0' metadata already exists"}, serviceUrl: http://standalone:8080/admin/v3/functions/orgGroup1/org1tets1/licenseplate"
What did you expect to see?
Function creation should be successful.
What did you see instead?
"detail": "code: 500, message: {"reason":"Package 'function://orgGroup1/org1tets1/licenseplate@0' metadata already exists"}, serviceUrl: http://standalone:8080/admin/v3/functions/orgGroup1/org1tets1/licenseplate"
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Package is not deleted when a related function is deleted If functionsWorkerEnablePackageManagement=true
Related to
https://github.com/apache/pulsar/issues/19721#issuecomment-1465273626
https://github.com/apache/pulsar/issues/17982
https://github.com/apache/pulsar/issues/18973#issuecomment-1458304726


Timeout Exception in GetReply after Write

I'm calling client.GetReply() after I'm done writing to an opened Stream (as recommended), but this causes it to throw System.TimeoutException: Timed out trying to read data from the socket stream!.
The stacktrace isn't very helpful, but here's a gist of the log (partially redacted): https://gist.github.com/infogulch/ae17270a85877665bfebe30fd0c4bb5a
This is the code I'm using:
// (using FtpFile = KeyValuePair<string, Stream>;)
public void UploadMany(IEnumerable<FtpFile> ftpFiles)
{
    var buffer = new byte[32 * 1024];
    using (var client = GetNewConnection()) // creates a FtpClient instance from the environment, and calls .Connect();
        foreach (var file in ftpFiles)
        {
            using (var src = file.Value)
            using (var dest = client.OpenWrite(file.Key))
            {
                int count;
                while ((count = src.Read(buffer, 0, buffer.Length)) > 0)
                    dest.Write(buffer, 0, count);
            }
            client.GetReply();
        }
}

Note: I used to have issues with "Bad IP Connecting" until I enabled PASVEX mode (it is present in the log above). The Bad IP error is now gone, and the one this issue is about replaced it. (Hey at least it's uploading the file now.)
Any ideas? Critiques welcome. 😄

Then don't call GetReply.. it's only needed if the server has sent a response, which in your case it appears it's not. If there is nothing to read, it will hang/timeout. Usually servers only serve a reply after the file has fully transferred.
Also try plain passive mode, not extended, to see if that helps.

Oh so this is a server specific issue then.

And don't forget you can use FtpTrace.Log* to control what is redacted in the log.

Thanks for the tip.
I think I've found my main problem. The environment that my app (& FluentFTP) is running in has multiple outbound interfaces, and thus is connecting via different IPs during a single session causing the "Bad IP" error at random.
Can FluentFTP be configured to use a consistent interface/ip endpoint during a single FTP session? Or is there a way to specify it via the API? (.NET makes it possible)

Thanks for the tip.
I think I've found my main problem. The environment that my app (& FluentFTP) is running in has multiple outbound interfaces, and thus is connecting via different IPs during a single session causing the "Bad IP" error at random.
Can FluentFTP be configured to use a consistent interface/ip endpoint during a single FTP session? Or is there a way to specify it via the API? (.NET makes it possible)

I'm closing this now since the nature of the issue I'm encountering has changed.


Lock built-in commands to specific digests

This is now a big pile of unrelated changes. Triaging to see what should be kept, and splitting up in to separate PRs.


Strange problem, client cannot receive messages from the server, after sending a certain amount of messages.

The problem is, after a certain number of messages are sent from the server, the client cannot receive the messages.
I created a websockets server. I called the send_node_data function in the main thread to send a message to the client. At first, everything runs well. The strange thing is that after I sent the message to the client about 700 times in a row, the client no longer received the message sent anymore. At the same time, the server executed the send method without throwing any exception. It just continued to execute normally.
This is my code, I created a new websockets server.
    def __start_thread(self):
        debug_thread = threading.Thread(target=self.__debug_serve, daemon=True)
        debug_thread.setName("websocket_thread")
        debug_thread.start()

    def __debug_serve(self):
        try:
            asyncio.run(self.__start_server())
        except Exception as e:
            LOG.error("server has error: ", e)

    async def __start_server(self):
        self.server = websockets.serve(self.__start,
                                       "<IP_ADDRESS>",
                                       self.port,
                                       ping_interval=None,
                                       max_size=None)

        async with self.server:
            await asyncio.Future()  # run forever

    async def __start(self, client, path):
        if self.client is not None:
            return

        self.client = client
        await self.recv_start_request()
        self.lock.set()
        try:
            await self.recv_other_request()
        except websockets.exceptions.ConnectionClosed as e:
            # The client is disconnected and the sys exception is thrown.
            self.lock.set()
            LOG.error("client is closed")
            self._async_raise(threading.main_thread().ident,
                              SystemExit)

And I'm sending a message to the client via send_node_data.
async def send_data(self):
    """send data"""
    await self.client.send(json.dumps(self.response, separators=(',', ':')))

def send_node_data(node):
    if web_socket.response["output"]["status"] == "succeed":
        file_key = get_file_path(node)
        web_socket.response["output"].update({
            "xmlId": node.xml_id,
            "file_path": file_key
        })
    asyncio.run(web_socket.send_data())

I tried adding a delay after sending the message with await asyncio.sleep, but that didn't work either.

The version of websockets I'm using is 11.0.3

Sorry I don't know how to help you with this.


Inquiry About the Training Dataset for ALPR with YOLOv4

Hello,
I recently came across your project "ALPR with YOLOv4" on GitHub and I'm very impressed with its capabilities and the implementation details provided. The system seems highly efficient for real-time vehicle license plate detection and recognition.
I am particularly interested in understanding more about the training dataset that was used for this project. Specifically, I have the following queries:

Dataset Source: Could you provide more information about the source of the dataset used for training the ALPR system? Is it publicly available or was it a privately curated dataset?

Dataset Details: What are the characteristics of the dataset? For example, the number of images, variety of license plates, image resolutions, diversity in backgrounds, and lighting conditions.

Accessing the Dataset: If the dataset is publicly available, could you kindly share the method to access or download it? In case it's a private dataset, any insights into how it was compiled would be beneficial.

Understanding the dataset will greatly help in comprehending the robustness and the limitations of the ALPR system. Additionally, this information could be beneficial for those looking to conduct further research or development in similar areas.
Thank you for your time and effort in developing this impressive project. Looking forward to your response.
Best regards,
yihong1120

Thank you for visiting my repo.
Dataset was crawled from the web (ex. used car trading sites).
and I did labeling datasets on my own.
I guess this dataset somehow unavailable.
But I can give you some info.
of images: 2,600
image resolution: over 1080P
lighting conditions: mostly daytime, so it's bright
variety of LP: old ones (green), new ones (white), taxi (yellow)
It's not a private but I can't find it..
I'm so sorry.


PIL import issue

Hi guys,
Description:
The torch version is pinned in the DockerFile, but pillow isn't. The latest version of pillow released a breaking change, as it removed the PILLOW_VERSION param, which causes an import error.
Solution:
Pin pillow to 6.1 or upgrade the libs - I'll make a PR with the former and let you decide if you want to upgrade

Thanks for flagging and fixing. Closed via #3


Wrong state when using express checkout

Hello, i've edited the code in CountryRepository as the function getStateId could return completely wrong results.
As an example, there's a shop with states in italy, united states, indonesia and india.
If i create an account with expresscheckout using an italian address with state "Varese" which in short is "VA", the address gets created with state "Nevada".
That's because the current query does not take into account the country and it simply search "VA" in the name.
Furthermore, it should search first into the iso_code as there could be issues as well. Taking into account the country "VA" could return "Genova", "Mantova" ecc...
I hope this solves many problems.

Hello @RubenHostinato
Thanks for your feedback and your contribution, we will try to fix it soon as possible

Merged into https://github.com/PrestaShopCorp/ps_checkout/pull/1060


⚠ Samsung has degraded performance

In 3d1f672, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2400 ms

Resolved: Samsung performance has improved in 4db22d3.


Add Qt5 build

Also added Windows support

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Thanks again, @gillins, especially for Windows recipes!
Looks good to me

No problem - I'm keen to get Windows and OSX builds of QGIS going. I think we just need QScintilla2 and qtkeychain (new recipe) using Qt5 for QGIS 3.0 - is there anything else missing?

I was hoping you'd say that, but didn't want to impose :smile: I'd be happy to help with a Windows build but I haven't found the time to lead the charge myself.
I think the one missing in addition to what you mentioned is qsjon that would need a Qt5 and Windows build.
I haven't looked into how stable 3.0 (technically 2.99.x) is day-to-day, but there's a recipe for it on the Arch Linux AUR. Doesn't look much different than what we have for 2.x. Would love to have development builds up before the official release, especially after feature freeze (Sept 15th from roadmap) or for any alphas or release candidates.
I started an issue on the qgis-feedstock to help keep track. I'll link in that issue.


nixos/networkd: Fix allowed values for IPv6PrefixDelegation

true or yes are not allowed values for IPv6PrefixDelegation.
Instead static and dhcpv6 are allowed as specified in the docs:
Whether to enable or disable Router Advertisement sending on a link. Allowed values are "static" which distributes prefixes as defined in the "[IPv6PrefixDelegation]" and any "[IPv6Prefix]" sections, "dhcpv6" which requests prefixes using a DHCPv6 client configured for another link and any values configured in the "[IPv6PrefixDelegation]" section while ignoring all static prefix configuration sections, "yes" which uses both static configuration and DHCPv6, and "false" which turns off IPv6 prefix delegation altogether. Defaults to "false". See the "[IPv6PrefixDelegation]" and the "[IPv6Prefix]" sections for more configuration options.

Motivation for this change
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

According to the above quote (from the systemd docs), it looks like "yes" is allowed though.

According to the above quote (from the systemd docs), it looks like "yes" is allowed though.

You are right. Fixed.


node: try using static Vector limits

Support clearly defining message constraints by introducing a new vector type.  The vector type takes a statically defined upper bound as a Type parameter.
Should we pursue using this?  The code is to express the idea and not meant as a final version, some clean up will be in order.
pub struct InventoryAnnouncement {
    /// Node inventory.
    pub inventory: wire::LimitedVec<wire::N1024, Id>,
    /// Time of announcement.
    pub timestamp: Timestamp,
}

I'm into representing these things at the type level :grin:
It was also used in radicle-link and there was a helper crate for these things https://github.com/radicle-dev/radicle-link/blob/master/data/src/bounded.rs. You might want to use that.

I think I have guys what you need here: https://github.com/rust-amplify/rust-amplify/pull/155
@cloudhead was going to use that amplify crate in anyway as a dependency.

Yeah at the very list we should be using const generics for the size limits, not regular generics. The Confined type seems pretty much what we need, if we're going to be depending on amplify anyway after the transport merge..

@cloudhead I have completed and released that implementation as a part of amplify = 4.0.0-alpha.1. You can see the whole final implementation here: https://github.com/rust-amplify/rust-amplify/blob/master/src/confinement.rs
The list of exported simplified newtype names to drop-in usage is this:
https://docs.rs/amplify/4.0.0-alpha.1/amplify/confinement/index.html#types
https://github.com/rust-amplify/rust-amplify/blob/master/src/confinement.rs#L677-L752

I've revamped the custom type with some inspiration from radicle-links type.  I opted for the custom type because importing the module to use const generics was more difficult than expected.
A separate PR can be set up for changing the bounded vector type if and when necessary.

The code has been updated as suggested


feat: add more components to the wasm-pack compatible list

Which issue does this PR close?

Related to https://github.com/apache/arrow-datafusion/pull/7633
Rationale for this change

Make more components to be wasm-unknown-unknown compatible.
About the background and motivation: I'm trying to continue my side project that builds a web playground based on wasm for datafuson https://github.com/waynexia/datafusion-playground
What changes are included in this PR?

Add supports for datafusion-physical-plan, datafusion-execution and datafusion.
datafusion-physical-plan and datafusion-execution doesn't contain any logical changes. It works after I remove some unnecessary feature gates or dependence.
Some methods and logic in datafusion are commented out. The affected file is datafusion/core/src/datasource/listing/url.rs, all about parsing URL. This is a limitation from our dependence url. After some shallow investigates, I guess it's caused by OsStr from std isn't available in arch wasm-unknown-unknown.
Are these changes tested?
Yes

Are there any user-facing changes?

No

Thanks for your review @alamb


Custom titlebar should be hidden when fullscreen in Windows 10

When using native titlebar, fullscreen vscode hides the titlebar. However, using custom titlebar, there is no way to hide it.
The title bar serves very little purpose when I am in full screen mode. I can imagine others may find it useful when they have multiple instances. However, probably some are like me, who only open one instance of vscode.
Hiding the titlebar provides a nice feature: tabs are at the very top of the screen, which makes it very easy to move the mouse onto tabs.
(I looked at some other issues about titlebar and fullscreen, but did not see a same issue as mine. If I missed any, my apology in advance)

@PowerSnail I cannot reproduce that on Linux at least where I use the custom title bar too. Do you maybe have a setting configured to show the custom title in full scren?

I am using Windows 10.
I just fiddled with the setting a bit, and found that this is the culprit:
    "window.menuBarVisibility": "toggle"

If it is set to "default", then the titlebar hides as expected.
However, this is confusing, since in FullScreen mode, I don't see a menu showing with either setting. Only when I press alt with visibility set to "toggle" does the menu show up.
Here is a little table if my description is unclear:

Setting
Press alt
Title bar Visibility
Menu bar Visibility

"default"
0 time
Hidden
Hidden

"default"
1 time
Hidden
Hidden

"toggle"
0 time
Showing
Hidden

"toggle"
1 time
Showing
Showing

My point is in the third row ("toggle" + not press alt) should hide the titlebar as well.
PS: Thanks for the quick reply.

@sbatten I don't think the custom title should show when in fullscreen in any of the setting of menu bar visibility.

@bpasero what is happening is the menubar is showing and since the space is reserved I kept the title around. the window controls are hidden and there is no app icon. this was to prevent the annoying ui shift effect that occurred with the old menu.

@sbatten was that a problem tough? I think what people like is the ability to toggle in the menu in fullscreen mode when needed. Why would we change this behaviour? Maybe we could have a third option to always show the title and menu in fullscreen, would that help?

I think users agree with me: https://github.com/Microsoft/vscode/issues/56291, https://github.com/Microsoft/vscode/issues/56293

@sbatten
I understand your point about avoiding UI shift. However, I still believe the title bar should be hidden with the menu anyway.
When menu visibility is set to toggle, it probably means that the user (at least me) wants to hide the menu for the most of the time, and occasionally use it. If the user desires to see the menu often, he/she will probably just leave the menu visible. I cannot really think of a situation where the user frequently toggles the menu. Of course, I don't have any data to support that, so that is just my conjecture.
If you agree with my conjecture, then saving the space (hiding title bar) is more important than avoiding UI shift, since the latter will occur scarcely.
Furthermore, UI shift is conventional in the situation. At least from all software I have used, if the menu is toggle-able, it hides completely without leaving a placeholder. I would argue that following conventions is preferable, when the alternatives bring little benefit.
Finally, consider the intention of toggle-able menu. Isn't the purpose to save the space? If only the texts of the menu bar would be hidden, it brings no real gain to toggle the menu.

I think the behavior of the native menu is exactly correct and should not be changed. There are two separate concerns there though:

The native menu and custom menu should behave exactly the same way, whatever that happens to be. Currently the custom menu is completely unreachable in fullscreen with window.menuBarVisibility set to default. That's just broken. And inconsistent with the native menu. Toggle leaves the window title always visible and hidden leaves the title visible when not fullscreen. These made sense with the native menu, but don't with the custom menu.

Changing the behavior to permanently reserve the space is clearly contentious and should therefore be introduced as a new enum value for the setting. Personally, I don't want this reserved behavior at all, as it is completely incongruous with the reason window.menuBarVisibility exists: to save space.

Thank you @PowerSnail @akbyrd for your feedback. I definitely understand your points and have created the above PR to address the issue.
Another idea floating around was to bring back the old behavior, but instead of the UI shift, draw the menubar (while it is visible) on top of the rest of the UI. This would block the editor tabs and part of the sidebar for the short duration of using the menu, but you are indeed intending to just the menu. Any thoughts there? or am I trying to solve a non-issue? @bpasero

I think drawing as an overlay is an acceptable middle ground. When using the menu I've never had any need to see the editor tabs, and the individual menus already obscure window content. However, that looks like a workaround for a different underlying issue.
I agree that the layout shift is annoying, but I find it annoying because it's so janky, not simply because it's happening. The extra frame of jitter on the bottom bar and bottom panel are what make it look so bad. Something strange happens like the editor taking an extra frame to update its size and it's pushing/pulling everything below it.
If that extra frame of jitter wasn't there it wouldn't look nearly as bad and I wouldn't care at all. Bonus points if it animates in smoothly.

that jankiness doesn't reproduce with the custom titlebar, so I'll consider the issue resolved. if you still see the issue with the custom titlebar, let me know in a new issue. thanks for the feedback @akbyrd

Thanks for taking a look at this @sbatten. I'm guessing I should look for this in 1.27?

@akbyrd yes 1.27, also currently in insiders, thanks

@sbatten The new menu is quite sexy. Thanks!
It removes most of the layout jitter that existed with the previous menu. However, I did find one place where there's still a bit of jitter: markdown files. If I open the Release Notes and toggle the menu bar, the small 'scroll to top' button in the bottom right and the scroll bar jitter. The scroll bar only jitters when scrolled the bottom of the window.
Also, It would be great to see the previous title bar patched up to fix the jittering and keybinding issues if it's going to be kept around.
https://github.com/Microsoft/vscode/issues/35010#issuecomment-419665485

Done.
https://github.com/Microsoft/vscode/issues/58375
https://github.com/Microsoft/vscode/issues/58376
https://github.com/Microsoft/vscode/issues/58377


fix: enable space string in yaml value

I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Pipeline engine uses yaml_rust to parse raw yaml file. It already trims spaces in value as possible, but keeps spaces if deliberately included between quotes. For example
// gets "value"
name: value

// gets "value" too since spaces is auto trimed
name:   value

// gets " value"
name: " value"

In pipeline engine transformation there is a extra trim() that removes the space, which is neither necessary nor compatible with the origin behavior of yaml.
This pr mainly fixes this issue by removing the trim() invoke.
Checklist

[ ] I have written the necessary rustdoc comments.
[ ] I have added the necessary unit tests and integration tests.
[ ] This PR requires documentation updates.

Summary by CodeRabbit

Bug Fixes

Resolved an issue where whitespace was incorrectly trimmed from strings retrieved from YAML documents, preserving the original formatting as intended.

There are some typos


fix: Run more Bb CI

Reinstate bb-prover-tests in CI.

Benchmark results
No metrics with a significant change found.

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_ms
5,857 (+2%)
1,585 (+2%)
713 (+1%)
764
790 (+1%)

proof_construction_time_sha256_30_ms
12,187 (+2%)
3,227 (+2%)
1,427
1,460 (+1%)
1,485 (+1%)

proof_construction_time_sha256_100_ms
46,214 (+3%)
12,526 (+3%)
5,741 (-3%)
5,593 (-3%)
5,570 (-1%)

proof_construction_time_poseidon_hash_ms
81.0 (+4%)
35.0 (+3%)
35.0 (+3%)
60.0 (+3%)
91.0 (+6%)

proof_construction_time_poseidon_hash_30_ms
1,559 (+3%)
428 (+2%)
204 (+1%)
226 (+1%)
274 (+4%)

proof_construction_time_poseidon_hash_100_ms
5,902 (+3%)
1,597 (+2%)
736
800 (+3%)
807 (+2%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
1,412
1,412
1,412

l1_rollup_calldata_gas
9,452
9,464
9,464

l1_rollup_execution_gas
616,093
616,105
616,105

l2_block_processing_time_in_ms
1,292 (+1%)
4,816 (+1%)
9,533

l2_block_building_time_in_ms
44,320 (+1%)
175,160 (+1%)
349,807 (+1%)

l2_block_rollup_simulation_time_in_ms
44,123 (+1%)
174,421 (+1%)
348,355 (+1%)

l2_block_public_tx_process_time_in_ms
40,850 (+1%)
171,089 (+1%)
344,954 (+1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
9,534 (-2%)
14,578 (-2%)

node_database_size_in_bytes
14,504,016
21,393,488

pxe_database_size_in_bytes
18,071
29,868

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.4 (-1%)
17.2 (-1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.7
31.8
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.601 (-1%)
0.516 (-1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
48.5 (-1%)
76.3 (-1%)
246
478 (-2%)
929
1,841
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.495 (-1%)
0.470 (-1%)
0.447
0.446 (-2%)
0.440
0.439
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
58.3
113
356 (+1%)
705 (-2%)
1,385 (+1%)
2,757
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
106
208
692
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.503 (-1%)
0.507
0.482 (+1%)
0.483 (-2%)
0.479 (+1%)
0.478
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
62.8 (-1%)

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
107

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.555 (-1%)

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
84,053
665,267

Transaction size based on fee payment method
| Metric |  |
| - |  |


Papers to read

[ ] Building a Science of Individual Differences from fMRI
[ ] Brain Structural Signatures of Adolescent Depressive Symptom Trajectories: A Longitudinal Magnetic Resonance Imaging Study

http://blog.jasonbobe.net/privacy-resources/

http://www.annualreviews.org/doi/abs/10.1146/annurev-soc-060116-053450

http://www.cell.com/cell-stem-cell/fulltext/S1934-5909(17)30238-2
http://www.biologicalpsychiatryjournal.com/article/S0006-3223(17)31772-9/fulltext
https://www.nature.com/articles/s41537-017-0022-8


Fix #14 and #16 : Seperated SPI and NRF functionalities

Created seperate .c and .h files for SPI and NRF related functionalities

Will create a new Pull Request with Travis build successful

Please update PRs in future instead of closing and creating new ones to follow standard git practices.

@mariobehling the build was failing after I resolved the conflicts manually. So I resent PR again. I'll follow the standard practice here after. Sorry for the inconvenience occurred!


notepad-next: 0.5.2 -> 0.5.3

Description of changes
Update to release 0.5.3
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)
[ ] 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/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

1 package built:

notepad-next

Change looks good to me


Simperium is having a hard time syncing a large amount of objects from a bucket.

Hi @jleandroperez. After logging onto a certain account in my app that has maybe around ~110k instances stored in a bucket, simperium has a hard time bringing all of those back down into Core Data. What happens is Simperium prints out a never ending cycle of
2015-05-20 13:43:13.816 HM[3573:981409] Simperium processing 10214 objects from index (Log)
2015-05-20 13:43:15.753 HM[3573:981411] Simperium enqueuing 10212 object requests (Log)

This gets printed out every few seconds or so, but not Log Instances every actually end up in Core Data. I know this because If I stop the app and re run I see
2015-05-20 13:43:08.647 HM[3573:981385] Simperium managing 0 Log object instances

I have verbose logs for this if you need it.

Hello there @lukegeiger!
Sure, i'll take a look. Can you please send the log files over to jorge [at] automattic (dot) com ?
Have you been able to reproduce this with any other account?. I've tried out with this sample app, but couldn't spot anything odd.
Thanks!

@jleandroperez Ok I just sent over the logs. Yes I have been able to reproduce. If need be, I can get you access to one of the accounts having issues on my app.

@lukegeiger ahhhhhhh my bad. I was wondering why i wasn't seeing the logs... jorge.perez [at] automattic (dot) com would be the right one. Would it be possible to please resend it?
I'm very sorry... i swear it happens when you've got many accounts!.
Thanks!

@jleandroperez No problem, just sent them again!

@lukegeiger thank you sir!. Few highlights:

The client successfully gets the Log bucket's index, and requests 10212 entities:
Simperium enqueuing 10212 object requests (Log)
Effectively, 10212 entities get requested:
Simperium downloading entity (Log)
Apparently, only the first (two) entities get downloaded:
c0e4e41390554ec6b36d8ef7d8022278 + ddd31181bea24d05b55ea24cce881769

Would it be possible to change this log call to SPLogInfo instead? (i've just pushed that change into Develop).
Also, please, perform the exact same change in this spot, and try performing a fresh install + sync'ing.
Once ready, would it be possible to get the updated logs?.
Thanks in advance Luke!

Hey @jleandroperez sorry for late response on this, the notifications stopped coming to my phone for some reason... Yeah for sure, just sent you the updated logs. In this case, it seems like no Log instances are getting downloaded.

@lukegeiger again, thanks for the logs!. Not sure what might be going on, only few entities appear to be downloaded.
I've just replied you via email, would it be possible to test this on my end?.
Thanks!

@jleandroperez yeah for sure. I added you to my repo, and replied to your email with steps to reproduce.

@lukegeiger thank you sir!.
I'm afraid i just tested (iPhone 6 Simulator, Xcode 6.3.2), and precisely 10214 Log Entities got downloaded.
I'm sending you, via mail, my logs. I hacked two spots of SPWebSocket, so that it prints out I/O synchronously (methods send: and webSocket:didReceiveMessage:).
Not sure what might be the difference, i'll retry on the actual device, but given the fact that few entities get downloaded on your end... (maybe?) networking issues?.

@lukegeiger allright! reproduced on an iPad Mini (iOS 8.3).
I'll be working on this one next week. Not quite sure why it's only happening in the device, but nevertheles, glad we could catch it.
Will keep you posted Luke!

@jleandroperez Yeah sorry I forgot to mention you have to use it on a device to reproduce. Ok cool, just ping me if you need me. Have a nice weekend!

No worries Luke!. Thanks for helping us out, have an awesome weekend!

Hey @jleandroperez have you gotten a chance to take a look at this yet?

@lukegeiger i'm sorry about the delay here. I've managed to confirm the bug on friday, and just managed to reproduce the exact same behavior on a standalone app.
I'll be working on a fix this week, from what i can tell, this could be caused by an excesive number of requests over the websocket channel. Will keep you posted!

@lukegeiger should be fixed in PR #487, would it be possible to validate the fix?.
Branch issue/485-paging-entity-requests (looking good on my side).
Thank you!

@jleandroperez Yes, I can confirm! Nice work man!

Awesome, thanks for reporting this issue @lukegeiger!!
If anything, please, just let us know!


I receive a socket error -- is this the place to mention it?

could it be because i'm connecting to a dev store?

You are using the shopify_theme ruby gem that is deprecated. Please remove it using gem uninstall shopify_theme or simple rm $(which theme) then follow the install instructions on the themekit website: https://shopify.github.io/themekit/


Webpack babel pluggin issue

Hello, I'm using following packages:
"@web3modal/standalone": "^2.1.1",
"react": "^16.9.0",
"react-scripts": "^4.0.3",

But when i try to compile the project i face this issue:

I have installed these babel pluggins:
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-syntax-optional-chaining": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.19.6",

and plug them as expected:
  "babel": {
    "plugins": [
      [
        "@babel/plugin-proposal-decorators",
        "@babel/plugin-proposal-nullish-coalescing-operator",
        "@babel/plugin-syntax-optional-chaining",
        "@babel/plugin-transform-runtime",
        {
          "legacy": true
        }
      ]
    ],
    "presets": [
      "react-app"
    ]
  },

But still can't manage to find the right loader looks like, any suggestions?

Not too familiar with how babel plugins need to be set up with react-scripts, but everyone who came across this issue resolved it via upgrading to latest version of react-scripts (it has newer babel that supports all of this by default without any plugins). We also have an example based on this here https://github.com/WalletConnect/web3modal/tree/V2/examples/create-react-app
As to how to do it on earlier versions, I think it's best to ask within create react app community.


Feature Request: Static Url Injection

Operating System: Windows7
Node Version: 10.4
NPM Version: 6
webpack Version: 4
webpack-serve Version: -

This issue is for a:

[ ] bug
[x] feature request
[ ] modification request

Code
in webpack-dev-server I has entry:
    entry: {
        client: [
            'react-hot-loader/patch',
            `webpack-dev-server/client?${STATIC_URL}`, //inserts in resulting code right url to resources
            'webpack/hot/only-dev-server',
            './src/client/index.tsx',
        ],
    },

Expected Behavior
I want to know (there is no any info about it in readme) is there such modules or configuration options like webpack-dev-server/client?${STATIC_URL} which gives an ability to inject into code the prefix with full address, pointing to current webpack-serve's location

Please don't ignore Issue or Pull Request template sections. They're in the template because they're useful to the maintainers of this project.
I used to work on webpack-dev-server and I wasn't familiar with that feature, so I searched the repo just now and I couldn't find STATIC_URL in that repo. So I'm not sure what you're asking for. However, that looks like you're trying to modify the entry field of your config. webpack-serve doesn't support injecting or overriding any values in your webpack config file. webpack-hot-client takes care of automatically adding the appropriate entries to make HMR work, so if that's what you're trying to accomplish there, you don't have to add that.

I'm sorry - you're right.
It was from an old project code - your question got me thinking about that

No worries, thanks for stopping by.


Define technology to use.

Define what tech we'll use in this project so the team knows the stack to follow.

This is my comment! ✨

I will use basic HTML,CSS and JS.


Run OpenFOAM on Rump Unikernel

So we are interested in running an OpenFOAM benchmark on Rump unikernel using UniK. OpenFOAM is a C++ library (for running physical simulations) that we are currently able to run on OSv. We have it statically compiled and now we run it with the following command (on the OSv):
--env=WM_PROJECT_DIR=/openfoam /usr/bin/simpleFoam.so -help

Attached please find HDD content of the OSv image with the OpenFOAM shared object:
mpm-pkg.zip
We are unfamiliar with Rump unikernel so we would kindly ask you to help us port it also there.
Could you please try to run it on Rump and check if you get same result as we do:
Usage: simpleFoam.so [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -noFunctionObjects
                    do not execute functionObjects
  -parallel         run in parallel
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage

Using: OpenFOAM-2.4.0 (see www.OpenFOAM.org)
Build: 2.4.0-d38eb626a18c

This is, ofcourse, only the "hello world" for the OpenFOAM. Once this works we should try to run it with some data.

I'm gonna CC a collegue of mine below. He has a lot of experience with compiling libraries so he could help if any problem arises.
/cc @justinc1

About how is OpenFOAM compield for OSv - is more or less the same as for Linux, we just added "-fPIC -fpic" to CFLAGS, and when linking .o files we add "-shared" flag. In short, the required steps are:
VERSION=2.4.0
BASEDIR=$PWD
ROOTFS=$BASEDIR/ROOTFS
SRCDIR=$BASEDIR/OpenFOAM-$VERSION

wget http://downloads.sourceforge.net/foam/OpenFOAM-$VERSION.tgz
tar zxf OpenFOAM-$VERSION.tgz

export MAKEFLAGS="-j `nproc`"
export FOAM_INST_DIR=$BASEDIR
. $SRCDIR/etc/bashrc

# First, compile the wmake used to build OpenFOAM sources.
cd $SRCDIR/wmake/src
make

# Make the OpenFOAM library
cd $SRCDIR/src
./Allwmake

# already compiled, I think
cd $SRCDIR/applications/solvers/incompressible/simpleFoam
wmake

# simpleFoam binary is in
$SRCDIR/platforms/$WM_OPTIONS/bin/simpleFoam

PS: the above lines are from https://github.com/mikelangelo-project/mike-apps/blob/master/OpenFOAM/GET
Before running any of OpenFOAM solvers (simpleFoam is just one of them), you need to source the
$SRCDIR/etc/bashrc file to set PATH and other environ variables. Hope this helps.
@miha-plesko you should assigned someone to the issue


Updated sdk patch for 1.20

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/retest