x86_64-unknown-linux-musl: error: could not find native static library c, perhaps an -L flag is missing?

How do I use Xargo for  x86_64-unknown-linux-musl?

Build failed, waiting for other jobs to finish...
error: build failed
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.ToNm9ngHiAgZ/Cargo.toml" "--target" "x86_64-unknown-linux-musl" "-p" "std"` failed with exit code: Some(101)
note: run with `RUST_BACKTRACE=1` for a backtrace

Building without --target=x86_64-unknown-linux-musl works.

By the way even with xargo rustc  --release -- -C lto -C opt-level=z and strip I get a 111K executable. How do I get file size comparable to C version (5 kilobytes) without actual no_std? Shouldn't LTO throw almost everything away?

The Rust compiler assumes that the musl libc.a will be contained in the sysroot for this particular target. That library won't be in Xargo sysroot because Xargo doesn't build libc.a when it builds sysroot. It doesn't do that because the standard crates don't contain instructions for that in their build scripts. To fix this you'll have to compile musl libc.a yourself and then pass a -L to the linker (xargo rustc -- -C link-arg=..)

I get a 111K executable.

Formatting stuff heavily bloats Rust programs. Even an empty program fn main() contains formatting code because the code that runs before main to initialize the Rust runtime may panic and those panic messages need to be formatted.

It was 111K because, although being built by xargo, usual non-customized libstd was linked in. A copy of usual libstd_....rlib was delivered to $HOME/.xargo. Custom-built libstd in /tmp was discarded somehow.
After manual compilation of libstd and manually linking it it got to about 51K.

Custom-built libstd in /tmp was discarded somehow.

That ... sounds like a bug?

about 51K.

You can profile the binary size if you run nm -C --size-sort on the file (probably before stripping it). That should tell what symbol (function / static variable) is taking up the most space.

xargo rustc --release -- -C lto -C opt-level=z

btw, this only builds the top crate with opt-level=z. You should set opt-level in Cargo.toml (profile.release) if you want to compile the whole dependency graph with opt-level=z.
I think there's nothing actionable left to be done for this issue?

It fails to recognize z, although s works (although it is before rustup update).

nm -C --size-sort

There was a lot of things about backtracing. I also used Codesize which shows it as a tree in GUI, which emphasized that backtracing-related things are about 30k.

That ... sounds like a bug?

Maybe I'll reproduce it again and file a dedicated report.

backtracing-related things are about 30k.

IIRC, std has a backtrace Cargo feature. If you disable it, you should be able to remove (part of) those 30k with the caveat that RUST_BACKTRACE will no longer work.

Yes. The problem was that all those feature settings in Xargo.toml for std had no effect at all because of usualy pre-built rustup-downloaded libstd.rlib were used (just from ~/.xargo instead of the usual location).

All,
I've been experimenting with building std from source, using both Xargo and the new Cargo build-std feature.  Here are the steps I used on my Ubuntu workstation to get a Xargo build for the x86_64-unknown-linux-musl target.
Install a known-good nightly toolchain, with Rust library source, and support for the x86_64-unknown-linux-musl target:
rustup install nightly-2020-08-20
rustup default nightly-2020-08-20
rustup component add rust-src
rustup target add x86_64-unknown-linux-musl
cargo install xargo

Create a temporary directory for testing, and a new project hello-xargo, configured with Xargo.toml and Cargo.toml tailored for small size:
mkdir -p ~/tmp/xargo
cd ~/tmp/xargo

cargo new hello-xargo
cd hello-xargo

cat <<EOF > Xargo.toml
[dependencies]
std = {default-features=false, features=["panic_immediate_abort"]}
EOF

cat <<EOF >> Cargo.toml
[profile.dev]
panic = "abort"

[profile.release]
lto = true
codegen-units = 1
opt-level = "z"
panic = "abort"
EOF

Attempt build:
xargo build --target x86_64-unknown-linux-musl --release

Failed:
error occurred: Failed to find tool. Is `musl-gcc` installed?

Install Ubuntu package musl-tools to get the wrapper executable musl-gcc (this package also implies the musl and musl-dev packages):
sudo apt install -y musl-tools

Retry build:
xargo build --target x86_64-unknown-linux-musl --release

Failed:
cargo:warning=cc: error: ../../src/llvm-project/libunwind/src/Unwind-EHABI.cpp: No such file or directory

This file is part of the llvm-project repository which is not distributed for some reason with rustup component add rust-src.
Clone source repositories:
cd ~/tmp/xargo
git clone https://github.com/rust-lang/rust
git clone https://github.com/rust-lang/llvm-project

Determine the rust repository commit-hash for this toolchain:
rustc -vV | grep commit-hash

Output:
commit-hash: 32c654a9795b0d88541e56ba9da4150e34f1d5f9

Determine the llvm-project submodule's commit hash using git ls-tree:
cd rust
git ls-tree 32c654a9795b0d88541e56ba9da4150e34f1d5f9 src/llvm-project

Output:
160000 commit 86b120e6f302d39cd6973b6391fb299d7bc22122  src/llvm-project

Create source tarball for this version of llvm-project, inserting a leading llvm-project/ path for tidiness:
cd ../llvm-project

git archive 86b120e6f302d39cd6973b6391fb299d7bc22122 \
  --prefix llvm-project/ \
  --output ../llvm-project-src.tar.gz

Install llvm-project sources from the tarball into the expected area of ~/.rustup for the current toolchain:
cd ~/.rustup/toolchains/nightly-2020-08-20-x86_64-unknown-linux-gnu
mkdir lib/rustlib/src/rust/src
tar -C lib/rustlib/src/rust/src -xf ~/tmp/xargo/llvm-project-src.tar.gz

Retry build:
cd ~/tmp/xargo/hello-xargo
xargo build --target x86_64-unknown-linux-musl --release

Output:
error: could not find native static library `c`, perhaps an -L flag is missing?

Though installed, Musl's libc.a isn't in the link path by default.
Determine the libc.a directory (it comes from the musl-dev package):
dpkg -L 'musl-dev' | grep 'libc\.a'

Output:
/usr/lib/x86_64-linux-musl/libc.a

Setup an -L option pointing to the above directory for libc.a; also include the "-Cembed-bitcode=yes" work-around for https://github.com/japaric/xargo/issues/292, since we'll need that soon anyway):
cat <<EOF >> ~/.cargo/config
[build]
# Work-around for https://github.com/japaric/xargo/issues/292:
rustflags = ["-Cembed-bitcode=yes"]

[target.x86_64-unknown-linux-musl]
# Path to Musl libc.a (plus bitcode work-around)
rustflags = ["-L/usr/lib/x86_64-linux-musl", "-Cembed-bitcode=yes"]
EOF

Retry build:
xargo build --target x86_64-unknown-linux-musl --release

Success; it's a statically linked executable:
file ./target/x86_64-unknown-linux-musl/release/hello-xargo

Output:
./target/x86_64-unknown-linux-musl/release/hello-xargo:
  ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked,
  BuildID[sha1]=323a305a723f0b29f81ee185865ffe85d51de28e, with debug_info,
  not stripped

It runs:
./target/x86_64-unknown-linux-musl/release/hello-xargo

Output::
Hello, world!

This is fixed by restricting the crates to be built to std,panic_abort:
cargo clean
cargo build \
  --target x86_64-unknown-linux-musl \
  --release \
  -Z build-std=std,panic_abort \
  -Z build-std-features=panic_immediate_abort

Success:
size ./target/x86_64-unknown-linux-musl/release/hello-xargo

   text    data     bss     dec     hex filename
  33212     800    4688   38700    972c ./target/x86_64-unknown-linux-musl/release/hello-xargo

Hopefully these terse notes are helpful for using the x86_64-unknown-linux-musl toolchain.


mistral-bench: Missing docs on how to run

@lucasavila00, I've implemented and closed some of your issues regarding mistralrs-bench. Would you be able to write these docs?

@EricLBuehler this is a busy week for me, but I'll try to do it this week

Great, thanks.


TVOS17，Please give me some advice on how to install it.

Develop the great god，Please give me some advice, thank you.

sideloadly


Update troubleshoot.md for GA

Removed "Preview"

@awaadhwa : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


ResourceExhaustedError: OOM when running rasa shell nlu command

Rasa version:
2.2.0
Rasa SDK version (if used & relevant):
2.3.1
Rasa X version (if used & relevant):
Python version:
3.7.5
Operating system (windows, osx, ...):
Linux
Issue:
I am trying to run rasa shell nlu command, and still I received ResourceExhaustedError error -
tensorflow/core/framework/op_kernel.cc:1767] OP_REQUIRES failed at tile_ops.cc:223 : Resource exhausted: OOM when allocating tensor with shape[45030,128] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
I have sufficient amount of memory in Linux machine -
              total        used        free      shared  buff/cache   available
Mem:           480G        9.5G        451G         68M         19G        467G
Swap:            0B          0B          0B

