Feature Request: Script and tests at folder level

It would be very useful if it is possible to execute scripts or tests at folder level.
My use case is that the service i am testing runs on a system where changes are applied very frequently. Therefore I have the demand to repeat all requests in a folder in case an error occurred. But because I can not execute at folder level I can only rerun the complete collection. this is frustrating because the collection needs one hour or more but the changes are applied ever five minutes.
If scripts and tests are available at folder level I can count errors an retries at this level. So I can decide where to skip using the new bru.setNextRequest feature.

I commented on #1334 as well but I think this may be a solid case to remove "Folders" altogether and allow for Collections to be nested.

Closing this issue as the PR adding the ability to add folder level Headers, Scripts, and Tests has already been merged into Bruno and released in the latest v1.20.0


feat(runtime): add preset-icon

@mokeyish why this PR? what are you trying to solve?

@mokeyish why this PR? what are you trying to solve?

I want to use preset-icon with cdn import in browser directly.

IG this will also help in cases where icons' list come from API and render those unknown icons.
Basically, this will allow generating icons that arent' generated at build time.

ohmyfetch will work in node and in browser: we've it working in the interactive docs, check it in the interactive folder:

@mokeyish I was thinking that this PR will solve this another one issue: https://github.com/unocss/unocss/issues/1242
@jd-solanki this PR is just using fetch instead ohmyfetch if in browser...

@userquin I used it here, not that playground.

I build runtime with script build:cdn in https://github.com/unocss/unocss/blob/main/packages/runtime/package.json, and import full.global.js, it throws required http error.

@userquin I used it here, not that playground.

then, you should solve the comment here: https://github.com/unocss/unocss/pull/1555/files#diff-0b6b72858957081dc7f339d0b71a592b58fff569e3a337d58bfab4fe1b76e1cfR23

This line will throw error. ohmyfetch didn't detect browser environment automatically.
https://github.com/unocss/unocss/blob/f5255f523eb109a6fbb00423185911bde0a4877a/packages/preset-icons/src/cdn.ts#L5

https://github.com/unjs/ohmyfetch/blob/main/src/index.ts

@userquin
Maybe you should try this yourself.

I don't know why build:cdn compiled with node -> https://github.com/unjs/ohmyfetch/blob/03016df975aa945658e07f4d5dd59d59f76205ad/package.json#L11-L14
Do yout known how to configure it ?

@mokeyish can you try to build from root folder? the build script will build both, node and cdn

@userquin No, it not work, still throw error.

@userquin I used it here, not that playground.

then, you should solve the comment here: https://github.com/unocss/unocss/pull/1555/files#diff-0b6b72858957081dc7f339d0b71a592b58fff569e3a337d58bfab4fe1b76e1cfR23

I have solve the comment above in another PR #1559

It seems that vite building(unocss playground) use  ohmyfetch/index.ts, So https://uno.antfu.me/?s=i-twemoji-frog no problem.  but build:cdn use ohmyfetch/node.ts , it not work in browser.

@mokeyish there are 2 distinct problems: to include the runtime in the browser you will need to exclude/externalize a few modules (node ones from iconify: check the nuxt.config.ts module in the interactive folder) and the error building this repo, I have never get any error.
The playground is using Vite/Rollup to build it, check the vite.config.ts (optimizedDeps.exclude and rollup options): also excluding/externalizing iconify node stuff.

@mokeyish there are 2 distinct problems: to include the runtime in the browser you will need to exclude/externalize a few modules (node ones from iconify: check the nuxt.config.ts module in the interactive folder) and the error building this repo, I have never get any error.
The playground is using Vite/Rollup to build it, check the vite.config.ts (optimizedDeps.exclude and rollup options): also excluding/externalizing iconify node stuff.

The package runtime use tsup to build, replace it with vite?

@userquin I add  option --platform browser to tsup, it throws a lot of errors 😢

As the review comments. We might better document that the full build does not include the icons preset and provide an example setup of including icons instead. Thanks for bringing this up.


Ability to assign certain transaction to the previous months

I receive my salary on the 28th of the month (roughly). I pay rent on the 2nd of the month (exactly).
This means I'm in the red (expenses > income) all months most of the time, until I receive my salary, at the very end, and it's technically incorrect.
There are multiple ways of solving this, from a Bayesian or decision tree classifier to a simple regex matching.

Thanks for opening an issue! I think Bankin has such a feature where you can assign a transaction to another month's budget. Also, a classifier could do it on one's behalf, as you mentioned on irc.


Some questions about overlap

I recently developed a demo, which is a daxpy program. It is a program that iterates hierarchically. That is, the input of the next layer of tasks depends on the output of the previous layer of tasks.
I'm running this demo on a 6-node cluster

I want to know whether legion can perform communication and transmission results while computing tasks.
If can do this, What are the principles and core components  of realizing this ability?

If running this demo on single machine, can this demo overlap some calculations?

The answer depends on the specific details of your program. In general, yes, Legion can overlap.
The best way to determine what parallelism exists in a specific program is to generate an event graph. That should make it quite clear what overlap you can expect to achieve in your specific case.
Instructions here: https://legion.stanford.edu/debugging/#legion-spy

Thank you very much, according to your guidance I generated the event graph, analyzed the code overlap situation.


How to stop Pylance to mark imports as can't be resolved

How to stop pylance bothering about the imports and mark them as can't be resolved?

NOTE: Everything is working fine, and the packages are installed

If the code runs, then we should be able to resolve the imports.
You didn't fill out our bug template; we'd appreciate a full issue, instructions mirrored here: https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue
I would also check the troubleshooting in general, which covers a number of ways that imports don't resolve. I would also verify that the packages that don't resolve are installed into the interpreter you've selected at the bottom left; it may not be the one you are using at your terminal.

Having the same;
Environment data

Language Server version: 2021.9.2
OS and version: openSUSE 15.3
Python version (& distribution if applicable, e.g. Anaconda): 3.6.13

Expected behaviour
All modules are resolved.
Actual behaviour
Module can't be resolved.  It shows reportMissingImports and linkes to:
https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules

The code is stored in a python virtual environment.
python/hello1> pip show sqlmodel
Name: sqlmodel
Version: 0.0.4

python/hello1> which python3
~/.config/python/venv/sql/bin/python3

The code runs sucessfully
The python modules are installed in: ~/.config/python/venv/sql
I added this path as extra path to pylance:

vscode is started from the virtual environment, and as such should have access to all the required environment variables.

@radoeka, you likely don't have the correct interpret selected. Could you please fill out the bug template? It asks for logs, which are important to help diagnose issues like this.

@erictraut I used the bug template, but left the logging part empty indeed.
I set the logging to "Trace":

But I don't see any tracing anywhere.  Where to look for the tracing output?

The output is in the output window under the "Python Language Server" dropdown. You should be able to open it with the "focus output" command in the command palette, or in one of the top context menus.

@jakebailey thanks for the directions.  It was still a challenge to find it, but in the end it worked out nicely.
Find the log attached, pylance.log  (I replaced my user name with 'user')
I hope that the log shines some more light on this.
The python binary to be used is the one in my virtual python environent:
/home/[user]/.config/python/venv/sql/bin/python3
However /usr/bin/python3 seems to be used.
Result with: Run python file from terminal:

The environment variables that instruct python venv are available and set:
./snake-env
VIRTUAL_ENV = /home/<user>/.config/python/venv/sql
PATH = /home/<user>/.config/python/venv/sql/bin:/home/<user>/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/sbin

For others that wonder where to find this information, two screenshots:
Command Pallette ([ctrl][shift][p]) or selection - command pallette:

The output window:

Based on the above, it sounds like you don't have the right interpreter selected. At the bottom left, there should be a button to manage that; the terminal having a particular python doesn't imply that it's been selected

@jakebailey terrific, that was it :1st_place_medal:
Thanks for this!


Fix alert flash on home page.

When I load the site, I see a flash alert about the websocket.
https://flick-ysjm.onrender.com/
Should add some space for that to not happen.
Q: I wonder how long it is taking for the websocket to connect? How long is allowed for out of the box?

Probably related. Note, this does not happen on Safari but does happen on Firefox. Could also be impacted by my Firefox blockers.

https://elixirforum.com/t/securityerror-the-operation-is-insecure-content-security-policy-directive-default-src-self/48362

I believe the issue I am having related to The operation is insecure. is because I load the admin page with a URL bookmark that has the HTTP admin/password in it, and it carries over to the other links. Might have to come up with new system admin authentication path.

The looking for internet flash might be solved in the framework. See this thread:
https://elixirforum.com/t/delaying-liveview-js-commands-avoid-quick-flash-of-trying-to-reconnect/64035/5?u=zorn
Will follow up later.


Suggest: Capable native pointer marshaling on IL2C interoperability.

For example, C# with P/Invoke way:
struct Foo
{
}

struct Bar
{
   // Foo* field1;    // C# and P/Invoke can't handle native pointer on the structure.
   IntPtr field1;      // And formal way is manually marshaling...
}

If IL2C/Invoke can handle directly it, very easier in the situation.
We discussed how to implement this way for first inspirations:
[NativeType(...)]
struct Foo
{
}

[NativeType(...)]
struct Bar
{
   [NativePointer(...)]
   Foo field1;
}

Foo foo = new Foo();
Bar bar = new Bar();
foo.field1 = bar;

In Roslyn, the code fragment understands the bar will copy instance into foo.field1.
But IL2C will wirte the bar variable is the pointer:
// Bar is value type.
Bar bar = ...
foo->field1 = &bar;    // store the bar's pointer (stfld opcode)

We have to think more deep things:

Does the pointer have to track for GC?
Can IL2C handle automate for marshler?
Can IL2C do type interence switch from raw type to pointer type?

For example, the field1 is pointer so IL2C has to access with arrow expression (field1->inner1) instead dot-notation (field1.inner1)

@chameleonhead Thanks discussed and suggested at Center CLR Try development meetup No.6.

