python312Packages.edk2-pytool-library: 0.21.9 -> 0.21.10

Diff: https://github.com/tianocore/edk2-pytool-library/compare/refs/tags/v0.21.9...v0.21.10
Changelog: https://github.com/tianocore/edk2-pytool-library/releases/tag/v0.21.10
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

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

4 packages built:

python311Packages.edk2-pytool-library
python311Packages.edk2-pytool-library.dist
python312Packages.edk2-pytool-library
python312Packages.edk2-pytool-library.dist


Dockerhub Caching

Hey
This is one of the most useful and simple actions out there 👏
Any chance we can use dockerhub to cache it?
My runners are spending 50s building it every run.
Cheer! 🍻

This is actually a very good suggestion :) Thanks for bringing this up, I'll work on it quite soon (<2d)!

@oriarditi Down to 10s :) Enjoy!


Not working for return response()->download();

Not working for return response()->download();
I have cors as global middleware.
Error:
Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header()

Having the same issue here

I solved this by changing the handle method.
See comment in code:
/**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next) {

        if ($request->isMethod('OPTIONS')) {
            $response = new Response("", 200);
        }
        else {
            $response = $next($request);
        }

        // Added this to fix the image download problem
        // Only set Cors if its not een image
        if(strpos($response->headers->get('content-type'), 'image') === false) {
          $this->setCorsHeaders($request, $response);
        }

        return $response;
    }

Thank Kevin.
But what if the file is pdf? I tried "application/octet-stream" but it's not working

Could you try "application/pdf" ?

KevinBeckers, Can show me the full demo of using this middleware. I am new in laravel.

omg, this package is so old.


:bug: fix AngularFormlyAdapter for drf_auto_endpoint

This should fix the expected output for formly, can you please check and validate @adrienbrunet ?

It's ok for me. Maybe the tests need to be updated for that change. What do you think?

Yes, I'm trying to make the tests pass on tox on master before rebasing

You're wonderful :sparkles:

Thanks :-)


Feature/browser size handling fix

A mixture of tidying fixes to make browser animations smoother. Among others:

compute as much as possible in floats, even pixel sizes;
don't change canvas width/height except on redraw, and always do it before redraw;
change CSS to 100% during animation to avoid excess browser work (Manoj's idea, thanks!);
check for resize more often;
only do expensive, visually subtle fixes (eg changes which only affect font rendering quality) when no resize stuff is going on (after ~500ms timeout, say).

What do you want me to review @ens-ds23 ?

Hi Steve, it's mainly a formality/FYI at the moment for things like scoping, etc, so just taking a look at the English in commits, PR, etc is ok. I thought I should keep to the agreed procedure of review even though there maybe little to tell from the code itself, partly for me to be in the habit of doing stuff by PR. I'm not sure who to choose as reviewers yet so it can seem a bit random. I'd discussed this with you a bit  so I put you in.


error when run test_rtc.py in mxnet\tests\python\gpu\

I have compiled and installed the mxnet 0.7.0 in my machine(win7, cuda7.5, vs2013, nvidia gt705m with compute capability 2.1, python2.7 and python3.5). I didn't use cudnn, because it need compute capability 3. The examples autoencoder can run well, but when i test the tests\python\gpu\test_rtc.py, i get the following error messages.
Traceback (most recent call last):
  File "test_rtc.py", line 14, in <module>
    y[threadIdx.x] = expf(s_rec[threadIdx.x]*5.0);""")
  File "E:\WinPython\WinPython-64bit-<IP_ADDRESS>\python-3.5.1.amd64\lib\site-package
s\mxnet-0.7.0-py3.5.egg\mxnet\rtc.py", line 40, in __init__
    input_names = ctypes.cast(c_array(ctypes.c_char_p, [i[0] for i in inputs]),
  File "E:\WinPython\WinPython-64bit-<IP_ADDRESS>\python-3.5.1.amd64\lib\site-package
s\mxnet-0.7.0-py3.5.egg\mxnet\base.py", line 110, in c_array
    return (ctype * len(values))(*values)
TypeError: bytes or integer address expected instead of str instance
[22:29:16] E:\mxnet\mxnet\dmlc-core\include\dmlc/logging.h:235: [22:29:16] E:\mx
net\mxnet\src\c_api\c_api.cc:1478: Need to compile with USE_CUDA=1 and USE_NVRTC
=1 for MXRtc.
Exception ignored in: <bound method Rtc.__del__ of <mxnet.rtc.Rtc object at 0x00
000000094A8D30>>
Traceback (most recent call last):
  File "E:\WinPython\WinPython-64bit-<IP_ADDRESS>\python-3.5.1.amd64\lib\site-package
s\mxnet-0.7.0-py3.5.egg\mxnet\rtc.py", line 59, in __del__
    check_call(_LIB.MXRtcFree(self.handle))
  File "E:\WinPython\WinPython-64bit-<IP_ADDRESS>\python-3.5.1.amd64\lib\site-package
s\mxnet-0.7.0-py3.5.egg\mxnet\base.py", line 77, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [22:29:16] E:\mxnet\mxnet\src\c_api\c_api.cc:1478: Need t
o compile with USE_CUDA=1 and USE_NVRTC=1 for MXRtc.

I have set USE_NVRTC=1 and USE_CUDA=1 in the config.mk, and tests\python\gpu\test_operator_gpu.py also works well.
I am afraid that there may be some problems for later uses.
And how should i solve this problem?

My guess is 705m is too old and doesn't support rtc

@piiswrong Thank you. It sounds reasonable,  and maybe i should try it in a machine with newer graphics card.

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


runtime decoding bug

while decoding , i got the error. I have finished building  TLG. There seems some error in decoder_main

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
./tools/decode.sh: line 61: 28410 Aborted                 (core dumped) decoder_main --rescoring_weight $rescoring_weight --ctc_weight $ctc_weight --reverse_weight $reverse_weight --chunk_size $chunk_size --wav_scp ${dir}/split${nj}/wav.${n}.scp --model_path $model_file --dict_path $dict_file $wfst_decode_opts --result ${dir}/split${nj}/${n}.text &> ${dir}/split${nj}/${n}.log

Thanks in advance.

by the way, I'm training on Gigaspeech recently. I have tried training on 30h of it for 200 epochs with 1e-5 lr ,but I got wer around 60%, is this normal?

我也遇到了这个问题，请问怎么解决的


Missing Descriptions

{{Fill PolicyType Description}}
{{Fill PolicyValue Description}}
etc.

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

ID: eec0b14a-d286-ba83-8bff-449a3543561f
Version Independent ID: c5739b5f-55fe-b75f-3139-3326c10ad01e
Content: Set-SPOTenantCdnPolicy (sharepoint-online)
Content Source: sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenantCdnPolicy.md
Service: sharepoint-powershell
GitHub Login: @trent-green
Microsoft Alias: trgreen

@officedocsbot assign @yogkumgit

Thanks for noticing and reporting

@get-itips  Thank you very much for the contribution and updating the documentation with PR. @hwkwicre Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

actually there's still a {{Fill Description}} in this article..


Mail::fake() returns null when using send()

Laravel Version: 9.15.0
PHP Version: 8.1.4
Database Driver & Version: I don't think it's important in this issue

Description:
When using Mail::fake() then sending an email using Mail::to($this->email)->send(new MemberInvitation($data)), it does not return \Illuminate\Mail\SentMessage rather it return null.
this should be considered as a Bug because Mail::assertSent(MemberInvitation::class) does not fail...
why should it fail? see steps to reproduce section
Steps To Reproduce:
here's a test case instead of github repo
/** @test */
public function replicate_bug_error()
{
    // Arrange
    Mail::fake();

    $mailable = new class() extends Mailable {};

    // Act (can be a model action or something)
    $sent = Mail::to('text@example.com')->send($mailable);
    $hasDoneSomethingOnDB = false;

    if ($sent) {
      // should modify something on the database only if mail was sent...
      $hasDoneSomethingOnDB = true;
    }

    // Assert
    Mail::assertSent($mailable::class);
    $this->assertTrue($hasDoneSomethingOnDB, "Mail was not sent");
}