Error (including full traceback):
2021-05-01 12:31:02.381982: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 22 Chunks of size 16384 totalling 352.0KiB
2021-05-01 12:31:02.381990: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 4 Chunks of size 20480 totalling 80.0KiB
2021-05-01 12:31:02.381997: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 26624 totalling 26.0KiB
2021-05-01 12:31:02.382005: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 27136 totalling 26.5KiB
2021-05-01 12:31:02.382013: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 4 Chunks of size 33792 totalling 132.0KiB
2021-05-01 12:31:02.382027: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 4 Chunks of size 131072 totalling 512.0KiB
2021-05-01 12:31:02.382039: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 131584 totalling 128.5KiB
2021-05-01 12:31:02.382048: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 30 Chunks of size 262144 totalling 7.50MiB
2021-05-01 12:31:02.382055: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 360448 totalling 352.0KiB
2021-05-01 12:31:02.382063: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 390400 totalling 381.2KiB
2021-05-01 12:31:02.382069: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 398336 totalling 389.0KiB
2021-05-01 12:31:02.382081: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 16 Chunks of size 1048576 totalling 16.00MiB
2021-05-01 12:31:02.382094: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 2 Chunks of size 23043072 totalling 43.95MiB
2021-05-01 12:31:02.382103: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 3 Chunks of size 23055360 totalling 65.96MiB
2021-05-01 12:31:02.382111: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 25663488 totalling 24.47MiB
2021-05-01 12:31:02.382119: I tensorflow/core/common_runtime/bfc_allocator.cc:1034] 1 Chunks of size 42969088 totalling 40.98MiB
2021-05-01 12:31:02.382129: I tensorflow/core/common_runtime/bfc_allocator.cc:1038] Sum Total of in-use chunks: 201.84MiB
2021-05-01 12:31:02.382137: I tensorflow/core/common_runtime/bfc_allocator.cc:1040] total_region_allocated_bytes_: 211681280 memory_limit_: 211681280 available bytes: 0 curr_region_allocation_bytes_: 423362560
2021-05-01 12:31:02.382153: I tensorflow/core/common_runtime/bfc_allocator.cc:1046] Stats:
Limit:                       211681280
InUse:                       211644416
MaxInUse:                    211644672
NumAllocs:                        1574
MaxAllocSize:                 42969088
Reserved:                            0
PeakReserved:                        0
LargestFreeBlock:                    0

2021-05-01 12:31:02.382213: W tensorflow/core/common_runtime/bfc_allocator.cc:439] *******************************************************************************************xxxxxxxxx
2021-05-01 12:31:02.382254: W tensorflow/core/framework/op_kernel.cc:1767] OP_REQUIRES failed at tile_ops.cc:223 : Resource exhausted: OOM when allocating tensor with shape[45030,128] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
Traceback (most recent call last):
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/bin/rasa", line 8, in <module>
    sys.exit(main())
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/__main__.py", line 116, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/cli/shell.py", line 89, in shell_nlu
    rasa.nlu.run.run_cmdline(nlu_model)
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/run.py", line 21, in run_cmdline
    interpreter = Interpreter.load(model_path, component_builder)
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/model.py", line 335, in load
    should_finetune=new_config is not None,
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/model.py", line 403, in create
    component_meta, model_metadata.model_dir, model_metadata, **context
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/components.py", line 815, in load_component
    component_meta, model_dir, model_metadata, cached_component, **context
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/registry.py", line 178, in load_component_by_meta
    component_meta, model_dir, metadata, cached_component, **kwargs
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/classifiers/diet_classifier.py", line 1007, in load
    finetune_mode=should_finetune,
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/classifiers/diet_classifier.py", line 1086, in _load_model
    finetune_mode=finetune_mode,
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/nlu/classifiers/diet_classifier.py", line 1123, in _load_model_class
    finetune_mode=finetune_mode,
  File "/home/jovyan/.local/share/virtualenvs/system42-conversa-serv-7NvrSB3e/lib/python3.7/site-packages/rasa/utils/tensorflow/models.py", line 402, in load
    False if finetune_mode else True

Command or request that led to error:
rasa shell nlu --model <model_name>

Content of configuration file (config.yml) (if relevant):

Content of domain file (domain.yml) (if relevant):

Thanks for the issue, @kedz will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

Hi @vini-dixit! This looks like you don't have enough memory on your gpu not your cpu ram (which I believe is what you were showing above). If you run nvidia-smi, this will show you how much memory you have available on your machine. Here's an example output:
$ nvidia-smi
Mon May  3 20:53:02 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.51.06    Driver Version: 450.51.06    CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla P4            Off  | 00000000:00:04.0 Off |                    0 |
| N/A   41C    P0    22W /  75W |      0MiB /  7611MiB |      2%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

In the box in the center you should see how much memory is used and the maximum capacity. In this case, usage is 0MiB /  7611MiB .
It looks like your model crashed when trying to allocate gpu memory for a float matrix with shape (45030 x 128).
When I did this on my machine it used up 7171MiB /  7611MiB so you will need about 7200 MiB of gpu memory to load the model.
What does the output of nvidia-smi look like on your machine?

Hi,
Below is what I have with GPU -
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.00    Driver Version: 418.87.00    CUDA Version: 10.1
|
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr.
ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute
M. |
|===============================+======================+======================|
|   0  Tesla V100-SXM2...  On   | 00000000:00:17.0 Off |
0 |
| N/A   44C    P0    60W / 300W |  15252MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla V100-SXM2...  On   | 00000000:00:18.0 Off |
0 |
| N/A   45C    P0    59W / 300W |    462MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
|   2  Tesla V100-SXM2...  On   | 00000000:00:19.0 Off |
0 |
| N/A   48C    P0    65W / 300W |    462MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
|   3  Tesla V100-SXM2...  On   | 00000000:00:1A.0 Off |
0 |
| N/A   44C    P0    59W / 300W |    462MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
|   4  Tesla V100-SXM2...  On   | 00000000:00:1B.0 Off |
0 |
| N/A   44C    P0    61W / 300W |    462MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
|   5  Tesla V100-SXM2...  On   | 00000000:00:1C.0 Off |
0 |
| N/A   47C    P0    61W / 300W |    462MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
|   6  Tesla V100-SXM2...  On   | 00000000:00:1D.0 Off |
0 |
| N/A   46C    P0    60W / 300W |    462MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
|   7  Tesla V100-SXM2...  On   | 00000000:00:1E.0 Off |
0 |
| N/A   46C    P0    61W / 300W |    462MiB / 16130MiB |      0%
Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU
Memory |
|  GPU       PID   Type   Process name                             Usage
|
|=============================================================================|
+-----------------------------------------------------------------------------+
I have 8 GPUs in the machine. Now, the first one is exhausted, but how can
I make use of the rest of the GPUs?
On Tue, May 4, 2021 at 2:37 AM Chris Kedzie @.***>
wrote:

Hi @vini-dixit https://github.com/vini-dixit! This looks like you don't
have enough memory on your gpu not your cpu ram (which I believe is what
you were showing above). If you run nvidia-smi, this will show you how
much memory you have available on your machine. Here's an example output:
$ nvidia-smi
Mon May  3 20:53:02 2021
+-----------------------------------------------------------------------------+| NVIDIA-SMI 450.51.06    Driver Version: 450.51.06    CUDA Version: 11.0     ||-------------------------------+----------------------+----------------------+| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC || Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. ||                               |                      |               MIG M. ||===============================+======================+======================||   0  Tesla P4            Off  | 00000000:00:04.0 Off |                    0 || N/A   41C    P0    22W /  75W |      0MiB /  7611MiB |      2%      Default ||                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+| Processes:                                                                  ||  GPU   GI   CI        PID   Type   Process name                  GPU Memory ||        ID   ID                                                   Usage      ||=============================================================================||  No running processes found                                                 |
+-----------------------------------------------------------------------------+
In the box in the center you should see how much memory is used and the
maximum capacity. In this case, usage is 0MiB / 7611MiB .
It looks like your model crashed when trying to allocate gpu memory for a
float matrix with shape (45030 x 128).
When I did this on my machine it used up 7171MiB / 7611MiB so you will
need about 7200 MiB of gpu memory to load the model.
What does the output of nvidia-smi look like on your machine?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RasaHQ/rasa/issues/8585#issuecomment-831534193, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AORMRSAKH5PLPKAXKLXJQC3TL4F7ZANCNFSM436JQCRA
.

--
Regards,
Vini Dixit
--
The content of this e-mail is confidential and is intended solely for the
use of the individual or entity to whom it is addressed. If you have
received this e-mail by mistake, please reply to this e-mail and follow
with its deletion. If you are not the intended recipient, please note that
it shall be considered unlawful to copy, forward or in any manner reveal
the contents of this e-mail or any part thereof to anyone. Although
Freshworks has taken reasonable precautions to ensure no malware is present
in this e-mail, Freshworks cannot accept responsibility for any loss or
damage arising from the use of this e-mail or attachments.

You can set the CUDA_VISIBLE_DEVICES environment variable before running rasa to select a specific gpu. So if you want to use gpu 1 (the second gpu listed above) do:
export CUDA_VISIBLE_DEVICES=1
rasa shell nlu --model PATH/TO/MODEL

Thank you Chris for this information.
Could you also inform me if it is possible in rasa to support distributed
training or testing using multiple GPUs?
On Wed, 5 May 2021 at 12:46 AM, Chris Kedzie @.***>
wrote:

You can set the CUDA_VISIBLE_DEVICES environment variable before running
rasa to select a specific gpu. So if you want to use gpu 1 (the second gpu
listed above) do:
export CUDA_VISIBLE_DEVICES=1
rasa shell nlu --model PATH/TO/MODEL
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RasaHQ/rasa/issues/8585#issuecomment-832181316, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AORMRSA2523IBZ7LJMU5FJ3TMBB2RANCNFSM436JQCRA
.

--
Regards,
Vini Dixit
--
The content of this e-mail is confidential and is intended solely for the
use of the individual or entity to whom it is addressed. If you have
received this e-mail by mistake, please reply to this e-mail and follow
with its deletion. If you are not the intended recipient, please note that
it shall be considered unlawful to copy, forward or in any manner reveal
the contents of this e-mail or any part thereof to anyone. Although
Freshworks has taken reasonable precautions to ensure no malware is present
in this e-mail, Freshworks cannot accept responsibility for any loss or
damage arising from the use of this e-mail or attachments.

You're very welcome Vini! Currently we do not support distributed training across multiple gpus. Marking this as closed unless there's anything else with the OOM issue.
Best,
Chris

when diet model can support multi gpus?


[setup.cfg] Add dependency to lxml

Thanks for commit c5bb3cd2db8c6d30204e54bc5dde74eaf85dfb53 and modernizing the build system and other tooling :)
lxml was dropped from the dependency list when migrating from setup.py to setup.cfg. This breaks the installation. Please merge this commit to restore the dependncy.

@jasujm :facepalm:
I missed one event on github actions so tests are not triggered
I fixed this on #574 and I will rebase this after merging the other one

Coverage increased (+0.04%) to 96.184% when pulling c58b19a3202f04b689a419b3e690299431922f70 on jasujm:jasujm/restore-lxml-dependency into 1654dc9162b3be32c55c291ff548021c274322c2 on nephila:develop.

