feat: add uniform setter

Proposal to add a helper extension to the fragment shader class.
I found myself using this back and forth.
At first, I though of making this its own package, but it feels like that would be a micro package.
So if there is an existing package that this should be on,  flutter_shaders is it.
@jonahwilliams  let me know what you think.

Can you run dart format on the PR?

Will publish later this week


Allow OpenAPI description overrides and fix dba_password description

The OpenAPI spec correctly says that the dbaPassword field can only supplied when creating a database using PUT /databases/org/proj/db, but since Terraform automatically invokes POST /databases/org/proj/db/dbaPassword when it detects changes to dba_password, this description is not relevant to the dba_password attribute.
This change allows overrides to be defined on OpenAPI schema properties and specifies an override on the dbaPassword property, which is used for the dba_password Terraform attribute.

FYI @butson


return eth transaction id in nft transfer response body

Testing
<Describe required tests: Unit, Integration, Testworld or Functional>
Acceptance Criteria
<What is the acceptance criteria of this ticket?>
Dependencies and affected external components

Bug reports
Expected behaviour
Actual behaviour
Steps to reproduce the behaviour

@vedhavyas sync with @rdinicut  about it.

related: https://github.com/centrifuge/go-centrifuge/issues/490


Move away from hiding cache calls behind properties

Summary
Move away from hiding cache calls behind properties

This mainly applies to events (plus Guild, Member and Message)
Add in "app" properties to applicable event objects to replace the app attrs field
rename some cache getting properties to get_{original_name}

Since previously we've already had the standard of having cache calls behing get_x methods with the idea that a property/instance variable should remain relatively constant while the results of get methods has no guarantee of being constant, this is being used in this PR. The idea here is to make it more explicit when a cache call is being made vs when a field being present is dependent on API cases within the scope of the object that's currently being operated on to help keep semantics simple and explicit. This also helps avoid issues where a seemingly simple property may be making multiple non-lazy cache calls to build a dict where multiple accesses to the property would lead to extra unnecessary work being done.
This also has a fix for an internal bug which likely stemmed from this approach of hiding cache calls behind properties
Checklist

[x] I have run nox and all the pipelines have passed.
[x] I have made unittests according to the code I have added/modified/deleted.

Related issues

Pretty sure you missed Bot.me


Fix link to Compilers, Transpilers and Languages category

There was a little typo in the anchor for Compilers, Transpilers and Languages category.
It was:
#compiler-transpilers-and-languages
But should be:
#compilers-transpilers-and-languages

Good catch!


Missing Override.{m,h}

Hi,
I noticed that since release <IP_ADDRESS>.1, that the java.lang.Override is missing as translated j2objc source files. I'm doing a project where one of my dependencies relies on these files based on Override.java that is housed in jre_emul.
I haven't seen any explicit attempts to remove the translation in the git logs, why is it missing?

It's there -- I just downloaded that release, unzipped it, and there was include/java/lang/Override.h. Be sure to only include the distribution_directory/include in your project's header include paths, not distribution_directory/include/java/lang/.

Hi,
I meant to say since release 1.0.1, it's been missing. It's in <IP_ADDRESS>.1. It's also missing from my git builds.
I compile with make dist frameworks, I thought that would do the trick, but it doesn't translate Overide.java.

After some investigation, I think I found the culprit: commit 109f855b
Something about SOURCE_RETENTION_ANNOTATIONS.

Instead of blacklisting these types (e.g. Override.java, Generated.java...), how about stubbing them, so that projects that rely on these would actually transpile?

Now I understand. @Override is a source annotation, meaning it's only used
by the compiler and never the runtime, like CLASS and RUNTIME annotations
are. We incorrectly translated source annotations previously, but for 1.0
stopped doing so since they just make apps bigger while adding no value.
My guess is that you are trying to reuse source files translated with 0.9.*
with the 1.0 runtime, which we never recommend. Instead, we recommend that
you treat j2objc as a compiler, and so recompile whenever you build your
app. The generated Objective C sources should only be treated as a
temporary build artifact. We hope sometime in the future to stop generating
Objective C source files, and instead generate .o object files directly.
On Sun, Mar 27, 2016 at 9:38 AM Jasm Sison<EMAIL_ADDRESS>wrote:

Instead of blacklisting these types (e.g. Override.java,
Generated.java...), how about stubbing them, so that projects that rely on
these would actually transpile?
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/google/j2objc/issues/732#issuecomment-202091922


table_1_trans - validate file format

File format validation for configuration file
Note - Main ticket #584

This issue will be addressed in cQube v5.0.

This is related to cQube v4.1 beta ,


Forcing views to be published.

When I updated to Laralum v1.1.0 the view did not get published with laralum:publish, so I added the force option. Works now.

Maybe adding an option in the command line would be better. Eg:
php artisan laralum:publiush --force

Do you think it's a good idea?

PD; Check your email :)

;-) have already answered, but yeah... this might also be an option :-)
2017-05-15 8:50 GMT+02:00 Erik Campobadal<EMAIL_ADDRESS>
PD; Check your email :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Laralum/Laralum/pull/19#issuecomment-301390819, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJrwdKnlcI-yoDfhsyGmYRreyE0qqAaHks5r5_XHgaJpZM4NatmD
.

But if we are planning on adding an universial laralum:update command for Laralum e.g. for updating from Laravel 5.4 to 5.5 we should include the force option there by default.

Yes but this will also remove any modified public views on each package. I think the best idea would be to make it optional as my example. People might spend lots of time investing on the public views... It's not like they would be happy to find out they got reset because of a default force :)

Yes, you are right.
2017-05-15 9:27 GMT+02:00 Erik Campobadal<EMAIL_ADDRESS>
Yes but this will also remove any modified public views on each package. I
think the best idea would be to make it optional as my example. People
might spend lots of time investing on the public views... It's not like
they would be happy to find out they got reset because of a default force :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Laralum/Laralum/pull/19#issuecomment-301397244, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJrwdHiV_2id0wwvpuB3Dx-MSDybDiIXks5r5_5kgaJpZM4NatmD
.

...why don't we make the location of the views configurable with the settings? Then the user itself can decide where to put his modified views, so when we force the publish of views those wont get overriden?

You can't just place them where you want, the location needs to match the tag name followed by the view location in the package. For example:
$this->loadViewsFrom(__DIR__.'/Views', 'laralum');

"laralum" is the tag, the views will be on:
resources/views/vendor/laralum/PATH

Where PATH is the location in your package (inside the path you provided: DIR.'/Views'). Eg:
resources/views/vendor/laralum/pages/login.blade.php

As you can see, if you change theese location pattern, the views will be published BUT not changed upon modification.

I know what you mean... I don't want to change the loading of the views itself, but we could add configs to let the user configure which views are shown.
E.g. in the PublicPostController of the Blog Package:
instead of returning view('laralum_blog::public.posts.show', ['post' => $post]); we could change it to view( config('laralum.blog_view'), ['post' => $post]);.
In the config blog_view would reference initialy to 'laralum_blog::public.posts.show' but the user could change it to hold his own modified view in a different location e.g. blog.posts.show would refer to resources/views/blog/posts/show.blade.php

The idea behind it it's good, the problem comes when this would require the packages to have specific config and would be really bad. Also using the base config is bad as well... I think it's good as it is and we can just create a forceUpdate method that forces the update...
Ps: Check telegram

Ok. Maybe we can come back to this idea later on.
P.s.: already answered you in telegram.
2017-05-16 9:08 GMT+02:00 Erik Campobadal<EMAIL_ADDRESS>
The idea behind it it's good, the problem comes when this would require
the packages to have specific config and would be really bad. Also using
the base config is bad as well... I think it's good as it is and we can
just create a forceUpdate method that forces the update...
Ps: Check telegram
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Laralum/Laralum/pull/19#issuecomment-301695044, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJrwdEjz_YUtQb5440QvNHssL8TasrQwks5r6UtxgaJpZM4NatmD
.


NixOS hangs after shutdown/restart

Describe the bug
When I restart or shutdown my computer, it doesn't actually shut down and hangs at the end till I forcefully kill power.
Steps To Reproduce
Steps to reproduce the behavior:

Install nixos plasma edition
Press shutdown/reboot
50% chance to hit this

Expected behavior
The computer should cut power itself.
Screenshots

