sfdx force:mdapi:deploy fails on single CustomLabel with Error zip/labels/CustomLabels.labels Not in package.xml

Summary
Metadata MDAPI deployment viasfdx force:mdapi:deploy fails on single CustomLabel deployment with ERROR running force:mdapi:deploy:  The metadata deploy operation failed.
Steps To Reproduce:
Package.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Case_Subject_Maxlength</members>
        <name>CustomLabel</name>
    </types>
    <version>55.0</version>
</Package>

CustomLabels.labels:
<?xml version="1.0" encoding="UTF-8"?>
<CustomLabels xmlns="http://soap.sforce.com/2006/04/metadata">
    <labels>
        <fullName>Case_Subject_Maxlength</fullName>
        <language>en_US</language>
        <protected>false</protected>
        <shortDescription>Trimming the Case Subject to avoid length limitation</shortDescription>
        <value>255</value>
    </labels>
    <labels>
        <fullName>status_of_uploaded_file</fullName>
        <language>en_US</language>
        <protected>false</protected>
        <shortDescription>status of uploaded file</shortDescription>
        <value>Uploaded</value>
    </labels>
</CustomLabels>

ls delta/src/
labels                  package.xml

sfdx force:mdapi:deploy --checkonly -d delta/src/ --wait=-1

Expected result
Only the single label Case_Subject_Maxlength from labels/CustomLabels.labels is deployed.
Actual result
=== Component Failures [1]

 Type  File                           Name                    Problem
 ───── ────────────────────────────── ─────────────────────── ──────────────────
 Error zip/labels/CustomLabels.labels status_of_uploaded_file Not in package.xml

ERROR running force:mdapi:deploy:  The metadata deploy operation failed.

System Information

Which shell/terminal are you using?  bash

"cliVersion": "sfdx-cli/7.188.1",
  "architecture": "darwin-x64",
  "nodeVersion": "node-v19.7.0",
  "pluginVersions": [
    "@copado/copado-cli 1.1.17 (user)",
    "@oclif/plugin-autocomplete 1.4.5 (core)",
    "@oclif/plugin-commands 2.2.7 (core)",
    "@oclif/plugin-help 5.2.4 (core)",
    "@oclif/plugin-not-found 2.3.18 (core)",
    "@oclif/plugin-plugins 2.3.0 (core)",
    "@oclif/plugin-search 0.0.13 (core)",
    "@oclif/plugin-update 3.1.3 (core)",
    "@oclif/plugin-version 1.2.1 (core)",
    "@oclif/plugin-warn-if-update-available 2.0.26 (core)",
    "@oclif/plugin-which 2.2.14 (core)",
    "alias 2.2.1 (core)",
    "apex 1.5.1 (core)",
    "auth 2.4.2 (core)",
    "community 2.2.1 (core)",
    "config 1.5.1 (core)",
    "custom-metadata 2.1.1 (core)",
    "data 2.2.1 (core)",
    "generator 2.0.17 (core)",
    "info 2.4.2 (core)",
    "limits 2.3.3 (core)",
    "org 2.3.2 (core)",
    "packaging 1.14.3 (core)",
    "schema 2.3.1 (core)",
    "signups 1.4.0 (core)",
    "source 2.5.1 (core)",
    "telemetry 2.1.1 (core)",
    "templates 55.4.1 (core)",
    "trust 2.4.1 (core)",
    "user 2.3.2 (core)",
    "@salesforce/sfdx-plugin-lwc-test 1.0.1 (core)",
    "@salesforce/sfdx-scanner 3.8.0 (user)",
    "salesforce-alm 54.8.5 (core)",
    "sfdx-git-delta 5.4.2 (user)"
  ],
  "osVersion": "Darwin 22.3.0",
  "shell": "bash",
  "rootPath": "/Users/xyz/.brew/lib/node_modules/sfdx-cli"