@jasujm :bow: thanks for spotting this and opening the PR


Cannot launch Yaagl

Describe the bug

System Information (please complete the following information):

macOS: 15.0
Device: MacbookPro 16inch 2023
CPU: Apple M2 Pro
RAM: 16G

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue, https://app.mediafire.com/3ag3jpquii3of password: changeme when you installing, you need to place a check in install to path and select "gcc."

Sorry,I can't understand how to fix it.

i have this problem also QAQ

please @me when this bug is fixes

please @me when this bug is fixed

please @me when this bug is fixed

I think it's possibly because today is the last day of this version, and the official didn't send back the promotional images. The official launcher is using the default images. The yaagl version, which was just updated, can retrieve the official images, but it might not have a solution for this situation. Let's wait for the 5.0 update to see if it can be opened then.


chore: remove commented aligns

Thanks for your clean-up spree. How does this compare to #14914 and #14916? Is there any change not in those?

I missed these two other PRs. Once they're merged, I'll merge master and see if anything remains.

Data/Fin/Basic also mentions "dubious translation" - do you think that should also be removed?

I won't have time for this for the next 3-4 hrs. Feel free to push to this branch.

bors merge


3rd Spell

Hi,
I'm using this plugin on a server with some of my friends. Everyone has encountered an issue where when you get your 3rd spell, you no longer gain SP. We have tried getting different wands, readjusting the timer, using different spells but nothing seems to be working. So, we are limited to only 3 spells per person. We don't know how to fix this. We are trying to prevent using money to buy spells, but we will if we have to. Hope you can fix this. Thanks!!