I wanted to write code like ...
        [NativeValue("winsock2.h", SymbolName = "WSADESCRIPTION_LEN")]
        static readonly int WSADESCRIPTION_LEN = 256;

        [NativeValue("winsock2.h", SymbolName = "WSASYS_STATUS_LEN")]
        static readonly int WSASYS_STATUS_LEN = 128;

        [NativeType("winsock2.h", SymbolName = "WORD")]
        struct WORD
        {
            public byte bLow;
            public byte bHigh;
        }

        [NativeType("winsock2.h", SymbolName = "WSADATA")]
        struct WSADATA
        {
            WORD wVersion;
            WORD wHighVersion;
            byte[] szDescription;
            byte szSystemStatus;
            ushort iMaxSockets;
            ushort iMaxUdpDg;
            IntPtr lpVendorInfo;
        };

        [NativeMethod("winsock2.h", SymbolName = "socket")]
        static extern WSADATA WSAStartup(WORD wVersionRequested, LPWSADATA lpWSAData);

But I could not know how to write LPWSADATA (which is WSADATA*).
Thank you for taking up.

Memoized for me: the ref keyword in C#7, can we handle the field pointer type natural expressions?


Fix wrong command in cluster-autoscaler.md

Proposed changes: Fix wrong command which is not executable.
Result:
Environment: Cloud Shell
az aks update -n ${aks} -g ${rG} --cluster-autoscaler-profile scan-interval=30s,scale-down-delay-after-add=0m,scale-down-delay-after-failure=1m,scale-down-unneeded-time=3m,scale-down-unready-time=3m,max-graceful-termination-sec=30,skip-nodes-with-local-storage=false,max-empty-bulk-delete=1000,max-total-unready-percentage=100,ok-total-unready-count=1000,max-node-provision-time=15m
{
  "aadProfile": null,
  "addonProfiles": {
    "azurepolicy": {
      "config": null,
      "enabled": true,
      ...(no need to expand)

Basis:
The current command is not executable due to:

There is a space inside:

joey [ ~ ]$ az aks update -n ${aks} -g ${rG} --cluster-autoscaler-profile scan-interval=30s, scale-down-delay-after-add=0s,scale-down-delay-after-failure=30s,scale-down-unneeded-time=3m,scale-down-unready-time=3m,max-graceful-termination-sec=30,skip-nodes-with-local-storage=false,max-empty-bulk-delete=1000,max-total-unready-percentage=100,ok-total-unready-count=1000,max-node-provision-time=15m
Empty key specified for cluster-autoscaler-profile

The value's unit (e.g. h, m, s) for the the parameter is wrong:

joey [ ~ ]$ az aks update -n ${aks} -g ${rG} --cluster-autoscaler-profile scan-interval=30s,scale-down-delay-after-add=0s,scale-down-delay-after-failure=30s,scale-down-unneeded-time=3m,scale-down-unready-time=3m,max-graceful-termination-sec=30,skip-nodes-with-local-storage=false,max-empty-bulk-delete=1000,max-total-unready-percentage=100,ok-total-unready-count=1000,max-node-provision-time=15m
(InvalidParameter) Invalid value specified for the cluster-autoscaler parameter 'scale-down-delay-after-add'. Please refer to https://aka.ms/cluster-autoscaler for more details.
Code: InvalidParameter
Message: Invalid value specified for the cluster-autoscaler parameter 'scale-down-delay-after-add'. Please refer to https://aka.ms/cluster-autoscaler for more details.

@schaffererin
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Migration guide from vue-cli pwa

Hello,
Is there any sort of migration guide for people who were previously using vue-cli with https://cli.vuejs.org/core-plugins/pwa.html to use this plugin? In order to avoid service worker problems resulting from production visitors hitting the application with old service-worker code.
It seems that the vue-cli generated the entry at service-worker.js, and this plugin uses sw.js by default, so I am thinking that people with old version of vue-cli generated service-worker will run into problems. I'm a little ignorant of these problems, so I was hoping there might be some migration guide for this.
Thanks

@719media

the sw name, just try adding filename: 'service-worker.js' on pwa plugin configuration.
your client should update all assets, maybe some not changed but will depend on the webpack configuration you have
about the pwa manifest, it is the new standard, maybe you can run a post install hook to change the name on the pwa plugin  dependency: maybe I can make it configurable

IIRC vue-cli is using register-service-worker module form Evan, the changes may vary if you're using autoUpdate or prompt strategy on new app.
If you're using autoUpdate with no SSR/SSG, just import virtual:pwa-register and call it on load event and you're done:
// main.js/main.ts
import { registerSW } from 'virtual:pwa-register'
window.addEventListener('load', () => {
  registerSW({ immediate: true })
})

If you are using vue-router you can register the sw on isReady callback: the sw should only be register once, so use load or isReady:
import { registerSW } from 'virtual:pwa-register'

const router = ....

router.isReady().then(() => {
  registerSW({ immediate: true })
})

If you're using prompt strategy, you should add/modify a ReloadPrompt.vue, just check the vue-router example, you have the logic on it, just add it to your App.vue or layout.

@userquin
Wow thank you for the detailed response. By way of information, I am using a very "vanilla/standard" install of the vue-cli, where the only configuration I've done is with iconPaths and themeColor. I am currently doing an autoUpdate strategy where I refresh the assets behind the scenes every time the service-worker gets new content.
Yes, vue-cli does use register-service-worker module that Evan made.
I think I should be able to make a very easy transition from your comments, with the exception of the manifest.json filename, as this is something that I think should be configurable. I can do a postinstall hook for sure, but I do think having this name configurable also makes sense (I see many people name it different things).
Thank you!

@719media you can take a look at this (vanilla with ts, using prompt strategy, just remove the callabcks and the toast/dialog on main.ts): https://github.com/userquin/vite-plugin-pwa-vanillajs


me_lib

saya mempunya library yg mungkin cocok dengan ini nama nya colorama mungkin anda bisa mencoba nya langsung
https://github.com/Bayu12345677/library_colorama

You have done sth wrong with the branch you used and you have resubmitted many existing commits. Also, any content should be in English. There seems to be no original work from you in this PR though. In any case there is already a library to handle colors, typeface, etc.


ASV on successive launches, saves the latest version of the shapes in a separate file.

This effect is observed due to shapes that defined by the environment variable MODIN_BACKEND which in turn leads to the fact that different forms can be used from time to time.
Example:
MODIN_BACKEND=omnisci MODIN_EXPERIMENTAL=true asv run ... -b ^omnisci ...
asv run ... -b ^benchmarks ... In this case, the shapes will replace the previous ones (Old: [[1_000_000, 10]] -> New: [[5000, 5000], [1_000_000, 10]])

I didn't quite get the sense of the issue. As I understood:
MODIN_BACKEND=Omnisci asv run -b "omnisci.unary_op_benchmark"

Will use [10_000, 10] shape, because the OmniSci backend was picked, and so this if-statement will route us to the OmniSci-tunned dataset sizes.
If we run the following:
asv run -b "non_omnisci.unary_op_benchmark"

We'll get ([250, 250], [10_000, 10]) shapes because now MODIN_BACKEND=Pandas (default value). Could you please elaborate the problem?

After the first launch of a subset of benchmarks, some parameters are recorded in the file, after the second launch of another subset, all benchmarks are overwritten at once.
The problem is that the same class can have different parameters depending on the environment variable.
MODIN_BACKEND=Omnisci asv run -b "omnisci.unary_op_benchmark" - will write [10_000, 10] shape for "omnisci.unary_op_benchmark"
asv run -b "non_omnisci.unary_op_benchmark" - will write ([250, 250], [10_000, 10]) shape also for "omnisci.unary_op_benchmark". Each time ASV creates a file where all benchmarks with parameters are recorded.

asv run -b "non_omnisci.unary_op_benchmark" - will write ([250, 250], [10_000, 10])

actually should be asv run -b "omnisci.unary_op_benchmark"? Otherwise, why would ASV write data for the "omnisci.unary_op_benchmark" if the names of benchmarks are different? Or it relies only on the benchmark's class name which is unary_op_bencmmark? If so, how does #3402 fix this issue?

Just try to run any benchmark after deleting asv_bench\.asv\results\benchmarks.json.
After launch, this file will automatically appear in the same place. Inside it will be information about all the benchmarks, not just the one you ran.


Error max retries exceeded with url.(Caused by ProxyError('Cannot connect to proxy.', NewConnectionError

I've been scrapping tweets succesfully with tweepy in python but suddenly yesterday, the following error popped up:
Warning: Error in py_call_impl: TweepError: Failed to send request: HTTPSConnectionPool(host='api.twitter.com', port=443): Max retries exceeded with url: /1.1/users/show.json?screen_name=xxxx (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000000008B62B470>: Failed to establish a new connection: [WinError 10060]
I am trying to download the tweets in my work  where they have a proxy but since now everything was fine.
I don't know what is the main cause for this error....

This traceback is simply an error connecting to your proxy.
I'm unable to reproduce this with a working proxy.
If you're just not able to connect to your proxy at all, then this isn't an issue with Tweepy.


Replace appointment booking link (Marriage abroad Moldova)

PT Story: https://www.pivotaltracker.com/projects/1270592/stories/109439130

Replace the appointment booking link with Embassy address details

Factcheck
https://smart-answers-pr-109439130.herokuapp.com/marriage-abroad
https://smart-answers-pr-109439130.herokuapp.com/marriage-abroad/y/moldova/ceremony_country/partner_local/opposite_sex
Expected changes

URL on GOV.UK

Before

After

Note that CI build #4238 for this branch was hanging so I cancelled it and manually triggered a new build.

@floehopper thanks for rebuilding the branch.

It would be good if we could use correct capitalisation for country names in PR titles, descriptions as well as git commit notes.
Also, some of the commit notes wrap when I view them in github, which might be an indicator they are going over 72 characters in length.

@erikse will looking that

@erikse I have squashed this and rebased with master

Thanks for amending @ikennaokpala looks good to merge


windows_task: tasks will not run on battery power

Scheduled tasks by default will not run if on battery power. This includes test kitchen vms.

This should not be the default, or at least it should be configurable. If you are on a laptop, you will spend hours of fun debugging why chef works when your laptop is plugged in, but not when on battery power. (Even if your workstation is a mac)
How
There are 3 main ways to make a windows scheduled task.

Schedtask.exe
New-ScheduledJobOption
XML

SchedTask.exe is not able to modify the power/battery settings. You must either use the powershell module, or import the task as xml.
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>

Possible config options
windows_task 'foo' do
  conditions :start_only_ac_power, false, :stop_on_battery, false
end

windows_task 'foo' do
  start_only_ac_power false
  stop_on_battery false
end

Hey @tas50 - what's the status of this? It looks like windows_task (now?) uses XML... I think one could just add a property that sets DisallowStartIfOnBatteries in the XML?
This has bitten our client team pretty hard. :/

It looks like the XML is only when updating an existing task, chef still uses the commands for creation.
https://github.com/chef/chef/blob/master/lib/chef/provider/windows_task.rb

@spuder - def action_create seems to use XML to me. Am I missing something?

We're currently working on rewriting the whole thing to use the win32-taskscheduler gem, which is XML based under the hood. This will allow for all the fancy (and basic) things like running on battery and real priorities.
The WIP PR is https://github.com/chef/chef/pull/6815

Now that we landed the rewrite of windows task to no longer uses the CLI we should figure out if we can get this fixed up. The default for the resource should definitely be to run on battery power.


Support "CREATE TEMPORARY TABLE"

mysql> use mydb;
Database changed
mysql> CREATE TEMPORARY TABLE stu (
->     student_id INTEGER,
->     name VARCHAR(10)
-> );
ERROR 1105 (HY000): database does not support temporary tables

Done in https://github.com/apecloud/myduckserver/pull/223


Fix: Issue 663 social links

Description
addresses feedback from the UX design team. We wanted to make sure we sent the right link to social media when shared out.
Ticket
Relates to Issue 663
Developer Task
- [ ] PR submitted against the `main` branch of `next-build`.
- [ ] Link to the issue that this PR addresses (if applicable).
- [ ] Define all changes in your PR and note any changes that could potentially be breaking changes.
- [ ] PR includes steps to test your changes and links to these changes in the Tugboat preview (if applicable).
- [ ] Provided before and after screenshots of your changes (if applicable).
- [ ] Alerted the #accelerated-publishing Slack channel to request a PR review.
- [ ] You understand that once approved, you are responsible for merging your changes into `main`. (Note that changes to `main` will move automatically into production.)

Testing Steps
Locally:

start yarn dev
from the home page go to the footer
click outreach events
click an event
use the element inspector on the "add to google", "share on facebook", and "share on twitter" links
verify that the href contains the link given the current testing environment.

Screenshots
Before:

After:

Reviewer
Reviewing a PR
This section lists items that need to be checked or updated when making changes to this repository.
Standard Checks
- [ ] Code Quality: Readabilty, Naming Conventions, Consistency, Reusability
- [ ] Test Coverage: 80% coverage
- [ ] Functionality: Change functions as expected with no additional bugs
- [ ] Performance: Code does not introduce performance issues
- [ ] Documentation: Changes are documented in their respective README.md files
- [ ] Security: Packages have been approved in the TRM

Merging an Approved Layout
When merging a layout, you must ensure that the content type has been turned on for next-build inside the CMS. This CMS flag must be turned on for editors to preview their work using the next build preview server.
Resource types (layouts) that have not been approved by design should NOT be pushed to production. Ensure that slug.tsx does not include your resource type if it is not approved.
The status of layouts should be kept up to date inside templates.md. This includes QA progress, development progress, etc. A link should be provided for where testing can occur.

As I created this PR, I noticed that VA.gov prod shares the old functionality currently. We may want to address the change because we are ignoring the current paradigm. We may also want to verify that this has the desired outcome.

I noticed that the social links do not open in a new tab

I noticed that in tugboat, we fail to get the url. I see that it looks like a bad replacement ${TUGBOAT_DEFAULT_SERVICE_URL}. I may need @timcosgrove  or someone who knows tugboat to buy in. I can push the change to dev and test it there if we want.


RuntimeError: All the chunks should have been deleted. Found ['chunk-0-0.bin']

🐛 Bug
When using LitData on non-Studio machines, I am getting a RuntimeError: All the chunks should have been deleted. Found ['chunk-0-0.bin'] error.
To Reproduce
This error occurs when running the following example from the LitGPT README:
mkdir -p custom_texts
curl https://www.gutenberg.org/cache/epub/24440/pg24440.txt --output custom_texts/book1.txt
curl https://www.gutenberg.org/cache/epub/26393/pg26393.txt --output custom_texts/book2.txt

# 1) Download a tokenizer
litgpt download EleutherAI/pythia-160m \
  --tokenizer_only True

# 2) Pretrain the model
litgpt pretrain EleutherAI/pythia-160m \
  --tokenizer_dir EleutherAI/pythia-160m \
  --data TextFiles \
  --data.train_data_path "custom_texts/" \
  --train.max_tokens 10_000_000 \
  --out_dir out/custom-model

# 3) Test the model
litgpt chat out/custom-model/final

I made a simpler example to reproduce the issue with a standalone code snippet.

Download sample data

mkdir -p custom_texts
curl https://www.gutenberg.org/cache/epub/24440/pg24440.txt --output custom_texts/book1.txt
curl https://www.gutenberg.org/cache/epub/26393/pg26393.txt --output custom_texts/book2.txt

Run the following code

import glob
import random
from pathlib import Path
from litdata import optimize

def tokenize(filename: str):
    with open(filename, "r", encoding="utf-8") as file:
        text = file.read()
    text = text.strip().split(" ")
    word_to_int = {word: random.randint(1, 1000) for word in set(text)}
    tokenized = [word_to_int[word] for word in text]

    yield tokenized

train_files = sorted(glob.glob(str(Path("custom_texts") / "*.txt")))

optimize(
    fn=tokenize,
    inputs=train_files,
    output_dir="temp",
    num_workers=1,
    chunk_bytes="50MB",
)

This results in the following on a Studio machine
Setting multiprocessing start_method to fork. Tip: Libraries relying on lock can hang with `fork`. To use `spawn` in notebooks, move your code to files and import it within the notebook.
Storing the files under /teamspace/studios/this_studio/temp
Setup started with fast_dev_run=False.
Worker 0 gets 1.2 MB (2 files)
Setup finished in 0.002 seconds. Found 2 items to process.
Starting 1 workers with 2 items. The progress bar is only updated when a worker finishes.
Workers are ready ! Starting data processing...
Rank 0 inferred the following `['int', 'int', 'int',...
int', 'int', 'int', 'int', 'int', 'int', 'int', 'int']` data format.
Worker 0 is terminating.
Worker 0 is done.
Workers are finished.
Finished data processing!

However, on a non-Studio machine, I am getting:
...
Progress: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  1.47it/s]
Workers are finished.
Traceback (most recent call last):
  File "/home/sebastian/miniforge3/envs/litgp2/bin/litgpt", line 8, in <module>
    sys.exit(main())
  File "/home/sebastian/test-litgpt/litgpt/litgpt/__main__.py", line 71, in main
    CLI(parser_data)
  File "/home/sebastian/miniforge3/envs/litgp2/lib/python3.10/site-packages/jsonargparse/_cli.py", line 119, in CLI
    return _run_component(component, init.get(subcommand))
  File "/home/sebastian/miniforge3/envs/litgp2/lib/python3.10/site-packages/jsonargparse/_cli.py", line 204, in _run_component
    return component(**cfg)
  File "/home/sebastian/test-litgpt/litgpt/litgpt/pretrain.py", line 154, in setup
    main(
  File "/home/sebastian/test-litgpt/litgpt/litgpt/pretrain.py", line 214, in main
    train_dataloader, val_dataloader = get_dataloaders(fabric, data, tokenizer, train, model.max_seq_length)
  File "/home/sebastian/test-litgpt/litgpt/litgpt/pretrain.py", line 409, in get_dataloaders
    data.prepare_data()
  File "/home/sebastian/test-litgpt/litgpt/litgpt/data/text_files.py", line 72, in prepare_data
    optimize(
  File "/home/sebastian/miniforge3/envs/litgp2/lib/python3.10/site-packages/litdata/processing/functions.py", line 375, in optimize
    data_processor.run(
  File "/home/sebastian/miniforge3/envs/litgp2/lib/python3.10/site-packages/litdata/processing/data_processor.py", line 1016, in run
    result = data_recipe._done(len(user_items), self.delete_cached_files, self.output_dir)
  File "/home/sebastian/miniforge3/envs/litgp2/lib/python3.10/site-packages/litdata/processing/data_processor.py", line 736, in _done
    raise RuntimeError(f"All the chunks should have been deleted. Found {chunks}")
RuntimeError: All the chunks should have been deleted. Found ['chunk-0-0.bin']

Environment

PyTorch Version (e.g., 1.0): 2.4.1+cu121
OS (e.g., Linux): Linux
LitData Version: 0.2.26

Thank you, @rasbt, for bringing up this issue.
Interestingly, I was able to reproduce a similar problem as reported by ByteBrigand (using GitHub Codespaces), but I haven't encountered the issue with deleted chunks. I'll test on other devices to see if I can replicate it.

Thanks for sharing. May I ask which version you are using? Is this with the latest main branch or the latest stable release?

Sure @rasbt , I tested with both the latest main branch and v0.2.26, leading to the same error.

Thanks, and that's so weird.

@rasbt consider moving optimize function in the main block.
if __name__ == "__main__":
  optimize(
      fn=tokenize,
      inputs=train_files,
      output_dir="temp",
      num_workers=1,
      chunk_bytes="50MB",
  )

And, for me, it worked perfectly fine.
But, we are aware of issue:

RuntimeError: All the chunks should have been deleted. Found ['chunk-x-x.bin'] error

AFAIK, this is a non-deterministic bug. It has occurred in multiple CI tests. Even re-running the code will do the trick, but we will permanently fix this weird bug very soon.
Probably, there is some issue in the way the uploader queue passes chunk files to the remover queue.
And, if you're on a Mac, consider upgrading litdata version to the current latest.

Thanks for the response @deependujha . After updating the code as you suggested, the example now works on my MacBook. On the Linux machine, even on the latest LitData version (I even tried to use the latest version from the main branch), I am still having the same bug.

AFAIK, this is a non-deterministic bug. It has occurred in multiple CI tests. Even re-running the code will do the trick, but we will permanently fix this weird bug very soon.

Actually, on that Linux machine, it happens every single time. So weird.

Hi, any resolution to this on linux systems?

Unfortunately, no. It seems that the issue still persists on some Linux machines. Maybe the best solution for now is to use an older litdata version (assuming this error doesn't exist in older versions) on those machines.

Unfortunately, no. It seems that the issue still persists on some Linux machines. Maybe the best solution for now is to use an older litdata version (assuming this error doesn't exist in older versions) on those machines.

sorry for the delay. I am involved in other stuffs. I'll start working on this immediately.

No worries @deependujha , I can totally understand that there are other priorities and commitments at the moment. So please don't get yourself in trouble working on it. But in case you have some time and are able to, that'd be super appreciated. Also let us know if you have any ideas we could test out (since our machines seem to reproduce the error deterministically, we could help testing potential solutions).

yeah, it's weird, I use ubuntu 24.04, and all the scripts (even that you shared) works perfectly fine all the time. Reproducing bug is the real challenge for me.
A similar issue: https://github.com/Lightning-AI/litdata/issues/245
and a potential pr: https://github.com/Lightning-AI/litdata/pull/284
I'm looking for the root cause, But one approach that can be tried on linux:

optimize(
  ...
  start_method = "fork"
)

If possible give it a try.


Update

I've added the original files into raw and edited the metadata and contributors files.
What's mainly missing now is the lexibank.py

The IDs differ, but otherwise it's the same as Blust-2008-210
E.g. Blust-2008-210-175 has ID 1741 in parameters.csv


Add minimal travis config

This config will use the Trusty build env by default.

Closes https://github.com/oeway/ImJoy/issues/98
Closes https://github.com/oeway/ImJoy/issues/92

LGTM


Can support add Base URL and custom models id for Anthropic settings？

我也想要

You can now set a custom base URL in v.1.5.33:

cool
but can unselect "Supports prompt caching" with Claude models ?
Or add Custom name models, Because use the Claude model with Google Vectex AI.


Update AZ400_M05_Configuring_Agent_Pools_and_Understanding_Pipeline_S…

Module: 05
Exercise: 0 & 2
Fixes # .
Changes proposed in this pull request:

Update PS code block to fix display in Lab Instructions
Update caret to single quote in PS code block

Thanks for your feedback, we have replaced the previous lab for Module 5 with a new, easier one. I'm closing this request as it is regarding the old version that is not used anymore.


[fix][broker] Avoid compaction task stuck when the last message to compact is a marker

Motivation
If the last message to compact is a marker, then the compaction task will stuck until timeout fails. The root cause is that the marker has been filtered out by the dispatcher, and the compaction reader will not read the last message.
 WARN  - [broker-client-shared-internal-executor-18-1:PersistentTopic@3432] - [persistent://tnx/ns-prechecks/test_transaction_topic211ca13d-f8a4-4648-a7b9-bd2f679e0f3b] Compaction failure.
java.util.concurrent.CompletionException: org.apache.pulsar.common.util.FutureUtil$LowOverheadTimeoutException: Timeout
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:708) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.apache.pulsar.common.util.FutureUtil.lambda$addTimeoutHandling$9(FutureUtil.java:236) ~[classes/:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.100.Final.jar:4.1.100.Final]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: org.apache.pulsar.common.util.FutureUtil$LowOverheadTimeoutException: Timeout
	at org.apache.pulsar.compaction.TwoPhaseCompactor.phaseOneLoop(...)(Unknown Source) ~[classes/:?]

Modifications
For __compaction internal cursor, we don't need to filter out marker messages and delete marker messages during compaction.
Verifying this change

[x] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

We need to cherry to 2.9 ~ 3.1 right ?

We need to cherry to 2.9 ~ 3.1 right ?

Yes.

Codecov Report

Merging #21718 (bbef1e6) into master (50007c3) will decrease coverage by 0.17%.
Report is 10 commits behind head on master.
The diff coverage is 93.33%.

Additional details and impacted files

@@             Coverage Diff              @@
##             master   #21718      +/-   ##
============================================
- Coverage     73.50%   73.33%   -0.17%
+ Complexity    32818    32754      -64
============================================
  Files          1893     1893
  Lines        140721   140768      +47
  Branches      15502    15512      +10
============================================
- Hits         103432   103228     -204
- Misses        29200    29427     +227
- Partials       8089     8113      +24

Flag
Coverage Δ

inttests
24.14% <40.00%> (-0.02%)
:arrow_down:

systests
24.72% <6.66%> (-0.12%)
:arrow_down:

unittests
72.62% <93.33%> (-0.16%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

...rg/apache/pulsar/compaction/TwoPhaseCompactor.java
74.59% <100.00%> (+0.64%)
:arrow_up:

.../pulsar/broker/service/AbstractBaseDispatcher.java
93.84% <85.71%> (+0.03%)
:arrow_up:

... and 80 files with indirect coverage changes


add an IoT device SDK section

@robinsh Could you review the proposed update to the index.yml file? If it's approved, it should be moved to the private repo for publishing, so we can check layout and links on staging before merging. The PR review team can help move the commit to the private repo.
Note that publishing in this repository is suspended until Tuesday, November 2. Merging will resume Tuesday morning. Authors can still review and sign off on PRs in the interim. Thanks.

Greg, can you check this out?
Robin
From: Kristine Toliver @.>
Sent: Monday, November 1, 2021 9:44 AM
To: MicrosoftDocs/azure-docs @.>
Cc: Robin Shahan (SHE/HER) @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] add an IoT device SDK section (PR #83117)
@robinshhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frobinsh&data=04|01|Robin.Shahan%40microsoft.com|0cf7a44647714b3e193308d99d56d892|72f988bf86f141af91ab2d7cd011db47|1|0|637713818619186615|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=lgWzz5Hmpwc%2BukKwAy2w4xOcuKHEUQrwvtYR82813L0%3D&reserved=0 Could you review the proposed update to the index.yml file? If it's approved, it should be moved to the private repo for publishing, so we can check layout and links on staging before merging. The PR review team can help move the commit to the private repo.
Note that publishing in this repository is suspended until Tuesday, November 2. Merging will resume Tuesday morning. Authors can still review and sign off on PRs in the interim. Thanks.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fpull%2F83117%23issuecomment-956396152&data=04|01|Robin.Shahan%40microsoft.com|0cf7a44647714b3e193308d99d56d892|72f988bf86f141af91ab2d7cd011db47|1|0|637713818619196569|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=4mX6sgK9EyDyZLB3tS951Ae5gDHI6LqWJNoIt8X0w0I%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADK7Q2DHVJA3M7LZUBQEOF3UJ27WDANCNFSM5G53WKZA&data=04|01|Robin.Shahan%40microsoft.com|0cf7a44647714b3e193308d99d56d892|72f988bf86f141af91ab2d7cd011db47|1|0|637713818619196569|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=TkvxzuKXljWU%2FVp%2F5UCy5fsH67kXIkBJ0Si7GPYYUkM%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|Robin.Shahan%40microsoft.com|0cf7a44647714b3e193308d99d56d892|72f988bf86f141af91ab2d7cd011db47|1|0|637713818619206524|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=YB6sbY5vkbRXkvNELpJMNYuOM9HsMi5Ay5y54AJWiDQ%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|Robin.Shahan%40microsoft.com|0cf7a44647714b3e193308d99d56d892|72f988bf86f141af91ab2d7cd011db47|1|0|637713818619206524|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=8btcYQBLT4LF3FI3rHq7D%2F9aQu13LSU5OId9WMUvAAo%3D&reserved=0.

@robinsh I'm not sure Greg was properly tagged here.

#reassign: @jimacoMS4

#assign-reviewer: @JimacoMS4

#unassign-reviewer: @robinsh

@ktoliver Dane and I are handling this offline. We can keep this PR open for now, but updates will be made through a different PR in the private repo. (The changes will be different.)

Dane and I are handling this offline. We can keep this PR open for now, but updates will be made through a different PR in the private repo. (The changes will be different.)

@JimacoMS4 Understood. Thanks for the update. Let's add #hold-off. Thanks.

#hold-off

closing as this will be taken care of in another PR


Please add Heltec Wireless stick lite V3 (ESP32 with LoRa)

Info and Image can be found here
https://heltec.org/project/wireless-stick-lite-v2/
Thank you so much.

The board is now available.


Webpack configuration for file loader

Description
Like below I configured my webpack config.ts file for file-loader.
const path = require("path");

module.exports = {
  webpack: (config) => {
    config.module.rules.push({
      test: /\.css$/i,
      use: ["style-loader", "css-loader"],
    });

    config.module.rules.push({
      test: /\.(png|jpe?g|gif)$/i,
      use: [
        {
          loader: "file-loader",
          options: {
            name: "[path][name].[ext]",
            outputPath: "images",
            publicPath: "assets",
          },
        },
      ],
    });

    return config;
  },
};

But after local-install and package my extension it seems my image file is broken. What am I missing?
Foxglove .foxe package mechanism can package image files?

Version:1.43.0
Platform:Web

Steps To Reproduce

Expected Behavior

Please share some sample code showing how you are using the file in your extension.

Please share some sample code showing how you are using the file in your extension.
Yes, sure. This is an example.

In this screenshot it looks like you have a file with .png extension that is actually JS re-exporting a png file. I'm not sure it will work like this. What happens if you directly import the png in the file you use it in?

For a working example of loading a png you can refer to this example:
https://github.com/foxglove/create-foxglove-extension/tree/main/examples/custom-image-extension

The example was very helpful. It works now, thanks.

Glad to hear you got it working!


Make the example technically correct

Description (required)
Hy @sarah11918 👋🏼, after some thinking I managed to come up with a imho minimal change to the example that ensures it's technically correct without introducing further complexity. The most challenging part was resisting the urge to add excessive explanation and background details below the example.
Would you please rephrase the text as you see fit for docs?
I hope this approach works, but I would also be fine with just adding transition:name="root" to the example without additional context. 🤓
Related issues & labels (optional)
Closes #9977

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File
Note

en/guides/view-transitions.mdx
Source changed, localizations will be marked as outdated.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Thank you Sarah, mergin now!

If you feel that the "Naming a transition" section is inadequate.
Definitely not inadequate -- it already has the perfect explanation: Sometimes magic fails, and you’ve got to take matters into your own hands.


Add JWT issuing and validation. Change Harvester onboarding and authentication processes.

Pull request check list

[X] Proper tests/regressions included?
[ ] Documentation updated?

Affected functionality
Changed the harvester onboarding and authentication process:

The onboarding process uses a join_token, validates it's still valid and not used, and returns a JWT token with the subject equal to the onboarded trust domain name.

The authentication of API calls is done using a JWT validator to verify the Bearer token from the Authorization header.

Description of change

Added interfaces jwt.Issuer, jwt.Validator, and KeyManager, to issue and validate JWT tokens, using keys managed by a KeyManager.

The implementation added for the KeyManager interface is a simple in-memory manager.

Added a goroutine that request a new JWT token every 12 hours.

Added decorator to every API call in the Harvester to add the JWT Bearer token.

Which issue this pull requests fixes

Fixes GLCP-45111

WIP: unit tests for the Onboard and GetNewJWTToken

I left 1 nit comment. So feel free to skip it if necessary. All good, good job @maxlambrecht

Thanks @Victorblsilveira.
I added tests for the Onboard handler, and I'm adding tests for the GetJWT handler.

@Victorblsilveira I refactored the Onboard and GetNewJWTToken requests using a method callAPI to remove duplication. The rest the the harvester request method could use the same.

@Victorblsilveira I refactored the Onboard and GetNewJWTToken requests using a method callAPI to remove duplication. The rest the the harvester request method could use the same.

I just realized that yesterday, on my bed, when trying to sleep. Why don't we use the client boilerplate for making that calls?


Styles missing for print

Issue Description
Due to the use of @media screen, gluestack-style styles in a web context are missing when printing the page.
Motivation or Use Case
We're using gluestack-ui to generate PDFs reports for our app (via headless Chrome).
Version
Current version, not a regression
Reproduction steps
Print a page built with gluestack in any modern browser and note that styles are missing.
Suggest a fix
I fixed the issue in a fork by replacing @media screen with @media all.

Hey @vine77, Thanks for reporting the issue. I'll look into it.


[LiveComponent] How "defer" option work and the logic behind __invoke

I have a WheaterWidget with a refresh action that can be invoked with the data-pool option or a button click:
#[AsLiveComponent]
class WheaterWidget
{
    public function __invoke(): void
    {
        $this->refresh();
    }

    #[LiveAction]
    public function refresh(): void
    {
        // Update component internal state
    }
}

Here is the behaviour:

With <twig:WheaterWidget defer /> method __invoke is called -> widget is refreshed as soon as it loads
With <twig:WheaterWidget /> method __invoke isn't called -> widget isn't updated

I want to make it work (refreshed as soon as it loads) with or without defer. So I added a [PostMount] attribute to refresh:
#[LiveAction]
#[PostMount]
public function refresh(): void
{
    // Update component internal state
}

And this, indeed, make the widget behave correcly for case 2... but then adding a defer will make it refresh twice (both __invoke and refresh are called).
So what's the correct way to handle this kind of situation?

You can look at "how" the defer is implemented i think.
It call a "render" action by listening to the "live:connect" event.
Oh but yeah, no you'd be then rendered twice if you use a defer attribute...
Now my question is: what is the goal to render your component and then immediately re-render it ? What i'd like to know is : is there anything with defer annoying or not allowing you to do something ?
I mean, as what you want to achieve is 100% what the defer attribute offers... ?

With <twig:WheaterWidget /> method __invoke isn't called -> widget isn't updated

__invoke is called when you render the component during the first request

@smnandre

I mean, as what you want to achieve is 100% what the defer attribute offers... ?

The defer will cause a big big layout shift. Sometimes you want to avoid a layout shift (Lighthouse performance metric), trading it with a bit longer loading time. Other times you may want to render the page as quick as possibile, defering some parts of the page. That's why I'd like to make my widget work in both cases.

__invoke is called when you render the component during the first request

I can't reproduce this behaviour... my bad?

The defer will cause a big big layout shift. Sometimes you want to avoid a layout shift (Lighthouse performance metric), trading it with a bit longer loading time. Other times you may want to render the page as quick as possibile, defering some parts of the page. That's why I'd like to make my widget work in both cases.

I had the same "problem", and i opened this PR this week, i think you will be interested ;)
https://github.com/symfony/ux/pull/1532

And i have a lazy attribute with intersection observer loading coming next weeks too :)

Let's close it.


TestNG 6.13.1 leads to out of memory in surefire fork

Hi!
During my development, I found out that I was unable to build the citrus-core module after the update of TestNG to 6.13.1, due to forever running test ending up in a java.lang.OutOfMemoryError: Java heap space exception. This occurred during surefire forked test.
<plugin>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.20.1</version>
  <configuration>
    <systemProperties>
      <property>
        <name>javax.xml.parsers.SAXParserFactory</name>
        <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value>
      </property>
      <property>
        <name>user.language</name>
        <value>en</value>
      </property>
    </systemProperties>
    <forkMode>once</forkMode>
    <failIfNoTests>false</failIfNoTests>
    <skipTests>${skip.unit.tests}</skipTests>
    <excludes>
      <exclude>**/IT*.java</exclude>
      <exclude>**/*IT.java</exclude>
    </excludes>
    <workingDirectory>${project.build.directory}</workingDirectory>
  </configuration>
</plugin>

One should try to find the root cause, test whether newer/older TestNG versions have the same problem and report an issue to the TestNG devs as far as it is a TestNG related root cause.

Hi!
I investigated the issue with the newest TestNG version 6.14.2 and unfortunately the problem still exists.
Here is the detailed stack trace for further investigation.
[ERROR] There was an error in the forked process
[ERROR] Java heap space
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] Java heap space
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:673)
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:535)
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:280)
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1124)
[ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:954)
[ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:832)
[ERROR]         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
[ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
[ERROR]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR]         at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[ERROR]         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR]         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
[ERROR]         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
[ERROR]         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
[ERROR]         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955)
[ERROR]         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
[ERROR]         at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Hi FMAOuroboros, I am facing exactly same exception for same testng version. May I know if you found any solution?
Is it related to Surefire plugin? https://github.com/junit-team/junit5/issues/855
I am using surefire 2.20, which version are you using?

Hey @tushar025!
Unfortunately I haven't had the chance to investigate any further. We're using surefire 2.20.1.

I tried surefire 2.21.0 and 2.19.1 with the same result. In addition, @christophd told me, that he has no issues on his MAC.
Nevertheless our build server also runs into a slightly different issue.
[ERROR] There was an error in the forked process
[ERROR] GC overhead limit exceeded
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] GC overhead limit exceeded
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:673)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:535)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:280)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1124)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:954)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:832)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Finally got something that worked. I exchanged the <forkMode>once</forkMode> with <forkMode>always</forkMode>. This does not solve the root problem but it's a workaround.
Concerning the solution:
If I reuse the fork, as <forkMode>once</forkMode> would do, the heap grows until the jvm crashes. If I throw the fork away everytime, the heap cannot grow up that much, because the fork is destroyed. 93c9bd6 is the commit, where the change was made.
From my perspective, we've three candidates that could cause the problem. The first one is TestNG, because the issue occurred first after a TestNG Version upgrade, surefire that may have a memory management issue and citrus which may have a problem when shutting down the context after the tests. I'll have a look at the TestNG integration of Citrus to ensure that this is not the case.
Nevertheless, finally this issue is done! =)
BR,
Sven

The transition to <forkMode>always</forkMode> leads to a dramatically increased build times on machines with enough ram.
Therefore we removed <forkMode>always</forkMode> and replaced it with
 <forkCount>1</forkCount>
 <reuseForks>true</reuseForks>

If you have not enough ram to build citrus, you have to use mvn clean install -DreuseForks=false and get one or two cups of coffee. ;-)
BR,
Sven

Hi @svettwer
Thanks for sharing the workaround, it's working for me as well. Except the fact that my console output size grows tremendously (in GB) but I can live with that, you've been a great help to me. Thanks again!

Hi @tushar025!
Glad to hear that! I've also created a TestNG issue. https://github.com/cbeust/testng/issues/1788
The problem is known, fixed and will be part of the next release, which is unfortunately currently not scheduled.
Nevertheless, this might be interesting for you as well!


Vickel: Watch<PHONE_NUMBER>45176

Vickel requests the watch of the watch_number<PHONE_NUMBER>45176. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by Dragonrage in Charcoal HQ


Add support for other graph dbs

Currently, the framework is tightly integrated with Neo4j, making it hard to implement other graph databases and test the performance.
It'd be interesting to:

[ ] add a generic interface for graph stores
[ ] implement other graph stores and check their performance

I'd like to contribute to this issue. Is it relevant?

Currently, Graphiti uses Neo4j's built-in BM25 and vector indexes, across both nodes and edges. We've not yet found another graph database that neatly offers this capability. As a result it will be a non-trivial exercise to support other databases.

FalkorDB supports vector indexes and full-text search for nodes, missing only implementation for full-text search in edge attributes.
We can track the progress in this issue.

Exciting to see a promising new graph database. Keep us updated.


[Bugfix] Fix bug CTAS with union all failed in 2.1.x version

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #6564
Problem Summary(Required) ：

This because CTAS not consider union all cast to SetOperationStmt
This only affects 2.1.x and will not affect versions after 2.2

run starrocks_fe_unittest

run starrocks_clang-tidy

run starrocks_clang-format


Fix styles for LayerControlsContainer and Console on Qt6

Description
This fixes a couple visual bugs on macOS when using Qt6. I tested as well on Qt5 and don't notice any issues. Unfortunately I don't have simple access to many platforms to do more extensive testing.
I appreciate review from anyone with more Qt experience on whether these fixes make sense.
Qt6 main

Qt5 main

Qt6 this branch (PyQt)

Qt6 this branch (PySide)

Qt5 this branch

Type of change

[x] Bug-fix (non-breaking change which fixes an issue)

References
#3880
How has this been tested?

[x] Tested changes with PyQt5 and PyQt6, PySide6 (macOS) and PyQt5 (linux)

Final checklist:

[x] My PR is the minimum possible work for the desired functionality

Wowza!
I was going to make a dedicated issue for this and had started to try some qss to fix and got something similar as you.
But....
If you look carefully, it's not quite the same as live/Qt5.
I think the issue is that on Qt5 the margin area shows below it the background window with background of that window, which is what we want. But in Qt6 that background window has a  different background that I've not yet figured out how to change. If you try to undock the layers or console you can see what's behind it.
Your fix is an improvement, but it's expanding the background of the widget—it does look a lot better tho!
Pinging @dalthviz who is a but of a QSS 🧙♂ I think.

But....
If you look carefully, it's not quite the same as live/Qt5.
It's most obvious with the scrollbar on the right.

Ahh I see what you mean - in the console? Hmm...
I think the LayerControlsContainer is correct and actually feels more "semantic" to me in the qss.

I think the issue is that on Qt5 the margin area shows below it the background window with background of that window, which is what we want. But in Qt6 that background window has a different background that I've not yet figured out how to change. If you try to undock the layers or console you can see what's behind it.

Yes I agree this seems to be the issue, and would be nice to also fix this even if we find other fixes in the process. Hopefully @dalthviz has some ideas!

Also, what makes this tricky is of you switch to dark mode in your macOS then the issue almost goes away—but not quite, it's super subtle.
So the color bleeding through on macOS is from system theme, which if you use Night mode becomes warmer and makes it more obvious.

Thanks - that's a good hint! Maybe we should open that issue to discuss this 😅.

OK, i closed the big tracking issue, because I think it's easier to report and fix stuff individually.
And I made an issue for the visual:
https://github.com/napari/napari/issues/5529
I think your fix for the LayerControls is perfect. I'd have no issue merging just that, if we don't come up with something for the console, because the LayerControls are always visible, while the console is (in theory) an optional plugin.

I think the console fix may involve adding a QFrame for the actual console widget? 🤔
So that might be a napari-console PR?

My latest commit brings the console at least closer to what we see on main:

There's still a problem with the color "behind" the dock widgets though 😕.

Here's one more attempt/tweak for the console. I was hoping setAttribute(Qt.WidgetAttribute.WA_StyledBackground) could also be used to fix the color "behind" the dock widgets but I can't figure that out (yet).

On my end with PySide6 everything looks and behaves correct, docked and undocked!
I think you're officially co-QSS 🧙♂!
🎉

Awesome! I appreciate anyone else testing on other platforms/backends.

Hi, just in case, on Windows seems like things look good with this PR for all the bindings I was able to test :+1: :
PyQt5/Qt5 5.15.7

PySide2/Qt5 5.15.2

PyQt6/Qt6 6.4.2

PySide6/Qt6 6.4.2

Also, seems like on Windows the mainwindow background (or the one shown when you are redocking a dockwidget) is not coupled with the OS theme. So even if you select the OS light theme, the background when selecting the area to dock has the application background color. Not totally sure how that can be changed, maybe some attribute or window flag as Qt.WidgetAttribute.WA_StyledBackground applied to the mainwindow object could help 🤔 ?

Thanks for the reviews! Before merging I suggest taking a look at yet-another Qt6 PR I have in #5533. I don't think there's any harm in including both but that PR does achieve the same result with a smaller change.

I just merged https://github.com/napari/napari/pull/5533
which we had agreed is a better alternative to this, so will close.


pull request for e2e test at 11/12/2016 03:56:10

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Update README.md

#7
made the specified changes to the readme.md file
added Techstack , Repository Structure , How to Contribute , Contribution Guidelines , License .

@c0sm0void please check the tech stack and database used for the project! Are all of them fine? Like SQLite used for the project or not I'm not sure?

@c0sm0void please check the tech stack and database used for the project! Are all of them fine? Like SQLite used for the project or not I'm not sure?

no , SQLite is not there. @AKSHITHA-CHILUKA please remove that section.


Raw meterValue always calls typeConstraintViolationError

Hi
I have problem recieving meterValue in OCPP 1.6 central_system. The value is sent from ESP to my device as a float in OCPP json format MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2022-10-03T16:15:53.000Z","sampledValue":[{"value":10,"measurand":"Energy.Active.Import.Register","unit":"Wh"}]}.
The problem is on the device it always calls out typeconstraintviolationerror even tho it should take RAW decimal number as a value.
See the error below:
INFO:ocpp:ws://<IP_ADDRESS>:9000/CP_1: receive message [2,"531531553","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2022-10-03T16:15:53.000Z","sampledValue":[{"value":10,"measurand":"Energy.Active.Import.Register","unit":"Wh"}]},{"timestamp":"2022-10-03T16:16:53.000Z","sampledValue":[{"value":10,"measurand":"Energy.Active.Import.Registe
r","unit":"Wh"}]},{"timestamp":"2022-10-03T16:17:53.000Z","sampledValue":[{"value":10,"measurand":"Energy.Active.Import.Register","unit":"Wh"}]},{"timestamp":"2022-10-03T16:18:53.000Z","sampledValue":[{"value":10,"measurand":"Energy.Active.Import.Register","unit":"Wh"}]}]}]
ERROR:ocpp:Error while handling request '<Call - unique_id=531531553, action=MeterValues, payload={'connectorId': 1, 'meterValue': [{'timestamp': '2022-10-03T16:15:53.000Z', 'sampledValue': [{'value': 10, 'measurand': 'Energy.Active.Import.Register', 'unit': 'Wh'}]}, {'timestamp': '2022-10-03T16:16:53.000Z', 'sampledValue': [{'value': 10, 'measu
rand': 'Energy.Active.Import.Register', 'unit': 'Wh'}]}, {'timestamp': '2022-10-03T16:17:53.000Z', 'sampledValue': [{'value': 10, 'measurand': 'Energy.Active.Import.Register', 'unit': 'Wh'}]}, {'timestamp': '2022-10-03T16:18:53.000Z', 'sampledValue': [{'value': 10, 'measurand': 'Energy.Active.Import.Register', 'unit': 'Wh'}]}]}>'
Traceback (most recent call last):
  File "/root/ocpp/messages.py", line 200, in validate_payload
    validator.validate(message.payload)
  File "/opt/python3/lib/python3.7/site-packages/jsonschema/validators.py", line 304, in validate
    raise error
jsonschema.exceptions.ValidationError: 10 is not of type 'string'

Failed validating 'type' in schema['properties']['meterValue']['items']['properties']['sampledValue']['items']['properties']['value']:
    {'type': 'string'}

On instance['meterValue'][0]['sampledValue'][0]['value']:
    10

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/ocpp/charge_point.py", line 150, in route_message
    await self._handle_call(msg)
  File "/root/ocpp/charge_point.py", line 178, in _handle_call
    validate_payload(msg, self._ocpp_version)
  File "/root/ocpp/messages.py", line 203, in validate_payload
    raise TypeConstraintViolationError(details={"cause": e.message})
ocpp.exceptions.TypeConstraintViolationError: TypeConstraintViolationError: Payload for Action is syntactically correct but at least one of the fields violates data type constraints (e.g. “somestring”: 12), {'cause': "10 is not of type 'string'"}
INFO:ocpp:ws://<IP_ADDRESS>:9000/CP_1: send [4,"531531553","TypeConstraintViolation","Payload for Action is syntactically correct but at least one of the fields violates data type constraints (e.g. \u201csomestring\u201d: 12)",{"cause":"10 is not of type 'string'"}]

The sampledValue needs to be a number right ? Why is it causing the error when valueFormat is defined as raw ?
Thank You
Br.
Matt

The sampledValue needs to be a number right ?
No, it must be a string.

For anybody that is getting this exception and trying to get this and ArduinoOCPP working.
Just change the JSON value type to "integer" in the MeterValues.json.
And all then works fine.


Springfox 3.0.0 with Webflux ignore @ApiImplicitParam

Please take the time to search the repository, if your question has already been asked or answered.

[x] What version of the library are you using? Is it the latest version? The latest released version is

What kind of issue is this?

[x] Question. Is this a question about how to do a certain thing?

[ ] Bug report. If you’ve found a bug, spend the time to write a failing test. Bugs with tests or
steps to reproduce get fixed faster. Here’s an example: https://gist.github.com/swankjesse/6608b4713ad80988cdc9

[ ] spring xml/java config that is relevant
[ ] springfox specific configuration if it makes sense
[ ] include any output you've received; logs, json snippets etc.; and what the expected output should be
[ ] if you have a repo that demonstrates the issue for bonus points! See this example

[ ] Feature Request. Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.

Please do consider starring this repository if you do like this project and find it useful.

JDK version 11.0.4 OpenJDK
Springfox version 3.0.0
SpringBoot version 2.3.0
I'm in a bit of a hassle with Multipart/form-data document with Webflux using Springfox:
@ApiOperation(value = "Add file to this Execution")
    @ApiResponses(value = {
            @ApiResponse(code = 400, response = WebExceptionBody.class, message = "Invalid input parameters"),
            @ApiResponse(code = 404, response = WebExceptionBody.class, message = "LoadExecution not found"),
            @ApiResponse(code = 500, response = WebExceptionBody.class, message = "Internal server error")
    })
    @PostMapping(value="/execution/{id}/file", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    public Mono<InputFile> insertFile(
            @PathVariable("id") String executionId,
            @RequestPart Mono<FilePart> file,
            @RequestPart FormFieldPart delimiter,
            @RequestPart FormFieldPart escape,
            @RequestPart FormFieldPart quote,
            @RequestPart FormFieldPart fileType,
            @RequestPart(required = false) FormFieldPart charset,
            @RequestPart(required = false) FormFieldPart encode) {
        return file.flatMap(f -> doInsertFile(f, executionId, fileType, delimiter, escape, quote, charset, encode));
    }

But, it only generates this:
{
...
"parameters": [
          {
            "name": "file",
            "in": "formData",
            "required": false,
            "type": "file"
          },
          {
            "name": "id",
            "in": "path",
            "description": "id",
            "required": true,
            "type": "string"
          }
        ],
...
}

I tried to override with @ApiImplicitParams, but it just ignores:
@ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "Load Execution's Id", required = true, dataType = "string", paramType = "path"),
            @ApiImplicitParam(name = "file", value = "File to upload", required = true, dataType = "file", paramType = "formData"),
            @ApiImplicitParam(name = "delimiter", value = "The character delimiter", required = true, dataType = "string", paramType = "formData"),
            @ApiImplicitParam(name = "escape", value = "The escape character", required = true, dataType = "string", paramType = "formData"),
            @ApiImplicitParam(name = "quote", value = "The quote character", required = true, dataType = "string", paramType = "formData"),
            @ApiImplicitParam(name = "fileType", value = "The file type indicator", required = true, dataType = "string", paramType = "formData"),
            @ApiImplicitParam(name = "charset", value = "The charset of the file", dataType = "string", paramType = "formData"),
            @ApiImplicitParam(name = "encode", value = "The encoding", dataType = "string", paramType = "formData")
    })

Documentation goes like this:
{
...
 "parameters": [
          {
            "name": "file",
            "in": "formData",
            "required": false,
            "type": "file"
          },
          {
            "name": "id",
            "in": "path",
            "description": "Load Execution's Id",
            "required": true,
            "type": "string"
          }
        ],
...
}

Am I missing something? The documentation says that will favor swagger-core annotations:
http://springfox.github.io/springfox/docs/current/#swagger

The swagger-core annotations, as provided by swagger-core, are typically used to decorate the java source code of an API which is being 'swaggered'. Springfox is aware of the Swagger-Core Annotations and will favor those annotations over inferred defaults.

But it complete ignores the FormFieldPart's.
Any help will be appreciate.
Best regards,
Raphael R. Costa


Add check to confirm lavapipe

Step 1 works:
=================================== FAILURES ===================================
_________________________ test_that_we_are_on_lavapipe _________________________

    def test_that_we_are_on_lavapipe():
        print(wgpu_backend)
        if os.getenv("PYGFX_EXPECT_LAVAPIPE"):
>           assert is_lavapipe
E           assert False

Now to fix the lavapipe detection.

One problem remains: certain text is not visible in the validation examples.

You probably need to port this to wgpu-py repo as well

One problem remains: certain text is not visible in the validation examples. It looks like with the Ubuntu-builtin LavaPipe, the text is thinner, to the extent that some text just vanishes.

It looks like these issues are related to alpha calculation/blending. There is now one test (the one for text anchor) that does not really test anything because of this. This should be temporary.
The example test build uses ubuntu-latest, so as soon as 22.04 becomes available, that one is used, which is likely to have a newer Lavapipe that hopefully has less such bugs.

There is now one test (the one for text anchor) that does not really test anything because of this.

Try to fix it in #469


Add named entity recognition notebook

CVS-113297
TODO: change link on colab to develop branch main repo before merge

@sbalandi thank you for notebook. Could you please also check that notebook can be run on colab?
@MaximProshin  @alexsu52 please take a look from quantization side

It doesn't work for me  And some typos: corol, lable_background, helfull, amout, traned

Thank you for typos, fixed
I specified the versions of required packages. Could you please check now ?

It doesn't work for me  And some typos: corol, lable_background, helfull, amout, traned

Thank you for typos, fixed I specified the versions of required packages. Could you please check now ?

I see now, it works for me locally, but it doesn't work in colab , I need little bit time for fixing

@sbalandi , I would also add the model size comparison to the notebook

It doesn't work for me  And some typos: corol, lable_background, helfull, amout, traned

Now looks like it work, could you please check ?

@sbalandi please align gradio launcing parameters according proposed by @itrushkin  contribution guide https://github.com/openvinotoolkit/openvino_notebooks/pull/1176
P.S. it is the last comment, so probably you can also modify colab link, I'll merge

@sbalandi please align gradio launcing parameters according proposed by @itrushkin contribution guide #1176
P.S. it is the last comment, so probably you can also modify colab link, I'll merge

done


k8s backend support for GlobalConfig

Adds support for GlobalConfig via a ThirdPartyResource in the k8s API.
This also attempts to switch over to client-go instead of the kubernetes/pkg/client code.

Given we'll want to be testing this as much as possible it probably makes sense just to get this in, but there are a number of changes that I think we should sort out over the next few RCs:

We seem to just be passing errors up from the k8s datastore rather than handling and returning as Calico client error types.
We need to fill out a bunch of missing function comments
There are a lot of inline timeouts and resource names e.g "networkpolicies" that are repeated a lot and would probably benefit from defining as constants.

Also needs:

Watch support in the syncer.
FV tests.

This is still pulling in k8s.io/kubernetes which is one of the things we were hoping to avoid no?

This is still pulling in k8s.io/kubernetes which is one of the things we were hoping to avoid no?

Ideally yes.  If client-go needs it then there isn't much we can do!  I don't think it should though.. I'll check.


Auto --query-driver

Lots of people seem to need --query-driver and have trouble understanding how/when to use it.
We also have people expecting it to work in situations where it won't. Can we automate some of this?
If:

the compile command has an absolute argv0
we get missing-include diagnostics
the missing include is spelled with an angle bracket (or some stdlib heuristic)

Then:

prompt the user for permission to query the driver (window/showMessagePrompt)
add it to the whitelist and invalidate the cache
tell the user how to make it permanent (window/showMessage)

Not sure if we'll get to this soon, but it's a fun idea... @kadircet

Yes I totally agree on making this smoother via window/showMessageRequest and permanent per-project via config stuff, rather than through command-line options (well, we can even take the liberty of updating/creating the config ourselves!!!).
I believe the conditions you mentioned are definitely the cases that users want this to automagically work. I would even go one step further and relax the first condition to argv0 exists and is executable.
I believe we didn't have the show message request at the time, hence we went down this path. As long as we get user consent, we should always lean towards the way easier for the user.

#654 morphed into a duplicate of this issue. Definitely think there's a need here.
The main point raised (x2) there but not mentioned here: Query driver being default off may well not really provide the security benefit anticipated. For example, in VSCode, one could just set the flag in the Project/.vscode/settings.json and invoke it on startup. (Discussion evolved after I'd raised just turning the query driver on by default.)
Coincidentally, just noticed that a missing --query-driver is currently breaking Google's Bazel<->IntelliJ/Android Studio integration. Was able to spot that thanks to Sam's great explanations!

A new vscode update I happened to see: There's now a popup when you open a directory, asking if you trust the code to execute files ("workspace trust")

For anyone reading, looking to get query-driver to run automatically:
You can now just set --query-driver=/**/* (e.g. in VSCode workspace settings) and have it always run by default.

You can now just set --query-driver=/**/* (e.g. in VSCode workspace settings) and have it always run by default.

You have to mention that it isn't very secure.

I mean, no more or less secure in the VSCode case, right, since the flag can be specified in a settings file in the project directory--all gated behind a trust prompt? (As above/linked).
More generally, presumably they're going to run the driver anyway to build the code and (in most cases) to work around the header flag issues. Seems worth it to me to have things work out of the box!

A new vscode update I happened to see: There's now a popup when you open a directory, asking if you trust the code to execute files ("workspace trust")

https://github.com/clangd/vscode-clangd/issues/318 also talks about "workspace trust" feature.

there could be a simple approach : if the executable match a *gcc *clangd *cc *c++ ... and so one (there aren't a lot of compilers, intel, gcc, clang... and anyway, you have to adapt to compiler specificities like -dM -E to get builtin defines, even if compilers tends to be more and more interchangeable) then treat it as the corresponding compiler (*gcc -> gcc...)
and if you want to add safety :

prevent execute program into source tree,
verify that the executable outside a source tree is a known workable compiler (by building a simple program) before adding it to a safe list...


e2e: Add compaction, downsampling tests to TestCompactWithStoreGateway

Solve todos introduced in https://github.com/thanos-io/thanos/pull/2313

Very needed1
On Fri, 1 May 2020 at 16:42, stale[bot]<EMAIL_ADDRESS>wrote:

Hello 👋 Looks like there was no activity on this issue for last 30 days.
Do you mind updating us on the status? Is this still reproducible or
needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we
can always reopen an issue if we need!). Alternatively, use remind command
https://probot.github.io/apps/reminders/ if you wish to be reminded at
some point in future.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/thanos-io/thanos/issues/2324#issuecomment-622439855,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVA3O63WHRITQ24ZMIAXYLRPLUWVANCNFSM4LTSYIOQ
.

cc @Harshitha1234 :hugs:

Still working on this! :)

Reopened since @Harshitha1234 still working on this.

TODOS are here: https://github.com/thanos-io/thanos/blob/52595335a8bfcf0712f9cff0b5fa27a4a9568258/test/e2e/compact_test.go#L80


Find/markdown find issues

Find in Markdown fixes.
In markdown paragraph elements can span multiple lines but the cell model shows each line as a different element and thereby messing the find indexes. So in-order to calculate the correct indexes, we need to format the cell model data w.r.t markdown rules. This PR has those initial set of formatting changes. Note: This is not for feb release.

@MaddyDev any plans to either finish-up and merge this PR, or to close it out?

A lot has changed since then, am going to close this and address if there are still issues on a separate PR.


Support for multiple logData in Logs [Question]

Hello,
Given that the standard 1.4 says that multiple logData may occur in the log (for sparse updates):
<xsd:element name="logData" type="witsml:cs_logData minOccurs="0" maxOccurs="unbounded">
And here the support is for only one:
https://github.com/equinor/witsml-explorer/blob/a544aab125ead64ca25b8322bb4862b0b5c7e052/Src/Witsml/Data/WitsmlLog.cs#L75
Any plans to add it in the future?
Regards

Hi, there is no plan to add this that I am aware of unfortunately. Do you have an example request/response for this case?
Thanks!

Closing this as it's stale, and we do not have any use cases with multiple logData objects yet. Create a new issue with more details of how this should be handled if this still is required for some logs.


slider images doesnt work properly on first load

on the first load slider pro banner images doesnt work properly, it needs to resize the page.
i embed slider pro in my wordpress project.
please help.
thanks in advance

i fixed by adding
forceSize: 'fullWidth', 👍


v12

Hi!
Can you update this module to v12?
Thank you.

It already supports V12 since 3 weeks ago (1.2.0).
If you're here because of the "new" release on the Foundry discord, I was just updating the latest V11 release, since the V11 release listed there was 1.0.

It already supports V12 since 3 weeks ago (1.2.0).
If you're here because of the "new" release on the Foundry discord, I was just updating the latest V11 release, since the V11 release listed there was 1.0.

Thank you!


libm linking issue (undefined reference to `__errno')

Describe the bug
I am porting to a STM32 F1 (STM32F103CBT6) and got linking issues with asin and sqrt:
[...]/gcc-arm-none-eabi-7-2017-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/libm.a(lib_a-wf_asin.o): In function `asinf':
wf_asin.c:(.text.asinf+0x7c): undefined reference to `__errno'
wf_asin.c:(.text.asinf+0x86): undefined reference to `__errno'
[...]/gcc-arm-none-eabi-7-2017-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/libm.a(lib_a-wf_sqrt.o): In function `sqrtf':
wf_sqrt.c:(.text.sqrtf+0x60): undefined reference to `__errno'
wf_sqrt.c:(.text.sqrtf+0x8c): undefined reference to `__errno'
[...]/gcc-arm-none-eabi-7-2017-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/libm.a(lib_a-math_errf.o): In function `with_errnof':
math_errf.c:(.text.with_errnof+0x6): undefined reference to `__errno'

I can resolve this issue by linking libm (set CONFIG_LIBM).
This in turn, however, introduces issues with the definition of isfinite:
https://github.com/PX4/Firmware/blob/161cf7f5d92abba0b1b862d7aaa0939cb69d42bb/src/platforms/px4_defines.h#L137-L142
since it is using defines and functions from header arch/math.h, which are only available when CONFIG_ARCH_MATH_H is set. In fact, definitions from arch/math.h are used at some other places too, without checking that CONFIG_ARCH_MATH_H is actually set.
I can set CONFIG_LIBM and include arch/math.h manually in px4_defines.h. But this doesn't seem to be right thing to do, since both are not supposed to be used at the same time.
To Reproduce
Unzip naze32.zip to the boards folder and compile via: make naze32_rev6_full_default.
Is CONFIG_ARCH_MATH_H assumed to be always set (instead of CONFIG_LIBM)? If yes, how do I resolve the linking issues? If no, how do I use px4_defines.h without the defines from arch/math.h?

That's good to know. I added -fno-math-errno to FLAGS and they now appear in the verbose log. But I am still getting the __errno linking errors.

There is more to this. PX4 is built with it's on math header. (There is a [REJECTED] commit in the PX4 nuttx)
Have a look at the porting guide and the http://nuttx.org/doku.php?id=documentation:configvars
to gain an understanding of what is a real issue as apposed to mis configuration.
1.14.2 CONFIG_LIBM: Standard Math library
Type: Boolean
Default: n
Dependencies: !CONFIG_ARCH_MATH_H
Kconfig file: ./libs/libc/math/Kconfig
By default, no math library will be provided by NuttX. In this this case, it is assumed that (1) no math library is required, or (2) you will be using the math.h header file and the libm library provided by your toolchain.

This is may be a very good choice is possible because your toolchain may have have a highly optimized version of libm.

Another possibility is that you have a custom, architecture-specific math libary and that the corresponding math.h file resides at arch/<architecture>/include/math.h. The option is selected via ARCH_MATH_H. If ARCH_MATH_H is selected,then the include/nuttx/libmath.h header file will be copied to include/math.h where it can be used by your applications.

If ARCH_MATH_H is not defined, then this option can be selected to build a generic, math library built into NuttX. This math library comes from the Rhombus OS and was written by Nick Johnson. The Rhombus OS math library port was contributed by Darcy Gong.


First Audio Implementation

#13, AB#14, AB#15
Initial Audio Implementation:
-Supports WAV, OGG, MP3
-Implements AudioService to manage all channels, effects, as well as loading/start/stop/pause of music (BGM) and sounds (SFX)

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

As an additional note - you should update the readme as it says audio is coming soon, but with this branch it'll actually exist. 😄

Please fix the commit history (happy to help if needed).
This is reintroducing practically every commit from master (it looks like a bad rebase).

Please fix the commit history (happy to help if needed).
This is reintroducing practically every commit from master (it looks like a bad rebase).

plz halp ;_;
Once I am active again, I'll ping in discord?

Addressed the bugs / nits / cleanup from Tanner's second review, and created issues for outstanding topics. Leaving for Matt to dismiss his requested change and to merge in the AM 👍

Found two things:

Could you modify scripts\build.ps1 and scripts\build.sh. In both, just change install freetype glad glm lua sdl2 sdl2-image to include sdl2-mixer at the end
The sample doesn't work out of the box because the wav files aren't checked in, but they are binary files so we probably don't want to check them in. @RubyNova ?

Good catch, I'll make those changes in a bit. And yeah, I didn't want to check in large binary files (oof .wav filesizes) so I uploaded them to GDrive and posted it in Discord. Let's see what @RubyNova wants to do about that.


Move the definitions for match expressions and branches into the ty module.

This PR is one of several in a process to address https://github.com/FuelLabs/sway/issues/2951. This PR moves the definitions for match expressions and match branches to the ty module. Currently, things are a little awkward organizationally, as the definitions and impl blocks are in different modules, but this is done in (quick) iterations to reduce merge conflicts overall.

Closing in favor of #3024.


Revert extra health and metrics endpoint port

This causes more issues than it brings us anything - since metrics endpoint is secured by oauth anyway.

Codecov Report

Merging #270 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #270   +/-   ##
=======================================
  Coverage   87.73%   87.73%
=======================================
  Files          27       27
  Lines         269      269
  Branches        7        7
=======================================
  Hits          236      236
  Misses         32       32
  Partials        1        1

Flag
Coverage Δ

#webui
87.73% <ø> (ø)
: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 a11059a...ee99683. Read the comment docs.

👍


New dpy

Add slash command support
Added interactive help commands
Using the latest versions of discord.py, wavelink and Lavalink
NOTE: Slash commands work except for music related commands <- This will be fixed in a future update
Made the code stable and better
Dockerized everything. Thank you Rex#3572


Fixed TRT build issue with cuda 11 and some cleanup

https://github.com/open-ce/tensorrt-feedstock/issues/2
Also, did some patch cleanup and renaming of patches.

tensorrt/0202-only-install-onnx2trt.patch - This patch is for one of the submodules of opensource TensorRT code.
tensorrt/0203-Fixed-samples-CMakeLists-for-conda-builds.patch - Fixes the main issue mentioned in https://github.com/open-ce/tensorrt-feedstock/issues/2
tensorrt/add-makefiles-for-new-samples.patch - This is deleted because it used to add Makefiles in two new samples of opensource TensorRT's sample https://github.com/NVIDIA/TensorRT/tree/v7.0.0/samples/opensource/sampleUffFasterRCNN and https://github.com/NVIDIA/TensorRT/tree/v7.0.0/samples/opensource/sampleUffMaskRCNN, which already have CMakeLists.txt.
tensorrt/fix-tensorrt-library-version-string.patch - This patch is deleted as it wasn't being used anywhere.

Yes, I'll raise a PR to fix this upstream.


FIRDatabaseAlreadyInUse error occur

Hello everyone, I am working on Firebase database. My problem is when I signout the user with using following code
let firebaseAuth = FIRAuth.auth()
do
{
    try firebaseAuth?.signOut()
}
catch let signOutError as NSError
{
    print ("Error signing out: %@", signOutError)
}

and after this I again signIN  user then my app crashed with following reason

'FIRDatabaseAlreadyInUse', reason: 'Calls to setPersistenceEnabled must be made before any other usage of FIRDatabase instance

please help

The error you're getting is completely unrelated to the code you've posted. Do you have an auth state change handler somewhere that's changing database persistence?

When I create any user with email after that on completion I using signInWithEmail than also I facing same issue

Calls to setPersistenceEnabled must be made before any other usage of FIRDatabase instance

Can any one guide me how we can clear persistence cache programmatically after signout firebase Auth

Which function do you call setPersistenceEnabled in? It shouldn't be somewhere auth related - e.g. the best place is appDidFinishLoading or similar.

Closing due to inactivity; @vikrant88 if you're still running into this issue please reopen and upload a sample project to help us debug.
Thanks!