Additional context
I have an intel system with an nvidea gpu, nothing fancy going on (I think) config all auto generated, newest stable, allowed unfree with nvideoa driver
Metadata
[marvin@nixos:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.45, NixOS, 23.05 (Stoat), 23.05.2775.720e61ed8de1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.5`
 - channels(marvin): `""`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

If theres anything else I can provide I'll do so once I'm at my pc again :)

Huh. I also have this issue. I had assumed it was my power supply going bad or something, but maybe not. My setup:

Intel i7-8700K
Nvidia GTX 1080 Ti
Using the proprietary Nvidia driver
NixOS 23.05

Same problem here, on an Intel NUC 7 running NixOS unstable. It's at the office and down now because of an attempted reboot after autoupgrade at around 4am this morning. I'll probably put a sonoff switch between it so I can hard reboot it from a distance.
Anyway... I feel like this could be an issue with the Linux kernel integrating with the hardware or some buggy UEFI bios, acpi stuff.
What I would really like to know is where to start to debug this. It doesn't happen all the time, I can't reliably reproduce it.
This may not even be a NixOS specific issue. For reference I found this 10-year old (!) stack overflow post: https://unix.stackexchange.com/questions/80687/rebooting-fails-randomly
One answer there talks about getting into kernel debugging. I don't mind getting into that if that's the way to really get to the bottom of this. The journal log doesn't seem to indicate any problem.
There's also a ton of options in my UEFI bios on that NUC related to power, could be an issue with any one of those. I kinda miss the days when a BIOS was dead simple and not its own OS! :p

The last line from the screenshot there appears to be the actual kernel message saying that the kernel is telling the hardware to reset. There's not a lot of room for the distro to get in the way of that :thinking:
Have you tried upgrading to kernel 6.4 and/or trying to recreate this issue on another distro that uses kernel 6.1?
Are you enabling hardware.cpu.intel.updateMicrocode and hardware.enableRedistributableFirmware ?

I have hardware.cpu.intel.updateMicrocode and hardware.enableRedistributableFirmware enabled. I should also mention that I run ZFS on root, which is why the kernel version is held back to 6.1.44. @marvin-bitterlich Are you also running ZFS by chance?

Update: restarted just now and it hang again.
With two people who have the same combination of both CPU and GPU, it seems to suggest something related to that?

@buckley310

Have you tried upgrading to kernel 6.4 and/or trying to recreate this issue on another distro that uses kernel 6.1?

Its my main OS so I don't have the luxury to try out a different distro with it. But I can update Kernel versions as a test, would just have to figure out how to :)

Having the same / similar issue on an RPi4 on 23.05, using the rpi4 kernel, on a ZFS root. Spent several hours trying to debug over the last couple of days.
Setting the watchdog reboot timer to 15s successfully forces a reboot (there an error about the 10m default), but clearly isn't the right way to go about it.

@marvin-bitterlich Can you confirm whether you are using ZFS on root? That could also be the common factor if so.

@marvin-bitterlich Can you confirm whether you are using ZFS? That could also be the common factor if so.

I mentioned above, but again no, I am using ext4 and swap, nothing else.

I am going to try the acpi one for a bit to see if that helps. Just a note though that it also happens on shutdowns, not just reboots

On my Pi4:
I had no luck with reboot=efi, reboot=bios, reboot=acpi, or reboot=pci.
To try to help debug, based on https://www.freedesktop.org/software/systemd/man/systemd-poweroff.service.html, I added:
boot.kernelParams = [
      "systemd.log_level=debug"
      "systemd.log_target=kmsg"
      "log_buf_len=1M"
      "enforcing=0"
    ];
 systemd.shutdown."debug.sh" = pkgs.writeScript "debug.sh" ''
      #!/bin/sh
      mount -o remount,rw /
      dmesg > /shutdown-log.txt
      mount -o remount,ro /
      reboot
    '';

I don't see anything super interesting in the resulting shutdown-log.txt, the last few lines are below.

shutdown-log.txt
[  134.797395] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  134.811511] systemd-journald[1002]: Received SIGTERM from PID 1 (systemd-shutdow).
[  134.811555] systemd-journald[1002]: Exit event sources are now pending.
[  134.811636] (udev-worker)[3471]: Unload kernel module index.
[  134.811643] (udev-worker)[3474]: Unload kernel module index.
[  134.811649] (udev-worker)[3585]: Unload kernel module index.
[  134.811862] (udev-worker)[3471]: Unloaded link configuration context.
[  134.811903] (udev-worker)[3474]: Unloaded link configuration context.
[  134.811925] (udev-worker)[3585]: Unloaded link configuration context.
[  134.812608] systemd-journald[1002]: systemd-journald stopped as PID 1002 for the system.
[  134.826442] systemd-udevd[1022]: Worker [3474] exited.
[  134.826571] systemd-udevd[1022]: Worker [3585] exited.
[  134.826652] systemd-udevd[1022]: Worker [3471] exited.
[  134.827909] systemd-udevd[1022]: Unload kernel module index.
[  134.828112] systemd-udevd[1022]: Unloaded link configuration context.
[  134.830508] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  134.844160] systemd-shutdown[1]: Unmounting file systems.
[  134.845241] systemd-shutdown[1]: Successfully forked off '(sd-remount)' as PID 3589.
[  134.845880] (sd-remount)[3589]: Remounting '/nix/store' read-only with options 'xattr,posixacl'.
[  134.858666] systemd-shutdown[1]: Successfully forked off '(sd-remount)' as PID 3590.
[  134.859273] (sd-remount)[3590]: Remounting '/nix' read-only with options 'xattr,posixacl'.
[  134.861580] systemd-shutdown[1]: Successfully forked off '(sd-remount)' as PID 3591.
[  134.862179] (sd-remount)[3591]: Remounting '/' read-only with options 'xattr,posixacl'.
[  134.864932] systemd-shutdown[1]: All filesystems unmounted.
[  134.864948] systemd-shutdown[1]: Deactivating swaps.
[  134.865060] systemd-shutdown[1]: All swaps deactivated.
[  134.865070] systemd-shutdown[1]: Detaching loop devices.
[  134.867315] systemd-shutdown[1]: All loop devices detached.
[  134.867328] systemd-shutdown[1]: Stopping MD devices.
[  134.867548] systemd-shutdown[1]: All MD devices stopped.
[  134.867558] systemd-shutdown[1]: Detaching DM devices.
[  134.867758] systemd-shutdown[1]: All DM devices detached.
[  134.867769] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
[  134.868302] systemd-shutdown[1]: Successfully forked off '(sd-executor)' as PID 3592.
[  134.876841] (sd-executor)[3592]: Successfully forked off '(direxec)' as PID 3593.
[  134.877526] (sd-executor)[3592]: Successfully forked off '(direxec)' as PID 3594.
[  134.894544] (sd-executor)[3592]: /nix/store/2159n1jib47g4g310jmi2dn0kc7yab60-system-shutdown/mdadm.shutdown succeeded.

Partly for my own documentation...
After reading a few threads, with a little more tinkering on my UEFI Pi4, I found:

I cannot reboot with the RPi kernel, even with docker and/or bluetooth disabled
I can reboot with the stock kernel (latest ZFS compatible)
Setting 8250.nr_uarts=1 (source) allows a reboot even with the RPi kernel and with bluetooth enabled; I still have a docker container that is hanging, but that's a separate issue. As long as I disable that container, 8250.nr_uarts=1 allows me to reboot successfully.

Intel i7-8700K
Nvidia GTX 1080 Ti
Using the proprietary Nvidia driver
NixOS 23.05

Data point: With this hardware, reboot=acpi fixed the issue for me.

I'm encountering a very similar problem that is almost certain caused by a recent update to NixOS 23.11's channel, possibly in AMD microcode, but we'll see if anyone has other ideas.
Hardware info: GEEKOM A7 (AMD Ryzen 9 7940HS w/ Radeon 780M)
Relevant configuration:
{ config, lib, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/installer/scan/not-detected.nix")
    ];

  boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-amd" "amdgpu"];
  boot.extraModulePackages = [ ];

  hardware.enableRedistributableFirmware = true;

  networking.useDHCP = lib.mkDefault true;

  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

  # Use the systemd-boot EFI boot loader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  boot.kernelParams = ["apm=power_off" "acpi=force" "reboot=acpi"];

}

It just started happening within the last week. I also tried using a bootable flashdrive that I created a few months ago from an earlier generation of my nix config and the issue was not there, so it's almost certainly a package/software problem.

I'm encountering a very similar problem that is almost certainly caused by a recent update to NixOS 23.11's channel, possibly in AMD microcode, but we'll see if anyone has other ideas.

Hi @chiefnoah, I had the same problem after my last update of the flake inputs on nixpkgs unstable.
I solved it by downgrading the kernel. Could you try doing the same ? After the update I was on kernel version 6.6.31, i downgraded to 6.6.28 and now i can correctly shutdown the system.
If it works for you too we can stop necropostings :smiley: and open a proper issue.
I do not have any more info about the issue because it hangs after stopping the journal so i can't read any logs there.

If I blacklist the amdgpu kernel module at boot and do nothing else the problem goes away, suggesting that this is a bug in the amdgpu driver in the kernel. I'm on a mostly stable Nixos 23.11 system with the latest stable kernel for that channel:
$ uname -a
Linux odin 6.1.91 #1-NixOS SMP PREEMPT_DYNAMIC Fri May 17 09:56:25 UTC 2024 x86_64 GNU/Linux

I'll attempt downgrading to the last point release (6.1.90) and report back. It looks like the latest 6.1 kernel has a couple of patches to the amdgpu driver that might be relevant.

I switched to the "zen" kernel instead (it seemed easier than trying to pin an older point release) and issue is gone, so most definitely a kernel issue. I'll wait for the latest 6.1 point release to become available and see if that resolves it before I submit a bug report to the LKML

I'm encountering a very similar problem that is almost certainly caused by a recent update to NixOS 23.11's channel, possibly in AMD microcode, but we'll see if anyone has other ideas.
Hardware info: GEEKOM A7 (AMD Ryzen 9 7940HS w/ Radeon 780M)
Relevant configuration:
{ config, lib, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/installer/scan/not-detected.nix")
    ];

  boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-amd" "amdgpu"];
  boot.extraModulePackages = [ ];

  hardware.enableRedistributableFirmware = true;

  networking.useDHCP = lib.mkDefault true;

  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

  # Use the systemd-boot EFI boot loader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  boot.kernelParams = ["apm=power_off" "acpi=force" "reboot=acpi"];

}

It just started happening within the last week. I also tried using a bootable flashdrive that I created a few months ago from an earlier generation of my nix config and the issue was not there, so it's almost certainly a package/software problem.

I have exactly the same problem, at exactly the time frame mentioned. Running all amd hardware here. This was the config that was working https://github.com/RafTeog/nixos-sway-basic. The last commit was on the day that the problem started happening. And only sway stuff was changed, nothing on config or hard-config. I will try the solution kindly mentioned by @chiefnoah.
Thank you!


association result processing module giving way less sig_snp than it should.

It is confirmed that, when using the association result processing module on chrom 8 of END tissue, there is 6 association and 6 significant SNPs. However, when using it on the combined vcf, there is 0 significant snps.
I suspect that the problem is caused by how Variantannotation handles non-overlap SNPs.

This problem is due to the (lack of) handling of NA while retrieving the minimum p value for each snps. At the moment the fix is to set the NA to 9, which is impossible for pval and hence we know it is incorrect.
i.e. from
n_snp2 = (pval_adj_3%>%ungroup%>%group_by(ID)%>%summarize(across(colnames(VariantAnnotation::geno(data)$P),min))%>%select(-ID)< 0.05)%>%colSums(na.rm = TRUE)%>%t%>%as_tibble

to
n_snp2 = (pval_adj_3%>%ungroup%>%group_by(ID)%>%summarize(across(colnames(VariantAnnotation::geno(data)$P),~.x%>%coalesce(9)%>%min))%>%select(-ID)< 0.05)%>%colSums(na.rm = TRUE)%>%t%>%as_tibble

A simple na.omit will not do because this will force some snp to be NULL and produce an error.


Investigate on_initialize usage for sidechain blocks

Substrate provides an on_initialize function logic for an execution logic that should be done for every block:
https://docs.substrate.io/v3/concepts/execution/#initializing-a-block
Some use cases might find this feature quite useful. Litentry for example would like to use it for triggering something whenever a new sidechainn block is imported.

Might also be useful for use cases where a parentchain block extrinsic must only be executed once, i.e. by the first importing validateer.


Make syntax parse Pure rules

This makes it easier to pass the rules to an engine with any effect
type, since Pure is actually Nothing, i.e. a sub type of anything.
Making the rule effect type covariant, these rules are handled out of
the box.

@satabin @ybasket can we have a release with this fix?

can we have a release with this fix? I need this for the gtfs-rt migration

@leosilvadev 0.4.0 is on its way now.


ReSharper 2016.2 ignores this extension

Async Suffix package does not have ReSharper 2016.2 support (the newest version).

Yep, it's time to update.
Thanks.

And for now, you can use a pre-release version of the package. There is an annoying UI glitch there, but the fix is on the way.

@imanushin there is a stable release for ReSharper 2016.2


Explore usage of kafka broker for holding profiling data

Instead of sending profiling data to the client in realtime over zeromq sockets, if we can send the messages to kafka, it allows the client to consume the data at its own pace. This route is worth exploring.

There is also https://github.com/nanomsg/nanomsg, which promise to be faster than zeromq. And https://capnproto.org/ should be faster than msgpack


Netconf get is not working when all feature of netconf-server is disabled

Hi,
Steps to reproduce the issue.
1.disabled the all the feature of netconf server module.
sysrepoctl --feature-disable=call-home --module=ietf-netconf-server
sysrepoctl --feature-disable=ssh-call-home --module=ietf-netconf-server
sysrepoctl --feature-disable=tls-call-home --module=ietf-netconf-server
sysrepoctl --feature-disable=listen  --module=ietf-netconf-server
sysrepoctl --feature-disable=ssh-listen  --module=ietf-netconf-server
sysrepoctl --feature-disable=tls-listen --module=ietf-netconf-server
2.connect to netconf using netopeer-cli tool
root@ca578041a0e1:/opt/dev#  netopeer2-cli

connect
Interactive SSH Authentication
Type your password:
Password:
get
ERROR
type:     application
tag:      operation-failed
severity: error
message:  np2srv_sr_get_items_iter failed (sysrepo: Sysrepo-internal error).

exit

Thanks,
Akkij

sysrepo logs :
[ERR] libyang error: Failed to find matching hash for a child of "netconf-server".
[ERR] Parsing data tree from file /etc/sysrepo/data/ietf-netconf-server.running failed: Failed to find matching hash for a child of "netconf-server".
2019-04-25 06:37:51,433 DEBG 'netopeer2-server' stdout output:
[ERR]: np2srv_sr_get_items_iter failed (sysrepo: Sysrepo-internal error).
2019-04-25 06:37:51,433 DEBG 'sysrepod' stdout output:
[ERR] Getting data tree for ietf-netconf-server failed.
[ERR] Getting data tree failed (4) for xpath '/ietf-netconf-server://.'
[ERR] rp_dt_prepare_data failed
[ERR] Get items failed for '/ietf-netconf-server://.', session id=515120996.
2019-04-25 06:38:16,649 DEBG 'sysrepod' stdout output:
[ERR] libyang error: Node already exists.
[WRN] Error by adding new notification entry /sysrepo-notification-store:notifications/notification[xpath='/ietf-netconf-notifications:netconf-capability-change'][generated-time='2019-04-25T06:38:16+00:00'][logged-time='998607044']: Node already exists..
2019-04-25 06:38:32,478 DEBG 'sysrepo-plugind' stdout output:
[ERR] File "/usr/local/etc/keystored/keys/ssh_host_rsa_key.pem.pub" is not a public key in PEM format.
[ERR] Memory allocation failed (Resource temporarily unavailable).
2019-04-25 06:38:32,496 DEBG 'sysrepod' stdout output:
[ERR] libyang error: Failed to find matching hash for a child of "endpoint".
[ERR] Parsing data tree from file /etc/sysrepo/data/ietf-netconf-server.running failed: Failed to find matching hash for a child of "endpoint".
2019-04-25 06:38:32,496 DEBG 'netopeer2-server' stdout output:
[ERR]: np2srv_sr_get_items_iter failed (sysrepo: Sysrepo-internal error).
2019-04-25 06:38:32,496 DEBG 'sysrepod' stdout output:
[ERR] Getting data tree for ietf-netconf-server failed.
[ERR] Getting data tree failed (4) for xpath '/ietf-netconf-server://.'
[ERR] rp_dt_prepare_data failed
[ERR] Get items failed for '/ietf-netconf-server://.', session id=614767245.

Hi,
this is the exact same problem as #425, I have nothing more to add.
Regards,
Michal


Fix regex match in notfound route

Fixes #3789

Warnings

:warning:
This PR modified the server but none of its tests. That's okay so long as it's refactoring existing code.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

  Generated by :no_entry_sign: dangerJS against<PHONE_NUMBER>3f1962b3b123cc001a758120c42e08


Connection Issues?

Hello! I was running your code and I ran unto this issue, I updated discum but it did not work. I am not sure what might be the problem.

That version specifically is the old version and not the new version please update to the new version
Sent from my iPhone

On Oct 15, 2021, at 1:30 AM, Artie258 @.***> wrote:

Hello! I was running your code and I ran unto this issue, I updated discum but it did not work. I am not sure what might be the problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Gotcha, thank you!

Hello, sorry once again to bother you. I left my pc on overnight to see how was the bot doing and this is what it gave me

Yes it would be very appreciated :) specifically if it's an easy fix

Hello! I fixed the ssl issue, I was told to install the following:
pip install ndg-httpsclient
pip install pyopenssl
pip install pyasn1
Now it does not give any error, but it has stayed like this since I fixed it, is it suppose to be doing the auto rolls?

Ah okay so it didn't install the dependencies alright cools

Yes! I was told that there was a change in one of those so, reinstalling was recommended. The bot has been working very well. One question, does the bot do rolls as soon as the time hits xx:59 or is it configurable?

Oh alright, thanks! I was kind of worried, as the bot sometimes did not want to roll. Thank you!

Hello! I just wanted to ask, where in the code does the bot actually start roling? I left it overnight but I notcied that it only rolls once I open the bot, it just never rolls after that.


Added [l293d] to output

In this pr I have made an initial change to the v_print function.
There's also the question of whether you want the other calls to print changing (here and here, amongst others)?
I don't mind modifying the code to use the logging module but it does require some slight refactoring and since you are the owner you can make that call.
I'd highly recommend using the logging module since this was exactly the kind of thing it was created for. It will need clients to setup the logger first instead of calling your config.set_verbose() function but I would hope they are doing that anyway...
Let me know your thoughts...

@crispg72 Please could you make the changes to the two methods you just listed and refactor to use logging? Thanks for the PR

@crispg72 Merging this so if you want to make the other changes feel free to submit a new PR

Closed #72


Not working on chrome - Mixed content

https://github.com/michaelbromley/soundcloud-visualizer/blob/75c17a0f7baac77275a7ec3bb5402c8a3168cd32/index.html#L48
Use the https resource to prevent modern browser from blocking that resource (mixed-content error)
Changes have been made in #5

Same problem here. Would be great to have a working example...

So, this is fixed, it should just need to be updated on the demo site.
I'd also suggest updating the GitHub repo description to link to HTTPS


弹窗中插入的是表单，如果修改了表单内容，可以在关闭前提示表单有变动吗？

Subject of the feature
Describe your issue here.
Problem
If the feature requests relates to a problem, please describe the problem you are trying to solve here.
Expected behaviour
What should happen? Please describe the desired behaviour.
Alternatives
What are the alternative solutions? Please describe what else you have considered?

定义一个boolean变量，然后用watch来监控表单数据，当有数据更新，修改boolean变量，在关闭弹窗时就可以判断了

basicModal组件提供了 closeFunc  钩子函数


Check Sovrin Foundation github for references to “StagingNet” that should be changed

I can do the updates if that is appropriate. Just do a brief check to see what needs to be done.

TAA/README.md

Update (I'll change this)

/README.md

Update (I'll change this)

installer/network_pkg_versions

Old records. No point in updating

selfserve/static/endorser.html

This is for selfserve and we are not using it anymore. No point in updating.

selfserve/main_selfserve/main.py

This is for selfserve and we are not using it anymore. No point in updating.

/selfserve_load.py

This is for selfserve and we are not using it anymore. No point in updating.

selfserve/main_selfserve/nym.py

This is for selfserve and we are not using it anymore. No point in updating.

Done


Add CPU frequency scaling panel

I've added a CPU frequency scaling panel to the section "System Misc" right above the "timeslices per CPU" panel.

Tried to make the diff as minimal as possible.
Closes #111

Great, thanks!

@rfmoz ^

@rfmoz my colleague created a ticket for this, and I thought "wait I did this already" only to discover that my change never got in ...

New PR which fixes two issues: https://github.com/rfmoz/grafana-dashboards/pull/147

I think that the intention was to merge, but certainly, it doesn't in reality, sorry about that.
#147 is merged, thanks for this improvement.


Chrome - Cursor Jumping

Hello there,
I wanted to report a bug I found with the latest version of Chrome:
Actually, it can be replicated by going to your wysiwyg editor on the site: http://xing.github.io/wysihtml5/1.

Make sure you're on the latest version of Chrome. I'm on: Version 45.0.2454.93 (64-bit)
Wipe out the entire contents of the editor including any pre-selected icons such as the Header
Start writing some text and pressing the return key. Notice the cursor jump up.

Originally, I saw this happening for links on our site but fiddling with this scenario shows it must be something deeper and to do with Chrome.
Let me know if you need more information. Thanks.

+1 definitely an issue for me.

It's a real annoying issue.


Pull request not merged

Hi, thanks for authorising my pull request. However, it looks like you overwrote it:

Note the Merge branch 'master' of https://github.com/PJCzx/homebridge-thermostat
You can see this simply if you compare my README with yours. But this also applies to the index.js. Shall I make a new pull request?
Best, Tom

@Tommrodrigues : my bad, it must be better now ;) Can you confirm please ? nom is now v0.0.47 :p

@PJCzx Great, thanks. All looks good now via npm :)


fcitx5: 5.0.15 -> 5.0.16

Description of changes
Related pr: #174595 #174643 #174642 #174559 #174655 #174635 #174606  #174564
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

[ ] 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.05 Release Notes (or backporting 21.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

Please approve the r-ryantm PRs if they should be merged the next time.


webp images as texture on three.js

We are using webp hero on our website for images. Working well and no problem. But we are planning to add 3D models on our website via three.js. Tried to use webp image on our mappings but its not displaying...is there any way to use webp images on our models with webp hero?
thanks...

hello @ersenturgut — i believe it will be possible to use webp-hero for game textures
you should be able to use webp-hero to convert all your webp textures to PNG images prior to loading them into the game engine
i'm thinking you'll want to use one of these methods manually

webpMachine.polyfillImage(imageElement) — converts the given webp image (only if the browser doesn't support webp)
webpMachine.decode(webpData) — decode webp Uint8Array data, return a png data-url

then you feed the PNG images into your engine as textures
additionally, you might want to take a peek at the proposed features in #39 that might be useful to your use-case, especially conditional loading to improve load times and also web workers to improve performance during the decoding process
also, it might be worth consideration to implement a more proper integration for game engines like three.js and babylon.js, i'm open to ideas
:wave: let me know how it goes

Hi Chase
I could not understand what you mean "you should be able to use webp-hero to convert all your webp textures to PNG images prior to loading them into the game engine"
We want to convert our PNG images to WEBP. Our model mapping files are PNG.
Maybe your second method works for us. I don't know yet. I have to check it. If there is an example I would be glad. Decode function reading webp images dynamically while loading as base64? and does it affect download speed?
thanks...

i will try to clear away any confusion
webp-hero runs clientside within the browser, to decode webp images to PNG format, so that legacy browsers can display the images
in your case, i imagine you might be looking for a workflow as follows:

produce your 3d texture sources as high quality PNG images
use google's libwebp command-line tool to convert those images to WEBP format, to save on size and bandwidth
(only on legacy browsers that do not support webp): after the client's browser downloads the efficient WEBP images, you can then run webp-hero within the browser to decode those images back into PNGs, which you can load into your 3d engine

so in other words, the concept with webp-hero is to reduce bandwidth data transfer by sending images down the wire as the efficient WEBP format. modern browsers can display webp natively, but for legacy browsers, we can use webp-hero to dynamically decode the downloaded webp images back into PNG format on the clientside, without any further downloading

closing for now, feel free to reopen if you have any questions

closing for now, feel free to reopen if you have any questions


Moving updater package under storage

Moving the package under storage is good because it keeps related code together. Since it's only used there, it makes the project easier to manage.
What this PR does
Before this PR:
After this PR:

Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer

Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note

NONE

@Barakmor1 what happened to the unit tests for the status package?

The unit tests in the status package were testing deleted objects like KubeVirtStatusUpdater and VMStatusUpdater and more. Since those objects were removed, we also had to remove the tests for them.

@Barakmor1 what happened to the unit tests for the status package?

The unit tests in the status package were testing deleted objects like KubeVirtStatusUpdater and VMStatusUpdater and more. Since those objects were removed, we also had to remove the tests for them.

I see that types like VirtualMachine, etc are still referenced in the code. Don't you think that should be updated as well?
For example: https://github.com/kubevirt/kubevirt/blob/c8f45ba077e46993ac2275ce8484cf3bf9826991/pkg/storage/status/status.go#L172-L206

@Barakmor1 what happened to the unit tests for the status package?

The unit tests in the status package were testing deleted objects like KubeVirtStatusUpdater and VMStatusUpdater and more. Since those objects were removed, we also had to remove the tests for them.

I see that types like VirtualMachine, etc are still referenced in the code. Don't you think that should be updated as well?
For example:
https://github.com/kubevirt/kubevirt/blob/c8f45ba077e46993ac2275ce8484cf3bf9826991/pkg/storage/status/status.go#L172-L206

The reason I didn't delete this part in PR #12597 is that there was a request to keep the package. While working on the PR, I found no usage of the updater package, so removing the switch cases for unused objects would have left empty functions, which seemed odd. However, now that storage is using the updater, the unused functionality can be removed. I’d be happy to clean up more code from the package.

@mhenriks Please let me know what you think

/lgtm
/approve


If promise fulfilled multiple times. should throw this exception or not?

I think when in debug mode, should throw exception use NSAssert

maybe throw exception and can be catched by developer


HDDS-2556. Handle InterruptedException in BlockOutputStream

What changes were proposed in this pull request?
Address sonar violations to handle InterruptedException appropriately.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-2556
How was this patch tested?
Sonar plugin in IntelliJ, Clean build, unit tests

Test failure is reported in HDDS-3083

Thanks @bharatviswa504 for review. I have merged this to master.


Dev Webpack Issue

Webpack is having an issue bundling to /dist when running in development. The bundle indicates valid, but doesn't generate a bundle.js in the /dist directory. Running package will still generate the bundle. I'm thinking it might be an issue with the development dependencies.
Thoughts?

webpack-dev-middleware doesn't actual create a file to /dist, but it put bundled result into memory and serve at http://localhost:3000/dist/bundle.js.

Got it. I misread the configs. Thanks.


Read and close response body after each retry

The only change here is when returned error is nil (the Response is guaranteed to contain a non-nil Body); in other cases throughout the code, readAndCloseBody is already called.
Without this fix, retries will cause connection leaks
Fixes https://github.com/Azure/azure-sdk-for-go/issues/1500
Thanks you for your contribution to the Azure-SDK-for-Go! We will triage and review it as quickly as we can.
As part of your submission, please make sure that you can make the following assertions:

[ ] I'm not making changes to Auto-Generated files which will just get erased next time there's a release.

If that's what you want to do, consider making a contribution here: https://github.com/Azure/autorest.go

[ ] I've tested my changes, adding unit tests where applicable.
[ ] I've added Apache 2.0 Headers to the top of any new source files.
[ ] I'm submitting this PR to the dev branch, or I'm fixing a bug that warrants its own release and I'm targeting the master branch.
[ ] If I'm targeting the master branch, I've also added a note to CHANGELOG.md.
[ ] I've mentioned any relevant open issues in this PR, making clear the context for the contribution.

Can one of the admins verify this patch?


Allow version for protocols

Summary
Adds the ability to add protocol support on specific versions
Reason
WS and WSS were added in 3.0+
Testing
Tested locally with the following config on Basic Auth:
   protocols:
     - name: http
     - name: https
       minimum_version: 3.0.x
     - name: grpc
     - name: grpcs
       minimum_version: 2.5.x
       maximum_version: 2.7.x

Failure is vale related. Feel free to fix or merge without fixing to get the functionality required for 3.1+


Move RelatedMaps to terriajs + bump version to 0.0.4

Fixes https://github.com/TerriaJS/TerriaMap/issues/616
Needed after https://github.com/TerriaJS/terriajs/pull/6551
After merge - reset terriajs TerriaMap CI branch to main
https://github.com/TerriaJS/terriajs/blob/5695590540c865544d0caaecf3c050e3af8d098f/buildprocess/ci-deploy.sh#L24

After merging this, create a v0.0.4 release - that will release a docker image


Fedora Server problem on first boot (entering kdb ...)

Hello,
i tried several times to run Fedora-Server but i have got this error, when i run it on the first boot :

Panic: VFS: Unable to mount root fs on unknown-block(179,2)
entering kdb (current=0xb9900000, pid 1) on processor 0 due to keyboard entry

I've tried to fix the problem with gparted which it did,  indeed i saw it detected apparently a problem with XFS that it repaired.
So i boot the fixed sd card into the RPi2 and again i have the same error .
Of course i checked the sha1sum after download the raw file, i built many times a new .img file and tried .xz format (cleaned the cache and files between each attempt) ,and i also used different sd card .
I know many factors could be involved into this issue according what i've found on internet, but since i don't have this error with Fedora Minimal or Raspian i think may be this could be something else .
I am afraid that is a trouble too technical for me but whatever i wanted to report it to let you guys know it, and you probably know better than me what to do in this case .
Thank you .

I must admit that I have not tried this with the Fedora Server image, which used the XFS root filesystem.
Know that I think about it, I checked the defconfig for the kernel that raspberrypi has in their kernel repo:
https://github.com/raspberrypi/linux/blob/rpi-4.0.y/arch/arm/configs/bcm2709_defconfig
CONFIG_XFS=m is a problem as the raspberrypi bootloader doesn't support a separate initramfs.
I need to issue a PR to the upstream raspberrypi linux repo to change that to CONFIG_XFS=y so the needed support will be built-in the kernel.

In the meantime, all the other armhfp images for F22 use ext4 still and should work.  I suggest going with minimal and adding the software you need from there.

Thanks for the response spartacus06,
Yes you are right, I think it's the best option to go to F22 Minimal.
I though it could be fun to play with F22 Server to look how it is other than in VM, but I will wait for the next round ;)
Thank you.


SP-1943: Backport of PDI-13867 - Able to save job/transformation in t…

…he root folder (5.4 Suite)
Add a list of restricted directories to the SelectDirectoryDialog dialog (Disable Ok button if the selection is in the restricted paths list)
Move the code in TransDialog and JobDialog that sets up the SelectDirectoryDialog into RepositoryDirectoryUI so it can be setup consistently
Restrict selection of / and /home  when creating the SelectDirectoryDialog so people can not save their transformation or job there.
Instead of defaulting the repository to a new directory (which points to the root), use the user home directory
Use current repository directory as default when creating a new Transformation with the mapping step
Use current repository directory as default when creating a new Transformation with the etl metadata injection step
Use current repository directory as default when creating a new Transformation with the simple mapping step
Use current repository directory as default when creating a new Transformation with the single threader step
Use current repository directory as default when creating a new Transformation with the transformation executor step
Use current repository directory as default when creating a new Transformation with the transformation job entry
Use current repository directory as default when creating a new Job with the Job executor step
Use current repository directory as default when creating a new Job with the job job entry.

@rpbouman, are you going to proceed this PR? The sprint is almost over


Asset: Axies

Name Axie Infinity
Website https://axieinfinity.com
Type ERC-721
Smart Contract(s) Awaiting developers

Only published contracts I can find - https://github.com/axieinfinity/public-smart-contracts - which look prerelease. Messaged dev team on Discord.


storage: add GetSupportedRequestVerbs

Signed-off-by: Iceber Gu<EMAIL_ADDRESS>What type of PR is this?

/kind feature
What this PR does / why we need it:
Set the verbs of the resource according to the verbs supported by the storage layer
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/auto-cc

LGTM

/lgtm


Fisco we dpr

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 2
- Added 2

See the complete overview on Codacy


SinkBuffer optimization by removing waiting logic of rpc task

Before Optomize
At any moment, each SinkBuffer has at most one active rpc task, and this rpc task will not exit if buffer is not empty. In high concurrency scenarios, these rpc task will monopolize the execution thread, which may cause other SinkBuffers to starve
After Optimize
Allow each SinkBuffer may have multiply rpc tasks, and each task process at most one request. All the waiting logic has been removed from rpc task to ensure fast execution of rpc task

Is there a test case with significant effect?


[BUG] OpenVPN service continously failing to start

In raising this issue, I confirm the following:
{please fill the checkboxes, e.g: [X]}

[x] I have read and understood the contributors guide.
[x] The issue I am reporting can be replicated.
[x] The issue I am reporting can be is directly related to the pivpn installer script.
[x] The issue I am reporting isn't a duplicate (see FAQs, closed issues, and open issues).

Describe the bug
I can't connect to my vpn server, running on a Raspberry PI Model 3 B+, after a clean setup. The windows client says "server poll timeout. try next remote entry" until it gives up. After trying to diagnose the problem everything looks correct except for continoues entries in the system log every 5 secs. These logs say "Stopped OpenVPN service for server", "Starting OpenVPN service for server", Failed to start OpenVPN service for server".
To Reproduce
Steps to reproduce the behavior:

Install PiVPN
enter grep VPN syslog
See error

Screenshots
Here is the System Log

I've also included a screenshot of the server.conf. I also have pihole running on the same machine and I've followed the wiki guide to using that DNS with the VPN.

Desktop (please complete the following information):

VPN Protocol: OpenVPN
OS: Windows 10
Version [e.g. 22]

Additional context
I'm using port 5500 for security obfuscation.
Pihole is currently operating properly for lan, I can't connect to the VPN to test
I've tried to connect to the VPN several times using a my laptop on a mobile hotspot
I've set up the server to use a DDNS which maps to my public IP, looking at the client side logs it finds the right address and port, but I can't see any evidence of an attempted connection on my server.
Only the configured IPtables are from the PiVPN installation.
I've set up my router to port forward 5500 to the server's 5500 port.

You wrote push "dhcp-option DNS 10.8.01" instead of push "dhcp-option DNS <IP_ADDRESS>"

nice catch @orazioedoardo, after changing it and restarting the system it still fails to load.
After asking several friends, I believe it may be a resources issue since the raspberry pi 3 B+ only has 1GB of memory, a majority of which is used by Pihole. The minimum recommended amount of memory to run OpenVPN is 1GB so it simply doesn't have the resources to start the server and thus fails

That’s impossible, if that was the case the PiVPN project wouldn’t make sense in the first place. I’ve been running Pivpn + Pihole for quite a while on a Raspberry Pi with 512 MB of RAM without any issue. Check out /var/log/openvpn.log for any error.

`::: Generating Debug Output
::::            PiVPN debug              ::::
::::            Latest commit            ::::
commit 86f60b95041cb80e4ac9a859cbacc243da5b9a59
Author: 4s3ti<EMAIL_ADDRESS>Date:   Sun Dec 22 18:52:58 2019 +0100
Deleted Old Issue Template

=============================================
::::        Installation settings        ::::
/etc/pivpn/DET_PLATFORM -> Raspbian
/etc/pivpn/FORWARD_CHAIN_EDITED -> 1
/etc/pivpn/HELP_SHOWN ->
/etc/pivpn/INPUT_CHAIN_EDITED -> 1
/etc/pivpn/INSTALL_PORT -> 5500
/etc/pivpn/INSTALL_PROTO -> udp
/etc/pivpn/INSTALL_USER -> pi
/etc/pivpn/NO_UFW -> 1
/etc/pivpn/pivpnINTERFACE -> eth0
/etc/pivpn/TWO_POINT_FOUR ->
::::    setupVars file shown below       ::::
INSTALL_USER=pi
UNATTUPG=unattended-upgrades
pivpnInterface=eth0
IPv4dns=
IPv4addr=<IP_ADDRESS>
IPv4gw=<IP_ADDRESS>
pivpnProto=udp
PORT=5500
ENCRYPT=521
APPLY_TWO_POINT_FOUR=true
DOWNLOAD_DH_PARAM=false
PUBLICDNS=REMOTE
OVPNDNS1=<IP_ADDRESS>
OVPNDNS2=
::::  Server configuration shown below   ::::
dev tun
proto udp
port 5500
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/raspberrypi_14a18b42-5fa2-4f5d-9b2a-5dc77d                                                     8ca7f5.crt
key /etc/openvpn/easy-rsa/pki/private/raspberrypi_14a18b42-5fa2-4f5d-9b2a-5dc77d                                                     8ca7f5.key
dh none
topology subnet
server <IP_ADDRESS> <IP_ADDRESS>
Set your primary domain name server address for clients
push "dhcp-option DNS <IP_ADDRESS>"
push "block-outside-dns"
Override the Client default gateway by using <IP_ADDRESS>/1 and
<IP_ADDRESS>/1 rather than <IP_ADDRESS>/0. This has the benefit of
overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
keepalive 1800 3600
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
Generated for use by PiVPN.io
=============================================
::::  Client template file shown below   ::::
client
dev tun
proto udp
remote REMOTE 5500
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-version-min 1.2
verify-x509-name raspberrypi_14a18b42-5fa2-4f5d-9b2a-5dc77d8ca7f5 name
cipher AES-256-CBC
auth SHA256
auth-nocache
verb 3
::::    Recursive list of files in       ::::
::: /etc/openvpn/easy-rsa/pki shows below :::
/etc/openvpn/easy-rsa/pki/:
ca.crt
crl.pem
Default.txt
ecparams
extensions.temp
index.txt
index.txt.attr
index.txt.attr.old
index.txt.old
issued
openssl-easyrsa.cnf
private
renewed
revoked
safessl-easyrsa.cnf
serial
serial.old
ta.key
Laptop.ovpn
/etc/openvpn/easy-rsa/pki/ecparams:
secp521r1.pem
/etc/openvpn/easy-rsa/pki/issued:
raspberrypi_14a18b42-5fa2-4f5d-9b2a-5dc77d8ca7f5.crt
Laptop.crt
/etc/openvpn/easy-rsa/pki/private:
ca.key
raspberrypi_14a18b42-5fa2-4f5d-9b2a-5dc77d8ca7f5.key
Laptop.key
/etc/openvpn/easy-rsa/pki/renewed:
private_by_serial
reqs_by_serial
/etc/openvpn/easy-rsa/pki/renewed/private_by_serial:
/etc/openvpn/easy-rsa/pki/renewed/reqs_by_serial:
/etc/openvpn/easy-rsa/pki/revoked:
private_by_serial
reqs_by_serial
/etc/openvpn/easy-rsa/pki/revoked/private_by_serial:
/etc/openvpn/easy-rsa/pki/revoked/reqs_by_serial:
::::            Self check               ::::
:: [OK] IP forwarding is enabled
:: [OK] Iptables MASQUERADE rule set
:: [OK] Iptables INPUT rule set
:: [OK] Iptables FORWARD rule set
:: [OK] OpenVPN is running
:: [OK] OpenVPN is enabled (it will automatically start on reboot)
:: [OK] OpenVPN is listening on port 5500/udp
::::      Snippet of the server log      ::::
Jan  1 10:32:36 raspberrypi ovpn-server[1267]: SIGTERM[hard,] received, process                                                      exiting
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: OpenVPN 2.4.7 arm-unknown-linux-g                                                     nueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built                                                      on Feb 20 2019
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: library versions: OpenSSL 1.1.1d                                                       10 Sep 2019, LZO 2.10
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Outgoing Control Channel Encrypti                                                     on: Cipher 'AES-256-CTR' initialized with 256 bit key
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Outgoing Control Channel Encrypti                                                     on: Using 256 bit message hash 'SHA256' for HMAC authentication
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Incoming Control Channel Encrypti                                                     on: Cipher 'AES-256-CTR' initialized with 256 bit key
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Incoming Control Channel Encrypti                                                     on: Using 256 bit message hash 'SHA256' for HMAC authentication
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: TUN/TAP device tun0 opened
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: TUN/TAP TX queue length set to 10                                                     0
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: /sbin/ip link set dev tun0 up mtu                                                      1500
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: /sbin/ip addr add dev tun0 10.8.0                                                     .1/24 broadcast <IP_ADDRESS>
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Could not determine IPv4/IPv6 pro                                                     tocol. Using AF_INET
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Socket Buffers: R=[163840->163840                                                     ] S=[163840->163840]
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: UDPv4 link local (bound): [AF_INE                                                     T][undef]:5500
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: UDPv4 link remote: [AF_UNSPEC]
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: GID set to nogroup
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: UID set to nobody
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: MULTI: multi_init called, r=256 v                                                     =256
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: IFCONFIG POOL: base=<IP_ADDRESS> size                                                     =252, ipv6=0
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Initialization Sequence Completed
::::            Debug complete           ::::
:::
::: Debug output completed above.
::: Copy saved to /tmp/debug.txt
:::
`
Sorry about that I forgot to post that in the original.

Seems to be running:
Jan  1 10:32:37 raspberrypi ovpn-server[5984]: Initialization Sequence Completed

PiVPN doesn't seem to detect any issue, at least not in the server configuration. But after examining the output of the job attempting to start<EMAIL_ADDRESS>it seems it can't properly access the server.conf files.
Does anyone know how to fix this>?

Don't run random commands. The systemd unit<EMAIL_ADDRESS>expects the server.conf inside /etc/openvpn/server but it's not there, in fact it is inside /etc/openvpn. To start/stop openvpn use sudo systemctl start openvpn and sudo systemctl stop openvpn. With sudo chmod 666 /etc/openvpn/server.conf you make the server configuration world writable, which is not secure, revert to 644.

Here is the openvpn.log and openvpn status

It seems that the openvpn service is running, but the status of the<EMAIL_ADDRESS>is still unable to start. I've copied the server.conf to /etc/openvpn/service, so now it exists in both locations.
I'm also posting the output of syslog because it shows that the socket bind on port 5500 is failing, which is new.

Image 1 and 2 show that OpenVPN is running perfectly fine, there is nothing you have to do, you are set.

I'm also posting the output of syslog because it shows that the socket bind on port 5500 is failing, which is new.

It shows that socket bind is failing because another process is running on that udp port, which is indeed openvpn.

It seems that the openvpn service is running, but the status of the<EMAIL_ADDRESS>is still unable to start. I've copied the server.conf to /etc/openvpn/service, so now it exists in both locations.

You are insisting on running openvpn via<EMAIL_ADDRESS>but I've already told you it's not the case as pivpn is not configured in that way.

Its then not an issue with PiVPN but my networking to it as it always times out when attempting to connect


🛠FIX : Join the conversation - Name field validation

Description
Updates the "Name" field in the Join the conversation section to only accept alphabetical letters (a-z, A-Z), preventing invalid or spam submissions.
Fixes:  #1125
Changes:

Added input validation to the "Name" field.

Type of PR

[x] Bug fix

Screenshots
Before-

After -

Pull Request Checklist

[x] I have added screenshots and videos to show before and after the working of my code.
[x] I have ensured that the screen size is set to 100% while making the video.
[x] I have synced the latest fork with my local repository and resolved any conflicts.
[x] I have mentioned the issue number which I created before making this PR .(format to mention issue number is : fixes #(issue number) )
[x] I understand that if any the above conditions are not met , my PR will not be MERGED .

the after isnt really perfect , make the "name" tag go a little more above please

@ANSHIKA-26 , Although that is another issue, don't worry I'm gonna fix that ASAP.

thanks !

thanks !

Fixed ! Please merge it . @ANSHIKA-26
Final result -


Batch some deletion operations.

sure, thanks
@ziyan  by the way, at some point we have to start checking of webstack version since your commit is not backward compatible.


Fixed composer issues

The "version" should NEVER be included in composer.json files. It can cause conflicts because as soon as your push any kind of change after the 2.0.0 release, you're redefining that as 2.0.0 as well as the tag.
The library thing doesn't need to be there because that's a default anyway.

Thanks for the patch! :+1:


Paperless service fails to connect to Postgresql over IP after 2.10.1 update.

Describe the bug
I use the Paperless service which connects to the Postgresql server over TCP/IP. After update to 2.10.1 in unstable the scheduler always fails to connect to the db.  When I specify the package from 24.05 (2.9.0) it works fine.
I also use a hack systemd.services.paperless-scheduler.serviceConfig.PrivateNetwork = lib.mkForce false; to allow remote database connections, which works for 2.9.0 but not 2.10.1.
Notify maintainers
@lukegb @gador @erikarvstedt @leona-ya

Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.6, NixOS, 24.11 (Vicuna), 24.11.20240624.2893f56`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `""`
 - nixpkgs: `/nix/store/bi5zxc0v5g6ylygdwyqzh280sccg3ykb-source`

Add a :+1: reaction to issues you find important.

Can be please provide detailed logs of the problem as well as your config?
Also can you share your Postgres config?
Nothing upstream changed regarding the db connection and our systemd service didn't change either..

Probably it's caused by the change of psyopg2 -> psycopg (3)

Ok. So you don't run paperless on bare-metal, but in a container, right?
Can you set PAPERLESS_DEBUG to YES (or true) and see if the logs reveal more information?
Do you see any connection attempt on your postgresql instance? Any logs? Maybe increase log verbosity and see whether postgres recveives a connection attempt.
If you don't see any connection attempt, I'd suspect a network error from psycopg to your postgresql instance (Maybe something to do with the connection string, ssl, other). If you do see a connection attempt, maybe postgresql log's will tell us why it failed.
I took a quik glance at psycopg github issues with your error but didn't find anything related. Neither did I find anything on the paperless-ngx issue tracker.
I just updated to current master (well master from yesterday) and have no problems connecting to a (socket based) postgresql instance with paperless 2.10.1.

Glad it worked out and thanks for the update and your workaround!


all: use a new go generate-based system for handing .ui files

This pull request implements and uses a new command, cmd/gtkbuildergen, which takes a .ui file and generates Go code to initialize templates as if they were their own widgets. The tool is not comprehensive and will probably fail if given a .ui file other than those of cmd/trayscale.

Current plan for initialization of children:

Create an initializer of some kind inside of the template.
Pass that initializer to a template that uses it to collect initialization details for children recursively.
Handle extra cases determined by the collected data in the initializer.


Sdc gallery app, implement modal workflow

Is your feature request related to a problem? Please describe.

User click on modal component.
It launches modal screen with questionnaire, which demonstrate single choice uses.
click on navigation back key in action bar, it takes user back on landing page.

Design modal questionnaire json.
Write api to fetch modal questionnaire json file name.
Apply custom style at application side.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.

@shelaghm
To show the modal, it requires minimum 10 options. In figma it has only 6 options, could you please add 4 more options to the list?

I've updated the figma. Will send you link directly. Curious to learn more about why there's a minimum of 10 options for a modal? Since it reduces the amount of screen space, it seems a little surprising.


Clarification on roles and validate roles

Hi Team,
I've recently struggled with assigning roles to provide access to Settings > Information Protection Scanner.
Firstly, can you please confirm (and correspondingly update the documentation), that these roles need to be assigned in Azure AD, and not in the Purview compliance portal.

Sign in to the Microsoft Purview compliance portal with one of the following roles:

Global administrator
Compliance administrator
Compliance data administrator
Security administrator
Security operator
Security reader
Global reader

Then, navigate to the Settings pane.
Within the Settings pane, select Information protection scanner.

Secondly, can you please validate whether the last three options will allow you to make changes to the Information Protection Scanner settings? i.e. Security operator, Security reader, Global reader. I don't believe they will - if I am correct, can you please update the documentation accordingly.
I've tried with security operator, which shows the Information Protection Scanner blade, but fails to load any content.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: e41928f2-a56f-775f-6486-7a8c6b303763
Version Independent ID: e41928f2-a56f-775f-6486-7a8c6b303763
Content: Install and configure the Microsoft Purview Information Protection scanner - Microsoft Purview (compliance)
Content Source: microsoft-365/compliance/deploy-scanner-configure-install.md
Service: o365-seccomp
GitHub Login: @libarson
Microsoft Alias: libarson

@libarson Please help us in resolving this issue. Thanks

@SeniorConsulting Thanks for your feedback! New issues and pull requests for this content are closed while we update this content to support upcoming feature improvements.


Hack Club leaders facebook page.

Hi all, I'm not sure if this as an "issue", but on September 9, 2016 it was announced that the Hack Club leaders facebook page will be deleted in a few days, but it never was.
https://www.facebook.com/groups/1501083703514499/?fref=nf

Oh, Zach also set this as an issue. Closing this I guess.


Allow to create Headers from Map

This change set adds a method to the Headers class which allows users to create a new Headers instance from a Map<String, String> (similar to Headers#of(String[])).

Nice.
Please accept our contributor's agreement, address my nitpicks & I'll merge your change.
https://docs.google.com/forms/d/13WR8m5uZ2nAkJH41k7GdVBXAAbzDk00vxtEYjd6Imzg/viewform?ndplr=1&formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ

@swankjesse I've signed the CLA and adapted to the project's code style.

Thanks!


Implementing #194

I've created a new VadOptions class in vad.py to hold the list of options and default values.
I've also changed the parameters of get_speech_timestamps to use the VadOptions class.
I know that #194 said that perhaps we should leave the parameters as-is, but it really looks strange to have the VadOptions class defined at the top with defaults, and the get_speech_timestamps to not have any defaults.
TranscriptionInfo now also contains VadOptions.
Edited the transcribe and get_speech_timestamps documentation to mention the VadOptions class.

Too many errors.
Will create a new pull request when I have a working copy that is tested working locally.


fix clicking on modal closes

This prevents clicking on modal before modal has completed init
closing modal prematurely at the expense of removing the ability
to close the modal by clicking on the backdrop
closes #2792

We need modals to remain closable by clicking outside of them.


⚠ DCATD has degraded performance

In 63a1817, DCATD ($SITE_URL_DCATD) experienced degraded performance:

HTTP code: 200
Response time: 8661 ms

Resolved: DCATD performance has improved in eba669d after 5 minutes.


Moving to a workspace

This introduces a new era of MeiliDB: splitting the whole project into sub-crates.
It will help scaling for new features, keeping the functionality enclosed and keeping them from spreading into other parts of the engine.
This update currently miss two main sub-crates: meilidb-data and meilidb-network. The former is glued with meilidb-search (currently named meilidb) and will be split in the future. The latter, on the other side, doesn't even exists for the moment.

Closing is favor of #147


Ollama Open web Ui in WSL2 Bug after Reinstall - BASE URL & admin User

Bug Report
Description
I installed in a first time Ollama and OpenWebUi; It was working , but only CPU. So i uninstall it to make a clean install with nvidia gpu.
Bug Summary:
install on Win11 - Docker desktop - WSL2- Docker Compose :
version: '3.8'
services:
ollama:
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
volumes:
- ollama:/root/.ollama
container_name: ollama
restart: unless-stopped
image: ollama/ollama:latest
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
volumes:
- open-webui:/app/backend/data
depends_on:
- ollama
ports:
- ${OPEN_WEBUI_PORT-3000}:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
volumes:
ollama: {}
open-webui: {}
Steps to Reproduce:
I uninstall with revo uninstaller to delete every thing from ollama, docker desktop and openWebUi, But all time , more than 20 times , i re-install all. i have all time my first old admin User working. Why ? why cannot delete it and create a new admin user ? this is the first BUG. But tho most important it's i cannot connect OpenWebUi to Ollama with Base URL. BASE URL doesnt save any change , and doesnt valide to work any change. If i use http://localhost:3000 i get acces to OpenWebUi, If i go to http://localhost:11434/  "Ollama is running" but never exept the first time i connected OpenWebUi to ollama.
i tryed to use docker run instead of docker compose after , but same result. Admin User stay the same even i delete and erase alle things. And never connect to ollama.
Expected Behavior:
There is a data base i can delete to erase all from old install and restart reely clean and NEW?
Actual Behavior:
[Describe what actually happened.]
Environment

Win 11 up to date. Nvidia 4060ti, 64 g Ram, Docker desktop,
Browser : same thing with Brave, Firefox, Edge, Chrome

Confirmation:

[ ] I have read during a week all result about this probleme but , i never found something serious. May be i dont speak and read to good english, but french doesnt on the web.
Thank you

Not a bug, misunderstanding of how Docker works. Delete the persistent volume that WebUI's data is stored in:
docker rm -f open-webui


arch: df: Implement a way to use data flow for transformation of existing datasets

Say we have the a dataset generated by dffml-feature-git and want to take 10 quarters down to 1 data point for each feature. There is someway that we could use dff to do this. Probably with operations similar to output operations? Lets brainstorm here.

This will probably be solved by the dataflow preprocessing source (#370 is related).


Feat support existing ws endpoint

Closes #21
This makes it possible to use astral with services that offers remote browsers like https://www.browserless.io/

Have you tested this out? I'm slightly concerned because we do make fetch requests to the URL in some places throughout the code (here is an example). I have no idea how a service like this could work across network requests.

Yeah I have tested with the following code snippet:
import { launch } from<EMAIL_ADDRESS>const browser = await launch({
  browserWSEndpoint:
    "wss://chrome.browserless.io?token=******",
});
const page = await browser.newPage("http://example.com");
console.log(await page.evaluate(() => document.title));
await browser.close();

And it does work (at least with browserless.io, and an existing local browser as highlighted by the tests):
@lowlighter ➜ /workspaces/astral (feat-support-existing-ws-endpoint) $ ~/.deno/bin/deno run -A test.ts
Example Domain

However as you mentioned calling page.close() directly will fail as it cannot reach /json/close, but since it cleans the celestial websocket anyways, the tests weren't failing because there were no leaking ops as resources were still properly sanitized.
I'll make a few changes to address this 👍

Actually, if you could write a section in the docs about "connecting to remote browsers", that would be amazing!


[flutter_tools] flutter update-packages --force-upgrade

Update the packages of pub.

[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [iOS] xcodebuild:  /opt/s/w/ir/x/w/recipe_cleanup/tmpXghus8/flutter sdk/packages/integration_test/ios/Classes/FLTIntegrationTestCase.m:34:46: note: enclose 'localizedCapitalizedString' in an @available check to silence this warning

Can you rebase on revert https://github.com/flutter/flutter/pull/88377?

[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [iOS] xcodebuild:  /opt/s/w/ir/x/w/recipe_cleanup/tmpXghus8/flutter sdk/packages/integration_test/ios/Classes/FLTIntegrationTestCase.m:34:46: note: enclose 'localizedCapitalizedString' in an @available check to silence this warning

Can you rebase on revert #88377?

I filed https://github.com/flutter/flutter/pull/88396


Add more delegates on viewWillAppear and viewWillDisappear

The previous delegate available was getting called a little too late and something that fired when the process started. So i put together these two delegates.
Only one commit

Thanks for the improvement!


ineffassign and misspell return error - error occurred while running this test (exit status 2)

As said, in my project I see this errors for ineffassign and misspell:
An error occurred while running this test (exit status 2)

While using goreportcard-cli I see:
~/Repos/SAT/core main
> goreportcard-cli
Grade: A+ (100.0%)
Files: 93
Issues: 3
gofmt: 100%
go_vet: 100%
gocyclo: 100%
ineffassign: 100%
license: 100%
misspell: 96%

Is this some temporal issue with the server?

The same here.

And here

same here
And gofmt report out-of-memory


After upgrade to 1.55, secrets previously stored with context.secrets are no longer accessible

VS Code Version: 1.55.0
OS Version: Win10 20H2

Steps to Reproduce:

Install VSCode 1.54.3
Install the Docker extension
Connect to Docker Hub, using "Docker Registries: Connect Registry..."
This will ask for a Docker Hub username and password. The username is stored in a memento and the password using the SecretStorage API.
Upgrade to VSCode 1.55.0
Try to access the Docker Hub registry, or do "Docker: Log In to Docker CLI"

Result: An error is shown. (n.stack || "").split is not a function. This is a red herring due to some bugged error parsing we're doing (microsoft/vscode-azuretools#860), but the real error is: "Error: Decryption failed"
I haven't tried this with a dummy extension but presumably the same would occur.

Does this issue occur when all extensions are disabled?: N/A

@RMacfarlane FYI

I spoke to @RMacfarlane and I guess this is expected; there was a change in the encryption on Windows that requires reentering the secrets.

Is there some workaround or how can you recreate the secrets to get around the failed decryption?

@mattmilten That will depend on the extension. For example, with the Docker extension, the simplest way is to disconnect from the container registry, and then reconnect (which will prompt again for username and password).

Thanks! For me it's the Jupyter extension - I cannot start an interactive window or even select the Jupyter server when in a remote-ssh session. I already tried removing all related settings and restarted as suggested in #5419.

Closing this as this is expected for this release.


Memory leak using UInt8Array

Hey guys,
would u mind looking at this sky high rocketing unmanaged memory allocations which are not getting GC'ed?
We found this is happening since v7.1.5 (GC works like a charm in v7.1.4).
Happening on the latest version, too.
Repro (according to this issue):
using Microsoft.ClearScript.JavaScript;
using Microsoft.ClearScript.V8;

namespace V8EngineWorkbench;

internal static class Program
{
    private const int Size = 4096;
    private static readonly byte[] Bytes = CreateBytes();

    private static void Main()
    {
        for (var repetitions = 0; repetitions < 16; repetitions++)
        {
            CreateLeak();
        }
    }

    private static void CreateLeak()
    {
        var engine = new V8ScriptEngine();

        dynamic uint8ArrayFactoryFunc = engine.Evaluate(@"
            (function (length) {
                return new Uint8Array(length);
            })
            .valueOf();
        ");

        ITypedArray<byte> Alloc(long byteCount) => uint8ArrayFactoryFunc(byteCount);

        for (var i = 0; i < 10_000; i++)
        {
            var typedArray = Alloc(Size);
            typedArray.Write(Bytes, 0, Size, 0);
        }

        // engine.CollectGarbage(true); // Not helping
        engine.Dispose();
    }

    private static void CreateLeak2()
    {
        var engine = new V8ScriptEngine();

        engine.AddHostType(typeof(Task));

        engine.Execute(@"
            (async function () {
                for (let i = 0; i < 160_000; i++) {
                    const newData = new Uint8Array(4096);
                    newData.fill(42);

                    await Task.Delay(1);
                }
            })();
        ");

        engine.Dispose();
    }

    private static byte[] CreateBytes()
    {
        var bytes = new byte[Size];
        Array.Fill(bytes, (byte)42);
        return bytes;
    }
}

If u look at the CreateLeak2, all the data stays in the Engine and the result is the same.
Process memory profile from dotMemory on v7.1.5:

Process memory profile from dotMemory on v7.1.4:

Tested on:

ClearScript v7.1.4 (this one works pretty fine), v7.1.5, v7.2.3, v7.2.4
.Net 6

Played w/ it a bit and found another funny thing.
This works pretty fine:
private static void CreateLeak()
    {
        var engine = new V8ScriptEngine();

        dynamic uint8ArrayFactoryFunc = engine.Evaluate(@"
            (function (length) {
                return new Uint8Array(length);
            })
            .valueOf();
        ");

        ITypedArray<byte> Alloc(long byteCount) => uint8ArrayFactoryFunc(byteCount);

        for (var i = 0; i < 10_000; i++)
        {
            var typedArray = Alloc(Size);
            typedArray.Write(Bytes, 0, Size, 0);

            if (i > 0 && i % 1000 == 0)
            {
                engine.CollectGarbage(true);
            }
        }

        // engine.CollectGarbage(true); // Not helping
        engine.Dispose();
    }

Still works pretty well (gets GC'ed at 0 and 5000):
    private static void CreateLeak()
    {
        var engine = new V8ScriptEngine();

        dynamic uint8ArrayFactoryFunc = engine.Evaluate(@"
            (function (length) {
                return new Uint8Array(length);
            })
            .valueOf();
        ");

        ITypedArray<byte> Alloc(long byteCount) => uint8ArrayFactoryFunc(byteCount);

        for (var i = 0; i < 10_000; i++)
        {
            var typedArray = Alloc(Size);
            typedArray.Write(Bytes, 0, Size, 0);

            if (i % 5_000 == 0)
            {
                engine.CollectGarbage(true);
            }
        }

        // engine.CollectGarbage(true); // Not helping
        engine.Dispose();
    }

However, if I use another indexes (e.g. 4 and 4000), it tries to reach the sky like Buzz Lightyear:
    private static void CreateLeak()
    {
        var engine = new V8ScriptEngine();

        dynamic uint8ArrayFactoryFunc = engine.Evaluate(@"
            (function (length) {
                return new Uint8Array(length);
            })
            .valueOf();
        ");

        ITypedArray<byte> Alloc(long byteCount) => uint8ArrayFactoryFunc(byteCount);

        for (var i = 0; i < 10_000; i++)
        {
            var typedArray = Alloc(Size);
            typedArray.Write(Bytes, 0, Size, 0);

            if (i is 4 or 4_000)
            {
                engine.CollectGarbage(true);
            }
        }

        // engine.CollectGarbage(true); // Not helping
        engine.Dispose();
    }

Hi @simontom,
We've reproduced the issue. Thanks for reporting it.
Unfortunately, our testing indicates that V8 array buffer cleanup is a mess at the moment. That may have to do with the V8 team's recent efforts to move increasing amounts of processing into the background.
In any case, V8 simply doesn't clean up array buffers consistently, and this particular scenario, with its multitude of short-lived V8 runtimes, appears to be a pathological case. As you've noted, forcing GC periodically is sometimes effective, but it isn't a reliable solution.
We'll continue investigating this issue and searching for a fix or workaround. In the meantime, try disabling V8's background activities by setting V8GlobalFlags.DisableBackgroundWork.
Thanks again!

Hi again,
Additional testing has revealed that a bug in ClearScript's support for MaxArrayBufferAllocation is the root cause of this issue.
We'll include a fix in the next release. In the meantime, disabling V8's background activities (see above) should work.
Cheers!

Hello there, thanks for ur help.

Do you have anything on your mind you think this change might break?
Do you know the expected date of the new release?

Hi @simontom,

Do you have anything on your mind you think this change might break?

Disabling V8's background work shouldn't break anything, but it might have a negative impact on performance. In our experience the impact is slight, but it depends on the application.

Do you know the expected date of the new release?

A new stable version of V8 is expected tomorrow. Barring unexpected issues, ClearScript 7.2.5 should be released about a week after that. Unfortunately, we can't guarantee release dates.
Thank you!

Fixed in Version 7.2.5.


Make 'upload one now' link on document chooser work after results refresh

Fixes #8528
Put the initTabs call inside ajaxifyLinks so that it's reapplied when the results container (including the 'no results message') is replaced.

Same issue is present on the task chooser, although it probably only surfaces if you delete the default moderator approval task or define a custom task type - fix is the same, so included here now too.

After testing it looks like this change does fix the issue and doesn't affect the existing functionality.
So for the purpose of this bug it LGTM. 👍
One small repercussion of this fix is when we run initTabs() inside of ajaxifyLinks():
It will re-initialize all the tabs sets on the current page and will cause the JS wagtail:tab-changed event to be dispatched every time the the search box is typed inside, so it could affect anyone with custom functionality listening to this event. This js event was added in wagtail 3.0 though so it's quite new and likely unused at this point in time.
There might be some future enhancements we need for tabs to perhaps use a MutationObserver to re-add event listeners for tab triggers like these 'upload one now' that are added programatically after the tabs have been initialized

Actually I was doing some testing and if we swap the block inside of tab.js line 231 with this:
    this.tabContainer.addEventListener('click', (e) => {
      if (e.target && e.target.matches('[data-tab-trigger]')) {
        const tab = this.getTabElementByHref(e.target.getAttribute('href'));
        if (tab) {
          this.selectTab(tab);
          tab.focus();
        }
      }
    })

it should fix the issue without having to move where initTabs() is being called. As well as avoid the issue with the wagtail:tab-changed event firing

Hmm, I have to say that running a check for "am I clicking on a tab trigger?" on essentially every mouse click on the page doesn't really spark joy for me as a well-engineered solution :-/

As well as avoid the issue with the wagtail:tab-changed event firing

As things stand, this already happens every time the chooser modal is opened, right? If so, I'd venture that having it also happen on internal refreshes of the modal isn't enough of a backwards step to be worth worrying about.
Ideally initTabs should probably accept an optional container element to limit the initialisation to a specified region of the page. I guess that gets fiddly in cases like this where the tabs themselves are not part of that region though - and either way, it's probably not one for 3.0.

Hmm, I have to say that running a check for "am I clicking on a tab trigger?" on essentially every mouse click on the page doesn't really spark joy for me as a well-engineered solution :-/

haha yes very true. We can definitely look into other solutions for this.

As things stand, this already happens every time the chooser modal is opened, right? If so, I'd venture that having it also happen on internal refreshes of the modal isn't enough of a backwards step to be worth worrying about.

Yep for sure, I thought I should mention it just so it's known anyway 😅

Ideally initTabs should probably accept an optional container element to limit the initialisation to a specified region of the page. I guess that gets fiddly in cases like this where the tabs themselves are not part of that region though - and either way, it's probably not one for 3.0.

Great idea yeah, perhaps we can tackle this in a later version

Merged in 2da1a051c701d1347b94e571aaed6026c37dd77e (main) and 2b08df4799 (stable/3.0.x).


[BUG] Invalid JSON tag in permission

Describe the bug
The omitempty empty tag in permission.go is invalid. It should be as follow:
AuthorizedIDs []string `json:"authorizedIDs,omitempty"`

The problem here is that this update breaks the tests in a non explicit way. So they should be fixed so they validate this behavior.
To Reproduce
Steps to reproduce the behavior:

Change the JSON tag in question to the suggested version
Run all the tests (go test ./..in the chaincode directory)
See it failed

Expected behavior
All test should pass with the omitempty tag correctly set.
Additional context
This issue was created following the PR #14

Fixed by https://github.com/SubstraFoundation/substra-chaincode/pull/89