That sounds very weird. You're aware of the SP cooldowns, right?
https://github.com/elBukkit/MagicPlugin/wiki/SkillPoints#sp-cooldowns
There's nothing special or specific about how many spells you have or what spells you have that would affect earning SP. I'm afraid I wouldn't really know where to start with this if it's a problem :(
Are you able to play long enough on my dev server (mine.elmakers.com) to see if it's a problem there too? I haven't ever seen this happen myself.

Thank you very much for responding! Yes, I am aware of skill cooldown. I will try to join your server sometime tonight or tomorrow. It happens once you get the 3rd skill. Even if you get a new wand the issue still occurs. I will join your server to see if the issue persists. Thanks!

Ok- that's really very weird! Please also check your server logs for errors, just in case. I can't imagine what could cause that, but I'll give it some thought.

Thanks a bunch for letting me on the server. I'm pretty sure it's just the server I'm trying it on. I went on yours and the issue didn't occur. I will check to see if we have the right version. (It's a 1.10 server).

Did you ever figure anything out here? I'm still really confused by this.

not yet. Still working on it. we are going to put the spells in the shop for now. Thanks for your help


Do we have breadcrumbs in Angular material's latest version.

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> Breadcrumbs not available
- [ ] feature request
If breadcrumbs not available we need it for web apps

### Desired functionality
Breadcrumbs with routing functionality

### Mention any other details that might be useful
https://www.primefaces.org/primeng/#/breadcrumb

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow  using tag angular. More your request is not related to Angular CLI project.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

Closing as per @alan-agius4's comment, thanks!


Update mdbook docs and Add doc link in the Readme

This adds the final documentation for the mdbook documentation itself, as well as adds the link for it in the Readme

Codecov Report

Merging #565 (b6fb530) into main (ecb8bb8) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #565   +/-   ##
=======================================
  Coverage   61.13%   61.14%
=======================================
  Files          85       85
  Lines       12564    12564
=======================================
+ Hits         7681     7682    +1
+ Misses       4883     4882    -1


Fix Github Actions Run Failure from #262

This corrects the issue that caused the failures in automated Github Actions runs as described in #262.
It also addresses a secondary problem observed after the primary issue was resolved, where the format of the used catchment data file was not consistent with recent updates.
Changes

Updates custom Dockerfile for image used in example model run Actions workflow

Moves from Python 3.6 to 3.8 and ensures development package is installed
Rearranges some instructions to improve use of cache during image builds
Specifies a more explicitly indicative image tag (8.3.2011 rather than latest) of parent centos image

Replaces instances of area_sqkm to areasqkm in catchment_data.geojson to be consistent with expected format

Curious ... it still fails, but with different, albeit very similar error, complaining about missing the NumPy include dir for all except invalid Python versions:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
1585
  Could NOT find Python (missing: Python_NumPy_INCLUDE_DIRS NumPy) (found
1586
  suitable version "3.8.6", minimum required is "3.6.12")

I will experiment further.


i cant download

can you give me new download link ?

Sorry, I forgot to put in the new version. I will do it when I get home :)

@Ridnr I just published the newest release of Remote Control: https://github.com/DinoscapeProgramming/Remote-Control/releases/tag/1.0.0 ;)


Bring the .search.ClusterSearcher to a known state during construction.

Also wait until SearchCluster knows the cluster state.
And the .prelude.ClusterSearcher should also wait for known state in constructor.
Update tests
@bratseth and @arnej27959 PR
I am a bit uncertain about the state for the PingTest of the .search.ClusterSearcher. The grumpy server and the passive aggresive, can not work as the test is today.

I all good, closing until related issue reappear. Do not fix what is not broken.


100 - Introduce Categories model data

Current coverage is 97.11% (diff: 98.40%)

Merging #101 into master will decrease coverage by 0.01%

@@             master       #101   diff @@
==========================================
  Files            25         27     +2
  Lines           976       1039    +63
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            948       1009    +61
- Misses           28         30     +2
  Partials          0          0

Powered by Codecov. Last update 515601a...0931ce9


Make RealDistance type available within cookbooks.

This adds the RealDistance type and makes it available within cookbooks.

@vigsterkr @karlnapf @lgoetz
Please review and merge.

Ah name clash. This one here is ok.


Remove code now moved to MLJSerialization and MLJOpenML

MLJBase v0.17.7:
julia> @time using MLJBase
  4.388609 seconds (7.48 M allocations: 476.401 MiB, 5.80% gc time, 0.12% compilation time)

with this PR:
julia> @time using MLJBase
  2.368572 seconds (4.08 M allocations: 264.086 MiB, 3.20% gc time, 0.17% compilation time)

Ref: #416

Codecov Report

Merging #526 (ba579b1) into dev (757b5ee) will increase coverage by 2.78%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #526      +/-   ##
==========================================
+ Coverage   83.29%   86.07%   +2.78%
==========================================
  Files          37       36       -1
  Lines        3196     3060     -136
==========================================
- Hits         2662     2634      -28
+ Misses        534      426     -108

Impacted Files
Coverage Δ

src/MLJBase.jl
100.00% <ø> (ø)

src/machines.jl
83.75% <ø> (-1.73%)
:arrow_down:

src/interface/model_api.jl
69.23% <0.00%> (-15.39%)
:arrow_down:

src/measures/continuous.jl
97.70% <0.00%> (-2.30%)
:arrow_down:

src/measures/finite.jl
96.31% <0.00%> (-0.30%)
:arrow_down:

src/composition/learning_networks/nodes.jl
69.93% <0.00%> (-0.21%)
:arrow_down:

src/univariate_finite/types.jl
94.44% <0.00%> (+0.86%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 757b5ee...ba579b1. Read the comment docs.

Before merging this PR:

[ ] Register MLJOpenML

[ ] Register MLJSerialization

On second thoughts, it looks like we need this minor release first. And then bump the [compat] requirements of the new packages before registering.  For currently, I get
julia> using MLJSerialization
[ Info: Precompiling MLJSerialization [17bed46d-0ab5-4cd4-b792-a5c4b8547c6d]
WARNING: Method definition save(Union{IO, String}, MLJBase.Machine{M, C} where C where M<:MLJModelInterface.Model) in module MLJBase at /Users/anthony/Dropbox/Julia7/MLJ/MLJBase/src/machines.jl:743 overwritten in module MLJSerialization at /Users/anthony/Dropbox/Julia7/MLJ/MLJSerialization/src/machines.jl:79.
  ** incremental compilation may be fatally broken for this module **


Minimum hardware to reproduce the work.

Hi! Congratulations on your work!
I would like to start trying to reproduce your work and was wondering if I could do it with more limited hardware such as an rtx 3090 24GB VRAM.
You say in the Lora Tuning:
To launch the first stage training, run the following command. In our experiments, we use 2 A100.
If you could give me some guidelines (or some advice) I would really appreciate it.
Thank you very much in advance!

Thank you for your interest in our work. Our experiments have been conducted exclusively on the A100 machine. It is feasible to run on A40 and 3090 machines by reducing the batch size, but certain parameters may require corresponding adjustments.

In A40, with the dataset used in the original text, I reduced the train_batch_size to 16, resulting in a maximum memory usage of less than 40GB (about 33GB), making it runnable on A40. At this batch size, I set the min_lr parameter to 1e-4, achieving results close to those in the original text. If running on a 3090 GPU, it may require multi-GPU parallelism or further reduction of batch size to meet the GPU requirements, along with corresponding adjustments to the learning rate.


Issues with typescript templates when testing the integration into SAP Fiori tools in BAS

Issues internally reported by @IainSAP

Generation of FEOP template contained a Component.js but not Component.ts even if typescript: true (reproducible in VSCode as well)

fix: https://github.com/SAP/open-ux-tools/pull/669/commits/a2d7a24ce20e38b2119756353f2107f00245c3a3

Generation of FPM template contained both a Component.js and a Component.ts when typescript: true

https://github.com/SAP/open-ux-tools/pull/669/commits/7adab76707f73cdba0f0a1c7b45ac18f1e189890 might be the fix
https://github.com/SAP/open-ux-tools/pull/669/commits/64c2a891564c052cbd9156232f51db0df15b9300 might be the fix (a similar fix was required for easy-ui5)

Thanks @tobiasqueck.
Can you get packages/fiori-elements-writer/test/test-output/feopTemplate/fefeop2-ts preview to load. It doesn't for me.

Thanks @tobiasqueck. Can you get packages/fiori-elements-writer/test/test-output/feopTemplate/fefeop2-ts preview to load. It doesn't for me.

It is caused by my "favorit" the reuse libs script (again). Will fix it.

@devinea fixed with https://github.com/SAP/open-ux-tools/pull/669/commits/6153c5cdf7a3c67db2b2231027cbc4acc3df02d4


PropsTable does not render

Bug Report
Describe the bug
I have a simple Button component with some props. I tried to use PropsTable but it does not even get mounted. What could be the source of this issue? I have also tried to check whether react-docgen parses the PropTypes information and it does.
Environment

OS: 10.13.5
Node/npm version: 10.1

Additional context/Screenshots

I pretty much ended up writing my own propTable component, I can share it here when I finalise it

Funny how only the components named Button have that issue

This is very weird @ilyanoskov since we already have babel-plugin-react-docgen inside. Can you share more details about this or maybe your solution?

With 0.9.2 I no longer have this issue. @felipeduardo do you have this issue?


Problem with the latest MUIv5 and classes overrides of nested elements

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
Some of the MUI components have sub-components which are mentioned in the CSS section of the component with a statement like: "Styles applied to the deleteIcon element.". But when migrating from MUIv4 to v5, I found out that I cannot keep using it the same way in classes props because of increased specificity. There is no additional comment for such cases and it doesn't seem to be specific only to Chip component.
In the minimal example below I'm using makeStyles from tss-react, but I think the issue will be there even with other solutions.
const useStyles = makeStyles()((theme) => ({
  root: {
    backgroundColor: theme.palette.primary.main,
  },
  deleteIcon: {
    color: theme.palette.primary.contrastText,
  },
}));

function App() {
  const { classes } = useStyles();

  return (
    <Chip label="Chip with classes" onDelete={() => {}} classes={classes} />
  );
}

Expected behavior 🤔
Here's a demo page with actual & expected sections: https://muiv5-problem-with-classes.vercel.app/
In a nutshell, I would expect that I can pass deleteIcon in classes and be able to override color to whatever I need.
Steps to reproduce 🕹
https://github.com/synaptiko/muiv5-problem-with-classes/blob/master/src/App.tsx
FYI, I've created similar issue on tss-react as I initially thought it's related to that library: https://github.com/garronej/tss-react/issues/62.
Context 🔦
I'd like an easy way to override styles of nested elements/components, without guessing where specificity need to be increased. According to documentation my understanding was that classes is exposed for that purpose.
If it's not technically possible then I would at least expect some note in the CSS section of each component.
Sorry if it's a duplicate of https://github.com/mui/material-ui/issues/28664 but it seems slightly different to me. I can also provide other components for which I had the same issue.
Your environment 🌎

`npx @mui/envinfo`
  System:
    OS: Linux 5.16 Arch Linux
  Binaries:
    Node: 17.3.0 - /usr/bin/node
    Yarn: 1.22.17 - /usr/bin/yarn
    npm: 8.4.1 - /usr/bin/npm
  Browsers:
    Chromium: 98.0
    Firefox: 97.0
  npmPackages:
    @emotion/react: ^11.7.1 => 11.7.1
    @emotion/styled: ^11.6.0 => 11.6.0
    @mui/base:  5.0.0-alpha.68
    @mui/material: ^5.4.1 => 5.4.1
    @mui/private-theming:  5.4.1
    @mui/styled-engine:  5.4.1
    @mui/system:  5.4.1
    @mui/types:  7.1.1
    @mui/utils:  5.4.1
    @types/react: ^17.0.20 => 17.0.39
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2
    typescript: ^4.4.2 => 4.5.5

I found a workaround with use of tss-react on how to increase the specificity globally.
Note: It's hacky and not ideal, I'm not sure if it can eventually break some other things but I'll try to use it for now (to avoid unnecessary refactoring).
import { useTheme } from '@mui/material';
import { createMakeAndWithStyles } from 'tss-react';

const { makeStyles: _origMakeStyles, withStyles: _origWithStyles, useStyles } = createMakeAndWithStyles({ useTheme });

function addSpecificity(value: any): any {
  return { '&&': value };
}

function isSubcomponentName(key: string): boolean {
  return key !== 'root' && /^[a-z]+$/gi.test(key);
}

function increaseSpecificityOfSubcomponents(cssObject: Record<string, any>): any {
  const result: Record<string, any> = {};

  for (const key of Object.keys(cssObject)) {
    if (isSubcomponentName(key)) {
      result[key] = addSpecificity(cssObject[key]);
    } else {
      result[key] = cssObject[key];
    }
  }

  return result;
}

const withStyles: typeof _origWithStyles = (component, cssObjectOrGetterFn, params) => {
  if (typeof cssObjectOrGetterFn === 'function') {
    const origGetterFn = cssObjectOrGetterFn;

    cssObjectOrGetterFn = (...args) => {
      return increaseSpecificityOfSubcomponents(origGetterFn(...args));
    };
  } else {
    cssObjectOrGetterFn = increaseSpecificityOfSubcomponents(cssObjectOrGetterFn);
  }

  return _origWithStyles(component, cssObjectOrGetterFn, params);
};

function makeStyles<Params = void, RuleNameSubsetReferencableInNestedSelectors extends string = never>(params?: {
  name?: string | Record<string, unknown>;
}) {
  const origUseStyles = _origMakeStyles<Params, RuleNameSubsetReferencableInNestedSelectors>(params);
  const useStyles: typeof origUseStyles = (cssObjectByRuleNameOrGetCssObjectByRuleName) => {
    if (typeof cssObjectByRuleNameOrGetCssObjectByRuleName === 'function') {
      return origUseStyles((...args) =>
        increaseSpecificityOfSubcomponents(cssObjectByRuleNameOrGetCssObjectByRuleName(...args))
      ) as any;
    } else {
      return origUseStyles(increaseSpecificityOfSubcomponents(cssObjectByRuleNameOrGetCssObjectByRuleName));
    }
  };

  return useStyles;
}

export { makeStyles, withStyles, useStyles, _origWithStyles, _origMakeStyles }; // _origWithStyles/_origMakeStyles shouldn't be used, we just need to export it as well because of the typeof of withStyles/makeStyles

The deployed version can be seen here: https://muiv5-problem-with-classes-felxofanc-synaptiko1.vercel.app/

I am also experiencing this issue. Any updates?

It would be great to have an official fix or at least updated documentation with recommendations on to how to work with sub-components styling.
But for now we are using the workaround and so far it works fine.

It would be great to have an official fix or at least updated documentation with recommendations on to how to work with sub-components styling.
But for now we are using the workaround and so far it works fine.

Agreed. For the one place in our app it happened I just used inline styles to override the icon's color in the Chip

Gross solution, but I just used the good ol' !important property to get the new color to take.
Hacky, but not awful. :)


Add prettier

This adds Prettier to the project with a configuration that is aligned in a way that it approximates the current format as much as possible
However, there are

.yml and .yaml files
different indentations in .json files (2 vs 4)
no support for non-spaces imports
no TS declarations trailing comma support 😢

The eslint-plugin-modules-newline is not maintained anymore
I assume there is somewhere another rule, maybe by eslint-plugin-unicorn, but I didn't find it on the fly with a 1min quick search
The eslint-plugin-modules-newline has a conflict with prettier, not sure if eslint-plugin-prettier could help here, but anyway 😸
In addition, we could add a prettier --check to the GitHub CI like here https://github.com/faker-js/faker/blob/872c855d4a288e85ff7486aff7e3dfcfedea8c62/.github/workflows/ci.yml#L169-L170, but that's up to you

Ah! https://github.com/import-js/eslint-plugin-import can do the modules-newline stuff.
There are several rules that can work together:

https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/exports-last.md
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/group-exports.md
https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/first.md
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md

Should I configure this in this PR? Or should I do a follow-up PR later on?

Ah! https://github.com/import-js/eslint-plugin-import can do the modules-newline stuff. There are several rules that can work together:

https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/exports-last.md
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/group-exports.md
https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/first.md
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md

Should I configure this in this PR? Or should I do a follow-up PR later on?

I think I will merge this MR first so the prettier changes are applied. I'll handle the import/export formatting in a separate MR. As we use eslint-plugin-simple-import-sort with eslint-plugin-import in newer projects and it sorts the imports a bit different I can handle this in one MR.
We try to keep the projects consistent, so I need to add the prettier changes to other libraries and also apply the import/export sorting.

In addition, we could add a prettier --check to the GitHub CI like here https://github.com/faker-js/faker/blob/872c855d4a288e85ff7486aff7e3dfcfedea8c62/.github/workflows/ci.yml#L169-L170, but that's up to you

That is a good point. I'll prepare it in the MRs and after it is available in all libs I can add it to our central CI workflow.

We try to keep the projects consistent, so I need to add the prettier changes to other libraries [...].

I just started with this project as I assumed that it is the "base"
So I can do PRs for the other project as well (I assume it is "only" the graphql-server)
I planned to enhance the project further with other changes like e.g. using tsup for the build process and e.g. switching the test-suite to vitest, so the tests can run faster.

We try to keep the projects consistent, so I need to add the prettier changes to other libraries [...].

I just started with this project as I assumed that it is the "base" So I can do PRs for the other project as well (I assume it is "only" the graphql-server)

I appreciate the thought, as I'm doing updates anyway I can handle this.

I planned to enhance the project further with other changes like e.g. using tsup for the build process and e.g. switching the test-suite to vitest, so the tests can run faster.

It would be nice if you open an issue with "enhancement" label so we can discuss the changes before you create an MR. Might be bad if you create an MR and we decide we don't want to apply a specific change. Most of the NodeJS libraries are focused for backend use and not every change might make sense for them.

Yes, I will create Issues.
Sometimes PRs just are good demonstrations, but if they don't get accepted, they can be trashed away without any struggle 🙂

Yes, I will create Issues. Sometimes PRs just are good demonstrations, but if they don't get accepted, they can be trashed away without any struggle 🙂

I agree on that point, thought it might be easier to try out/showcase the changes in https://github.com/dreamit-de/graphql-prom-metrics project as it is smaller than https://github.com/dreamit-de/graphql-server .


Refuse to reconcile multiple logging resources with the same loggingRef

Describe the bug:
The behaviour for the logging operator is unpredictable if there are multiple logging resources using the same loggingRef. (A logging resource without an explicit logging ref set is considered the default and should be unique as well)
Expected behaviour:
The logging operator should refuse to reconcile such a resource. It should update the logging resource status so the the user know what's wrong. Ideally the logging operator should have an admission webhook to reject such a second logging resource with the same ref.
Steps to reproduce the bug:
Anyone can create two logging resources without a logging ref set on either of those, but that should be avoided.
/kind bug

The same issue seems to occur if loggingRef is not set in different logging resources as well. FluentbitAgents dose not have a loggingRef set.
When reconciling the fluentbits from loggingResources (FluentbitAgent List) all fluentbits that have an empty loggingRef in FluentbitAgent CR will be created, even if they are not part of the logging resource.
LoggingRed from FluentbitAgentList are compared here
Debugged with @eumel8

I'm not sure I understand the problem statement here.
If there is no loggingRef defined on the resources, then all resources (Flow,Output,ClusterFlow,ClusterOutput,FluentbitAgent) will be considered as part of the logging resource that has no loggingRef defined either. Now if there are more than one logging resources defined with an empty loggingRef, than all Flow,Output,ClusterFlow,ClusterOutput,FluentbitAgent resources  will be considered part of all these loggings. This is expected and the root cause is still the same: the logging operator allows multiple logging resources with the same loggingRef.
Putting the fluentbit spec back into the logging resource does not solve this problem, it's still a totally invalid use case. Please do not use multiple logging resources without a uniq loggingRef!
Probably you are aware, but also please note there is a bug that has just been reported: https://github.com/kube-logging/logging-operator/issues/1388

since this can be a breaking change, first we only introduce a deprecation notice


Rails 7.1 breaks receive().with

Your environment

Ruby version: 3.2
rspec-mocks version: 3.12.2
Rails version: main.

Steps to reproduce
In a Rails application (i.e., with Rails loaded), define a method expectation:
mock = instance_double("Hash")
allow(mock).to receive(:key?).with(:x) { 1 }

expect(mock.key?(:x)).to eq 1

Expected behavior
Pass.
Actual behavior
ArgumentError:
       wrong number of arguments (given 1, expected 0)
     # ../rails/activesupport/lib/active_support/core_ext/object/with.rb:24:in `with'

What happened?
Rails monkey-patched Object#with https://github.com/rails/rails/pull/46681 /cc @byroot
RSpec receive matcher defines chain methods only for undefined methods: https://github.com/rspec/rspec-mocks/blob/4a1032bf93fe8b47c9e3416413e2b05d604d109f/lib/rspec/mocks/matchers/receive.rb#L58-L59
Since #with is defined on Object, the with modifier is no longer available.

Why does MessageExpectation need to b e a subclass of Object, not BasicObject?

Even then, why would it not redefine existing methods? I'll git blame to see if I can find the reason for this.

Ah, I think the intent is to not redefine methods directly defined in Receive, since we're copying all the matchers. method_defined?(name, false) would fix it I think.

I think I have a fix for it, but GitHub seems to be having issues, I get an error message when trying to create the PR....
https://github.com/rspec/rspec-mocks/compare/rspec:main...casperisfine:receiver-with?expand=1

@byroot I’ve opened one, does it work for you?

Sure, thank you.


Subscription Management

README.md suggests

Logging into your tenant - suggested global admin to get full tenant/all subscrption infromation

I think it would be better if this suggests some least priviliged RBAC role.

@tianderturpijn as the owner of the content, can you please look at the comment? Thanks!

Which remediation artifact?

Is there a way to set the pricings for the workspaces under the suscription?
this one:

@fabiotito, are you looking to set that with an ARM template or Azure Policy or are looking for a PowerShell script?

@fabiotito were you able to configure this? Looks like last interaction was March 6th, when @tianderturpijn asked you a question. Please let us know the current status of this.

@fabiotito, are you looking to set that with an ARM template or Azure Policy definition or are you looking for a PowerShell script?

With an ARM template if it is possible.


⚠ Jenkins Plugins Artifactory has degraded performance

In 7531e01, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1316 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 3e51c02 after 12 minutes.


Lists of information should be marked up as HTML lists

Acceptance Criteria:

[ ] Plan a lesson link section (the circle link icons to different lesson components) should be a list of links
[ ] About us link section (who we are, leadership etc) should be a list of links
[ ] List of board/leadership cards in about us should be lists
[ ] Documents on the about-us/board page should be a list
[ ] List of partner logos on about-us/partners should be a list
[ ] List of subjects on a subject listing page

https://www.notion.so/oaknationalacademy/The-links-within-the-Plan-a-lesson-page-are-visually-a-list-but-not-marked-up-as-one-in-HTML-164249ab85d84a788778848a7d03c7ca?pvs=4
https://www.notion.so/oaknationalacademy/The-in-page-nav-for-the-About-us-pages-is-marked-up-as-a-nav-but-the-items-are-not-in-a-list-ef5a71b2200b4e63a33c8f87032fa9b3?pvs=4
https://www.notion.so/oaknationalacademy/The-team-members-are-presented-in-a-list-but-the-HTML-structure-of-the-section-is-not-reflective-of--e40399aec3ce42d59aa0a8dc98e2f5c0?pvs=4
https://www.notion.so/oaknationalacademy/The-team-members-are-presented-in-a-list-but-the-HTML-structure-of-the-section-is-not-reflective-of--ae4334f344624e9dafe8e1ecc66a13c7?pvs=4
https://www.notion.so/oaknationalacademy/The-documents-available-on-the-page-are-presented-in-a-list-but-the-HTML-structure-is-not-reflective-a7040ef35804402f86106eca10fbb480?pvs=4
https://www.notion.so/oaknationalacademy/The-partner-logos-are-presented-in-a-list-but-the-HTML-structure-is-not-reflective-of-this-3686da85c3414b599cc6187ff2fd1707?pvs=4

moved to notion


docker mtu

The environment I use is openstack vm, The network card mtu is 1454 ,not 1500
When I build with drone, I find that it creates a new container and the mtu of the network  card
is 1500 .  so the container was not able to access the Internet
by the way ,during the use, I discovered that the drone created a bridge network using docker and the mtu is 1500, I need to set the mtu of this network for 1400 to get online
I've done the following, but it doesn't work
networks:
default:
driver: bridge
driver_opts: io.drone.network.pod=true
My drone version is 0.8.1
What else do I need to write, thank you.

Please use our discourse forum for end-user support questions. Thanks!


Better errors for RDB parsing

In the RDB extension, since we rely on a third-party parser, our error messages aren't very helpful.
Example:

Error while parsing RDB file : unexpected EOF

Just like we do with RESPClient, we should write our own parser that can generate friendly error messages.
Thanks to @knusth for highlighting this!

Actually wait, ignore this - we're only writing RDB files, user code handles reading. I thought it's the other way around when I created this


[happy-heron/prod] NotImplementedError: NotImplementedError

This is being triggered by a crawler. Can this be handled in a more elegant way (i.e., other than throwing an error)?
Backtrace
View full backtrace and more info at honeybadger.io

This is being caused by a call to https://sdr.stanford.edu/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbkZmIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--12cb475ef34f32cac3ee533546fc35cd468e8925/seda2022_documentation_beta.pdf?disposition=attachment
This call is not passing through Shib, so working with Ops to get it covered.

So H2 is special in that nothing is blocked by Shib, so that isn't a good option.
Considered rescuing the error and returning Bad Request. However, this is thrown from an ActiveStorage controller, which has its own controller hierarchy. It is possible to create a new controller that inherits from the ActiveStorage controller, but that additional complexity isn't warranted for this problem.
Instead, I'm going to settle for adding a comment to the HB alert.

@amyehodge It appears that actual users are following links from https://edopportunity.org/ and getting this error?

https://edopportunity.org/methods/ (follow the SEDA Technical Documentation link)
https://edopportunity.org/research/ (click on the Technical/Methodological tab, and then click the SEDA 2022 Special Release Technical Documentation link).

If we aren't going to fix this maybe we should let the publisher know that they should update these links, since it is a site affiliated with Stanford?

Ah! These are not the links that had been corrected. I didn't know these were there and the webmaster has repeatedly missed fixing these. Thanks so much for finding these @edsu. I've contacted her again.

Update: the woman from SEDA has responded and indicated that they will update the two that @edsu found and check all the others, so, hopefully we won't be seeing this particular error again. 🤞


🐛 [firebase_database] limitToFirst and limitToLast retrieve the whole data when using the .get() method

Bug report
I am trying to perform a simple query :
DataSnapshot snapshot = await FirebaseDatabase.instance.reference().child("messages").child(uid).orderByChild("createdAt").limitToLast(1).get();

And i expect to retrieve only 1 result from the end of the list (ascending order).
I have 5 messages under the messages node here, and the query returns them all instead of the more recent one only.
Same issue using limitToFirst(1) that retrieves all data under the messages node.
I have also tried using orderByChild which doesn't change anything.
Steps to reproduce
Steps to reproduce the behavior:

Run the sample code

Expected behavior

I expect the data to be sorted ascending and limited to 1 result when using :

DataSnapshot snapshot = await FirebaseDatabase.instance.reference().child("messages").orderByChild("createdAt").limitToFirst(1).get();

=> Output is unordered and definitely not with 1 item.

I expect the data to be limited to 1 result when using :

DataSnapshot snapshot = await FirebaseDatabase.instance.reference().child("messages").limitToLast(1).get();

=> Same.
With the sample code, the expected output would be message4 as content only.
Additional issue
The orderByChild method is also not working. I have set negative timestamps to the createdAt to be able to order by descending.
However, the orderByChild is not working, we can see (despite the limitToLast(1)) in the sample example the whole list of messages still unordered.
Sample project

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_database/firebase_database.dart';
import 'package:flutter/material.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(const TestApp());
}

class TestApp extends StatefulWidget {
  const TestApp({Key? key}) : super(key: key);

  @override
  _TestAppState createState() => _TestAppState();
}

class _TestAppState extends State<TestApp> {

  final List<Map<String, dynamic>> _messageList = [];

  void _writeMessages() async {
    for (int i = 0; i < 5; i++) {
      int time = DateTime.now().millisecondsSinceEpoch;
      FirebaseDatabase.instance.reference().child("messages").child(time.toString()).update({
        "createdAt": time,
        "content": "message$i"
      });
      await Future.delayed(const Duration(milliseconds: 50));
    }
  }

  void _sortMessagesDescendingWithLimit() async {
    DataSnapshot dataSnapshot = await FirebaseDatabase.instance.reference().child("messages").orderByChild("createdAt").limitToLast(1).get();
    Map<String, dynamic> result = Map<String, dynamic>.from(dataSnapshot.value);
    print("Result : $result");
    for (var element in result.values) {
      _messageList.add(Map<String, dynamic>.from(element));
    }
    setState(() {

    });
  }

  @override
  void initState() {
    super.initState();
    _writeMessages();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: _messageList.isNotEmpty ? ListView.builder(
          itemCount: _messageList.length,
            itemBuilder: (context, index) {
          return Padding(
            padding: const EdgeInsets.all(15),
            child: Column(
              children: [
                Text("Content : ${_messageList[index]["content"]}", style: const TextStyle(color: Colors.black)),
                const Padding(padding: EdgeInsets.only(top: 15)),
                Text("Date : ${DateTime.fromMillisecondsSinceEpoch(_messageList[index]["createdAt"])}", style: const TextStyle(color: Colors.black))
              ],
            ),
          );
        }) : Center(
          child: GestureDetector(
            onTap: _sortMessagesDescendingWithLimit,
            child: Container(
              width: 300,
              height: 300,
              color: Colors.blue,
              child: const Center(child: Text("Sort descending")),
            ),
          ),
        ),
      ),
    );
  }
}