Additional information
Deployment of the same package.xml and same CustomLabels.labels via source format works: sfdx force:source:deploy --checkonly -x delta/src/package.xml
{
  "status": 0,
  "result": {
    "checkOnly": true,
    "completedDate": "2023-03-15T13:58:29.000Z",
    "createdBy": "0051xyz",
    "createdByName": "xyz",
    "createdDate": "2023-03-15T13:58:28.000Z",
    "details": {
      "componentSuccesses": [
        {
          "changed": true,
          "componentType": "",
          "created": false,
          "createdDate": "2023-03-15T13:58:29.000Z",
          "deleted": false,
          "fileName": "package.xml",
          "fullName": "package.xml",
          "success": true
        },
        {
          "changed": true,
          "componentType": "CustomLabel",
          "created": true,
          "createdDate": "2023-03-15T13:58:29.000Z",
          "deleted": false,
          "fileName": "labels/CustomLabels.labels",
          "fullName": "Case_Subject_Maxlength",
          "id": "101xyz",
          "success": true
        }
      ],

Thanks for the issue @mobilizer, I was able to reproduce this. I'll get a ticket created to get it sorted out.
(Repo for testing: https://github.com/iowillhoit/metadata-deploy-single-label)

@mobilizer - the CLI behavior matches the behavior when doing the exact same thing using Workbench.  My understanding of how the metadata API works is that the manifest sent with the deploy request must match the metadata components sent with it.  To me, this is working as designed.  The reason force:source:deploy works as you expect is that the code parses the manifest, finds matching metadata source and only includes the matching components in the deploy request.
Here is what Workbench displays:

Thanks @shetzel for the clarification.
That's what I almost expected: That the different behavior is expected.
So we will have to develop a workaround on our own until we can migrate from Metadata to Source format.


[Event Request] Table 38 "Purchase Header" - OnInitFromVendorOnAfterInit

Hello. In table 38 Purchase Header, in the procedure InitFromVendor, I would like to give a value to one my fields after the init in some cases. To do so, I would need an event publisher just after the Init method, and before the GetPurchSetup() procedure. Like this :
local procedure InitFromVendor(VendorNo: Code[20]; VendorCaption: Text): Boolean
begin
    PurchLine.SetRange("Document Type", "Document Type");
    PurchLine.SetRange("Document No.", "No.");
    if VendorNo = '' then begin
        if not PurchLine.IsEmpty() then
            Error(Text005, VendorCaption);
        Init;

        OnInitFromVendorOnAfterInit(Rec, xRec);

        GetPurchSetup();
        "No. Series" := xRec."No. Series";
        OnInitFromVendorOnBeforeInitRecord(Rec, xRec);
        InitRecord;
        InitNoSeries;
        exit(true);
    end;
end;

With this event integration :
[IntegrationEvent(false, false)]
local procedure OnInitFromVendorOnBeforeInitRecord( var PurchaseHeader : record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
begin
end;

Do you think it could be possible ?
Thank you for your work.

InitRecord is started with GetPurchSetup(); so I will just remove the call of GetPurchSetup(); in InitFromVendor so OnInitFromVendorOnBeforeInitRecord will be the event to subscribe.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Deployment Groups

The session and array deployment group fields have merit, but I think there's a better way to handle them.

If there isn't a way to define the purpose of a deployment group, then the separation between array and session has little meaning. They should just be combined into a general field for grouping deployments. It does allow for a one-to-two relationship in a flat structure (a one-to-many restricted to two), but I there may be better ways to handle this. Currently, arrays and sessions are identifier fields with a little context.
Semantically the terms arrays and sessions have wider implications and can risk misinterpretation. They are both types of deployment groups. There is very little ambiguity in the phrase 'deployment group'. Deployment groups have a purpose and type. If this many-to-many isn't possible given the data package structure, then at minimum the terms should be re-evaluated and reorganized to allow a purpose or criteria field.
The term 'array' is a term already in use in camera trapping for a variety of purposes. Re-purposing it here for a specific purpose risks mistaken identity. In other words, there may be a bias or pre-existing familiarity that may be hard to shake for some providers.

@ben-norton what is your suggestion to fix this. Have a single term deploymentGroup where users can add IDs (plural) on how to group deployments (without context)?

Hi Ben, see #227 for discussion on this topic. Closing this issue.


request: github username/repo variable

Suitable for things like the travis CI badge support in Cargo.toml.

@fitzgen cargo-generate creates a local git project, but that project does not have any remotes. would it be enough to assume the project name is the repo name? this won't always be accurate...


Secrets not available till v4.63

Bug found by Renee Baeker reneeb.
One of the test files uses the 'secrets' method, which isn't available till Mojolicious v4.63.

Fixed in c75f76993b15a88e2248cd5b012fa4268e1fe93d


Incrementing variable in custom script increments other variables not targetted

Describe the bug
A script that increments one variable on button attachment, updates the other variables in the custom event that shouldn't be targetted, however when outside of a custom event (on init) works correctly
To Reproduce
Steps to reproduce the behavior:

Create a custom event attaching on press to select
Increment one variable on press
Output that variable along with other variables in a dialogue

Expected behavior
Just the targeted variable to be incremented by one
Screenshots

Platform (please complete the following information):

OS: MacOS 11.6.2
App version 3.0.3

I did a bit of testing, I found that if you move the Attach Script event out of the custom script, putting it into init and then putting the Call Script inside it, it works correctly. I then edited the dialogue GBVM code to output the variable indexes instead of their values, and found that they were all 0. I do not understand the nuts and bolts of how it all works, but it's clear that the custom script is not correctly passing its VM context on to the input script.


ENG-352 how to customize bundle title, thumbnail and description

adds a tutorial on how to change bundle title, thumbnail or description from the custom-resource

Hey, @Kerruba. Is this 6.2-specific or does this instruction work for 6.1 as well? Based on the 6.1 CRD I have installed it looks like this works for 6.1.

Hi @nshaw, yeah this is valid for 6.1

I think should be mergable, let me know if you need anymore feedback


Jail does not start at boot -> vncport use on 2nd start / after reboot

Hi @olevole
There's some hickups over xigmajail created jails. At first they do start & run plus provide the web based terminal via ttyd with the -c parameter.
After a reboot they won't start, it seems the reason beding the vnc_port file got lost (?) and a second file created as `vnc_port2
Listed in the other issue already, the cbsd jcounstruct-tui fails to run due to missing binary, you can check it in #1
I guess, there were some key changes with the release 13.3.05 :)
xigmanas: ~# cbsd jls
JNAME  JID  IP4_ADDR  HOST_HOSTNAME    PATH                    STATUS
jail1  0    <IP_ADDRESS>  jail1.my.domain  /data/cbsd/jails/jail1  Off
xigmanas: ~# cbsd jstart
List of offline jail
 0 .. CANCEL
 a .. jail1 on local

Default NIC automatically selected: re0
set resource limit: [ vmemoryuse:deny=256 ]
jail renice: 1
Starting jail: jail1, parallel timeout=5
jail1: created
ld-elf.so.1: morepages: cannot mmap anonymous memory: Cannot allocate memory
ld-elf.so.1: morepages: cannot mmap anonymous memory: Cannot allocate memory
Out of memory
jail: jail1: /bin/sh /etc/rc: failed
jail1: removed
Execute master script: expose.sh
 :: /data/cbsd/jails-system/jail1/master_poststart.d/expose.sh
head: /data/cbsd/jails-system/jail1/vnc_port: No such file or directory
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
jstart done in 9 seconds
xigmanas: ~# ls -la /data/cbsd/j
jails-data/   jails-fstab/  jails-rcconf/ jails-system/ jails/
xigmanas: ~# ls -la /data/cbsd/jails-system/jail1/
total 43
drwxrwxr-x  5 root  cbsd     21 May 20 09:29 .
drwxrwxr-x  3 root  cbsd      4 May 20 09:00 ..
drwxrwxr-x  3 root  cbsd      4 May 20 09:00 etcupdate
-rw-rw----  1 cbsd  cbsd   8192 May 20 09:29 expose.sqlite
-rw-rw----  1 cbsd  cbsd  32768 May 20 09:29 expose.sqlite-shm
-rw-rw----  1 cbsd  cbsd      0 May 20 09:29 expose.sqlite-wal
drwxrwxr-x  2 root  cbsd      5 May 20 09:00 helpers
-rw-r--r--  1 root  cbsd     20 May 20 09:29 jail.limits
-rw-r--r--  1 root  cbsd     74 May 20 09:00 jail.limits.extra
-rw-rw----  1 cbsd  cbsd  16384 May 20 09:00 local.sqlite
-rw-rw----  1 cbsd  cbsd  16384 May 20 09:00 local.sqlite-20240520090528.bkp
-rw-rw----  1 cbsd  cbsd  32768 May 20 09:29 local.sqlite-shm
-rw-rw----  1 cbsd  cbsd      0 May 20 09:05 local.sqlite-wal
drwxr-xr-x  2 cbsd  cbsd      3 May 20 08:54 master_poststart.d
-rw-rw-r--  1 root  cbsd      0 May 20 09:00 media.sql
-rw-rw-r--  1 root  cbsd    535 May 20 09:00 rc.conf_jail1
lrwxrwxr-x  1 root  cbsd     46 May 20 09:29 stats.conf -> /data/cbsd/jails-system/jail1/stats.conf.15082
-rw-rw-r--  1 cbsd  cbsd    504 May 20 09:29 stats.conf.15082
lrwxrwxr-x  1 root  cbsd     46 May 20 09:29 stats.json -> /data/cbsd/jails-system/jail1/stats.json.15082
-rw-rw-r--  1 cbsd  cbsd    500 May 20 09:29 stats.json.15082
-rw-rw-r--  1 root  cbsd     23 May 20 09:29 vnc_port2
xigmanas: ~# cbsd jstop
List of online jail
No jail specified

@olevole
Is the any debug.log capability in either xigmajail or in CBSD to I can trace what happens with the original vnc_port file?

@n-connect I can confidently say that the vnc_port2 file is not served by the CBSD. At least, I do not remember (and did not find) that this file is controlled by the CBSD.
Moreover, it is very strange that you see this file in the jail container catalog. This file refers to virtual machines.
It is quite difficult for me to test some things with Xigma at the moment, because I am limited by the presence of equipment (Two of my production XigmaNAS instance are now far from me).
I tried to double -check the jails terminal (via ttyd)  operation on a clean fresh system (virtual machine) and it works for me.
I apologize for this form of demonstration, but I decided to show all the way, starting with the installation of Xigma:
part 1, installation + partition: https://youtu.be/9XCbfPOdz2E   (  My clumsy attempts to create ZFS pool for data for some reason failed, so I created the UFS )
part 2, CBSD jail extension: https://youtu.be/ymTjXOGSUxE (  There is a certain issue associated with the routing of my workstation, where I launched a virtual machine. So in a demo, the container did not have Internet access for pkg bootstrap. Also, I noticed the problem that the container did not initiate the IP address (aliases ) at the first start - this needs to be investigated. Nevertheless, I wanted to check only the graphic terminal and it seems to be a complete order with it. )

@olevole
Thank you for the video output and check. Based on that, it seems with the UFS formatted data disk there is no issue with 3rd level of directories used for CBSD framework files (/mnt/mnt were the "dir" value in the plugin's ). So /mnt/mnt/cbsd/*` must be CBSD content. -> This was the first problem at #1
Based on your video, I'll recheck the first , original issue, now I have the feeling my first try making ZFS data disk over XigmaNAS' webUI was a wrong halfway somehow and be the root cause CBSD can't put its own files under "/mnt/data/cbsd/*". I need to find some reference how on Earth XigmaNAS people thought the ZFS format / vdev / mount process should be done sucessfully over their webUI :D
Please do a reboot and check again the two jails you have created if they are able to run/you can log into them -> that was the 2nd issue, this one #2 - (after I did made my ZFS formatted data disk mounted under /data)
About the XigmaNAS's ZFS format/vdev/mount, as I wrote at #1 , I could not make the ZFS data disk over XigmaNAS webui too :D  - turned to SSH and with two commands it can be done:

Optional: remove the existing UFS partition, but only if you still have it

gpart destroy -F /dev/vtbd1
dd if=/dev/zero of=/dev/vtbd1 bs=512 count=8192
gpart create -s gpt /dev/vtbd1
gpart add -a 1m -t freebsd-zfs -i 1 -l 'data'

The only two commands needed if you have fresh data disk, quoted from my previous comment at #1 , disk device adapted based on your YT video.

zpool create -f -O compress=zstd data /dev/vtbp1 (-f to overwrite the previously created vdev over the buggy Disks/ZFS/Pool/Virtual Devises webui)
zfs set mountpoint=/data data
the created zpool and its mount works, but the Disks/ZFS/Pools not showing the vdev/pool etc. Only the "configuration" has correct data: but for zroot and data pools too. It must be some XigmaNAS bug. From now on Truenas CORE and its webui looks better for me, by the way.

Last note: I'm doing these test on a Fujitsu Futro s920/s930 available from €20 on the eBay link for example.

As I wrote back in the #1, using a fresh install the jail creation over webUI works. Jail settings editing works, after reboot the connected jail start.
But I can not "login" via the browser based terminal (backed with ttyd). It always asks for passwords in the browser. Here are the out put for processes, (fresh XigmaNAS install, still using the default user/pw yet):
root  15440   0.0  0.1  40744 21568  -  Ss   16:04    0:00.02 |-- ttyd -o -m 1 -t titleFixed=jail:jail1 -c 1c76b3fddbe68a9dabebdeb79713fece:1c76b3fddbe68a9dabebdeb79713fece --writable -p 7681 /usr/sbin/jexec

Decoding the -c parameter give back some garbage, even the newline disappears:
bash-3.2$ echo "1c76b3fddbe68a9dabebdeb79713fece" | base64 -D
���ow�u���]i��u���w}�bash-3.2$

The "cbsd expose" has 3 times the redirect rule from some reasons :D
cbsd expose
Expose for jail1:
3000 -> 22 (inaddr=0 -> <IP_ADDRESS> tcp)
3000 -> 22 (inaddr=0 -> <IP_ADDRESS> tcp)
3000 -> 22 (inaddr=0 -> <IP_ADDRESS> tcp)

So, now its reduced to the webUI console login issue. Should I rename the issue?

Thanks for the details. It is not necessary to rename - all the information here is described. As soon as I get access to Xigma, I will definitely check it

@olevole
Good news :D

The ttyd usability is browser dependent! In Chrome, in Firefox it works, in Safari it is not asking for PW. Copying out  manually from ps auxd gives a Reconnecting ttyd window. So its only not working in Safari, needs some research whatis the reason...
I could recreate the issue with the vncport. If you define a jail with memory limit, the jail do not start. Trying to start it gives you these console output:

xigmanas: /# cbsd jstart
List of offline jail
 0 .. CANCEL
 a .. jail2 on local

Default NIC automatically selected: cbsd0
Set CPU limit jail2: 1
set resource limit: [ vmemoryuse:deny=128 ]
jail renice: 1
Starting jail: jail2, parallel timeout=5
jail2: created
ld-elf.so.1: morepages: cannot mmap anonymous memory: Cannot allocate memory
ld-elf.so.1: morepages: cannot mmap anonymous memory: Cannot allocate memory
Out of memory
jail: jail2: /bin/sh /etc/rc: failed
jail2: removed
Execute master script: expose.sh
 :: /data/cbsd/jails-system/jail2/master_poststart.d/expose.sh
head: /data/cbsd/jails-system/jail2/vnc_port: No such file or directory
expose warning: port already in use on <IP_ADDRESS>: tcp/3000
expose: fw_expose_add error: 1
jstart done in 3 seconds

Editing the properties of the very same jail jail2, the form do not shows the current values (1 cpu, 128Mb RAM), but the unlimited values. Plus can't change the vaules, either to unlimited or to another limit value (tested in Chrome)
3.  Beside the vncport problem, the cbsd expose on the 2nd jail (jail2) can't add again port 3000 for SSH (port 22) redirect. Connected starter variable is at cbsd_manager_config.php line 216, cbsd_rdr
Some screenshots for the end with the same numbers up:

Ttyd works in Chrome

Does not in Safari

Mem limited jail2

Cbsd jstart for jail2 in CLI

Multiple port 3000 redirects for jail1 (4 pieces), jail2 can't have its own redirect, tries the same port (3000), I guess the port number in PHP needs and increment logic for external port numbers.

@n-connect Thanks for updating/info!  I'm not ignoring you, unfortunately I don't have a XigmaNAS+CBSD right now ;-)
I currently have two XigmaNAS instances (without CBSD/jail/bhyve) in different cities/location. I understand that using virtual machines or running containers on NAS instances is not always a popular solution (even from the point of view of NAS developers). However, I don't like any resources being idle (CPU and memory - I have quite powerful hardware)
Running applications and virtual machines on NAS is a nice hyperconverged solution ( especially for home use when you are limited in space and want to save electricity ) that doesn't require you to install another hypervisor next to NAS.
Due to the fact that I have two NAS and they are not directly accessible from the Internet, it is not very convenient for me to access virtual environments, so before I return to development CBSD extenstion for Xigma NAS, I would like to implement some kind of router (service) on the Internet, through which I can connect my virtual environments from NAS appliance.
CBSD already supports API (+broker), In addition, a graphical QT6-based application for CBSD will be published soon, which will be available on all OS (MacOS, Linux, Windows, BSD) and mobile devices (tested on Android), demo: https://forums.freebsd.org/threads/welcome-bhyve-qt-alpha-0-3-first-look.91532/
Thus, I see the use of the CBSD XigmaNAS plugin and us for myself as follows (in addition to local use, as is done now):

Also, I was interested in this issue on the XigmaNAS forum, but so far no interest from the Xigma developers: https://www.xigmanas.com/forums/viewtopic.php?t=2111
For this reason (need to investigate before returning to development of the extension) I am currently delaying work on finalizing the extension, but I take your comments into account and really appreciate them ;-)

maybe there is some problem with ttyd + Safari ( https://github.com/tsl0922/ttyd/issues?q=is%3Aissue+safari+is%3Aclosed ), have you tried the Safari + ttyd without Xigma and cbsd? it is accessible from FreeBSD ports: /usr/ports/sysutils/ttyd

@olevole
Will check the ttyd vs Safari at the weekend, thanks.
Your network landscape drawing pretty much the same idea I had (after you I guess), but I weren't tried the the API yet, not used the multinode capabilities of CBSD. I'll need to check them. From another angle, calling them a NAS it just a title we refer to it, it can be anything FreeBSD can provide. I need to be active on XigmaNAS forum to get know better their install type/logic/limitations.
What's the best link to check-out/using the CBSD API? The BSDstore web page seems sometimes outdated. Got your best answer in a CBSD bhyve/network topic at the main freebsd forum for example :)
I saw you are stretched thin with a lot of parallel development directions, seeing the patreon as well.
Seen how the QT client works, will try once you release it.
So, I'll take this thread easy than, replace Xigma with with a vanilla Freebsd 14/14.1 and finish the host pf stuff integration on that for CBSD.
Is there any direct way to communicate with you, maybe talk/chat IRC whatever, not public like here? There are some questions around CBSD I'd like to ask in general, or the direction. Also ran into some interesting parts (missing ZFS jailed property in running jails, compared to iocage for example), where I'm not sure if I made something wrong so maybe a quick talk would help.

The fastest and painless way to get acquainted with the CBSD API - just download & install (on bare metal if you want to run bhyve) MyBee distribution:

https://myb.convectix.com -> download
install MyBee (in fact it is FreeBSD + CBSD + API, without any modifications)
to test via curl, e.g. debian12.json file:

{
  "imgsize": "20g",
  "ram": "1g",
  "cpus": 2,
  "image": "debian12",
  "pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPY9ozA89YZMGT9ZCZX3oZImqt+a0FO9qQmJA+1O7YU6 cloud_ssh-ed25519_cloud@localhost"
}

where pubkey is your ED25519/RSA ssh PUBKEY
or payload for jail:
{
  "image": "jail",
  "imgsize": "10g",
  "pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPY9ozA89YZMGT9ZCZX3oZImqt+a0FO9qQmJA+1O7YU6 cloud_ssh-ed25519_cloud@localhost"
}

Submit request:
curl --no-progress-meter -X POST -H "Content-Type: application/json" -d @debian12.json http://MyBEE-instance/api/v1/create/vm1

If you use Telegram IM, welcome to https://t.me/cbsdofficial (Telegram CBSD group) or ping me at https://t.me/olevole
Otherwise, I'm always available by email: olevole at ya.ru


refactor: prune 0 values from L2Tx

Fixes #3222
Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

[ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
[ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
[ ] Every change is related to the PR description.
[ ] I have linked this pull request to relevant issues (if any exist).

Benchmark results
Metrics with a significant change:

note_history_trial_decrypting_time_in_ms (10): 252 (+76%)

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.
Values are compared against data from master at commit d707d4e3 and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,444
179,588
716,132

l1_rollup_calldata_gas
222,900
868,280
3,449,312

l1_rollup_execution_gas
841,987
3,595,388
22,204,681

l2_block_processing_time_in_ms
1,987
7,528 (-1%)
29,701 (-1%)

note_successful_decrypting_time_in_ms
293 (-1%)
866 (-2%)
3,151 (-2%)

note_trial_decrypting_time_in_ms
96.0 (-4%)
74.0 (-24%)
135 (+1%)

l2_block_building_time_in_ms
13,180 (-1%)
52,576
209,020 (-1%)

l2_block_rollup_simulation_time_in_ms
11,847 (-1%)
47,275
187,862 (-1%)

l2_block_public_tx_process_time_in_ms
1,296
5,165 (-2%)
20,670 (-1%)

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

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
21,655 (-1%)
42,094 (-1%)

note_history_successful_decrypting_time_in_ms
2,049 (+1%)
3,945

note_history_trial_decrypting_time_in_ms
120
:warning: 252 (+76%)

node_database_size_in_bytes
1,629,804
1,097,863

pxe_database_size_in_bytes
29,748
59,307

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

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
773
61,697
18,905

private-kernel-ordering
123
24,297
8,153

base-rollup
1,772
656,311
814

root-rollup
77.4
4,072
1,097

private-kernel-inner
789
81,568
18,905

public-kernel-private-input
41.5 (-1%)
41,519
18,841

public-kernel-non-first-iteration
26.3 (-1%)
41,497
18,841

merge-rollup
0.906 (-2%)
2,592
873

Miscellaneous
Transaction sizes based on how many contracts are deployed in the tx.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
8,787
27,547


Add a CoverallsBadge component

Some repositories use Coveralls for test coverage. A badge showing the current test coverage helps to understand whether the repo currently is in good shape.
This issue is meant to be a good first issue to get into this repository, and into open source contribution over all, as it will require to touch few existing files and is documented extensively. If this is your first contribution to open source, I encourage you to try this issue. Please note that I will only accept one of the good first issues per person to give as many people as possible the opportunity for a first contribution.
Please read our contribution guidelines before picking this up, it will also lead you through the process of setting up the repository.
Describe the solution you'd like
This is what the badge should look like in its most basic form:

It should be accessible as <CoverallsBadge pkg={pkg} />, with an optionals props branch that can be used as <CoverallsBadge pkg={pkg} branch='master' /> to render to:

The badge needs to be exported from the badges index barrel file.
Please note that you will also have to provide test coverage and documentation for me to be able to accept the PR.
If you are interested in an additional challenge, try to also support BitBucket and Gitlab in addition to GitHub, based on package.json
Additional context
A good badge to base this new badge on is the GitHub Workflow badge.

Hey! I would like to give this one a try also I won't make the PR before 1st October since I'm participating in Hacktoberfest.

nevermind, it's a bit over my head, sorry

No worries. If you are interested, I'm happy to help :)

Hi Daniel, I am trying to figure out how to complete this task. I have some basic idea of how the typescript may be written, and haven't started that yet, I just want to attempt understand the whole process before diving in.
When you say I have to provide test coverage, does that mean writing tests first? Are there none yet?
Would the test coverage have to be sent to a third party before a badge can be created?

You will only have to change files in the repository, everything else will be automatically one by the automation set up. Here's a recent PR that added another badge and shows how to write tests:
https://github.com/dbartholomae/jsx-readme/pull/23/files
The repository is always at 100% test coverage, so you will only have to add tests for the functionality that you are adding, not for other code.

If I allow branches in the Coveralls Badge Component:

The links to coveralls reporting pages can be shown, which is good
The badge can be shown, but may not be correct, which may be bad?

I don't know much about testing coverage, so I created my own example, called coverall-reporting, to explore Coveralls.
The master branch has 100% coverage and the badge shows it correctly at 100% coverage.
The dev branch has only 83% coverage, but the badge still shows 100% coverage.
Would you like to show branches?

I have completed the badge component, although testing is not complete. I wanted to run the linter, and I run into this problem.

Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .

/Users/.../.../jsx-readme/examples/README.md.tsx
  61:6  error  Unsafe call of an any typed value  @typescript-eslint/no-unsafe-call```

You don't get this when you lint?

You can ignore the warning, but the error in README.md.sx seems to be new. Looks like something that should be typed isn't.

After more Coveralls exploration, I found that the default Coveralls badge ( no branch specified in badge URL ) will show the latest master branch coverage report. This default badge shows even if the master has a lower coverage than another branch. So if a user doesn't put the branch like below, the default will be shown. Readme.md.tsx <CoverallsBadge pkg={pkg} branch={working} />  That seems to make sense to me, what do you think?

In the README.md.tsx please don't add the badge as this repository is not using Coveralls, Sontheimern badge would be misleading.

@MDShields7 I've explicitly assigned the issue to you as you are already working on it :)

@MDShields7 are you still on this? Otherwise, I would unassign it again :)


BIGINT UNSIGNED value is out of range

Running this against our production RBH server we got the following error during a --dry-run
[DRY RUN]
Error: Query failed to execute [BUILDING table]
1690 BIGINT UNSIGNED value is out of range in '(unix_timestamp(now()) - robinhood_gdata3.ENTRIES.last_mod)'
Error writing file '/var/tmp/MYLQwf1P' (Errcode: 28)
Let me know what I can do to help debug

Found the issue. It seems on a filesystem with 200+ Million files that also has a heavy changelog update load, the query was taking to long to run that now() was actually older than the last records in the table.
I modified the query with a +3000 and it seems to work fine now.  I realise 3000 skews the results by 3000 seconds... but for our purposes this is fine.

I stand corrected. It is not the only issue.
I found somebody with an atime of MAXINT.
It seems this is part of their workflow. I think the query needs to be adjusted to deal with times greater than now.
Please advise on how to add a WHERE clause to the query to exclude such values as they are basically nonsense for the purposes of this graphing.


Lock method does not work

Hi,
I'm not sure what am I doing wrong but I haven't being able to use this package. It is exactly what I need but for some reason it throws an error when I try to lock a resource.
redis_version:2.4.10
python version 3.5.2
This is my code

from  redlock import Redlock
dlm = Redlock([{"host": "REDIS_SERVER_IP", "port": 6379,  "db": 0}, ])

Acquire lock for 1 minute

my_lock = dlm.lock("this_is_my_key",1000)

ERROR:root:Error unlocking resource this_is_my_key in server StrictRedis<ConnectionPool<Connection<host=X.X.X.X,port=6379,db=0>>>
Traceback (most recent call last):
File "/home/redis/apps/Proj/env/lib/python3.5/site-packages/redlock/init.py", line 80, in unlock_instance
server.eval(self.unlock_script, 1, resource, val)
File "/home/redis/apps/Proj/env/lib/python3.5/site-packages/redis/client.py", line 1932, in eval
return self.execute_command('EVAL', script, numkeys, *keys_and_args)
File "/home/redis/apps/Proj/env/lib/python3.5/site-packages/redis/client.py", line 573, in execute_command
return self.parse_response(connection, command_name, **options)
File "/home/redis/apps/Proj/env/lib/python3.5/site-packages/redis/client.py", line 585, in parse_response
response = connection.read_response()
File "/home/redis/apps/Proj/env/lib/python3.5/site-packages/redis/connection.py", line 582, in read_response
raise response
redis.exceptions.ResponseError: unknown command 'EVAL'
Thanks in advanced!

Hi my english is not very well.
It seems the version of your redis server is too low you should update it to v2.6.0 or later.EVAL command

Can this result in a different raised exception? Something to the tune of your version of redis-server is too old?


feat: add run URL output

Thank you!

Release, now on v1 or v1.14.0 :)
If you target v1, you won't have to change anything and can start using the new output


commenting and added supprot for autogenerating the options

added comments
added a new aura handler on options.
Think it should be included by default

Thanks! - I didn't have this as I seem to recall having an init loop caused by a similar handler. I'll merge it and test to make sure later. I'm pretty sure it'll be ok though.


Story/ep 1790

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Nothing result

I tried to input 'hiper baidu.com',but is nothing result.

me too

but I see the show

you need re-install
➜  ~ npm uninstall hiper -g
removed 73 packages in 0.495s
➜  ~ npm install hiper -g
/usr/local/bin/hiper -> /usr/local/lib/node_modules/hiper/bin/index.js

<EMAIL_ADDRESS>install /usr/local/lib/node_modules/hiper/node_modules/puppeteer
node install.js

Downloading Chromium r641577 - 86.3 Mb [=========           ] 46% 83.9s
......
...
..
Downloading Chromium r641577 - 86.3 Mb [====================] 100% 0.0s
Chromium downloaded to /usr/local/lib/node_modules/hiper/node_modules/puppeteer/.local-chromium/mac-641577

<EMAIL_ADDRESS>added 73 packages from 31 contributors in 162.674s

There is still no result


[Question] Indexing in/out edges in OrientDB 3.0.x

OrientDB Version: 3.0
Hi,
Is it still possible to index in/out attributes in edges?
I have created an in LINK attribute on a specific edge that we have. However, querying that class of edges did not seem to gain me any speed. Is there anything that I am doing wrong here?
create index has_a.in on has_a (in) notunique
select from has_a where in = #125:1443671

Hi @andreyvk
I'd say it should work fine, it's just a normal property (if it doesn't, it's definitely a bug).
I'm adding it to my backlog, I'll try to look into it soon
Thanks
Luigi

in the meantime, could you please run an EXPLAIN of the query?
Thanks
Luigi

hi @luigidellaquila ,
+ FETCH FROM CLASS has_a
  + FETCH FROM CLUSTER 130 ASC
  + FETCH NEW RECORDS FROM CURRENT TRANSACTION SCOPE (if any)
+ FILTER ITEMS WHERE
  in = #125:1443671

Oh yes, it's not using the index...

Hi @andreyvk
I found and fixed the problem, the fix will be released with next v 3.0.16
Thanks
Luigi


build: only build static or shared sqlite lib

Only build the static or the shared version of sqlite.
Building sqlite is one of the slowest parts of the build process. We can cut down on the time the sqlite build takes by only building the shared library version or the static library versioning, depending on which version we need.
Please be aware, that due to multiprocessing, this will only cut down speed on low processor count computers, e.g. CI servers. Desktops/laptops probably won't be affected.

Do we need to set the default value for BUILD_SHARED_LIB? Maybe set it to OFF in openwrt preset.

https://github.com/nqminds/edgesec/blob/3064b421ec18614aae48420f0fb864b76809a455/CMakeLists.txt#L118-L119
It's off by default for edgesec, since BUILD_STATIC_LIB fails due to cyclical linking dependencies that GCC can't handle.


The Medium story linked to Denoising is deleted.

The Medium story linked to Denoising is deleted.
https://medium.com/analytics-vidhya/dealing-with-noisy-data-in-data-science-e177a4e32621

Thanks @etanxing, I will look for a good replacement

Here's a mirror for the original article:
https://yusout.com/2019/04/29/dealing-with-noisy-data-in-data-science/
Will put that into place

Here's a mirror for the original article:
https://yusout.com/2019/04/29/dealing-with-noisy-data-in-data-science/
Will put that into place

Fixed this with PR #26

Fixed this with PR #26


PatchFixScanEnabled incompatibility with LethalLevelLoader

Having PatchFixScanEnabled set to true makes scan command show moons list when QC and LLL are both installed.

Hey @Agitatio,
This is an issue with LLL itself, you can find more info on this issue and the mod owner is aware of it :)
https://github.com/IAmBatby/LethalLevelLoader/issues/54#issuecomment-1963125520


Update pong.rst

Just a spell change.

Thanks for your contribution, however, the original spelling is actually correct.
In this context "run" means started (i.e. "it is loaded when the application is run/started"). "Running" implies it is loaded sometime during the application runtime, which is correct, but not what is intended to be said (that it is loaded when the application is initially run/started).

Ohh. Sorry Nad thank you very much for replying 👍

Thanks for your contribution, however, the original spelling is actually correct.
In this context "run" means started (i.e. "it is loaded when the application is run/started"). "Running" implies it is loaded sometime during the application runtime, which is correct, but not what is intended to be said (that it is loaded when the application is initially run/started).

Ohh. It just slipped through my mind. Thanks for your reply.


PACK_DIR environment variable being ignored

This command seems to ignore the provided PACK_DIR value and install in .pack/bin anyway:
$ PACK_DIR=/home/foxy/desktop/ pack -p nightly-240617 install-app idris2-lsp

Or perhaps PACK_DIR is not meant to provide local installs in different directories, but only one global install directory at a time?

I'll have a look at this.

So, I tested this on my end: The program is installed at the correct location on my end but the lsp app requires also pack to be installed in the same $PACK_DIR, because it needs pack to resolve all library paths for the LSP.
So, currently PACK_DIR is used as a global install and not for different local installs. I'd be interested in your use case to find out how or if it is possible to make this more flexible.

At https://github.com/mason-org/mason-registry/pull/5266, I am making idris2-lsp available to neovim users via one of its most popular package managers. Portability is one of mason's key features: All installed packages are isolated in a single local directory, so your system does not get dirtied.
One thing that * could * be possible w/o touching pack's codebase would be having a second pack install within the mason subdirectory where idris2-lsp is to be installed, but this does not really scale well to multiple mason packages making use of pack. As for now, idris2-lsp is the first pack app people are trying to merge.

At mason-org/mason-registry#5266, I am making idris2-lsp available to neovim users via one of its most popular package managers. Portability is one of mason's key features: All installed packages are isolated in a single local directory, so your system does not get dirtied.
One thing that * could * be possible w/o touching pack's codebase would be having a second pack install within the mason subdirectory where idris2-lsp is to be installed, but this does not really scale well to multiple mason packages making use of pack. As for now, idris2-lsp is the first pack app people are trying to merge.

Would it be okay for your usecase to assume that pack must be installed an the pack executable on the $PATH? In that case, you could replace the calls to pack (via absolute paths) in the generated idris2-lsp shell script with just pack:
#!/bin/sh

if ! APPLICATION="$(pack app-path idris2-lsp)" || [ ! -r "$APPLICATION" ]; then {
  echo '[ fatal ] Package `idris2-lsp` is not built or not installed in the current'
  echo '          environment. Maybe, it was installed with an older compiler version'
  echo '          or using a local `pack.toml` which is not available in the current'
  echo '          directory. Try to reinstall it with `pack install-app idris2-lsp`.'

  } >&2; exit 2
fi
export IDRIS2_PACKAGE_PATH="$(pack package-path)"
export IDRIS2_LIBS="$(pack libs-path)"
export IDRIS2_DATA="$(pack data-path)"

$APPLICATION "$@"

Yes, I am sure that would be a reasonable assumption. However, idris2-lsp is not installed in the expected location to begin with, in my case. The command I am running is:
PACK_DIR=/home/foxy/desktop/ pack -p nightly-240617 install-app idris2-lsp


Can not run docker in windows??

Docker version:1.9.0
Docker info:An error occurred trying to connect: Get http://localhost:2375/v1.21/info: dial tcp <IP_ADDRESS>:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.
When i tried to run docker i got this problem:
Starting machine default...
Error setting up host only network on machine start: C:\Program Files\Oracle\Vir                                                                                tualBox\VBoxManage.exe hostonlyif ipconfig VirtualBox Host-Only Ethernet Adapter                                                                                #8 --ip <IP_ADDRESS> --netmask <IP_ADDRESS> failed:
VBoxManage.exe: error: The host network interface with the given name could not                                                                                be found
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component HostWr                                                                                ap, interface IHost, callee IUnknown
VBoxManage.exe: error: Context: "FindHostNetworkInterfaceByName(Bstr(pszName).ra                                                                                w(), hif.asOutParam())" at line 205 of file VBoxManageHostonly.cpp
Looks like something went wrong... Press any key to continue...

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

Thanks for reporting, @setu1421. This looks like a problem with docker-machine / VirtualBox, and is better reported in the docker-machine repository. I did a quick search, and found this issue related to setting up the host-only network; https://github.com/docker/machine/issues/1521 but possibly there are other issues.
I'm going to close this issue here, because this is something that must be resolved in the docker-machine code, not in docker; I suggest to open this issue in that repository (or subscribe to an existing issue there if it exists)
Feel free to comment here after I've closed this issue :+1:


production build fails with latest version

Description

seems like there is and additional operand after mkdir or am I missing something?
I upgraded my vps using yarn upgrade vite-plguin-ssr --latest
here is my yarn.lock

Error Message + Error Stack
No response

This doesn't seem to be related to VPS. Did you update another dependency as well?

This doesn't seem to be related to VPS. Did you update another dependency as well?

no what I did was just yarn upgrade vite-plguin-ssr --latest

I wouldn't know how VPS can cause the error. Minimal reproduction welcome.

I wouldn't know how VPS can cause the error. Minimal reproduction welcome.

I upgrade vite as well and it solved. sorry for bother thanks for the reply!

No problems.
Btw, if you think you can convince your company: https://github.com/sponsors/brillout. Sponsors are starting to make a tremendous difference!


Include reference to KDP and their need for flattened, i.e. optimized files.

Resolves #1684.

Thanks @gregturn!


[Question] load secretkey from a file

Hello,
I created Keypair (pk,sk) and I saved sk in a file.
How I can rehydratate sk?
Sorry if it's a noov question

Hi @AbrahamAlcaina, sorry for the exceptionally delayed response,
Can you please be a little more specific about what you mean by 'rehydrate'? Maybe I am the noob and this should be obvious, but I'm not sure what you mean. :) (Or perhaps a language barrier issue -- if so, that's fine and don't worry about it!)
Perhaps you mean "regenerate the public key"? If that is the case, the library exports a function toPublicKey :: SecretKey -> PublicKey which will let you regenerate the public key on demand (in O(1) time -- the thing is, Ed25519 secret keys include the 32-bit public key, so you only have to do a single copy/drop a few bytes to get it.)
Please let me know if this is what you needed; if not, please feel free to elaborate. And if you fixed this problem yourself, it'd be useful to know (perhaps so I can amend the documentation)


Option for file extension

Currently files are generated with no extension at all. Chrome is able to open them fine, but Safari refuses to completely. There should be an option to generate files with .html extension (or possibly any extension desired?)

Yeah, I can do that.