the test case above has contradicting assertions... First Mail::assertSent($mailable::class); did not fail... but when I checked that $hasDoneSomethingOnDB  is true it failed...
imagine if $hasDoneSomethingOnDB is something you do on the database only if the mail was sent, then you would have no idea what is going on because your code is working properly on the browser but fails when testing on PhpUnit...
This would also raise issues when testing for Mail::assertNotSent() because now... this test is passing... but for the wrong reasons...
Say we have 2 mailers... 1 should only be sent on specific criteria,
/** @test */
public function replicate_bug_error()
{
    // Arrange
    Mail::fake();

    $mailable = new class() extends Mailable {};
    $mailable2 = new class() extends Mailable {};

    // Act (can be a model action or something)
    $sent = Mail::to('text@example.com')->send($mailable2);
    $hasDoneSomethingOnDB = false;

    if ($sent) {
      // should modify something on the database only if mail was sent...
      $hasDoneSomethingOnDB = true;
    }

    // Assert
    Mail::assertNotSent($mailable::class);
    // $hasDoneSomethingOnDB is false even if $mailable2 is sent (this line should fail!)
    $this->assertFalse($hasDoneSomethingOnDB, "Mail was not sent");
}

Temporary fix
You can check your environment on the if statement, but this is not something you really want as fix, honestly...
if ($sent || app()->environment() === 'testing') {
  $mailSent = true;
}

Heya, this is expected. If you fake an email send, there's nothing to send and thus there's no sent message. If you rely on the behavior of sending an email. You should choose something like the array transport for your tests.


Log rpc requests

Currently, the rpc requests are not being logged, so there is no record of them being served.

Closed via #177


Adding non-technical 'tips/tricks/etc' type pages?

Ultimately I'm not sure your intended end goal for this. I had started brainstorming doing my own similarly laid out repo but focusing mostly on more non-technical tips and info about the vehicle more as a quick FAQ of sorts to reference for new/uneducated owners with the big things that always come up for these vehicles. Stuff like the battery health test procedure, best driving practices for managing the battery (Energi of course), notes about some of the common 12v batter drain issues, etc..
I'm more than willing to help put that stuff here if that is an intended goal. At this point I'm still mostly in the brainstorming process on what I've been working on (Figuring out the layout/formatting is my biggest headache at the moment).

Yes! Guides and how-to docs are totally within scope of the "central place for notes about C-Maxes" that I intended this to be. You can see an example here for the BMS reset I recently needed to do. I also added a fuse guide.
If you're worried about formatting you're welcome to open a PR with mostly rough text. Markdown takes some getting used to, and time to write the raw documents is what I lack. Editing and formatting what you have written is something I can do pretty quickly.
Somewhere on my to-do list is properly creating a contributing guide, I'll try to prioritize that to help you and others add notes.

Oh sidenote, this includes copy/pasting your previously written forum threads into documents here. I haven't done this yet since you expressed interest in contributing directly. Once I'm done with the notes I have about modules and other things I was going to start pulling in more information from things like the TCU thread.

Sorry for the delayed reply. All sounds good though and I'll add in stuff where I can. My attention span on this stuff lately is a bit erratic though so I'll probably leave the bulk of the work up to you and I'll fill stuff where I can.


Israel-Hamas Conflict

It looks like there is a similar effort to log Israel and Hamas equipment losses here: https://armadarotta.blogspot.com/2023/10/israel-at-war-tracking-equipment-losses.html
However it looks like the functions don't apply here. I'm poking around to see if there is any way to adapt the script to a different page's headings (Google Blogspot), but not having much success yet. I wasn't sure if this was an easy incorporation or if the different platform meant it would be more difficult to adapt to tracking.

I think I figured it out - Oryx uses a template which divides with a , while the Israel page divides with a


Browsable documentation for the API

I'm looking for an easy way to navigate thought the API instead of reviewing code.
I'm sure this is already in mind, but taking into account all the code was commented following the JSdoc syntax, what about using an automatic documentation generation tool and make it available as Github page.
I really like jsduck from Sencha guys

Yes this was a plan all along but never got around to finishing them and hosting them. Docs are generate-able from npm run generate-docs using JSDoc

Tried this and got, "missing script: generate-docs"
Tried "npm install generate-docs" and it's not in the npm registry.

Good news!  This was added today:
http://google.github.io/google-api-nodejs-client/2.1.7/index.html


Connected watch text looks bad on white theme

It's bright green text on a white background.

Current prototype uses grey text for connection status, and uses the green text to indicate an OS update for the watch. Dark theme uses the current light green, and light theme uses the dark green color from the connected watch BG.

@matejdro The real issue is the cobble theming isn't implemented into the watches page. It's all hard-coded as theming wasn't done yet when the watches page was made irrc.


How to install dev-master?

{
    "minimum-stability": "dev",
    "require": {
        "php": ">=7.0",
        "amphp/amp": "dev-master"
    }
}

composer update

  Problem 1
    - Installation request for amphp/amp dev-master -> satisfiable by amphp/amp[dev-master].
    - amphp/amp dev-master requires async-interop/event-loop-implementation ^0.5 -> no matching package found.

{
    "minimum-stability": "dev",
    "require": {
        "php": ">=7.0",
        "amphp/amp": "dev-master",
        "amphp/loop": "dev-master"
    }
}

You'll need a loop implementation. Yes, it's confusing and makes starting harder. That's why I really want https://github.com/async-interop/event-loop/issues/151.


Add rc-slider plugin to forms

As stated here - there is a bug while running tests https://github.com/react-component/slider/issues/437
Thus, it would be great if contributors will help to fix this issue.


[fix] #1801: add schema for MerkleTree / VersionedValidBlock, fix HashOf / SignatureOf schemas

Description of the Change

fixed IntoSchema representation of some types
added test to verify all types are present in the schema
added IntoSchema for MerkleTree<VersionedTransaction> and VersionedValidBlock

Schemas of MerkleTree and VersionedValidBlock are not necessary for client/server communication because only their hashes are exhanged as in HashOf<T>. However, it may make sense for the client to validate the hashes and to do so it would need the format of the structure for which the hash is calculated.
I could have enforced that schema of T for every T in HashOf<T> be present in the schema. I didn't want to guarantee that schema is provided for every hashed structure. Would this be preferred?
Hash<32> will be added in a separate PR because the change is more complex
Issue

Closes #1801
Benefits

Possible Drawbacks

Usage Examples or Tests [optional]

Alternate Designs [optional]

I didn't want to guarantee that schema is provided for every hashed structure. Would this be preferred?

I think it is ok not to enforce it


Fix scripts/mk_toplevel_file.bash in macOS

Fixes #29
Could you check if this works?

Yep, this works for me on both Linux and MacOS.
Thanks!


Config changes to reflect the default branch from master to main. Please merge to complete the default branch renaming job.

Auto branch renaming content.

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

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

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


[New game]: "BlackJack" card game

🎮 Game Request
I'd create a BlackJack game in html and javascript, with the rules being same as that of the standard Blackjack game.

Point down the features

User starts the game and is given a random card.
The player then chooses their own card
All the cards yet choosen by player would be displayed along with the points.
After user's card selection, the dealer's cards would be displayed to the user, along with dealer's score.
Player wins if he scores more than the dealer.

Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @jaivsh!
We are already having a similar game request in #2163 👀
Make sure you come up with a cool unique idea 😀
Waiting for your new game idea 💗.

Hey @jaivsh !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @jaivsh ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