Flutter doctor
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.62.3)
[✓] Connected device (3 available)

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.14.4
Flutter SDK 2.5.3
myapp 1.0.0+1

dependencies:
- app_settings 4.1.1 [flutter]
- app_tracking_transparency 2.0.2+1 [flutter]
- apple_maps_flutter 1.0.1 [flutter]
- badges 2.0.1 [flutter]
- cached_network_image 3.1.0+1 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web]
- camera 0.9.4+5 [camera_platform_interface camera_web flutter pedantic quiver flutter_plugin_android_lifecycle]
- clipboard 0.1.3 [flutter]
- cloud_functions 3.1.1 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- connectivity_plus 2.0.3 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
- country_code_picker 2.0.2 [flutter modal_bottom_sheet collection universal_platform]
- crypto 3.0.1 [collection typed_data]
- cupertino_back_gesture 0.1.0 [flutter]
- cupertino_icons 1.0.4
- disk_space 0.2.1 [flutter]
- emoji_picker_flutter 1.0.8 [flutter shared_preferences]
- extended_image 5.1.3 [extended_image_library flutter meta]
- extended_tabs 2.3.0 [flutter]
- ffmpeg_kit_flutter 4.5.0 [ffmpeg_kit_flutter_platform_interface flutter]
- firebase_analytics 8.3.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core flutter meta]
- firebase_auth 3.2.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 1.10.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 2.3.0 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_database 8.1.0 [firebase_core firebase_database_platform_interface firebase_database_web flutter]
- firebase_dynamic_links 3.0.1 [firebase_core flutter]
- firebase_messaging 11.1.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_performance 0.7.1+4 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter]
- firebase_storage 10.1.0 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_app_badger 1.3.0 [flutter]
- flutter_arc_text 0.5.0 [characters flutter]
- flutter_contacts 1.1.1+2 [flutter]
- flutter_facebook_auth 3.5.6 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web]
- flutter_image_compress 1.1.0 [flutter]
- flutter_launcher_icons 0.9.2 [args image path yaml]
- flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math]
- flutter_sound_lite 8.4.2 [path_provider recase uuid provider path synchronized logger flutter flutter_sound_platform_interface flutter_sound_web]
- flutter_staggered_grid_view 0.4.1 [flutter]
- flutter_svg 0.23.0+1 [flutter meta path_drawing vector_math xml]
- geocoding 2.0.1 [flutter geocoding_platform_interface]
- geolocator 7.7.1 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web]
- google_fonts 2.1.0 [flutter http path_provider crypto]
- google_maps_flutter 2.1.1 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface]
- google_mobile_ads 1.0.0 [meta flutter]
- google_sign_in 5.2.1 [flutter google_sign_in_platform_interface google_sign_in_web meta]
- hive 2.0.4 [meta crypto]
- hive_flutter 1.1.0 [flutter hive path_provider path]
- http 0.13.4 [async http_parser meta path]
- image_editor 1.0.2 [flutter]
- in_app_review 2.0.3 [flutter in_app_review_platform_interface]
- intl 0.17.0 [clock path]
- logger 1.1.0
- native_admob_flutter 1.5.0 [flutter]
- path 1.8.0
- path_provider 2.0.7 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- percent_indicator 3.4.0 [flutter]
- perfect_volume_control 1.0.5 [flutter]
- permission_handler 8.3.0 [flutter meta permission_handler_platform_interface]
- photo_manager 1.3.10 [flutter]
- provider 6.0.1 [collection flutter nested]
- pull_to_refresh 2.0.0 [flutter]
- rive 0.7.33 [collection flutter graphs http meta]
- scrollable_positioned_list 0.2.3 [flutter collection]
- share_plus 3.0.4 [meta mime flutter share_plus_platform_interface share_plus_linux share_plus_macos share_plus_windows share_plus_web]
- shared_preferences 2.0.9 [flutter meta shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- sign_in_with_apple 3.2.0 [flutter meta]
- sliver_tools 0.2.5 [flutter]
- sqflite 2.0.0+4 [flutter sqflite_common path]
- translator 0.1.7 [http]
- url_launcher 6.0.14 [flutter meta url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- uuid 3.0.5 [crypto]
- video_compress 3.1.1 [flutter]
- video_player 2.2.7 [flutter meta video_player_platform_interface video_player_web html]
- video_thumbnail 0.4.3 [flutter]
- visibility_detector 0.2.2 [flutter]

dev dependencies:
- flutter_lints 1.0.4 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- archive 3.1.6 [crypto path]
- args 2.3.0
- async 2.8.1 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- cached_network_image_platform_interface 1.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.0.1 [flutter flutter_cache_manager cached_network_image_platform_interface]
- camera_platform_interface 2.1.1 [cross_file flutter meta plugin_platform_interface stream_transform]
- camera_web 0.2.1+1 [camera_platform_interface flutter flutter_web_plugins stream_transform]
- characters 1.1.0
- charcode 1.3.1
- clock 1.1.0
- cloud_functions_platform_interface 5.0.14 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.1.1 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.15.0
- connectivity_plus_linux 1.1.1 [flutter connectivity_plus_platform_interface meta nm]
- connectivity_plus_macos 1.2.1 [connectivity_plus_platform_interface flutter]
- connectivity_plus_platform_interface 1.1.1 [flutter meta plugin_platform_interface]
- connectivity_plus_web 1.1.0+1 [connectivity_plus_platform_interface flutter_web_plugins flutter]
- connectivity_plus_windows 1.2.0 [connectivity_plus_platform_interface flutter]
- cross_file 0.3.2 [flutter js meta]
- csslib 0.17.1 [source_span]
- dbus 0.6.6 [args ffi meta xml]
- extended_image_library 3.1.0 [crypto flutter http_client_helper path path_provider]
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- ffmpeg_kit_flutter_platform_interface 0.1.0 [flutter plugin_platform_interface]
- file 6.1.2 [meta path]
- firebase 9.0.2 [http http_parser js]
- firebase_analytics_platform_interface 2.0.1 [flutter meta]
- firebase_analytics_web 0.3.0+1 [firebase firebase_analytics_platform_interface flutter flutter_web_plugins meta]
- firebase_auth_platform_interface 6.1.4 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.2.0 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.1.0 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.2.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.1.6 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_database_platform_interface 0.1.0+3 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_database_web 0.1.1 [firebase_core firebase_core_web firebase_database_platform_interface flutter flutter_web_plugins js]
- firebase_messaging_platform_interface 3.0.9 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 2.1.0 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- firebase_performance_platform_interface 0.0.1+7 [firebase_core flutter plugin_platform_interface]
- firebase_performance_web 0.0.2 [firebase firebase_performance_platform_interface flutter flutter_web_plugins]
- firebase_storage_platform_interface 4.0.6 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.1.0 [async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta]
- flutter_blurhash 0.6.0 [flutter meta pedantic]
- flutter_cache_manager 3.1.3 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid]
- flutter_facebook_auth_platform_interface 2.7.0 [flutter plugin_platform_interface]
- flutter_facebook_auth_web 2.6.0+2 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface]
- flutter_plugin_android_lifecycle 2.0.4 [flutter]
- flutter_sound_platform_interface 8.4.2 [flutter meta plugin_platform_interface logger]
- flutter_sound_web 8.4.2 [flutter_sound_platform_interface flutter logger flutter_web_plugins meta js]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- geocoding_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- geolocator_android 2.1.0 [flutter geolocator_platform_interface]
- geolocator_apple 1.2.2 [flutter geolocator_platform_interface]
- geolocator_platform_interface 2.3.6 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 2.0.6 [flutter flutter_web_plugins geolocator_platform_interface]
- google_maps_flutter_platform_interface 2.1.3 [collection flutter meta plugin_platform_interface stream_transform]
- google_sign_in_platform_interface 2.1.0 [flutter meta quiver]
- google_sign_in_web 0.10.0+3 [flutter flutter_web_plugins google_sign_in_platform_interface js meta]
- graphs 2.1.0 [collection]
- html 0.15.0 [csslib source_span]
- http_client_helper 2.0.2 [http]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image 3.0.8 [archive meta xml]
- in_app_review_platform_interface 2.0.2 [flutter url_launcher plugin_platform_interface platform]
- js 0.6.3
- lints 1.0.1
- matcher 0.12.10 [stack_trace]
- meta 1.7.0
- mime 1.0.1
- modal_bottom_sheet 2.0.0 [flutter]
- nested 1.0.0 [flutter]
- nm 0.4.1 [dbus]
- octo_image 1.0.0+1 [flutter flutter_blurhash]
- path_drawing 0.5.1+1 [vector_math meta path_parsing flutter]
- path_parsing 0.2.1 [vector_math meta]
- path_provider_android 2.0.8 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.7 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.2 [flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.3 [flutter]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.4 [ffi flutter meta path path_provider_platform_interface win32]
- pedantic 1.11.1
- permission_handler_platform_interface 3.7.0 [flutter meta plugin_platform_interface]
- petitparser 4.4.0 [meta]
- platform 3.0.2
- plugin_platform_interface 2.0.2 [meta]
- process 4.2.4 [file path platform]
- quiver 3.0.1+1 [matcher]
- recase 4.0.0
- rxdart 0.27.2
- share_plus_linux 2.0.4 [share_plus_platform_interface file flutter meta url_launcher]
- share_plus_macos 2.0.2 [share_plus_platform_interface flutter]
- share_plus_platform_interface 2.0.1 [flutter meta mime plugin_platform_interface]
- share_plus_web 2.0.4 [share_plus_platform_interface url_launcher flutter flutter_web_plugins meta]
- share_plus_windows 2.0.3 [share_plus_platform_interface flutter meta url_launcher]
- shared_preferences_android 2.0.8 [flutter meta shared_preferences_platform_interface]
- shared_preferences_ios 2.0.8 [flutter meta shared_preferences_platform_interface]
- shared_preferences_linux 2.0.3 [file flutter meta path path_provider_linux shared_preferences_platform_interface]
- shared_preferences_macos 2.0.2 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.2 [flutter flutter_web_plugins meta shared_preferences_platform_interface]
- shared_preferences_windows 2.0.3 [file flutter meta path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.99
- source_span 1.8.1 [collection path term_glyph]
- sqflite_common 2.0.1+1 [synchronized path meta]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- synchronized 3.0.0
- term_glyph 1.2.0
- test_api 0.4.2 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0 [collection]
- universal_platform 1.0.0+1
- url_launcher_linux 2.0.2 [flutter]
- url_launcher_macos 2.0.2 [flutter]
- url_launcher_platform_interface 2.0.4 [flutter plugin_platform_interface]
- url_launcher_web 2.0.4 [flutter flutter_web_plugins meta url_launcher_platform_interface]
- url_launcher_windows 2.0.2 [flutter]
- vector_math 2.1.0
- video_player_platform_interface 4.2.0 [flutter flutter_test meta]
- video_player_web 2.0.4 [flutter flutter_web_plugins meta video_player_platform_interface]
- win32 2.3.0 [ffi]
- xdg_directories 0.2.0 [meta path process]
- xml 5.3.1 [collection meta petitparser]
- yaml 3.1.0 [collection source_span string_scanner]

Hi @Tom3652, Thanks for filing the issue. Could you please share the version of the database plugin and the structure of your database?
Thanks

Hello @maheshmnj thanks for your reply.
I am using :  firebase_database: ^8.1.0
Here is a screenshot of my structure :

But as i wrote in my sample code, this doesn't seem to be related to my database structure => having a simple node with messages only can reproduce the issue, there is no limit nor order by :/
Please let me know if you need more specifications / details.

Thanks for the info @Tom3652.  I can reproduce the issue limitToFirst and limitToLast methods are not limiting the number of results to be returned it always returns the whole data.
  firebase_core: ^1.10.0
  firebase_database: ^8.1.0

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-arm, locale en-GB)
    • Flutter version 2.5.3 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (6 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.61.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.28.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile)  • <IP_ADDRESS>:5555                     • android-arm64  • Android 11 (API 30)
    • iPhone 12 mini (mobile) • 1FBDAEA9-D062-4831-AFEC-820D955D6D88 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)         • macos                                • darwin-arm64   • macOS 12.0.1 21A559 darwin-arm
    • Chrome (web)            • chrome                               • web-javascript • Google Chrome 96.0.4664.55

• No issues found!

Thanks @maheshmnj for confirming :)
Should i open another issue regarding the orderByChild as well ?
I am aware that there is an ongoing rework of this plugin and that it's still written in beta in the FlutterFire doc, so the team is probably aware of all these bugs as they are really "simple" use cases.

@Tom3652  sure please.

Alright my bad, it's the get method that returns a complete desordered results with orderByChild, but the once is working fine along with orderByChild.
Since i don't know if this is a normal behavior for the get method, i will not make an issue for now :)

I simply would like to specify that the issue only happens when using the .get() method.
Fortunately i can use the .once() so i am not stuck anymore :)

Are you able to try the latest plugin version and confirm if this is still an issue.
I have a feeling there's an underlying issue with this though on the official Firebase SDKs that we wrap - but would be good to confirm how the latest FlutterFire plugin version behaves - thanks

I also confirm that it's working fine with the version : firebase_database: ^9.0.3.
However, i had to add an index to make it work, otherwise i got the below error :
I/RepoOperation( 3761): get for query /messages falling back to disk cache after error: Index not defined, add ".indexOn": "createdAt", for path "/messages", to the rules
E/firebase_database( 3761): An unknown error occurred handling native method call Query#get
E/firebase_database( 3761): java.util.concurrent.ExecutionException: java.lang.Exception: Index not defined, add ".indexOn": "createdAt", for path "/messages", to the rules
E/firebase_database( 3761): 	at com.google.android.gms.tasks.Tasks.zza(com.google.android.gms:play-services-tasks@@17.2.1:5)
E/firebase_database( 3761): 	at com.google.android.gms.tasks.Tasks.await(com.google.android.gms:play-services-tasks@@17.2.1:8)
E/firebase_database( 3761): 	at io.flutter.plugins.firebase.database.FirebaseDatabasePlugin.lambda$queryGet$8$FirebaseDatabasePlugin(FirebaseDatabasePlugin.java:248)
E/firebase_database( 3761): 	at io.flutter.plugins.firebase.database.FirebaseDatabasePlugin$$ExternalSyntheticLambda17.call(Unknown Source:4)
E/firebase_database( 3761): 	at com.google.android.gms.tasks.zzx.run(com.google.android.gms:play-services-tasks@@17.2.1:1)
E/firebase_database( 3761): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/firebase_database( 3761): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/firebase_database( 3761): 	at java.lang.Thread.run(Thread.java:919)
E/firebase_database( 3761): Caused by: java.lang.Exception: Index not defined, add ".indexOn": "createdAt", for path "/messages", to the rules
E/firebase_database( 3761): 	at com.google.firebase.database.connection.PersistentConnectionImpl.lambda$get$0$PersistentConnectionImpl(PersistentConnectionImpl.java:426)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.PersistentConnectionImpl$$ExternalSyntheticLambda2.onResponse(Unknown Source:6)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.PersistentConnectionImpl$6.onResponse(PersistentConnectionImpl.java:1315)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.PersistentConnectionImpl.onDataMessage(PersistentConnectionImpl.java:513)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.Connection.onDataMessage(Connection.java:167)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.Connection.onMessage(Connection.java:131)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.WebsocketConnection.appendFrame(WebsocketConnection.java:259)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.WebsocketConnection.handleIncomingFrame(WebsocketConnection.java:306)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.WebsocketConnection.access$500(WebsocketConnection.java:34)
E/firebase_database( 3761): 	at com.google.firebase.database.connection.WebsocketConnection$WSClientTubesock$2.run(WebsocketConnection.java:86)
E/firebase_database( 3761): 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
E/firebase_database( 3761): 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/firebase_database( 3761): 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
E/firebase_database( 3761): 	... 3 more
E/flutter ( 3761): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: [firebase_database/index-not-defined] Index not defined, add ".indexOn": "createdAt", for path "/messages", to the rules
E/flutter ( 3761):
E/flutter ( 3761): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter ( 3761): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter ( 3761): <asynchronous suspension>
E/flutter ( 3761): #2      MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:367:43)
E/flutter ( 3761): <asynchronous suspension>
E/flutter ( 3761): #3      MethodChannelQuery.get (package:firebase_database_platform_interface/src/method_channel/method_channel_query.dart:74:22)
E/flutter ( 3761): <asynchronous suspension>
E/flutter ( 3761): #4      Query.get (package:firebase_database/src/query.dart:21:27)
E/flutter ( 3761): <asynchronous suspension>
E/flutter ( 3761): #5      _TestAppState._sortMessagesDescendingWithLimit (package:testapp/test_fire.dart:37:33)
E/flutter ( 3761): <asynchronous suspension>
E/flutter ( 3761):
E/flutter ( 3761): #0      MethodChannelQuery.get (package:firebase_database_platform_interface/src/method_channel/method_channel_query.dart:86:7)
E/flutter ( 3761): <asynchronous suspension>
E/flutter ( 3761): #1      Query.get (package:firebase_database/src/query.dart:21:27)
E/flutter ( 3761): <asynchronous suspension>
E/flutter ( 3761): #2      _TestAppState._sortMessagesDescendingWithLimit (package:testapp/test_fire.dart:37:33)
E/flutter ( 3761): <asynchronous suspension>