/assign

Hey @jaivsh!
We are already having a similar game request in #2163 👀
Make sure you come up with a cool unique idea 😀
Waiting for your new game idea 💗.

Hey, I've checked the #2163 and it is an entirely different game. The idea I've proposed is that of a card game, where as the game in 2163 is a racing game. So, can u please sort this out? @kunjgit


Tool not working with rtl8192eu driver

My issue is that the tool is not working, even though my adapter supports packet injection:
└─$ sudo aireplay-ng -9 wlan0

10:29:25  Trying broadcast probe requests...
10:29:25  Injection is working!

Here is the output of the error
sudo hcxdumptool -i wlan0 -o dumpfile.pcapng --active_beacon --enable_status=15

initialization of hcxdumptool 6.2.6 (depending on the capabilities of the device, this may take some time)...
interface is already in monitor mode, skipping ioctl(SIOCSIWMODE) and ioctl(SIOCSIFFLAGS) system calls
driver doesn't support ioctl() SIOCSIWFREQ
warning: failed to init socket

terminating...
1 driver error encountered
usually this error is related to pselect() after SIGTERM has been received
ERRORs < 10 are related to a slow initialization and can be ignored

hcxdumptool 6.2.6 is outdated.
Latest release is 6.3.0:
https://github.com/ZerBea/hcxdumptool/releases/tag/6.3.0
Please update either to v6.3.0 or to latest git head:
$ hcxdumptool -v
hcxdumptool 6.3.0-25-g27d99e6 (C) 2023 ZeroBeat

$ hcxdumptool -L

Requesting interface capabilities. This may take some time.
Please be patient...

available wlan devices:

phy idx hw-mac       virtual-mac  m ifname           driver (protocol)
---------------------------------------------------------------------------------------------
  2   5 08beac311ace 08beac311ace + wlp39s0f3u1u1u2  rtl8xxxu (NETLINK)

* active monitor mode available
+ monitor mode available
- no monitor mode available

bye-bye
[zerobeat@tux1 ~]$ hcxdumptool -I wlp39s0f3u1u1u2

Requesting interface capabilities. This may take some time.
Please be patient...

interface information:

phy idx hw-mac       virtual-mac  m ifname           driver (protocol)
---------------------------------------------------------------------------------------------
  2   5 08beac311ace 08beac311ace + wlp39s0f3u1u1u2  rtl8xxxu (NETLINK)

available frequencies: frequency [channel] tx-power of Regulatory Domain: DE

  2412 [  1] 20.0 dBm	  2417 [  2] 20.0 dBm	  2422 [  3] 20.0 dBm	  2427 [  4] 20.0 dBm
  2432 [  5] 20.0 dBm	  2437 [  6] 20.0 dBm	  2442 [  7] 20.0 dBm	  2447 [  8] 20.0 dBm
  2452 [  9] 20.0 dBm	  2457 [ 10] 20.0 dBm	  2462 [ 11] 20.0 dBm	  2467 [ 12] 20.0 dBm
  2472 [ 13] 20.0 dBm	  2484 [ 14] disabled

bye-bye

Explanation:
hcxdumptool <= 6.2.9 use WIRELESS EXTENSIONS.
Realtek drivers are know that the do not like WIRELESS EXTENSIONS. Most of them need NETLINK.
hcxdumptool >= 6.3.0 use NETLINK instead of WIRELESS EXTENSIONS.

Your driver (rtl8192eu) is outdated, too.
It is replaced by rtl8xxxu:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/realtek/rtl8xxxu?h=v6.3.3
See README.md for new REQUIREMENTS, e.g.:
* operating system: Linux (recommended: kernel >= 6.3, mandatory: kernel >= 5.10)
* gcc >= 12 recommended (deprecated versions are not supported: https://gcc.gnu.org/)

Closed, because:

Realtek incompatibility was fixed by v6.3.0.
a new Realtek driver (rtl8xxxu) is available
but you can still ask your questions here.

@ZerBea What do you recommend USB WiFi nowadays with strong range and fast response?
I see available online for example:
(TP-Link Archer T9UH) RTL8814AU
(TP-Link Archer T3U Plus) RTL8812BU
Any model you know is good?
Also it seems like now we can use Realtek chipsets without problem as you added support for NETLINK, right?
So any preference you prefer between Realtek and MediaTek?
Thanks!

Correct, if a driver support NL80211 and provide full(!) monitor mode and full packet injection, hcxdumptool will work.
Please notice if a driver support NL80211 it doesn't mean that it support monitor mode or packet injection, too:
wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices
Monitor mode is not (yet) supported.

https://lwn.net/Articles/915152/
I still prefer MediaTek chipsets, because the driver is part of the stock Linux kernel and it work out of the box.
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/mediatek?h=v6.3.4
That include active monitor mode.
There is one exception: mt76x1u: active monitor mode is not working as expected
https://bugzilla.kernel.org/show_bug.cgi?id=217465
but there is a workaround to deactivate this feature since this commit:
https://github.com/ZerBea/hcxdumptool/commit/800b67c600472642648f1e868fd115b16acb314f
Neither RTL8814AU nor RTL8812BU are part of the stock Linux kernel
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/realtek?h=v6.3.4
and you have to wrestle with third party drivers on every kernel update!
Regarding the excellent maintenance of the mt76 driver, the fact that it is part of the Linux kernel and provide active monitor mode, I recommend this one: AWUS036ACHM
https://www.alfa.com.tw/products/awus036achm?variant=39477247082568

Okay Thanks. What else do you recommend other than the Alfa you mentioned.
By the way, I have Netgear A6210 (MT7612U) and I find it slow in scanning and jumping between channels, others I have are faster, any idea why?
Also I was wondering if the implementation of different brands differs while they are using the same chip, for performance, range, etc.?

On version 6.3.0 default scan interval is one second. It increase by one second on every new AUTHENTICATION.
This behavior can be controlled by -t, -attemptclientmax and -attemptapmax.
On every case, it shouldbe a device with an external antenna connector
Since kernel 6.3 rtl8xxxu driver is working fine and you can use this cheap devices e.g.:
$ lsusb
Bus 001 Device 008: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]

working out of the box:
$ hcxdumptool -L

Requesting interface capabilities. This may take some time.
Please be patient...

available wlan devices:

phy idx hw-mac       virtual-mac  m ifname           driver (protocol)
---------------------------------------------------------------------------------------------
  1   4 503eaad5f1ac 503eaad5f1ac + wlp22s0f0u3      rtl8xxxu (NETLINK)

* active monitor mode available
+ monitor mode available
- no monitor mode available

bye-bye

Ralink (now MediaTek) devices are fine, too.


User datasets are being treated as unavailable when the client is configured to not show unreleased data.

This is because we are currently checking if the value of a dataset's is_public attribute is not "true". Instead, we should check if the value is "false". This is because user datasets use the value of "NA". Such datasets will only be included in the response if the user owns the dataset, so we can treat them as "released" in this context.
This is related to https://github.com/VEuPathDB/web-study-data-access/issues/21

looks good to me


Numerical Stability

have we tried to fix the numerical instability by just do an elementwise minimum like...
filter = np.minimum(filter, V)
?

I don't understand the question. V is a mix spectrogram, and filter is what ?

ah yes... I was using the notation from
https://github.com/sigsep/norbert/blob/c5bf847179f6cc2b602b9383c1d5d8246debfbbf/norbert/__init__.py#L273-L277

I'm sorry, I don't understand why I should threshold filter (which is a ratio of spectrograms) to V, which is a spectrogram ? They don't live in the same space

okay, yes. Now I got the variables right ;-)

Reopen until this is fixed

do we still need this for the new softmask default?

yes, for long files it's mandatory. I see overflows when we don't


BTP IdP Authentication not detecting two-step sequence