After adding the index as required it gives the wanted output.

great thanks for confirming this is now working


[BUG] Prometheus volume failed

Describe the bug
after some sort of Disk Corruption issue, i cant seem to get Prometheus monitoring health. see #3238. I would like to try to get it health before attempting and upgrade from v1.0.3 -> v1.1.1 to avoid any issues with the upgrade hanging.
To Reproduce
hard to re-preoduce because i believe it was caused by longhorn disk corruption issues for ext4 fs.
Expected behavior
Prometheus volumes should be health, or perhaps a workaround to re-set prometheus.
Support bundle
attached.
Environment

Harvester ISO version: v1.0.3
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): BareMetal R620s. 4 nodes

Additional context
tried to delete the failed replica in longhorn, but it is not an option. also tried to attach volume to other nodes with no luck.

Volume details in LH:
Volume Details
State: Detached
Health:
Unknown
Ready for workload:Ready
Conditions:
restore
scheduled
Frontend:Block Device
Attached Node & Endpoint:
Size:
50 Gi
Actual Size:64.7 Gi
Data Locality:disabled
Access Mode:ReadWriteOnce
Engine Image:longhornio/longhorn-engine:v1.2.4
Created:3 months ago
Encrypted:False
Node Tags:
Disk Tags:
Last Backup:
Last Backup At:
Replicas Auto Balance:ignored
Instance Manager:
Namespace:cattle-monitoring-system
PVC Name:prometheus-rancher-monitoring-prometheus-db-prometheus-rancher-monitoring-prometheus-0
PV Name:pvc-7616922b-a530-4bcc-b281-0a0438955d4d
PV Status:Bound
Revision Counter Disabled:False
Pod Name:prometheus-rancher-monitoring-prometheus-0
Pod Status:Pending
Workload Name:prometheus-rancher-monitoring-prometheus
Workload Type:StatefulSet
charts / graphs fail to load i'm guessing because of missing metrics.

additonal thread from slack w/ @Vicente-Cheng:
https://rancher-users.slack.com/archives/C01GKHKAG0K/p1670220962452249 (hopefully this link works!)

i found the pod in kubectl and deleted it. came up fine after.


Change the text color of that part

Change the text color of that part rather than changing the background color would be a great enhancement

Yes, not a bad idea. I was planning to make a release in May, so I'll have a look at that as well. Or maybe you want to contribute this yourself?

@athkalia Surely once my exams get over i will try working on it.

Hey, this functionality has been added in the new v0.4 version! enjoy


Vapor3

Awesome thanks for this! Couple of things I've noticed on the first skim - the dependencies are being injected in, which doesn't play nice with Vapor 3's lack of thread safety. Can you move them to be created from the request instead? Like let renderer = try req.make(ViewRenderer.self)?

Sure, thanks for the input & quick response 👍
So instead of dep injection, create them from the current request inside respond(to:chainingTo:) ?
public func respond(to request: Request, chainingTo next: Responder) throws -> EventLoopFuture<Response> {
        let log: Logger = try request.make(ConsoleLogger.self)
        let renderer: TemplateRenderer = try request.make(LeafRenderer.self)

Tim, one more thing: Is it just me or will HTTP errors not be converted to AbortErrors ? While testing, the catch was never be called.

Yeah exactly for getting the different dependencies. I'll have a think about whether it would be better to do req.make(LeafRenderer.self) as that's going to make testing difficult or req.make(ViewRenderer.self) as that requires people to set up their config correctly (though that can be mitigated with documentation).
For how it should all work. I would probably throw most of it away and start from scratch since things has changed so much in Vapor. It might be easier to base it off the Vapor 3 Error Middleware rather than trying to port it over (https://github.com/vapor/vapor/blob/master/Sources/Vapor/Middleware/ErrorMiddleware.swift)

Great, I'll have a look at ErrorMiddleware (I've been using a clone to convert API errors to JSON payloads)


Implement NSObject Validation KVC methods

Implements:
setNilValueForKey:
validateValue:forKey:error:
validateValue:forKeyPath:error:
Partially completes #2459, the Set and OrderedSet methods will be implemented in a separate CR because they are only tangentially related and will require a good bit of code.

nit: log when the validation method is stupid


fix(ci): use rust 1.76.0 to run clippy tests

Summary
Changes the clippy CI job to use Rust 1.76.0, matching all other rust versions.
Background
All rust related jobs must use the same Rust version.
Related Issues
Closes https://github.com/astriaorg/astria/issues/1396

Closing this. We are going to update everything to 1.81 so that extra work on this patch would be wasted.


Repacking to use globally unique task ids

Repacking was reusing global task ids (i.e., restarting from 1) for new instnaces added. This caused strange tuple routing behavior.
Opened #1376 to not rely on instanceIndex parsed from instanceId.

@avflor let me know what you think.

@billonahill I reviewed the code a few hours ago. It looks good. Thanks for catching the bug with the globaltaskIndex!


ARROW-6775: [C++][Python] Implement list_value_lengths and list_parent_indices functions

This adds two functions that operate on list types:

list_value_lengths: returns an int32 (for List) or int64 (for LargeList) array with the number of elements in each list value slot
list_parent_indices: returns an int32/int64 array with the same length as the child values array of a List type where each value is the index of the list "slot" containing each child value

cc @brills

CI is OK now, this just needs to be reviewed

Any opinions about these new APIs? @xhochy or @pitrou could you take a quick look?

@wesm: Thanks! These will replace our own implementations.


[xmlsec,libffi] Fix exported targets

Fixes #33529.

I want #32327 now :angry:

Thanks for the fixes!


Added support for search multi

Added support for multi search (TVShow/Movie) according to their API.

Thanks for the effor, @scboffspring :)


PR files return 500

https://gitea.com/gitea/changelog/pulls/6/files
The repository was migrated from github, don't know if it's a migration bug or pull view bug.

Anything in gitea.log?

#7754 got the same issue with gitea 1.9.0+3-g6d441de
1.8.3+2-g11f6ed4 worked just fine

should be closed by #7854

So this should closed?

I think the problem is still there. I will test it locally.

This was fixed by #8564


android: Fix CI for Android

Call update_external_sources_android.sh in the Travis job.
Add to this script the ability to fetch Vulkan-Headers repo.
Update the location of the Vulkan headers to match the fetched location.

@cnorthrop I added sync switches to the Linux version of the update script so that it is easy to select which repos are fetched.  I then left only the Vulkan-Headers fetch turned on to reduce the number of clones and network traffic.  I also updated both scripts to handle additional repos that are available.  But their fetches are disabled via the switches I added.
This change seems to build Cube successfully.


TranslocoService.translate should support number type as a parameter

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
Type 'number' is not assignable to type 'string'.
Expected behavior
TranslocoService.translate should support number type as a parameter
Minimal reproduction of the problem with instructions
export class AppComponent {
  constructor(private translocoService: TranslocoService) {}

  ngOnInit() {
   // This throws an error
    this.translocoService.translate('hello', { value: 3});

   // This works
    this.translocoService.translate('hello', { value: '3'});
  }
}

Type 'number' is not assignable to type 'string'.
What is the motivation / use case for changing the behavior?
Use number type as a translate parameter.


common/params: support nonblocking write

continue https://github.com/commaai/openpilot/pull/25912.  fixed the pytest issues by passing params_prefix to AsyncWriter

@adeebshihadeh The disadvantage of moving AsyncWriter to Params is that each params has an instance of future and queue. the static version is a little more complicated, but it doesn't have this problem. What do you think?

@deanlee is this ready to review?

@adeebshihadeh  reday for review


Remove unnecessary trailing semi-colon

@gnzlbg: no appropriate reviewer found, use r? to override

@bors: r+

:pushpin: Commit 6f508f8507b155c40b7f637c27d4a6b468d6b8ee has been approved by gnzlbg

:hourglass: Testing commit 6f508f8507b155c40b7f637c27d4a6b468d6b8ee with merge 3be769bbe13c0ec0f8f2fbd278bb218754e67828...

:broken_heart: Test failed - checks-cirrus-freebsd-11

@bors: r+

:pushpin: Commit 3241ec58085a2256b88be01efa505c0509f89ce0 has been approved by gnzlbg

:hourglass: Testing commit 3241ec58085a2256b88be01efa505c0509f89ce0 with merge 4bd0c0002631b09ca0f15d93c3101701dea83826...

:sunny: Test successful - checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, status-azure
Approved by: gnzlbg
Pushing 4bd0c0002631b09ca0f15d93c3101701dea83826 to master...


Reading context data from the first middleware in the stack

How can the error middleware effectively capture trace and user data from context that is set from another middlewares?
Assume the order of middlewares:

errorMiddleware
traceMiddleware (validating and set context of request ID for tracing), and
userMiddleware (validating and set context of request user id)

When error happen i want them to bubble up to the errorMiddleware as centralized error handler that would log the trace and user id.
Reordering the userMiddleware before errorMiddleware seems not efficient since it would handle the error in both place.

I come up with workaround to separate the errorMiddleware:

baseErrorMiddleware that catch the error during trace and userMiddleware. This become first stack.
errorMiddleware in the last stack to handle all the error after userMiddleware so it can read the previous middlewares context data nicely.


Add Wikidata reconciliation with GPS coordinates

Is your feature request related to a problem or area of OpenRefine? Please describe.
Sometime i have a dataset with coords (GPS coordinates) but with difficult names, like this dataset: https://www.data.gouv.fr/fr/datasets/liste-des-ponts-rail/
I want to can do a reconciliation with Wikidata:
In the dataset example, the field 'coordonnees_geo' is a standard GPS coordinates.
Some wikidata items have GPS coords too.
Describe the solution you'd like
1/ Please, support GPS coords. (optional)
2/ Compare coords +/- X meters.
Describe alternatives you've considered
Additional context
For GeoJson, we have https://github.com/ryanfb/georefine

@Manu1400 this is already supported by the reconciliation interface: https://github.com/OpenRefine/OpenRefine/wiki/Reconciliation#comparing-values
This is demonstrated in the second video of this tutorial:
https://www.wikidata.org/wiki/Wikidata:Tools/OpenRefine/Editing/Tutorials/Video
However, note that coordinates are currently only used in scoring, not at the retrieval phase. So it can be used to distinguish between namesakes, but will still require that the names are spelt reliably enough to bring up the candidates in the first place.

@Manu1400 I'm closing this per the above - if there is still an issue on your side, please report it to https://github.com/wetneb/openrefine-wikidata instead. Thanks!


Removed unnecessary import

A component was imported but never used

No longer applies. Files have been shuffled around and cleaned up.