Describe the bug
I have enabled the default BTP IdP authentication in WDI5, but when the tests runs the authentication fail because it can't find the #j_password element.
Expected behavior
The authentication should be in a two-step sequence, when in the first step the test can only find the #j_username field, it should fill it and proceed to the second step, with the #j_password field.
Logs/Console Output
[2024-10-25T19:56:45.748Z] info  npmExecuteScripts - run-script wdi5
[2024-10-25T19:56:45.748Z] info  npmExecuteScripts - running command: npm run wdi5 -- --headless --auth
[2024-10-25T19:56:46.008Z] info  npmExecuteScripts -
[2024-10-25T19:56:46.008Z] info  npmExecuteScripts - ><EMAIL_ADDRESS>wdi5
[2024-10-25T19:56:46.008Z] info  npmExecuteScripts - > rimraf allure-results && wdio run ./webapp/test/e2e/wdio.conf.ts --headless --auth
[2024-10-25T19:56:46.009Z] info  npmExecuteScripts -
[2024-10-25T19:56:52.583Z] info  npmExecuteScripts -
[2024-10-25T19:56:52.583Z] info  npmExecuteScripts - Execution of 1 workers started at 2024-10-25T19:56:51.977Z
[2024-10-25T19:56:52.583Z] info  npmExecuteScripts -
[2024-10-25T19:56:59.161Z] info  npmExecuteScripts - [0-0] RUNNING in chrome - file:///webapp/test/e2e/sample.test.ts
[2024-10-25T19:57:14.048Z] error npmExecuteScripts - [0-0] 2024-10-25T19:57:12.618Z ERROR @wdio/utils:shim: Error: Can't call setValue on element with selector "#j_password" because element wasn't found
[2024-10-25T19:57:14.048Z] info  npmExecuteScripts - [0-0]     at implicitWait (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/webdriverio/build/utils/implicitWait.js:29:19)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async Element.elementErrorHandlerCallbackFn (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/webdriverio/build/middlewares.js:15:29)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async Element.wrapCommandFn (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/@wdio/utils/build/shim.js:90:29)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async BTPAuthenticator.login (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/authentication/BTPAuthenticator.ts:48:17)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async authenticate (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/wdi5-bridge.ts:180:13)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async Service.before (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/service.ts:47:17)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async Promise.all (index 0)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async executeHooksWithArgs (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/@wdio/utils/build/shim.js:68:20)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0]     at async Runner.run (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/@wdio/runner/build/index.js:99:9)
[2024-10-25T19:57:14.049Z] info  npmExecuteScripts - [0-0] [wdi5] hello world!
[2024-10-25T19:57:14.309Z] error npmExecuteScripts - [0-0] 2024-10-25T19:57:14.180Z ERROR webdriver: Request failed with status 500 due to javascript error: javascript error: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0] JavaScript stack:
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0] TypeError: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at eval (eval at <anonymous> (:437:26), <anonymous>:4:65)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at eval (eval at <anonymous> (:437:26), <anonymous>:33:8)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at eval (eval at <anonymous> (:437:26), <anonymous>:33:33)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at <anonymous>:437:47
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at new Promise (<anonymous>)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at executeAsyncScript (<anonymous>:431:17)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at apply.selector.controlType (<anonymous>:461:29)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at callFunction (<anonymous>:366:22)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at <anonymous>:380:23
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]     at <anonymous>:381:3
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0]   (Session info: chrome=129.0.6668.100)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - [0-0] javascript error in "samples.should retrieve a UI5 control"
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - javascript error: javascript error: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - JavaScript stack:
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts - TypeError: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts -     at eval (eval at <anonymous> (:437:26), <anonymous>:4:65)
[2024-10-25T19:57:14.309Z] info  npmExecuteScripts -     at eval (eval at <anonymous> (:437:26), <anonymous>:33:8)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at eval (eval at <anonymous> (:437:26), <anonymous>:33:33)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at <anonymous>:437:47
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at new Promise (<anonymous>)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at executeAsyncScript (<anonymous>:431:17)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at apply.selector.controlType (<anonymous>:461:29)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at callFunction (<anonymous>:366:22)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at <anonymous>:380:23
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at <anonymous>:381:3
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -   (Session info: chrome=129.0.6668.100)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at async clientSide_getControl (/home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/client-side-js/getControl.cjs:3:12)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at async WDI5Control._getControl (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/wdi5-control.ts:668:26)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at async WDI5Control.init (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/wdi5-control.ts:78:31)
[2024-10-25T19:57:14.310Z] info  npmExecuteScripts -     at async Browser.<anonymous> (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/wdi5-bridge.ts:263:33)
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [0-0] FAILED in chrome - file:///webapp/test/e2e/sample.test.ts
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts -
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts -  "spec" Reporter:
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - ------------------------------------------------------------------
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] Running: chrome (v129.0.6668.100) on linux
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] Session ID: b64f4d6cffd3a9cd6531c31d0f9243be
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] » /webapp/test/e2e/sample.test.ts
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] samples
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]    ✓ should log
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]    ✖ should retrieve a UI5 control
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] 1 passing (1.7s)
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] 1 failing
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]
[2024-10-25T19:57:14.573Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] 1) samples should retrieve a UI5 control
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] javascript error: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - JavaScript stack:
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - TypeError: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at eval (eval at <anonymous> (:437:26), <anonymous>:4:65)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at eval (eval at <anonymous> (:437:26), <anonymous>:33:8)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at eval (eval at <anonymous> (:437:26), <anonymous>:33:33)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at <anonymous>:437:47
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at new Promise (<anonymous>)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at executeAsyncScript (<anonymous>:431:17)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at apply.selector.controlType (<anonymous>:461:29)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at callFunction (<anonymous>:366:22)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at <anonymous>:380:23
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -     at <anonymous>:381:3
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts -   (Session info: chrome=129.0.6668.100)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] javascript error: javascript error: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] JavaScript stack:
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0] TypeError: Cannot read properties of undefined (reading 'waitForUI5Options')
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at eval (eval at <anonymous> (:437:26), <anonymous>:4:65)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at eval (eval at <anonymous> (:437:26), <anonymous>:33:8)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at eval (eval at <anonymous> (:437:26), <anonymous>:33:33)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at <anonymous>:437:47
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at new Promise (<anonymous>)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at executeAsyncScript (<anonymous>:431:17)
[2024-10-25T19:57:14.574Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at apply.selector.controlType (<anonymous>:461:29)
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at callFunction (<anonymous>:366:22)
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at <anonymous>:380:23
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at <anonymous>:381:3
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]   (Session info: chrome=129.0.6668.100)
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at async clientSide_getControl (/home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/client-side-js/getControl.cjs:3:12)
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at async WDI5Control._getControl (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/wdi5-control.ts:668:26)
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at async WDI5Control.init (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/wdi5-control.ts:78:31)
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - [chrome 129.0.6668.100 linux #0-0]     at async Browser.<anonymous> (file:///home/jenkins/agent/workspace/_hcc-monitor-ui_ci_release-stage/node_modules/wdio-ui5-service/src/lib/wdi5-bridge.ts:263:33)
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts -
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts -
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts - Spec Files:	 0 passed, 1 failed, 1 total (100% completed) in 00:00:22
[2024-10-25T19:57:14.575Z] info  npmExecuteScripts -

Screenshots

Runtime Env (please complete the following information):

wdi5/wdio-ui5-service-version: 2.0.10
UI5 version: v1.129.0
wdio-version: v8.40.5
node-version: v18.20.4
OS: [e.g. Linux openSuSE]
chrome 129.0.6668.100

Additional context
I am running these tests on a jenkins pipeline, extending the Acceptance Stage from project piper:
Acceptance.groovy
void call(Map params) {

  echo "Before Acceptance Stage"

  withCredentials([
    usernamePassword(
      credentialsId: 'btp-cf-credentials',
      usernameVariable: 'wdi5_username',
      passwordVariable: 'wdi5_password')])
  {
    params.originalStage()
  }
}
return this

Partial config.yml
# ...
stages:
  Central Build:
    hadolintExecute: false
  Acceptance:
    cloudFoundryDeploy: true
    npmExecuteScripts: true
    healthExecuteCheck: false
  Post:
    sapReportPipelineStatus: true
steps:

  cloudFoundryDeploy:
    apiEndpoint: "****"
    org: "******"
    space: "****"
    cfCredentialsId: "btp-cf-credentials"
    mtaPath: "archive.mtar"
    mtaDeployParameters: "-f --version-rule ALL"

  npmExecuteScripts:
    dockerImage:  ppiper/node-browsers:18-bookworm
    runScripts:
      - wdi5
    scriptOptions:
      - --headless
      - --auth

  mtaBuild:
    mtaBuildTool: cloudMbt
    mtarGroup: 'com.sap.hyperspace'
    dockerImage: devxci/mbtci-java17-node20

  executeBuild:
    buildType: stage

# ...

before looking into this more, let me just kudo you for running wdi5 from Groovy. That's a first :)


WIP: External test clients

External clients for testing EnMasse API and messaging service and recording anomalies.
Currently only api client is implemented, I will work on adding the messaging client as well.
I think this should ideally be in a separate repo, but I'm just raising this PR to make everyone aware of its existence, and would like comments on the test client itself.

Moved to https://github.com/EnMasseProject/external-test-clients


update ajson with writer

testing update with code from https://github.com/abapGit/ajson_mirror
#3441

Pending https://github.com/sbcgua/ajson/pull/33

Pending https://github.com/sbcgua/ajson/pull/34

some bugs with exceptions,

two warnings, but I think this is expected,

The warning is because of the different super class.
In abapGit it's this:

in the mirror:
class zcx_abapgit_ajson_error definition
  public
  inheriting from CX_STATIC_CHECK
  final
  create public .

the two warnings can now be found by abaplint, which will help in the future
there are also some false positives, which I will look into,

pending https://github.com/abapGit/abapGit/pull/4312, after its merged the exception warnings should appear in the CI

here we go,

nice linting. I don't think there's a generic replacement to fix the issue though (ie. change the super class). might be better to keep the mirror as is and adjust the ajson usage in abapGit to catch zcx_abapgit_ajson_error (instead of relying on inheritance).

yes, the plan is to change abapgit to catch the ajson exception and change it into an abapgit exception

ready for review
note that the AJSON code is mirrored from https://github.com/abapGit/ajson_mirror, ie. errors for ajson should be reported to https://github.com/sbcgua/ajson

looks good. it would be a bit nicer if we send the mirror through a pretty print with AG rules.
/json/ might need a protection against PRs from abapGit repo since it's now mirrored.

exception classes are ignored just like the other abapGit code
the other classes are upper cased to follow abapgit conventions where possible

oh, i forgot that i hacked my system to edit and pp exception classes, too


Fix decimal rounding for BTC unit (display issue)

Coverage increased (+0.003%) to 94.689% when pulling b3dc380159a31d56130d57bfd7871b348443ec2a on isocolsky:fix/btc-format into c45e84c54fa7e09bf4147a3cc70743be5a52f9d6 on bitpay:master.

ack


FREQ: a #skip_subcommand_parsing method to allow options but arbitrary parameters

The #skip_option_parsing is good as far as it goes, but (IMHO) it addresses only half of the issue.
As far as I can tell, there is no way to define a command that will accept ab arbitrary number of arbitrary parameters without trying to treat them as subcommands.  For examine, I don't see any way to do this:
configure set -v user=foo server=http://example.com/

because it gritches about user=foo not being a valid subcommand.
Is there a trick to this, or is it actually not currently supported?
Thanks!

My use-case is a command configure with known subcommands (user, system, etc.).  It's the subcommands that need to take arbitrary arguments -- otherwise I end up with something ugly like
configure user --option=foo --value=bar
configure user --option=format --value-yaml

as opposed to something like
configure user foo=bar format=yaml

This is oversimplified and somewhat contrived, but I hope it gets my idea across.

@RoUS Would the following work?
# frozen_string_literal: true

require 'cri'

config = {
  'animal' => 'cat',
  'sound' => 'meow',
}

config_cmd = Cri::Command.define do
  name        'conf'
  usage       'conf [subcommand] …'
  summary     'manage configuration'
  description '…'
end

set_cmd = Cri::Command.define do
  name        'set'
  usage       'set key=value ...'
  summary     'set config values'
  description '…'

  run do |opts, args|
    args.each do |string|
      key, value = string.split('=')
      config[key] = value
    end
  end
end

unset_cmd = Cri::Command.define do
  name        'unset'
  usage       'unset key ...'
  summary     'unset config values'
  description '…'

  run do |opts, args|
    args.each do |key|
      config.delete(key)
    end
  end
end

config_cmd.add_command(set_cmd)
config_cmd.add_command(unset_cmd)

config_cmd.run(ARGV)

pp config

% ruby conf.rb unset animal
{"sound"=>"meow"}
% ruby conf.rb unset asdf
{"animal"=>"cat", "sound"=>"meow"}
% ruby conf.rb set fn=Denis ln=Defreyne
{"animal"=>"cat", "sound"=>"meow", "fn"=>"Denis", "ln"=>"Defreyne"

Yes, I think that would do it; I totally missed the concept of using #run in the command definition.  Thanks!

Cool! I’ll close this issue now.


DataTable - Right align columns with numeric value

Hi All,
From this Doc we have to use the 'render' parameter but I did not find how to to it with the generator?
Anyone has an idea?
Thanks in advance;

in app/DataTables/Your_modelDataTable.php , in the function getColums, change the field defintion
change 'your_field' to
'your_field'=>['render'=>'function(){return "
"+data+"<\div>"}'],

in app/DataTables/Your_modelDataTable.php , in the function getColums, change the field defintion
change 'your_field' to
'your_field'=>['render'=>'function(){return "
"+data+"<\div>"}'],


Add Crossbar

Crossbar and more generally Crossbar.io might be worth a mention in that awesome list.

Thank you


Build failure due to azure driver issues

$ make
+ fmt
+ /Users/bobrik/projects/distribution/src/github.com/docker/distribution/bin/registry
# github.com/docker/distribution/registry/storage/driver/azure
registry/storage/driver/azure/azure.go:473: not enough arguments in call to bw.client.AppendBlock
make: *** [/Users/bobrik/projects/distribution/src/github.com/docker/distribution/bin/registry] Error 2

This is on 1dbe50bac44f56f579642d49e33be02f017a541a

You should godep restore

GOPATH=$TMPDIR/go godep restore
can't load package: package google.golang.org/api: no buildable Go source files in /tmp/mmendez/go/src/google.golang.org/api
godep: restore: exit status 1
can't load package: package github.com/golang/protobuf: no buildable Go source files in /tmp/mmendez/go/src/github.com/golang/protobuf
godep: restore: exit status 1

hmm nm seems I had an older version of godep in /usr/bin that was being invoked instead of $HOME/bin


Add: United Nations Security Council Consolidated List

Support checking the UN Consolidated Sanctions List.
The Consolidated List includes all individuals and entities subject to measures imposed by the Security Council.
United Nations Security Council Consolidated List

This would be very useful //Henrik

This would be very useful //Henrik

I need this too

@finservhp @think-ai Same as https://github.com/moov-io/watchman/issues/183 - I'd happily review and help out with a pull request adding this.

I need this too

Me too please :)

Hello, any possibility of adding this soon?


When it compute differentials with samediff, it get a different result each time

Please indicate relevant versions, including, if relevant:

Deeplearning4j version :1.0.0-beta5
Platform information ：win10

public class LN4 {
public static void main(String[] args) {

	SameDiff sd = SameDiff.create();

	SDVariable input = sd.var("input", DataType.FLOAT, 1, 2);

	SDVariable label = sd.var("label", DataType.FLOAT, 1, 2);

	INDArray inputArr = Nd4j.linspace(2, 3, 2).reshape(new int[] { 1,2 });
	INDArray labelArr = Nd4j.linspace(1, 4, 2).reshape(new int[] { 1,2 });

	SDVariable a= input.get(SDIndex.all(),SDIndex.point(0));
	SDVariable b= input.get(SDIndex.all(),SDIndex.point(1));

	SDVariable c=sd.stack("stack", 1, a,b);

	SDVariable m= sd.math().pow(c.sub(label), 2) ;
	sd.setLossVariables(m);

	System.out.println(sd.summary());

	for(int i=0;i<5;i++){
		sd.associateArrayWithVariable(inputArr, input);
		sd.associateArrayWithVariable(labelArr, label);
		sd.execBackwards(null,Operation.INFERENCE);
		System.out.println(input.getGradient().getArr());
		System.out.println(c.getGradient().getArr());
		System.out.println("==============");
		sd.clearPlaceholders(true);
        sd.clearOpInputs();
	}
}

}
Result：
[[         0,         0]]
[[    2.0000,   -2.0000]]
[[    2.0000,    2.0000]]
[[    2.0000,   -2.0000]]
[[    2.0000,    2.0000]]
[[    2.0000,   -2.0000]]
[[         0,         0]]
[[    2.0000,   -2.0000]]
[[   -2.0000,   -2.0000]]
[[    2.0000,   -2.0000]]

@AlexDBlack

@AlexDBlack The differential value of c and input should be the same！

@AlexDBlack Do you have time to look at this issue？

Thanks for reporting.
This is a bug in strided slice backprop - reproducible with the following test case:
https://gist.github.com/AlexDBlack/a2e9f87e46dc20dbc5eadcab39a8a993
I have checked the array shapes and iargs, that looks reasonable to me, so it is likely a bug in the implementation.

@AlexDBlack I want to implement BPTT with samediff, which will slice the input in time steps and then stack it into a new tensor to calculate the gradient. Can I calculate the gradient of loss to the input?

@longzhendong on the current master (and snapshots, as soon as they are back up) you could use SameDiff.calculateGradients method and specify that you want the input gradient returned.
Another way to implement TBPTT would be to have placeholders for both the initial RNN state and the normal input... split it externally, using INDArray.get instead of internally using SDVariable.get.
Your outputs are the activations and the RNN last time step (which you can store to feed in as placeholders for the next step)

Confirmed fixed and merged to eclipse master also
Thanks for reporting @longzhendong, and for the fix @shugeo


Logging API changes break API and ABI of libosdp

Commit c9f3f98 breaks the API and ABI of libosdp because the signature of osdp_logger_init changes. I would expect that to be a bump in the major version of the library.
personal preference: don't try to format the entire log message before calling the log function. In C++ people may be using a logging framework like log4cxx or spdlog which already have log levels, line numbers, date/time formatting. So from libosdp we get a message like:
osdp: [2023-10-09T13:51:23] [INFO ] src/osdp_pd.c:1126: Setup complete - libosdp-2.3.0 osdp_pd_status (dee622a)

which could then be formatted by a logging framework to something like:
[2023-10-09T13:51:23] [INFO] libosdp - osdp: [2023-10-09T13:51:23] [INFO ] src/osdp_pd.c:1126: Setup complete - libosdp-2.3.0 osdp_pd_status (dee622a)

I have a simple logger that can be used as a starting point/inspiration: https://github.com/rm5248/simplelogger
Reported-by: @rm5248

Commit c9f3f98 breaks the API and ABI of libosdp because the signature of osdp_logger_init changes. I would expect that to be a bump in the major version of the library.

This is now fixed. I will add a doc to formalise stable API change process.

don't try to format the entire log message before calling the log function. In C++ people may be using a logging framework like log4cxx or spdlog which already have log levels, line numbers, date/time formatting.

The expectation is to let libosdp do all log formatting and level management; the app pass a raw printf() like method that writes directly to whatever medium you'd like to output the logs to (files, uart, etc.,). The rational for taking this approach is simple; there is no one accepted logging framework for C/C++ (I've seen way too many ad-hoc implementations). So any form if generalization we introduce for one library will fall short for another (some embedded systems have none).
We could probably have a lean log reporting method that just gets called with the log level and log message without any processing and let the app choose which logging framework to initialise.

We could probably have a lean log reporting method that just gets called with the log level and log message without any processing and let the app choose which logging framework to initialise.

That makes the most sense to me and gives the most flexibility.
FWIW what I've done in the past is to give the user the ability to set the log function that will be called, but also provide a sample implementation of that log function that will just print to stderr.  This lets you quickly output some data to stderr, but the ability to use a comprehensive logging framework(if you are using one).

FWIW what I've done in the past is to give the user the ability to set the log function that will be called, but also provide a sample implementation of that log function that will just print to stderr. This lets you quickly output some data to stderr, but the ability to use a comprehensive logging framework(if you are using one).

Thank you for the pointers. We have many examples of how to setup the logger within this repo. Do let me know if they are not easy to find/follow. I've also added a new API to set a log callback function as discussed here; let me know if you face any issues integrating it.

Note: commit c932fbebdc481ac7cb1a98f5c4410df83a75ec1a breaks backwards ABI compatibility, because you have removed the function and turned it into a macro.  The macro keeps the API compatible, but because the symbol no longer exists anything compiled against the old version will break at runtime(because it can't find the symbol).
ABI rules can be found here(this is for C++, but the same rules still apply for C): https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B

You cannot...

For existing functions of any type:
** Unexport it.
** Remove it.

Ahh, my bad. If you want ABI compatibility, does it make sense to stick to one of the old releases? In my development workflow, master has unstable changes (much like this logging infra change).
I'm preparing for a major release from master (may change a lot of stuff in osdp.h for rust support) and it's too restrictive if users are consuming the tip of master in production :)

I am not using master, I just noticed the change.
If you're making a major release(e.g. a 3.x version) then breaking the ABI/API is fine; I was expecting the next version to be 2.4.0, something where I would not expect the API/ABI to break.  This is what semver specifies.


NixOS EC2 AMI: Support IMDSv2

Motivation for this change
AWS's metadata service has two versions. Version 1 allowed plain HTTP requests to get metadata. However, this was frequently abused when a user could trick an AWS-hosted server in to proxying requests to the metadata service. Since the metadata service is frequently used to generate AWS access keys, this is pretty gnarly. Version two is identical except it requires the caller to request a token and provide it on each request.
Today, starting a NixOS AMI in EC2 where the metadata service is configured to only allow v2 requests fails: the user's SSH key is to placed, and configuration provided by the user-data is not applied. The server is useless. This patch addresses that.
OpenStack "borrowed" this metadata fetcher when it happened to be the same API, but this new version is different enough, imo, to warrant undoing this borrow.
~This PR is not yet tested in an actual deployment, and I'll mark it as ready once I have. It should be backported to stable and new AMIs should be built.~
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

Done, @andir. I've tested this with real AWS machines and it works correctly, fixing the issue preventing our AMI from working with IMDSv2.

Oh, I see my review was requested. Is the goal to have this in the stable distro?
Anyways, I think graham is cool etc. and he do cool thing. that's my disposition on this pull request. Strongly in favor to put smiley faces, hearts, and sparkles.

Yeah, I want to backport it so NixOS on AWS users can improve the security of their instances.

Got a +1 from @andir on IRC.

FYI @endgame and @jonringer , this implements https://github.com/NixOS/nixpkgs/pull/96593 a bit differently I think.

I provided Amine a copy of the AMI to test with NixOps, so let's merge once that is ready.

I need the public IPv4 address from IMDS

I wonder why it needs to be part of the very early boot process, and not fetched as part of a service pre-start or something? We could add it, but I fear growing what is already a fairly gnarly script in a gnarly and unfortunate location.

Also, the metadata dir should probably cleared on each boot, because otherwise it can become outdated w.r.t actions people can take in the management console.

This sounds like a good idea, but I'm a bit unsure about backporting to stable. It would be a pretty big change in behavior, potentially breaking workflows. Maybe an additional PR which only hits master, plus release notes. What do you think?

I constructed the PUT request using busybox nc, so I don't pull additional packages into initramfs

I think the HTTP protocol is complicated enough to deserve using curl, and that implementing it with nc to save a few bytes is just going to cause pain for users / admins later on, and that it is well worth the extra ~20M it adds to the initrd. Even if it isn't so preferable to be doing this in the first place.

the fetcher is parameterised so the EC2/openstack common parts have been DRYed up

Since they are different APIs with different implementations, I don't like the idea of trying to make it "dry" -- they're doing different things with APIs that look similar but evolve differently. I thought it made sense to split out the two, creating a less dynamic script, as opposed to a highly parameterized script in stage-1. I'd rather a bit of duplication here, as opposed to risking subtle bugs from dryness.

Sidenote: I must confess that I'm a little frustrated by what feels like a process failure here: I'd been trying to get help testing my PR for months, and there's so much to do on NixOS that duplicating work isn't great. But at the end of the day, progress is excellent and I'm glad to see this about to land.

Yes. I agree with you.

Thanks for the quick response @grahamc .

IPv4 from IMDS - does it need to happen here?

I have a service that needs to know its public IP address, and was setting it up as a NixOS module. So I want that file present on disk so that I can refer to it before the image boot script does nixos-rebuild switch as part of normal boot. If there is a better place to achieve what I want?

Clear metadata on boot - is this actually a scary change?

Agree with your suggestion - this should happen later and go into release notes, so we don't blow up someone's cloud deployment by accident. I don't think that's that likely, but likelihood × severity = risk, and it's high enough that it's worth being cautious. I can do a separate PR for this.

DRYing openstack/ec2 metadata fetchers

Openstack explicitly advertises their IMDS as EC2-compatible. Though I'm not sure whether they have a token service on their IMDS, and maybe we say that means they've failed in that goal? In any case, maybe add a comment to keep the two fetchers in "reasonable" sync?

re the IP address: would it be possible to define your service like this? :
systemd.services.foobar.script = ''
  ip=$(get-from-imds public_ipv4)
  exec my-program "$ip"
'';

If you can send that PR shortly after this one, we can merge it soon while we're all on top of it. BTW I've started #nixos-cloud on Freenode if you're interested in that sort of thing.
w.r.t. Openstack, I've found it really hit or miss if a deployment has an up to date set of components, or has even configured and deployed all the components. The variability there leaves me grayer than I was before ... :grimacing:

Pending the discussion here, a backport PR: https://github.com/NixOS/nixpkgs/pull/104302

re the IP address: would it be possible to define your service [to fetch the ip in a script]?

Probably; I hadn't thought about doing it that way. It's a low-pressure side project so I'll give it a go at some point. Definitely should not hold up this PR.
I'll look at clearing out the metadata directory on boot this weekend, hopefully.
That's all my concerns addressed, I think. Should we ship this, then?

Thanks, @endgame! Let's go!


PHP 8.1 deprecations

Using this in PHP 8.1 logs deprecation notices
PHP Deprecated:  Return type of WsdlToPhp\PackageBase\AbstractStructArrayBase::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
PHP Deprecated:  Return type of WsdlToPhp\PackageBase\AbstractStructArrayBase::offsetSet($offset, $value): WsdlToPhp\PackageBase\AbstractStructArrayBase should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
PHP Deprecated:  Return type of WsdlToPhp\PackageBase\AbstractStructArrayBase::offsetUnset($offset): WsdlToPhp\PackageBase\AbstractStructArrayBase should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
PHP Deprecated:  Return type of WsdlToPhp\PackageBase\AbstractStructArrayBase::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
PHP Deprecated:  Return type of WsdlToPhp\PackageBase\AbstractStructArrayBase::next(): WsdlToPhp\PackageBase\AbstractStructArrayBase should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
PHP Deprecated:  Return type of WsdlToPhp\PackageBase\AbstractStructArrayBase::rewind(): WsdlToPhp\PackageBase\AbstractStructArrayBase should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Seeing as how this package supports PHP 7.4, we should be able to add void as the return type for functions like rewind() and next().  For those that return mixed, adding the suggested annotation of #[\ReturnTypeWillChange] would be great.  Once the minimum version for the package is PHP 8.0 (hoping soon, since 7.4 is end of life), we can use the mixed return type and remove the annotation.
I have tried getting around this by adding the return types to the classes extending these abstracts, however PHP still complained.

Indeed, it has been similarly done in WsdlToPhp\PackageGenerator\AbstractObjectContainer.
Can you make a PR? Otherwise let me know and I'll fix it.


Add blocking profiler and batch reading from the stream

This pull request adds a blocking profiler and batch reading functionality to the stream. The blocking profiler allows for better performance analysis by providing CPU profiling information. The batch reading feature improves efficiency by reading multiple messages from the stream at once. These changes enhance the overall performance and scalability of the codebase.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.35%. Comparing base (6c4c381) to head (6670adc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   88.26%   88.35%   +0.08%
==========================================
  Files           6        6
  Lines         392      395       +3
==========================================
+ Hits          346      349       +3
  Misses         35       35
  Partials       11       11

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add root cause to our logging

@calvinjia This change gives us more information to work with in case of a deeply nested exception. PTAL

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4353/
Test PASSed.

Merged build finished. Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4354/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4355/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4356/
Test FAILed.

jenkins, test this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4357/
Test PASSed.

alluxio-bot, merge this please.

alluxio-bot, cherry-pick this to branch-2.0 please.

@calvinjia @yuzhu this pr introduced a side-effect that the stack trace is lost from the log. Note that the original logging will output the entire exception including stack trace of t:
LOG.error("Uncaught exception while running {}, stopping it and exiting.", process, t)

After this PR, one will see sth like, to me it actually becomes harder to debug.
‘2019-07-03 14:58:01,065 ERROR ProcessUtils - Uncaught exception while stopping Alluxio worker, simply exiting. Exception java.lang.NullPointerException, Root Cause null‘

I would put back t in the end as the last arg


376/forecast int tests

Issue Number: (Link to Github Issue or Azure Dev Ops Task/Story)
Summary
One sentence summary of PR
Changes

List of comprehensive changes

Checklist

[ ] Local Tests Passing?
[ ] CICD and Pipeline Tests Passing?
[ ] Added any new Tests?
[ ] Documentation Updates Made?
[ ] Are there any API Changes? If yes, please describe below.
[ ] This is not a breaking change. If it is, please describe it below.

Are there API Changes?
If yes, what are the expected API Changes? Please link to an API-Comparison workflow with the API Diff.
Is this a breaking change?
If yes, what workflow does this break?
Anything else?
Other comments, collaborators, etc.
This PR Closes Issue #

Codecov Report

Merging #91 (3f9f413) into dev (ed02fa1) will decrease coverage by 0.03%.
The diff coverage is 76.00%.

@@            Coverage Diff             @@
##              dev      #91      +/-   ##
==========================================
- Coverage   84.42%   84.38%   -0.04%
==========================================
  Files          48       48
  Lines        1406     1422      +16
  Branches      145      149       +4
==========================================
+ Hits         1187     1200      +13
- Misses        163      165       +2
- Partials       56       57       +1

Impacted Files
Coverage Δ

...e.LocationSources.Azure/src/AzureLocationSource.cs
68.75% <14.28%> (-2.92%)
:arrow_down:

...gregators/src/CarbonAware/CarbonAwareAggregator.cs
91.54% <100.00%> (+0.37%)
:arrow_up:

...re.WebApi/src/Controllers/CarbonAwareController.cs
97.14% <100.00%> (+0.26%)
:arrow_up:

.../CarbonAware.WebApi/src/Models/EmissionsDataDTO.cs
100.00% <100.00%> (ø)


Fix Event hash check

Problem
The event hash check  in rosetta fails due to incomplete and json-formatted transaction results. We have disabled this check but want this to be made possible again for BFT reasons.
Solution
Rosetta's hash computation should be corrected by:

converting the payload format to the correct CCF format
requesting the full event payload, including system events in the given block

post mortem: https://www.notion.so/dapperlabs/Coinbase-Withdrawal-and-Deposits-have-stopped-c22dee31d9c24964a7b7d95c832b4ea3?pvs=4

https://github.com/onflow/rosetta/pull/49/files

Changes to the Access API are live now, this can be completed


Log warning after update to 2023.2.2

Hello,
Getting those warning after I updated to core 2023.2.2:
Entity sensor.daily_cost_with_subsidy_XXX (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.yearly_cost_XXX (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.yearly_consumption_XXX (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.monthly_consumption_compared_to_last_year_XXX (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.monthly_cost_with_subsidy_XXX (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Cheers

Same here :)

I have the same issue on version 2024.8.3.
Logger: homeassistant.components.sensor
Source: components/sensor/init.py:569
integration: Sensor (documentation, issues)
First occurred: 07:15:59 (6 occurrences)
Last logged: 07:15:59
Entity sensor.daily_cost_with_subsidy_home (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues
Entity sensor.yearly_cost_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues
Entity sensor.yearly_consumption_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues
Entity sensor.monthly_consumption_compared_to_last_year_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues
Entity sensor.monthly_cost_with_subsidy_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues


Have desktop app colours dependent on Mattermost theme colour

Have desktop app colours dependent on Mattermost theme colour for a more complete user experience

Ticket: https://mattermost.atlassian.net/browse/MM-14069


Request for Details on SFT LLMs for Tool Execution in InteRecAgent

First and foremost, thank you for the excellent work on the InteRecAgent. I truly appreciate the effort and expertise that went into it.
I have thoroughly read the "InteRecAgent" paper and am excited to use your pipeline for my project. However, the paper does not provide detailed information on how you fine-tuned RecLlama, except for the overall architecture diagram.

Could you please provide me with the following:

Instruction Following Template for SFT:

Could you share the format of the instruction-following template for SFT, including a few sample workflows? This would greatly help me understand the process.

Details on Data Extraction for SFT:

How did you extract information to create synthetic data for SFT when the simulator chat interacted with the agent? Specific details on this process would be highly beneficial.

Multilingual Reasoning Capabilities:

I plan to use your pipeline for the Vietnamese language. In your experience, will the current multilingual reasoning capabilities, combined with your pipeline, work effectively for this language?

Thank you for your time and consideration. I look forward to your response.@Leavingseason

Hey, thanks for your interest and questions. Here are the answers to your questions.

I understand what you want is the system prompt in our SFT data. We kept the prompt consistent with what is used for GPT-4. The detailed prompt can be found here.
We collect all the inputs and outputs of the API calling in the simulation stage, forming one part of the SFT data.
Although I have not tried other languages, I think applying our pipeline to your language is completely okay. What you need is a multilingual LLM (such as GPT-4) and then tune the prompt into your language. If you need a local LLM, you can follow our method to collect SFT data in the simulation stage or synthesize conversational data with GPT-4.

I hope those explanations can address your issues.

Thank you very much for the prompt reply!


request: allow braces in header

Use case: For unknown reasons, an android app using okhttp sends Error: {} in the HTTP header. I can't see why curly braces would not be allowed. AFAICT braces should be allowed in header field values, see e.g. RFC9110 5.5. They are certainly common in response field values.

I've decided to remove automatic handling of escape sequences as they're a deprecated "feature" of HTTP and I've never actually seen them in the wild, so to speak. As such, I've removed the list of allowed characters, and have tested with request headers with "{}" characters.


Can I have additional urls?

For my tests I need to have 2 additional urls (beside base_url). Is it possible to use more than one url?

Hello,
unfortunately it is not possible because it would be a real mess to handle.
But there is a workaround :sunglasses: !
Indeed, the RestApiBrowser will prepend the base_url only if you ask for a path query (like /designs). With complete url (like  http://my.api.local/designs), no problem, it will use this url.
// Will request http://base_url/designs
$this->restApiBrowser->sendRequest('GET', '/designs');

// Will request http://my.api.local/designs even if base_url is defined
$this->restApiBrowser->sendRequest('GET', 'http://my.api.local/designs');

Hope it helps


[Elasticsearch] Allow to customize antiAffinity

Describe the feature:
I'm in a multi AZ deployment of this chart and I'd like to be able to deploy it with custom antiAffinity:

set a preferredDuringSchedulingIgnoredDuringExecution based on the AZ topologyKey
set a requiredDuringSchedulingIgnoredDuringExecution based on the hostname topologyKey

Describe a specific use case for the feature:
Multi AZ deployments where you want to make sure you don't have two pods on the same node, and at the same time you want to distribute as much as possible on your AZs.
Suggestion:
Allow to set a custom value to antiAffinity and use it as else clause in:
      {{- if eq .Values.antiAffinity "hard" }}
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
            # ...
      {{- else if eq .Values.antiAffinity "soft" }}
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
            # ...
      {{- else }}
        podAntiAffinity:
          {{- .Values.antiAffinity }}
      {{- end }}

still valid


Add podman-compose compatability integration.

Add integration allowing podman-compose to be used.
This is an alternative to docker-compose.
Provide a system property that will enable using podman-compose files. For both infra and integration-test projects.

I guess you mean to use the podman-compose scripts in testsuite, right? You will need to first build the app (quarkus) with podman instead of docker as the image needs to be in podman repository. Regrettably AFAIK this is not supported in Quarkus: https://quarkus.io/guides/container-image#docker
And then let testcontainers use that.
Please make sure that this works on machines where both docker and podman are installed, without alias docker = podman.

I guess you mean to use the podman-compose scripts in testsuite, right?

That's right.

This has been documented


import order and vendors

Hi (again/yet)!
Shouldn't the vendor folder be the first one to be imported? We can put a lot of things inside it, not only css. Let's say I want to include Sass Blend Modes. They're functions, which I could use to modify my own variables and functions. I need them loaded before my config files.
Thank you (again/yet), Hugo!

I just found this commit, but I don't understand its reason. I'm sorry.

Hello Robson.
The reason why vendors are imported after abstracts is to be able to configure them. Vendors usually use the !default flag in their variable definitions, making it possible to define them only they are not defined already. Because of that, we import vendors after the abstracts folder.

They're functions, which I could use to modify my own variables and functions.

This is bad practice and likely an anti-pattern. A function call should not modify any global element. Ideally it should be pure, which means it takes some arguments, and gives back a result without any side-effect or dependency.

Can't a !default variable be overridden?

That’s the whole point.

Thank you again.


Benders plugin bug

Closes #237.
The bendersgetvar function was not working correctly. This has been fixed in this pull request.

I don't want to nag but could you maybe add a short test that shows how the benders plugin works?

No, I don't really have any example to add for this. We don't have a precedent of adding tests for plugins.

Well, there is test_benders but it isn't using the benders plugin.

But yes, you are right, there was no test before either, so I suppose we can just merge this.