Help needed

Does this occur consistently?
Repro steps:

Action: startArmLanguageServer
Error type: Error
Error Message: The path returned for .net core does not exist: c:\Users\user\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.20~x64\dotnet.exe
Version: 0.15.12
OS: win32
OS Release: 10.0.19045
Product: Visual Studio Code
Product Version: 1.91.1
Language: en

Call Stack
extension.bundle.js:16:286704extension.bundle.js:16:286704
fulfilled extension.bundle.js:16:283093

@Souroupl Could you try two things:

make sure that the following setting in vscode is empty

uninstall the Azure ARM Tools extension, uninstall the .NET Install Tool extension, reload vscode, and reinstall Azure ARM Tools extension

Let us know if that works, thanks!


x/exp/slog: does not build with 1.18

What version of Go are you using (go version)?

$ go version
go version go1.18.8 darwin/arm64

Does this issue reproduce with the latest release?
No, it works fine in 1.19
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/simle/Library/Caches/go-build"
GOENV="/Users/simle/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/simle/Development/go/pkg/mod"
GONOPROXY="git.sqcorp.co,git.corp.squareup.com,github.com/squareup"
GONOSUMDB="git.sqcorp.co,git.corp.squareup.com,github.com/squareup"
GOOS="darwin"
GOPATH="/Users/simle/Development/go"
GOPRIVATE="git.sqcorp.co,git.corp.squareup.com,github.com/squareup"
GOPROXY="https://proxy.golang.org,direct"
<EMAIL_ADDRESS>GOSUMDB="sum.golang.org"
GOTMPDIR=""
<EMAIL_ADDRESS>GOVCS=""
GOVERSION="go1.18.8"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dj/8r2z_93n6h79603f18pcf1880000gn/T/go-build3340641431=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
I tried to import and use the package golang.org/x/exp/slog and ran into the issue of atomic.Int64 not being defined for 1.18.
What did you expect to see?
The go.mod file in the exp repo shows that it should work for 1.18.
What did you see instead?
Failure to build.

Since this package is an experimental implementation for something that will be in Go 1.2X, we don't feel that it needs to work on 1.18.
Is there a compelling reason you need it for 1.18?

No worries, wanted to try it out and am currently stuck with 1.18. I was making the assumption that it would work with that version based on the go.mod file and since it was just the one reference to atomic that was preventing it, that it might be worth enabling it by using atomic.Value instead.


[NO MERGE] Force deleting sources/javadoc to fix sbt/sbt#1750

This is an attempt fix sbt/sbt#1750 by forcing the deletion of any sources, src or javadoc present if a POM was updated (ie. new SNAPSHOT release).
But I can't seem to change sbt to use this updated version to finish testing it works.
Can anyone try please?
The last commit is just for debugging my problem with updating, intended to be dropped.

@dwijnand For some reason this test is failing: [junit] Test org.apache.ivy.plugins.circular.WarnCircularDependencyStrategyTest FAILED

Passes locally. I'll restart it (the cheaty way).

Btw, the setup for testing sbt's 1750 is:

Stock Nexus installed with homebrew
sbt-gh1750-bippy, the SNAPSHOT dependency
sbt-gh1750-myapp, the project trying to get updated SNAPSHOT sources
Tweak bippy, and publish to Nexus
Run updateClassifiers in myapp, see if it downloads the sources jar
As a second test, check the contents bippy: unzip -c ~/.ivy2/cache/com.dwijnand/sbt-gh1750-bippy_2.11/srcs/sbt-gh1750-bippy_2.11-0.1.0-SNAPSHOT-sources.jar Bippy.scala

// sbt-gh1750-bippy/build.sbt

organization := "com.dwijnand"
        name := "sbt-gh1750-bippy"
     version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.7"

val localNexusReleases  = "local-nexus-releases"  at "http://localhost:8081/nexus/content/repositories/releases"
val localNexusSnapshots = "local-nexus-snapshots" at "http://localhost:8081/nexus/content/repositories/snapshots"
val localNexusCreds = Credentials("Sonatype Nexus Repository Manager", "localhost", "admin", "admin123")

publishTo := Some(if (isSnapshot.value) localNexusSnapshots else localNexusReleases)
credentials := Seq(localNexusCreds)

// sbt-gh1750-myapp/build.sbt
organization := "com.dwijnand"
        name := "sbt-gh1750-myapp"
     version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.7"

val localNexusReleases  = "local-nexus-releases"  at "http://localhost:8081/nexus/content/repositories/releases"
val localNexusSnapshots = "local-nexus-snapshots" at "http://localhost:8081/nexus/content/repositories/snapshots"

resolvers += localNexusReleases
resolvers += localNexusSnapshots

libraryDependencies += "com.dwijnand" %% "sbt-gh1750-bippy" % "0.1.0-SNAPSHOT"

@eed3si9n Confirmed and help me confirm that I was in fact updating Ivy version.
Confirmation can be found via
> reload plugins
> show externalDependencyClasspath

Remote debugging in IntelliJ was just confused. Along with being confused I might've not refreshed IntelliJ with the build changes.
Proper PR in #17.


How to set Audio from the Kameleo API?

What would be the proper code syntax form to set the Audio for a profile from the Kameleo API?
Also, could your provide some example code?

Here is an example that you can use to set the Audio for a profile through the API:
create_profile_request = BuilderForCreateProfile \
    .for_base_profile(base_profiles[0].id) \
    .set_audio('noise') \ # Options: ('noise', 'block', 'off')
    .build()
profile = client.create_profile(body=create_profile_request)

These answers are provided from the Kameleo Set Audio from API article.


Recursion with Tower of Hanoi

Description
I will create the documentation on the topic Recursion with Tower of Hanoi, where I will explain the concept of recursion with suitable examples, following which I will illustrate the famous Tower of Hanoi problem, and solve it using recursion.
Domain
C/CPP
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign

/assign

/assign

/assign


[Q]: How to validate the wandb build?

Ask your question
I tried to run PyTest but it fails because some remote dependencies like kubenetes are missing.
My issue about this was closed for unclear reason.
The question remains unanswered: how to validate the wandb build?
If it isn't PyTest, then what is it?

The test suite is the best way to validate it, but you'll run into a few issues:

tests/system_tests/ requires running local version of W&B, which is not public and not open source.
The tests can be flaky. We've generally been treating this as an internal problem and not something that affects users, but even if you got the tests to work, you'd have to deal with this.

tests/unit_tests/ should be doable. The issue you've run into is that we don't have fine-grained dependencies: requirements_dev.txt has all dependencies for all tests and repo-specific tooling. I'm not aware of any better way in the Python ecosystem, but I'm open to advice! I suppose we could have separate requirements files for unit_tests and system_tests, but while unit test requirements would generally be small, I don't know if we could guarantee they all work on FreeBSD.
If you're only looking to validate that the build succeeded, and not that any patches are correct, I can point you to some smoke tests.

I'm not aware of any better way in the Python ecosystem, but I'm open to advice!

For example, the "jsonpickle" skips tests based on missing dependencies and still runs other tests. Here is its log fragment:
[gw1] PASSED tests/object_test::py
 tests/object_test.py::Black format check ✓                                                                                87% ████████▋
[gw1] PASSED tests/object_test.py
 tests/pandas_test.py:: ✓                                                                                87% ████████▊
[gw1] PASSED tests/pandas_test.py

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― tests/pandas_test.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[gw1] freebsd14 -- Python 3.11.10 /usr/local/bin/python3.11
7: error: Library stubs not installed for "pandas"  [import-untyped]
8: error: Library stubs not installed for "pandas.testing"  [import-untyped]

 tests/pandas_test.py::tests/pandas_test.py ⨯                                                                                87% ████████▊
[gw1] FAILED tests/pandas_test::py
 tests/jsonpickle_test.py::Black format check ✓                                                                                87% ████████▊
[gw0] PASSED tests/jsonpickle_test.py
 tests/pandas_test.py::Black format check ✓                                                                                88% ████████▊
[gw1] PASSED tests/pandas_test.py
 tests/sklearn_test.py::Black format check ✓                                                                                88% ████████▊
[gw1] PASSED tests/sklearn_test.py

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― tests/sklearn_test.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[gw1] freebsd14 -- Python 3.11.10 /usr/local/bin/python3.11
5: error: Skipping analyzing "sklearn.datasets": module is installed, but missing library stubs or py.typed marker  [import-untyped]
5: error: Skipping analyzing "sklearn": module is installed, but missing library stubs or py.typed marker  [import-untyped]
6: error: Skipping analyzing "sklearn.linear_model": module is installed, but missing library stubs or py.typed marker  [import-untyped]
7: error: Skipping analyzing "sklearn.tree": module is installed, but missing library stubs or py.typed marker  [import-untyped]

 tests/sklearn_test.py::tests/sklearn_test.py ⨯                                                                                88% ████████▊
[gw1] FAILED tests/sklearn_test::py
 tests/sklearn_test.py:: ✓                                                                                88% ████████▉
[gw1] PASSED tests/sklearn_test.py

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― tests/sqlalchemy_test.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[gw1] freebsd14 -- Python 3.11.10 /usr/local/bin/python3.11
10: error: Skipping analyzing "sqlalchemy": module is installed, but missing library stubs or py.typed marker  [import-untyped]
12: error: Skipping analyzing "sqlalchemy.ext": module is installed, but missing library stubs or py.typed marker  [import-untyped]
13: error: Skipping analyzing "sqlalchemy.orm": module is installed, but missing library stubs or py.typed marker  [import-untyped]
27: error: Variable "sqlalchemy_test.Base" is not valid as a type  [valid-type]
27: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
27: error: Invalid base class "Base"  [misc]

 tests/sqlalchemy_test.py::tests/sqlalchemy_test.py ⨯                                                                                88% ████████▉
[gw1] FAILED tests/sqlalchemy_test::py
 tests/sqlalchemy_test.py:: ✓                                                                                89% ████████▉
[gw1] PASSED tests/sqlalchemy_test.py
 tests/numpy_test.py::Black format check ✓                                                                                89% ████████▉
[gw0] PASSED tests/numpy_test.py
 tests/numpy_test.py::tests/numpy_test.py ✓                                                                                89% ████████▉
[gw0] PASSED tests/numpy_test::py
 tests/numpy_test.py:: ✓                                                                                89% ████████▉
[gw0] PASSED tests/numpy_test.py
 tests/object_test.py:: ✓                                                                                90% ████████▉
[gw0] PASSED tests/object_test.py
 tests/sqlalchemy_test.py::Black format check ✓                                                                                90% █████████
[gw1] PASSED tests/sqlalchemy_test.py
 tests/stdlib_test.py::tests/stdlib_test.py ✓                                                                                90% █████████
[gw1] PASSED tests/stdlib_test::py
 tests/stdlib_test.py:: ✓                                                                                90% █████████
[gw1] PASSED tests/stdlib_test.py
 tests/util_test.py::tests/util_test.py ✓                                                                                90% █████████▏
[gw1] PASSED tests/util_test::py
 tests/util_test.py:: ✓                                                                                91% █████████▏
[gw1] PASSED tests/util_test.py
 tests/stdlib_test.py::Black format check ✓                                                                                91% █████████▏
[gw0] PASSED tests/stdlib_test.py
 tests/wizard_test.py::Black format check ✓                                                                                91% █████████▏
[gw1] PASSED tests/wizard_test.py
 tests/wizard_test.py::tests/wizard_test.py ✓                                                                                91% █████████▎

Some other Python projects print SKIPPED in orange letters instead of failing them like above.
PyTest certainly supports suck test exclusion methods.

@yurivict sorry for the delay here.
When we build our package for releases, to validate build we only run a smoke test, see here; https://github.com/wandb/wandb/blob/9db889656a3887888b4674612e0275b15cf0320b/.github/workflows/release-sdk.yml#L355
So i think something like this should be enough:
import wandb

run = wandb.init(settings=wandb.Settings(mode="offline"))
run.finish()

Hi @yurivict is the suggested solution by our engineer helped or do you need further assistance? Thanks!


[GrammariX] ...

Extension
https://www.raycast.com/hakob_nersesian/grammari-x
Description
Just use the Raycast AI api, so pro users can just use it without the necessity for an API Key
Who will benefit from this feature?
Pro users
Anything else?
Maybe if the person DOESN'T have pro, then allow them to input an api key instead

@raycastbot close this issue


PHP syntax only working with php tags

ST3 bulid 3083
windows 7 64bit

Thanks for your good job!

I think that's to be expected. Even though you're only writing examples, you still will have to write valid code for the syntax highlighter to work properly.

Thanks, that's make sense.


Leaves channel as soon as the bot starts to play any music - or will skip the song then leave

Leaves channel as soon as the bot starts to play any music - or will skip the song then leave.
Joins the vc then leaves with the "Finish" event after 1-3 seconds
Here is a certain video in which it is happening with
https://www.youtube.com/watch?v=lTxn2BuqyzU

DisTube version: 3.0 beta
discord.js version: v13.1
Node.js version: v16
Operating system: Windows

What is your version? 3.0.0-beta.?


feat(btreemap): implement proper range scan

This change replaces the range method based on prefixes with a range method based on key range, similarly to the BTreeMap::range from the standard library.
To achieve this, we:

Require map keys to implement Ord.
Store node keys decoded.
Store the key bounds in the map iterator.

I also separated keys and values into separate arrays, because it makes the code a bit cleaner and usually a bit more efficient.

API changes LGTM, thanks for the simplification and the additional clarity.
Looking at our benchmarks, I'm noticing a performance regression of ~10%. I think this is mostly related to the changes in node.rs. For example, now we deserialize every single key in the node, and that introduces overhead. Maybe this is something that we can avoid?
Before:
+ dfx canister call benchmarks btreemap_insert --query
(831_639_971 : nat64)
+ dfx canister call benchmarks btreemap_remove --query
(1_559_704_733 : nat64)

After:
+ dfx canister call benchmarks btreemap_insert --query
(927_805_429 : nat64)
+ dfx canister call benchmarks btreemap_remove --query
(1_716_531_037 : nat64)

Looking at our benchmarks, I'm noticing a performance regression of ~10%. I think this is mostly related to the changes in node.rs.

Good catch!

For example, now we deserialize every single key in the node, and that introduces overhead. Maybe this is something that we can avoid?

I believe decoding keys might be actually faster than storing raw vectors. Especially if the keys are fixed-size, such as arrays or integers.
In this commit
, I use optimization opportunities opened up https://github.com/dfinity/stable-structures/pull/35. I read keys into a pre-allocated buffer and decode from borrowed bytes. The results are quite impressive for a 5-line change:
+ dfx canister call benchmarks btreemap_insert --query
(609_084_581 : nat64)
+ dfx canister call benchmarks btreemap_remove --query
(1_083_249_173 : nat64)

That is indeed impressive. LGTM!


Fixes for embedding training models

Description
This improves the behavior of the fastText embedding models under edge cases. Now KeyError is raised instead of AssertionError when the model does not support imputing an embedding for an unknown word. (This may happen when the model only contains large n-grams such as 5-grams and the unknown word is too short). Further, the end of sentence token was not set correctly before due to a typo.
Checklist
Essentials

[X] Changes are complete (i.e. I finished coding on this PR)
[X] All changes have test coverage
[X] Code is well-documented

Changes

[X] Fix specification of special_tokens={} when loading fastText model from .bin
[X] Raise KeyError instead of AssertionError if FasttextEmbeddingModel can't impute vector for OOV word.

Job PR-254/1 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-254/1/index.html


fix(react): Migrate from React.PropTypes

With React 15.5.0, React.PropTypes are now extracted to a separate package.
They are still accessible via the main React object, but using them will log a deprecation warning to the console when in development mode.

@HiDeoo Thank you for your great pull request and contribution. This is superb form and work.

@HiDeoo this has been released in v1.3.5 🎉
Thank you!


refactor(transformer/class-properties): move logic for handling delete of chain expression into transform_unary_expression

#7656
#7655  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


How to add new sensor configuration ID for vehicles?

Hi @YuqiHuai, I added a new configuation for vehicles in WISE. But I cannot use in the local simulation. I found the ID 6184a957-3630-42b7-974a-d4f6192610d8 is not in the local server: http://localhost/vehicles/2c4aa799-dfd8-4d1a-86de-beff796bd95c (Lexus2016RXHybrid). But I found a lot of other sensor configurations.
I have searched in the assets/plugins, vechiles directories, but cannot find anything related to the sensor configurations.
How do you get these existing sensor configurations? And how to add a new sensor configuation for a vehicle? Are they in MongoDB?
Thank you.

Hi @YuqiHuai, I added a new configuation for vehicles in WISE. But I cannot use in the local simulation. I found the ID 6184a957-3630-42b7-974a-d4f6192610d8 is not in the local server: http://localhost/vehicles/2c4aa799-dfd8-4d1a-86de-beff796bd95c (Lexus2016RXHybrid). But I found a lot of other sensor configurations.
I have searched in the assets/plugins, vechiles directories, but cannot find anything related to the sensor configurations.
How do you get these existing sensor configurations? And how to add a new sensor configuation for a vehicle? Are they in MongoDB?
Thank you.

I guess this version does not have the function. All the sensor configurations are included in the mongo/vehcles.json. I try to edit
the json file with the configuration page https://wise.svlsimulator.com/api/v1/vehicles/73805704-1e46-4eb6-b5f9-ec2244d5951e. But seems that editing the json file won't help solving the problem. I am not familar with the mongo database, maybe you could have a try on this.

@JasonBourne1998 Thanks for your reply. I have tried to download json https://wise.svlsimulator.com/api/v1/vehicles/73805704-1e46-4eb6-b5f9-ec2244d5951e. In mongo/vechiles.json, it has two configuration, one is for vechile, the other is for sensor configurations.
For example, http://localhost/api/v1/vehicles/69c7e117-464f-4621-bc1a-2be28af53681
It has senor configuration part:

This configuation can be downloaded from https://wise.svlsimulator.com/vehicles/profile/69c7e117-464f-4621-bc1a-2be28af53681/edit/configuration/64ab7ce0-6f94-42a4-bd0e-ca1e8569c7f0  as Segement Camera.json
This configuration is just a reference, the actual configuation is at the next data.
They can be downloaded from http://localhost/api/v1/vehicles/64ab7ce0-6f94-42a4-bd0e-ca1e8569c7f0.
The content of this configuation can be get in the  https://wise.svlsimulator.com/vehicles/profile/69c7e117-464f-4621-bc1a-2be28af53681/edit/configuration/b87a56e9-9f56-4279-9521-9601be27c2f1. (in Sensor Details).

The problem is that we can not get the json file WISE, just get the interactive interface.

Here is the sensor configuration in vechiles.json, which can be download from http://localhost/api/v1/vehicles/64ab7ce0-6f94-42a4-bd0e-ca1e8569c7f0, but can not download from https://wise.svlsimulator.com/api/v1/vehicles/64ab7ce0-6f94-42a4-bd0e-ca1e8569c7f0
    "_id": {
      "$oid": "6287d8cf7334ff8da9e50a5d"
    },
    "cid": "64ab7ce0-6f94-42a4-bd0e-ca1e8569c7f0",
    "ctype": "configuration",
    "name": "GWMWeyVV72018:GWMWeyVV72018",
    "endpoint": "/api/v1/vehicles/64ab7ce0-6f94-42a4-bd0e-ca1e8569c7f0",
    "data": {
      "assetGuid": "36715078-e872-450c-8c16-64baa36fed20",
      "isShared": false,
      "isFavored": true,
      "isOwned": false,
      "accessInfo": {
        "userAccessType": "favored",
        "owner": {
          "id": "0d888b00-fa53-47c1-882a-b68391268a11",
          "firstName": "SVL",
          "lastName": "Content"
        }
      },
      "supportedSimulatorVersions": [
        "2021.3",
        "2021.2",
        "2021.2.2",
        "2021.1",
        "2021.1.1"
      ],

I get your point. So I guess the best way is to wait the author @YuqiHuai add our sensor configurations into the local wise. I guess he created these json files manually in some way based on the sensor configuration he collected.

It is not easy to add these json configuration manually. I think it is better to find a way for adding new configurations. Split the big json file into small ones may be a good way.
Let's wait for the author @YuqiHuai 's solution.

Hi guys! Sorry my bad for not checking issues more frequently!
I mentioned at the other issue that Amar from UVA was able to get custom sensor configuration added. I will work with him and get this feature ASAP.

Regarding this comment https://github.com/YuqiHuai/SORA-SVL/issues/8#issuecomment-1166407427
I actually downloaded it from WISE. You need to add a SimId in the header to retrieve that data. If that header is missing WISE will say Not Found.

Regarding this comment https://github.com/YuqiHuai/SORA-SVL/issues/8#issuecomment-1166401182
yes, changing anything on WISE won’t affect the local cloud. The dataset used by local WISE was collected a few weeks ago, you can think of it as a snapshot of WISE few weeks ago.

Hi guys! Sorry my bad for not checking issues more frequently!
I mentioned at the other issue that Amar from UVA was able to get custom sensor configuration added. I will work with him and get this feature ASAP.

Hi Yuqi. Thanks for your reply and glad to hear that this work is in process. I am just curious that my configuration is public but it still be missed.

Maybe it wasn’t public when I was collecting it? I collected things from wise.svl simulator.com/api/v1/vehicles
About 3 weeks ago.

Maybe it wasn’t public when I was collecting it? I collected things from wise.svl simulator.com/api/v1/vehicles About 3 weeks ago.

Thanks for explanning this, so could you please add @umdreamer's asset 6184a957-3630-42b7-974a-d4f6192610d8 in the Lexus2016RXHybrid and my asset 115d0f9c-42f1-4cea-91d1-582e57b74962 in the Lincoln2017MKZ? Or we have to wait for the custom sensor configuration in the future?

Sure! I can try to see if I can access them from WISE. I’m not at my workspace at the moment. I’ll keep you guys updated here!

A quick question! Do you guys have any custom sensors in the config?

A quick question! Do you guys have any custom sensors in the config?

I don't have any custom sensors and I can open the page in my ipad and mobile phone, so I think it could be collected for others.

But it seems that @umdreamer's asset 6184a957-3630-42b7-974a-d4f6192610d8 could not be accessed, maybe he make it private?

Can you download the json file for this? The button is located on the top right of your screenshot.

Yes, I can download it in the webUI

Can you upload that json file here? And what bridge are you using? Is it cyberRT, ROS, or ROS2?

The json file: https://drive.google.com/file/d/1q6duUAH0FHdMu6zo8uwKEOCXqhgT9TUB/view?usp=sharing
Bridge: cyberRT

Great! Thanks!

Thanks！😁

@JasonBourne1998 Hi please take a look at this https://github.com/YuqiHuai/SORA-SVL/blob/master/toolset/config_generator.py
Amar helped building this tool that allows you to add custom sensor config to the database. It won't be displayed on the front end for now but works for the SVL client.

@JasonBourne1998 Hi please take a look at this https://github.com/YuqiHuai/SORA-SVL/blob/master/toolset/config_generator.py
Amar helped building this tool that allows you to add custom sensor config to the database. It won't be displayed on the front end for now but works for the SVL client.

OK, thanks for your work.:)

Hi @JasonBourne1998 ! How was it? Did you manage to add your sensor configuration?
The database isn't persistent each time you restart the entire stack, therefore I haven't added the feature to frontend yet. I used to know how to make data persistent but for some reason, I wasn't able to make it work this time.

Yes, my cofiguration is private. But I did share it last week. I haven't figure out why it cannot be shared. @JasonBourne1998  Do you know how to share the custom configuration? Thanks.
The configation of 80840dc3-c07a-4689-882c-b3f687d8dff8 (custom configuation) is actually the data part of in the vehicles.json. Where it is missing the "ctype: configuration" part.

@YuqiHuai I'll try to use the new ones to test the simulation to see if it works. Tommorrow is the last WISE day, we have to make sure everthing goes well.:)

Hi @JasonBourne1998 ! How was it? Did you manage to add your sensor configuration?
The database isn't persistent each time you restart the entire stack, therefore I haven't added the feature to frontend yet. I used to know how to make data persistent but for some reason, I wasn't able to make it work this time.

I have run it successfully, thanks!
Besides, I have another question about the WEBUI. Do you konw how to get the SVL web' s test report? Since some sensor like stop line sensor didn't build well, it could not get callback on Pythonapi, but could get callback through the test report on WebUI.
Reference issue: https://github.com/lgsvl/simulator/issues/1358

Yes, my cofiguration is private. But I did share it last week. I haven't figure out why it cannot be shared. @JasonBourne1998 Do you know how to share the custom configuration? Thanks. The configation of 80840dc3-c07a-4689-882c-b3f687d8dff8 (custom configuation) is actually the data part of in the vehicles.json. Where it is missing the "ctype: configuration" part.

You could use the toolset/config_generator.py to add your vehicle right now.

@umdreamer Yes, as mentioned above the script will take care of generating appropriate structure, and you just have to provide the sensors array. On WISE there is a download button for vehicle configuration which lets you download the array as a JSON file.
@JasonBourne1998 I did notice a test report endpoint, but I wasn't able to get the client send anything to that end point. I can spend some time trying to figure this out but this will probably not come anytime soon.

@umdreamer Yes, as mentioned above the script will take care of generating appropriate structure, and you just have to provide the sensors array. On WISE there is a download button for vehicle configuration which lets you download the array as a JSON file. I added "cypte:configuration" to distinguish data. For vehicles there are IDs referring to the vehicle (parent of all sensor configurations), then there are IDs individual sensor configurations. Maybe we should clean or restructure the database in the future, but for now it does the job.
@JasonBourne1998 I did notice a test report endpoint, but I wasn't able to get the client send anything to that end point. I can spend some time trying to figure this out but this will probably not come anytime soon. Sorry about that!

Sounds good, thanks for your excellent work:)

I was able to make the database persistent in one of the recent commits and I plan to add this feature over the weekend.

@JasonBourne1998 Hi please take a look at this https://github.com/YuqiHuai/SORA-SVL/blob/master/toolset/config_generator.py
Amar helped building this tool that allows you to add custom sensor config to the database. It won't be displayed on the front end for now but works for the SVL client.

Hi @JasonBourne1998 , how to you manage to get the script work? Did you run from container sorasvl-server or sorasvl-mongo?

OK, I found it.
In windows, just modify the code  to connect to mongodb.
self.client = pymongo.MongoClient('mongodb://localhost:28018')
This can connect mongodb from localhost through port 28018 (which is mapped to 27017 in container).
Then we can run the python file.
Cheers.

Sorry for not responding to this earlier. You figured out things correctly, and I added this change to the script.
The script is intended to run outside of the containers.

@umdreamer Thank you for your contribution. Since your PR has been merged, is it safe to close this issue?

Yes, I close it.


Appstudio update test-component-pac-adhv

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-adhv-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
init

✅ Succeeded
19 seconds
clone-repository

✅ Succeeded
47 seconds
build-container

✅ Succeeded
20 seconds
inspect-image

✅ Succeeded
20 seconds
deprecated-base-image-check

✅ Succeeded
18 seconds
sbom-json-check

✅ Succeeded
19 seconds
clair-scan

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
13 seconds
label-check

✅ Succeeded
8 seconds
show-sbom

✅ Succeeded
8 seconds
show-summary


CI fails on Windows for test_delete_from_hub and test_xgetsize_private

CI fails on Windows for test_delete_from_hub after the merge of:

#6820

This is weird because the CI was green in the PR branch before merging to main.

After investigation, I have found that when a local file is uploaded to the Hub, the new line character is no longer transformed to "\n": on Windows machine now it is kept as "\r\n".
Any idea why this changed?
CC: @lhoestq


Test Harness

Contains complete implementation of test harness
Closes #107 Result logging
Closes #103 Related issue
Closes #61 Skeleton code
Closes #74 Overall

@convict-git @muhammedyaseen-git Ready for review and merge

@muhammedyaseen-git @convict-git Ready for review and merge. Added main method to test harness


Version Alpha 124 & 125 & 126  new table page is not smooth

Version Alpha 124 & 125 & 126  new table page is not smooth.
Version Alpha 122 is smooth.
Intel x64 for MacOS.

What's a new table page?

What's a new table page?


Feature/battery monitoring

Removed dependencies for the external MCP342x library.
Took code from a shady GitHub repo, not tested but might work.
Reformatted everything with "Black"
Removed empirical values for conversion and used values straight from the datasheets and documentation

Done :)


Enforces the correct bucket id from the network (the one used for photos) in order to avoid any trick from any client application sending the wrong bucket id for storing a photo.

LGTM, tested locally - there will be users affected by this if they don't update the app though since old versions doesn't send the networkBucketId and now is required, since the old versions won't send this param, the upload will fail


gha: lint absence of trailing spaces in workflow files

Trailing spaces in workflow files tend to be a pain during backports, as they cause conflicts due to slight divergences across branches, and require manual intervention. Additionally, depending on the editor settings of each developer, they either lead to unnecessary churn in the code-base, or require extra effort to explicitly ignore them.
To prevent these issues, let's introduce a linter that verifies the absence of trailing spaces in all files under .github, and prompts a command to remove them if found.
Example run with failures: https://github.com/cilium/cilium/actions/runs/10005692170/job/27656895161?pr=33908

I've dropped the v1.13 needs-backport label, as v1.13 will be EOL soon, and the workflow doesn't appear to exist there.

/test

@ysksuzuki Gentle ping :pray:


Revert "Replies to outdated code comments should also be outdated"

Reverts go-gitea/gitea#13217, per https://github.com/go-gitea/gitea/pull/13217/files#r518531211 and https://github.com/go-gitea/gitea/pull/13217/files#r518531552

This should not have been reverted. The migration should have been fixed.

It's not quick to fix that PR when I found the problem because of different database pagination SQL. Since the PR is only online for several hours, so I think revert is the quickest method to prevent more people to upgrade to that commit.

migrations with raw SQL just need more :eyes: on review ...


Update GraphiQL storage prop type

The current prop type for storage is:
storage: PropTypes.shape({
      getItem: PropTypes.func,
      setItem: PropTypes.func
    }),

but now GraphiQL also leverage the localStorage.removeItem method as seen in:

https://github.com/graphql/graphiql/blob/master/src/components/GraphiQL.js#L485

So the prop type for storage should read:
storage: PropTypes.shape({
      getItem: PropTypes.func,
      setItem: PropTypes.func,
      removeItem: PropTypes.func
    }),

@tlvenn, is there any particular use case you have in mind for this?
cc: @asiandrummer @wincent @leebyron

Hi @AGS- yes we stumbled on that one because https://github.com/OlegIlyenko/graphiql-workspace is decorating localStorage and providing GraphiQL with an HoC.

https://github.com/OlegIlyenko/graphiql-workspace/blob/master/src/config.js

Oh cool! Awesome project.


Updating and expanding NumPy notebook

Updates to the NumPy notebook for the novice course:

Removes references to Pandas in the introduction as we don't cover this at all (and the preceding text refers to 'three critical libraries' while listing four libraries)
Removes the names and links to web pages for specific authors for the mentioned libraries (Matplotlib, IPython, NumPy) in favour of just linking to their respect project web pages, to reflect that all three projects are now actively developed by teams of contributors.
Rearrange some of the content sections - I have moved the section on array creation routines earlier to allow using np.arange and np.linspace in later sections after they have been introduced and also moved the array data types section earlier to allow making the point that object arrays do not offer the same performance advantages over lists when discussing the speed up of vectorised operations.
Added some notes on the constant array creation routines np.ones, np.zeros, np.full and a cautionary example of the dangers of using np.arange with non-integer arguments.
Added some precautionary notes on the dangers of using NumPy implicit data typing rules when constructing arrays with sequences of objects of mixed types.
Fleshed out the array indexing section to give more explanations of the example commands.
Given a more complete description of the rules for broadcasting arrays and introduced the simpler case of broadcasting with scalars when first used (previously there was no explanation of why multiplying an array by a scalar was valid)
Create a new section on reduction operations to expand on the previous brief note on sum specifically.
Changed the previous section on matrix multiplication using the dot function / method to instead use the @ matrix multiplication operator
Added more links to the official NumPy / Python documentation throughout when introducing new concepts, and added a further reading section with links to some additional resources at the end.

@dpshelio Thanks for the review and suggestions, I think I've now resolved all the comments.


Support for SSE

Hi,
Thanks for building a pure elixir HTTP server. Since the library is 100 % http/2 compliant, wondering if it includes the support for Server Side Events ?
Thanks in advance.

Hi!
SSE are not actually part of the HTTP/2 spec (they're actually a w3c recommendation, not an IETF standard). I think you might be thinking of 'push promises' within the HTTP/2 spec, which we do support (see Plug.Conn.push/3).
If you are in fact looking for SSE, you can get 99% of the way there by sending a chunked response with a specific MIME type (see https://www.w3.org/TR/2012/WD-eventsource-20120426/ for details), but that's as I'm planning on taking SSE support in Bandit; the required interface for SSE is just too different from Plug to make it worth the maintenance burden.
Also, note that WebSocket support is this close to landing in Bandit (see the 0.5 branch for progress). I'm expecting to have end-to-end WebSocket support with Bandit and Phoenix implemented by mid-September 2022. This may be a better answer fro your needs than SSE.

Thanks for the details, very helpful. Yes, looking forward to the WebSocket end-to-end support with Bandit 🙌🏾


Searching in visual block does not permit regular expressions

Steps to reproduce
write foo with f as first character in line.
visually highlight foo
starting in normal mode feed keys
:/%V^f%V
no match found.
Expected behaviour
the first character f should be found. I haven't gotten any regular expressions to work.
If this is a feature how do I turn it off?
The same thing happens in neovim nightly. But if this is a bug it better be fixed in Vim first.
Version of Vim
8.2.2824
Environment
Windows
Windows Terminal
Logs and stack traces
No response

Sorry I forgot to write %. I tested what you wrote and it works. But if you try a different regular expression then no.
For example suppose I am looking for a forward slash '/' in
"foo/bar"
I am guessing it should be /%V/%V this gives no match. Maybe something is wrong with my execution. I am visually highlighting the whole string then executing  /%V/%V.
Incidentally, visual-select-multi plugin does this without issues. At the moment it is my workaround. But it is a big complicated plugin.

Please provide a reproducible example, starting with vim --clean. It works for me using /\%V\/\%V if I have selected the whole line. Note, that if you end your visual selection at the /, then the following \%V won't match anymore, because it asserts a visual selection at the character after your /.

Please provide exact reproduction steps. You talked previously about matching foo/bar now you are talking about // Thanks Am 12.12.2022 um 21:06 schrieb yashamon @.***>:
I just tried again, in vim --clean with that example the matched // will
not be highlighted, and the cursor does not move to the match, but it can
be reached via n operator. Is this what you experience? In that case it is
just a visual indication issue not the search issue.
On Mon, Dec 12, 2022 at 1:30 PM Christian Brabandt @.***>
wrote:

Please provide a reproducible example, starting with vim --clean. It
works for me using /%V/%V if I have selected the whole line. Note,
that if you end your visual selection at the /, then the following %V
won't match anymore, because it asserts a visual selection at the character
after your /.
—
Reply to this email directly, view it on GitHub
https://github.com/vim/vim/issues/11685#issuecomment-1347172282, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQGIZTLDJI2QHTRVUT62KLWM54NHANCNFSM6AAAAAASZZ3WXA
.
You are receiving this because you authored the thread.Message ID:
@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

I edited my comment. I am searching for  the character '/' in the visually selected string "foo/bar".

Oh sorry, I forgot to set hls after vim --clean.
This fixes one problem. However, the cursor still does not move to the
match. Instead it appears to move to the start of visual selection. The n
operator works however.
On Mon, Dec 12, 2022 at 3:14 PM Christian Brabandt @.***>
wrote:

Sorry, I am lost. So let's use and example and please try the following:
vim --clean -c 'set hls' -c 'call append("$", ["foo/bar", ""])' -c ':exe ":norm! 2V<esc>"' -c 'exe ":norm! /\%V\/.*\%V<cr>"'
That highlights the / and everything after it. Now please do the same and
show what exactly does not work.
Thanks,
Chris
—
Reply to this email directly, view it on GitHub
https://github.com/vim/vim/issues/11685#issuecomment-1347337774, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQGIZSO2SUEHEOJ73BP2N3WM6ISLANCNFSM6AAAAAASZZ3WXA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I cannot reproduce. From my command given above, the cursor is moved exactly to the beginning of the match after the / command. So please give reproducible examples what is not working.

I am closing this as un-reproducible.

I don't know how to reproduce via a direct command -c.
But have you tried it after opening vim? Visually select a line containing
f search for  'f'  using :/\%Vf\%V the cursor does not jump to f.
On Thu, Dec 15, 2022 at 6:35 AM Christian Brabandt @.***>
wrote:

I am closing this as un-reproducible.
—
Reply to this email directly, view it on GitHub
https://github.com/vim/vim/issues/11685#issuecomment-1352997397, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQGIZUDT4OEUNKYPVFQXKDWNMGBVANCNFSM6AAAAAASZZ3WXA
.
You are receiving this because you authored the thread.Message ID:
@.***>

:/\\%Vf\\%V the cursor does not jump to f.
You are using an ex-command here. That will place you on a line that matches, with the cursor on the first column. This is not the same as using the normal mode command /.
I suggest, if you have usage questions, please check out the vim_use mailing list or head over to vi.stackexchange.com

You are right, I was using the ex command only because it can be auto
completed. I had no idea the ex version of the command would behave
differently. (And why?)
On Thu, Dec 15, 2022 at 8:38 AM yasha savelyev @.***>
wrote:

I don't know how to reproduce via a direct command -c.
But have you tried it after opening vim? Visually select a line containing
f search for  'f'  using :/\%Vf\%V the cursor does not jump to f.
On Thu, Dec 15, 2022 at 6:35 AM Christian Brabandt <
@.***> wrote:

I am closing this as un-reproducible.
—
Reply to this email directly, view it on GitHub
https://github.com/vim/vim/issues/11685#issuecomment-1352997397, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQGIZUDT4OEUNKYPVFQXKDWNMGBVANCNFSM6AAAAAASZZ3WXA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I wasn't asking for additional support, I just said I was surprised about
the difference in functionality. Since ex commands can be auto-completed it
makes sense that any normal mode command sequence should have an exact ex
counterpart. (I guess it can be achieved with additional flags. But I don't
want to research now, since plugins  do what I need.)
Thank you for help!
On Fri, Dec 16, 2022 at 2:14 AM Christian Brabandt @.***>
wrote:

You are right, I was using the ex command only because it can be auto
completed. I had no idea the ex version of the command would behave
differently. (And why?)
One more time: There is a difference between the normal search command (/)
and your used ex (range) command. That is basically
a way to specify on which lines to operate. Ex commands are always
line-wise. So you can do things like:
:/searchpattern/,$d
to delete everything from the first line (after your cursor position)
matching your search-pattern until the end of the file.
That's how basic vi and ex and ed and sed also works. So this is to be
expected by a vi compatible editor.
Please, if you have questions on how certain things work, please ask your
questions on the mentioned communities. This is a bug tracker here. We
cannot provide individual support here.
Thanks.
—
Reply to this email directly, view it on GitHub
https://github.com/vim/vim/issues/11685#issuecomment-1354364694, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQGIZQKZECNUIQ7LGJE4TLWNQQFNANCNFSM6AAAAAASZZ3WXA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Simplify GPX Track before calculating Route

From @TimMcCauley on June 29, 2016 13:49
Copied from original issue: GIScience/openrouteservice#323

douglas peucker?

From @HendrikLeuschner on June 29, 2016 17:59
Take a look at js/modules/Restrictions.js at line 149
It uses douglas-peucker for that exact purpose and has a neat little implementation.


Grid layout question

I have custom DSKit components implemented, in this example 2 components: DSEventVM and DSAddEventVM.
I've added them to the screen as a grid with 2 columns. In this example I have 3 DSEventVM items and 1 DSAddEventVM item. They have different heights.
The result is:

Can I achieve that the smaller grid item in a row is somehow forced to adjust its size to the bigger one? This way, items in a row would have the same size and the layout would look better.
I would like to achieve a layout like this (photosopped image):

@imodeveloper what do you think? Is there a way to do that with DSKit?

@merzal can you share you're ViewModels I want to see how are they implemented, theoretically if you will use estimated size, the each horizontal line should adapt and use the biggest height on the line and update the views to have same height.

In theory I use estimated heights in both cases.
Here are my viewmodels:
DSEventVM
struct DSEventVM: DSViewModel, Equatable, Hashable {
    var name: String?
    var subString: String?
    var isInfoButtonVisible = true
    var isSelected = false

    var textComposer: DSTextComposer?

    var style = DSViewModelStyle()

    var supplementaryItems: [DSSupplementaryView]?

    var bottomSideView: DSSideView?
    var leftSideView: DSSideView?
    var rightSideView: DSSideView?
    var topSideView: DSSideView?

    var type: DSEventVMType = .default

    init(name: String?, subString: String?, isInfoButtonVisible: Bool = true, isSelected: Bool = false) {
        self.name = name
        self.subString = subString

        let composer = DSTextComposer(alignment: .left)

        if let name {
            composer.add(type: .text(font: .custom(UIFont.customFont(family: .sans(.semibold, 16))), color: .body), text: name, spacing: 8, newLine: false)
        }

        if let subString {
            composer.add(type: .text(font: .custom(UIFont.customFont(family: .sans(.regular, 13))), color: .subheadline), text: subString)
        }

        textComposer = composer

        self.isInfoButtonVisible = isInfoButtonVisible
        self.isSelected = isSelected
    }

    var identifier = "DSEventVM"

    var accessibilityIdentifier = "DSEventVM"

    @NonEquatable var didTap: ((DSViewModel) -> Void)?
    @NonEquatable var buttonDidTap: ((DSViewModel) -> Void)?
    @NonEquatable var object: AnyObject?
}

enum DSEventVMType {
    case `default`
}

extension DSEventVM {
    func width(_ layoutEnvironment: NSCollectionLayoutEnvironment?, section: DSSection) -> DSViewModelWidth {
        return .fractional(1.0)
    }

    func height(_ layoutEnvironment: NSCollectionLayoutEnvironment?, section: DSSection) -> DSViewModelHeight {
        return textComposer != nil ? textComposer!.estimatedHeight(section: section, layoutEnvironment) : .estimated(50)
    }

    func viewRepresentation() -> DSReusableUIView {
        return DSEventUIView.instanceFromNib()
    }

    func reuseIdentifier() -> String {
        var id = name ?? ""
        id += subString ?? ""

        return "DSEventVM" + id
    }

    func isEqual(to model: DSViewModel) -> Bool {
        guard let model = model as? Self else { return false }
        return self == model
    }
}

DSAddEventVM
struct DSAddEventVM: DSViewModel, Equatable, Hashable {
    var style = DSViewModelStyle()

    var supplementaryItems: [DSSupplementaryView]?

    var bottomSideView: DSSideView?
    var leftSideView: DSSideView?
    var rightSideView: DSSideView?
    var topSideView: DSSideView?

    var type: DSAddEventVMType = .default

    var identifier = "DSAddEventVM"

    var accessibilityIdentifier = "DSAddEventVM"

    @NonEquatable var didTap: ((DSViewModel) -> Void)?
    @NonEquatable var object: AnyObject?
}

enum DSAddEventVMType {
    case `default`
}

extension DSAddEventVM {
    func width(_ layoutEnvironment: NSCollectionLayoutEnvironment?, section: DSSection) -> DSViewModelWidth {
        return .fractional(1.0)
    }

    func height(_ layoutEnvironment: NSCollectionLayoutEnvironment?, section: DSSection) -> DSViewModelHeight {
        return .estimated(50)
    }

    func viewRepresentation() -> DSReusableUIView {
        return DSAddEventUIView.instanceFromNib()
    }

    func reuseIdentifier() -> String {
        return "DSAddEventVM"
    }

    func isEqual(to model: DSViewModel) -> Bool {
        guard let model = model as? Self else { return false }
        return self == model
    }
}


"parent is not a function" when requesting page endpoint

Describe the bug
Requesting a /+page.server.ts load endpoint to do a GET request works, but fails if an await for parent data is added to it.
Reproduction
Add /+layout.server.ts:
import type { LayoutServerLoad } from "./$types";

export const load: LayoutServerLoad = async ({ }) => {
  return {
    site: 'My Site'
  }
}

Add /+page.server.ts:
import type { PageServerLoad } from "./$types";

export const load: PageServerLoad = async ({ parent }) => {
  const site = await parent()

  return {
    ...site,
    name: 'test'
  }
}

Request page with accept: application/json http header.
Logs
parent is not a function
TypeError: parent is not a function
    at load (/Users/simon/dev/temp/sk-411/src/routes/+page.server.ts:5:21)
    at handle_json_request (file:///Users/simon/dev/temp/sk-411/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.411_svelte@3.49.0+vite@3.0.8/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:357:32)
    at render_page (file:///Users/simon/dev/temp/sk-411/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.411_svelte@3.49.0+vite@3.0.8/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:42:11)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async resolve (file:///Users/simon/dev/temp/sk-411/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.411_svelte@3.49.0+vite@3.0.8/node_modules/@sveltejs/kit/src/runtime/server/index.js:308:11)
    at async respond (file:///Users/simon/dev/temp/sk-411/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.411_svelte@3.49.0+vite@3.0.8/node_modules/@sveltejs/kit/src/runtime/server/index.js:202:20)
    at async file:///Users/simon/dev/temp/sk-411/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.411_svelte@3.49.0+vite@3.0.8/node_modules/@sveltejs/kit/src/vite/dev/index.js:396:22

System Info
System:
    OS: macOS 12.5
    CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
    Memory: 951.54 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.14.0 - /usr/local/bin/node
    npm: 8.3.1 - /usr/local/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 104.0.5112.79
    Chrome Canary: 106.0.5243.0
    Firefox: 103.0.2
    Safari: 15.6
    Safari Technology Preview: 16.0
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.64
    @sveltejs/kit: next => 1.0.0-next.411
    svelte: ^3.44.0 => 3.49.0
    vite: ^3.0.0 => 3.0.8

Severity
blocking an upgrade
Additional Information
No response

I've been struggling with this, thanks for this one. I think I am experiencing the same right now.

What's the use case for making an accept: application/json request to a page? The code is there for historical reasons, but now that I think about it it's a bit of a strange thing to have. You can't (for example) request JSON from a +layout.server.js, so why load in +page.server.js should get this treatment eludes me. My inclination is to remove it.
At the very least the current behaviour would conflict with #5896.

I'm only using load in+page.server.js because it's now the only way to support the URLs that I need to. I'd prefer to be able to use the endpoint + page combination as before.
I need to be able to decide what routes and methods my app responds to and how. If a router isn't capable of supporting that then IMO it isn't really a true router anymore.

I guess what I'm after is the ability to use the router at the lowest level. I think all the other stuff should be extras built on top of that, but should be extras, not replacements. It should still be possible to have a plain burger without the magical, erm, sprinkles on top.
I appreciate some people will love all the extra form handling stuff, but I'd prefer to use ye-olde GET and POST directly myself if I want to.
I'm probably mixing up a few requests, but they are all inter-related (the server endpoint co-existence and the form actions).

RIght, but that's all covered by #5896, no?

What's the use case for making an accept: application/json request to a page?

@Rich-Harris You don't need two endpoint files for the same thing, my use case (posted this in the wrong issue before):

I have bigger content properties but send only smaller, requested chunks via REST
With the initial pageload the user gets the first part w/o a ded. api request
Then, within the client the user can request further parts without the need to reload the page. Both use the exact same API and DB call

With the new routing, I need now two files that do the same.

My inclination is to remove it.

This broke my app. No chance to get this feature back?

@Rich-Harris any reason not to let +page.server.ts handle pure json requests, again?

True! This is what I do as a work-around now with +server.ts in a ded. API folder tree. If +page.server.ts handled pure json, I need one file only, +page.server.ts (1), not +server.ts (2) and have response types preserved without the need to declare types in (1) and redeclare them in (2) though.

Don't want to annoy you guys but I still don't see any reason not to let +page.server.ts handle pure json requests, again and why this was disabled.


Add test data generation

See #27 .
We would like to generate the data automatically.
Examples of this are also available in https://github.com/kuleuven-micas/snax-mlir

@rgantonio have a look here:
https://github.com/KULeuven-MICAS/snax-mlir/blob/main/kernels/simple_mult/gendata.py

@JosseVanDelm yup I saw! Will add one later!

Closing since we now have #33 and #36


chore: unify manifest.yml

remove author and avatar, add license

@cristianmtr @tadejsv Please take a look if you have time. Thanks!


Provide way to specify size to border

Currently we have border, border-primary, border-success etc all of them seem to only have a 1 pixel thick border with no ability to make the border thicker/wider. The border with 1 pixel gets lost when you have padding, margins or shadow.
Would it be possible to add a border-size attribute?
We can either have

pixel count specified like border-1, border-2, border-3 (a finite list of choices) OR
named sizes like we have in shadow  such as border-none border border-sm, border-lg

Hi @subrayamallya
Having a border-size attribute will be awesome and very handy.
But the actual problem with such design attributes is border-1, border-2 .. will be very distinct and the developer will not be able to use intermediate width for the border element.
border-width:3px

Hi @subrayamallya
Having a border-size attribute will be awesome and very handy.
But the actual problem with such design attributes is border-1, border-2 .. will be very distinct and the developer will not be able to use intermediate width for the border element.
border-width:3px

Fair enough. I was relying on the smart guys in Bootstrap team to make a better call on this than my rudimentary suggestion :-)

Having a Sass map that provides a few utilities to scale the border quickly could be nice. Suggestions on values to support?

Any chance I can contribute to this? I have an idea.
We can have a mixin on utilities, so it's available to all developers:
@mixin make-border-width($width: 1) {
    border-width: $width;
}

With the mixin we can define some default border classes:
border-1
make-border-width: 1px
border-2
make-border-width: 2px
border-3
make-border-width: 4px
border-4
make-border-width: 6px
border-5
make-border-width: 8px

Can we do something similar to what you have done for $display-font-sizes and have the map $border-width-sizes
$border-width-sizes: (
1: 1rem,
2: 1.5rem,
3: 2rem,
4: 2.5rem,
5: 3rem,
6: 3.5rem
);
You can even have the size in reverse order if you want to keep the order consistent with $display-font-sizes

I can do a border-width utility
For example
.border-width-1 {
   border-width: 1px;
}

.border-width-2 {
   border-width: 2px;
}

.border-width-3 {
   border-width: 3px;
}

...


Added option to support stf repo and branch

Changed the corresponding files by adding environment variables is env.STF_REPO and env.STF_BRANCH.
Addressing issue: #109

@smlambert can you review and approve please. TIA

This was approved but never merged (and now the branch contains conflicts that need to be resolved).
@SehrishHussain - is it possible for you to resolve the conflicts?
if resolved then @sophia-guo can you re-review and merge?  if not resolved in the next couple of weeks, let's close it as stale


Hourly & Daily Stats Issue

Hi there.
I recently installed this plugin on my Flamecord Server.
Upon setting up the dashboard I noticed that hourly and daily statistic boards aren't showing the correct data.

Could this be to-do with the events being different on Flamecord?

what is the expected data?
the stats in the picture mean you don't have player logins and therefore this is no disconnects.

what is the expected data?
the stats in the picture mean you don't have player logins and therefore this is no disconnects.

Apologies for the late reply.
Shouldn't the List Pings and Connects be different?

public class ClientConnectEvent
extends Event
implements Cancellable
Event called to represent an initial client connection.
Note: This event is called at an early stage of every connection, handling should be fast.

Server List Ping -> Client Connect-> Pre-logins -> Mojang Authentication -> Post-logins -> Disconnects

I should probably rename them to avoid any confusion.

updated the stats


Error in web app - Interact

Description
Access "Interact", choose "Chains", choose agent, in "Choose a Chain to Run" select "Smart instruct", in "User input" write something.
When press "Perform action" the error is thrown
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "/home/mihai/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/home/mihai/AGiXT/streamlit/pages/3-Interact.py", line 144, in <module>
    ApiClient.run_chain(chain_name=chain_name, user_input=user_input)
File "/home/mihai/AGiXT/streamlit/ApiClient.py", line 204, in run_chain
    return response.json()
File "/home/mihai/.local/lib/python3.10/site-packages/requests/models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)

Steps to Reproduce the Bug

Access "Interact"
choose "Chains"
choose agent
"Choose a Chain to Run" select "Smart instruct"
in "User input" write something.
Press "Perform action"

Expected Behavior
run w/o error
Operating System

[X] Linux
[ ] Microsoft Windows
[ ] Apple MacOS
[ ] Android
[ ] iOS
[ ] Other

Python Version

[ ] Python <= 3.9
[X] Python 3.10
[ ] Python 3.11

Environment Type - Connection

[X] Local - You run AGiXT in your home network
[ ] Remote - You access AGiXT through the internet

Runtime environment

[ ] Using docker compose
[ ] Using poetry
[X] Custom setup (please describe above!)

Acknowledgements

[X] I have searched the existing issues to make sure this bug has not been reported yet.
[X] I am using the latest version of AGiXT.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

I've deleted local folder AGiXT and did a clean clone, and now it's working.
Don't know what happened, maybe streamlit directory didn't got refreshed?

What is the back end console showing when this happens?

You may also need to go change the agent in that chain if the issue is related to gpt4free timing out.


Helm chart doesn't deploy auth secret when deploying console to non-LOCAL environment

Based on this support-eng thread: https://pachyderm.slack.com/archives/CSELV66P5/p1631276402024100
When deploying Pachyderm to non-LOCAL backend, console failed to come up and emitted this error (full logs in slack):
{"operationName":"authConfig","errors":[{"message":"TypeError: Cannot read property 'includes' of null","locations":[{"line":2,"column":3}],"path":["authConfig"],"extensions":{}}]},"msg":"did encounter errors","time":"XXX","v":0}

IIUC, the issue is that Console auth isn't configured correctly on startup, e.g. IDProvider and such isn't set, and it doesn't know how to authenticate users.
AB#135

Fixed by https://github.com/pachyderm/pachyderm/pull/6833, I believe


where clause on specific labels fail

Maybe #9555 is related, but this time it happens with a tag, not a value.
Connected to http://localhost:8086 version 1.5.3
InfluxDB shell version: 1.5.3
> create database testdb
> use testdb
Using database testdb
> INSERT treasures,captain_id=pirate_king value=2
> INSERT treasures,captain_id=pirate_queen value=2
> INSERT treasures,__name__=pirate_queen value=2
> INSERT treasures,__name__=pirate_king value=2
> show series;
key
---
treasures,__name__=pirate_king
treasures,__name__=pirate_queen
treasures,captain_id=pirate_king
treasures,captain_id=pirate_queen
> show tag values with key = "captain_id" where "captain_id" =~ /queen/
name: treasures
key        value
---        -----
captain_id pirate_queen
> show tag values with key = "__name__" where "__name__" =~ /queen/
name: treasures
key      value
---      -----
__name__ pirate_king
__name__ pirate_queen
>

Ok, I guess this is duplicate of #9522


added cleaner to prevent null values from being output

Fixes #80

Pull Request Test Coverage Report for Build 390

16 of 18 (88.89%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 39.494%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/plugins/api/marshalling.go
16
18
88.89%

Totals

Change from base Build 382:
0.3%

Covered Lines:
624

Relevant Lines:
1580

💛  - Coveralls


Net::SSH::AuthenticationFailed: Authentication failed for user user@<server_name>

I'm getting following error, while deploy in the production server,
$ cap production rvm:check
SSHKit::Runner::ExecuteError: Exception while executing as user@<server_name>: Authentication  failed for user user@<server_name> Net::SSH::AuthenticationFailed: Authentication failed for user user@<server_name>
Here is my code in config/deploy/production.rb:
role :app, %w{<server_name>}
  server '<server_name>',      user: 'user',      roles: %w{app},    ssh_options: {      verbose: :debug,      proxy: Net::SSH::Proxy::Command.new('ssh user@mygateway -W %h:%p')    }
I can't able to access the production server

Not an issue, please see the mailing list for support.


out of memory

Hi,
I had an AWS lightsail ubuntu (512MB memory). It used to work fine. Then I started to get "out of memory" and the terminal hung.
I created a new instance, and also in this one I get out of memory.
I made this script:
#!/bin/sh

run_keybase

while true ; do
  date
  ls /keybase/private/mortenkjarulff
  keybase log send --no-confirm
  sleep 60
done

And let it ran for about 10 minutes.
Output attached. There is a log id.
t.log
Hope you can see something.
/Morten

@mortenkjarulff do you know what process was taking up all the memory?
Logs:
6234bc9fd99a46929f6e6c1c
748e30c5d880008a64b21d1c
8b682139cc04fb63470ce61c
f0b7603bd426938531f4821c
b4d1831e5b166ba8c69e6e1c
4b04c4f08285147e2c9bd51c
fb7e87c2e1e7e295a490351c

Not sure how I can find out? Last time I tried, top hung.

In your loop, you can run something like ps aux --sort -rss to print the sorted mem usage of all processes periodically.

Maybe all check your system logs to see if the out-of-memory killer is targeting anything in particular?

Each time I try to recreate, it works fine. When I think everything is ok, it suddenly hang.
:(


upgrade soroban-client dep (#687)

Preview is available here:http://laboratory-pr688.previews.kube001.services.stellar-ops.com/


[stable/sentry] Fresh install results in an Index error

Describe the bug
This is how I installed Sentry:
helm install securityContext.enabled=true,securityContext.runAsUser=0,securityContext.fsGroup=2000 --timeout=3600 stable/sentry

There are various issues. Without the securityContext params the Redis pods would keep failing. With these params the Redis pods work.
Second issue is that the db-init job keeps running into timeout issues. It's recreated automatically and keeps going from where it left off. So I guess that's ok.
Third issue is that when I open the website I get the following error:

kubectl logs ...-sentry-worker-...

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/base.py", line 225, in dispatch
    return self.handle(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/db/transaction.py", line 371, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/auth_login.py", line 193, in handle
    return super(AuthLoginView, self).handle(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/base.py", line 238, in handle
    return super(BaseView, self).dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/auth_login.py", line 211, in get
    org = Organization.get_default()
  File "/usr/local/lib/python2.7/site-packages/sentry/models/organization.py", line 164, in get_default
    )[0]
  File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 132, in __getitem__
    return list(qs)[0]
IndexError: list index out of range
13:36:56 [ERROR] django.request: Internal Server Error: /auth/login/ (request_id=u'...' status_code=500 request=<WSGIRequest: GET u'/auth/login/'>)

This issue was already reported on https://github.com/getsentry/onpremise/issues/200 but they told me to report it here.
Version of Helm and Kubernetes:
kubectl version

Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T18:55:03Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}

helm version

Client: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}

Thanks!

Hi @iluuu1994,
I've come accross the same issue as you. For me this happened because something went wrong in the post-install hook that runs sentry upgrade --noinput, and the database ended up being corrupted.
I use an external postgres database and the db user did not have enough rights to install the citext postgres extension. After installing the extension manually in the db, wiping the database and rerunning sentry upgrade --noinput the problem was resolved for me an I was able to proceed.

Hi @Timost!
Thanks for your response! It seems the citext was already created in my case but I think it's very likely the database is corrupt in some other way. Running sentry upgrade --noinput lreads to the following output:

10:18:18 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
10:18:27 [INFO] sentry.plugins.github: apps-not-configured
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Migrating...
Killed

That's probably not normal, right?

Indeed that doesn't look normal. I've lost the output of the command when my the db was corrupted, but what you pasted does ring a bell. in my case deleting all the tables in the db and rerunning the sentry upgrade --noinput solved the issue.

Tried your suggestion and recreated the entire database. Unfortunately, the output is almost the same:

11:11:34 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
11:11:43 [INFO] sentry.plugins.github: apps-not-configured
Syncing...
Creating tables ...
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table south_migrationhistory
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Migrating...
Killed

Hum and you don't get any stacktrace or anything ? On which pod do you run the upgrade command ?

This was the solution. This is most likely a Sentry issue and not something in the chart. Anyways, thanks @Timost!

I'd guess this is most likely an OOM-kill of the migration process as it needs ~3GB of RAM. @okgolove any way tho check the RAM available for that process during setup to avoid this?

@BYK
We can create an environment variable which references to limit memory spec.

@okgolove sounds good to me. I use this script: https://github.com/getsentry/onpremise/blob/master/install.sh#L6 which has the minimum RAM as a variable.
I think, for now, we can set it independently but in the future, it'd be great if there was a way to keep these in sync.

@BYK you want me to add something like this to the entrypoint?
https://github.com/getsentry/onpremise/blob/master/install.sh#L40-L43

@okgolove - if there's an elegant way, that would be nice (at least a warning). I don't really know how Helm works tho so I trust whatever you think is best.

@BYK I'd suggest do the next two things:

add a default request/limit 3gb for sentry-web
add to [helm notes] https://github.com/helm/helm/blob/master/docs/chart_template_guide/notes_files.md) the warning if request/limit is lower than 3gb (was setup up manually, for example).

I've tried installing Sentry with the following values:
web:
  resources:
    limits:
      memory: 3000Mi
cron:
  resources:
    limits:
      memory: 3000Mi
worker:
  resources:
    limits:
      memory: 3000Mi
securityContext:
  enabled: true
  runAsUser: 0
  fsGroup: 2000

This was likely overkill but I just wanted to make sure it doesn't crash for the same reason again. Unfortunately, the db-init still kept crashing but for a different reason:
First one:
Traceback (most recent call last):
  File "/usr/local/bin/sentry", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/__init__.py", line 162, in main
    cli(prog_name=get_prog(), obj={}, max_content_width=100)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/decorators.py", line 35, in inner
    configure()
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/__init__.py", line 125, in configure
    configure(ctx, py, yaml, skip_service_validation)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/settings.py", line 156, in configure
    skip_service_validation=skip_service_validation
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/initializer.py", line 329, in initialize_app
    setup_services(validate=not skip_service_validation)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/initializer.py", line 352, in setup_services
    service.validate()
  File "/usr/local/lib/python2.7/site-packages/sentry/utils/services.py", line 91, in <lambda>
    context[key] = (lambda f: lambda *a, **k: getattr(self, f)(*a, **k))(key)
  File "/usr/local/lib/python2.7/site-packages/sentry/buffer/redis.py", line 73, in validate
    raise InvalidConfiguration(six.text_type(e))
sentry.exceptions.InvalidConfiguration: Error 110 connecting to sentry-redis-master:6379. Connection timed out.

Second one:
 > sentry:0421_auto__del_field_identityprovider_organization_id__del_unique_identityp
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/sentry/utils/metrics.py", line 67, in worker
    tsdb.incr(tsdb.models.internal, full_key, count=amount)
  File "/usr/local/lib/python2.7/site-packages/sentry/utils/services.py", line 91, in <lambda>
    context[key] = (lambda f: lambda *a, **k: getattr(self, f)(*a, **k))(key)
  File "/usr/local/lib/python2.7/site-packages/sentry/tsdb/redis.py", line 214, in incr
    self.incr_multi([(model, key)], timestamp, count, environment_id)
  File "/usr/local/lib/python2.7/site-packages/sentry/tsdb/redis.py", line 242, in incr_multi
    self.calculate_expiry(rollup, max_values, timestamp),
  File "/usr/local/lib/python2.7/site-packages/rb/clients.py", line 625, in __exit__
    self.mapping_client.join(timeout=timeout)
  File "/usr/local/lib/python2.7/site-packages/rb/clients.py", line 413, in join
    command_buffer.wait_for_responses(self)
  File "/usr/local/lib/python2.7/site-packages/rb/clients.py", line 226, in wait_for_responses
    self.connection, command_name, **options)
  File "/usr/local/lib/python2.7/site-packages/redis/client.py", line 585, in parse_response
    response = connection.read_response()
  File "/usr/local/lib/python2.7/site-packages/redis/connection.py", line 577, in read_response
    response = self._parser.read_response()
  File "/usr/local/lib/python2.7/site-packages/redis/connection.py", line 357, in read_response
    (e.args,))
ConnectionError: Error while reading from socket: (104, 'Connection reset by peer')
02:31:33 [ERROR] sentry.errors: Unable to incr internal metric

Third one:
 > sentry:0337_fix_out_of_order_migrations
    cli(prog_name=get_prog(), obj={}, max_content_width=100)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/decorators.py", line 36, in inner
    return ctx.invoke(f, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 75, in upgrade
    _upgrade(not noinput, traceback, verbosity, not no_repair)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 30, in _upgrade
    ignore_ghost_migrations=True,
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 159, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/usr/local/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 125, in handle_noargs
    management.call_command('south_migrate', **options)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 159, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/site-packages/south/management/commands/south_migrate.py", line 105, in handle
    ignore_ghosts=ignore_ghosts,
  File "/usr/local/lib/python2.7/site-packages/south/migration/__init__.py", line 231, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 291, in migrate_many
    result = self.migrate(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 132, in migrate
    result = self.run(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 241, in run
    return super(Forwards, self).run(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 114, in run
    return self.run_migration(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 83, in run_migration
    south.db.db.start_transaction()
  File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 1023, in start_transaction
    transaction.enter_transaction_management(using=self.db_alias)
  File "/usr/local/lib/python2.7/site-packages/django/db/transaction.py", line 70, in enter_transaction_management
    get_connection(using).enter_transaction_management(managed, forced)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 296, in enter_transaction_management
    self.set_autocommit(not managed)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 340, in set_autocommit
    self._set_autocommit(autocommit)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 158, in _set_autocommit
    self.connection.set_isolation_level(level)
  File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 152, in _set_autocommit
    self.connection.autocommit = autocommit
django.db.utils.OperationalError: server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request.

It does eventually complete but Sentry still displays it as PENDING_INSTALL. The projects have not been created so this workaround is still necessary.

@iluuu1994 I'm pretty sure you should've set up a resource section for a hook job.
https://github.com/helm/charts/blob/master/stable/sentry/templates/hooks/db-init.job.yaml

@okgolove Ok I see. I can try that. But the errors don't seem to be related to the memory limit.

@iluuu1994 - the first two ones look like Redis connection/availability issues. The last one seems like a DB crash so maybe the system was starved of I/O or CPU?

@BYK It's a completely new Kubernetes cluster hosted on DigitalOcean with two nodes, 4GB of RAM and 2 vCPUs per node. The only things installed are Helm and Ingress. It's not a lot but it should definitely be enough to run one application.

@iluuu1994 yeah, that looks like more than enough. That said the initial migration can be intense (we're working on making it better). Anyway, just wanted to point out the Redis issue, not sure about the root cause.


Add md-clearable to md-input-container

Using type="search" presents you with a generic clear button. This adds a button (like "md-has-password") which when clicked, clears the input.

Hi @d3radicated
Thank you so much for this PR.
Can you post an screenshot of this change?
Also, it's missing an example on Input.vue. Can you add please?

Here's a preview of the component.
Image
Regarding this change: this.$emit('input', this.input.value); It doesn't fire the 'input' event. That's why I used dispatchEvent to fire the event.


AAD example should use common endpoint

Under section 'Exploring the APIs with Postman and AAD authentication' it says:
for example, call GET https://api.businesscentral.dynamics.com/v1.0/<your tenant domain>/api/beta
It would make more sense if the example was the common endpoint (without tenant):
GET https://api.businesscentral.dynamics.com/v1.0/api/beta

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

ID: e026c87e-6bbe-9e7c-5ecc-e6f2943e2655
Version Independent ID: 81cb7f00-6d48-4d29-b47c-b9bc36ad87d8
Content: Getting Started Developing Connect Apps for Dynamics 365 Business Central - Business Central
Content Source: dev-itpro/developer/devenv-develop-connect-apps.md
Service: dynamics365-business-central
Product: unspecified
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Thanks for the feedback - the docs are updated with the fixed endpoint. Thanks again.


Fix index too many file names bug

Try to fix #31884
Fix #28584

I think all concern issues have been resolved. If there is no further reviews, I will merge this in 3 days.

I was unable to create a backport for 1.22. @lunny, please send one manually. :tea:
go run ./contrib/backport 31903
...  // fix git conflicts if any
go run ./contrib/backport --continue


improved testing/formatting section

This pull request is purely about documentation improvements.
It first re-orders and slightly improves formatting so that the overall meaning and usability of the referenced tooling is eased.

Also please replace the body of the issue/PR with a real description to enable easier review for others in the future.

done.

Hi @AlexanderStohr would you like to address some of my previous comments before I give it another review

@alexanderLinear are you still interested in addressing this feedback and updating this PR?
If so, great! If not, could you please close it.

@alexanderLinear are you still interested in addressing this feedback and updating this PR? If so, great! If not, could you please close it.

sorry, was busy in recent times.
approaching a long weekend with only few other dates. will try to go on with it again then.

Closing as stale per guidelines. If you still wish to contribute this change, feel free to open a new PR


getView(Object tag) issue

From<EMAIL_ADDRESS>on July 01, 2015 03:00:35
What steps will reproduce the problem? 1. Use getView(Object tag) to get view
2.Junit will report the fail that can't find the id
3. The case is fail What is the expected output? What do you see instead? It should have a parameter to define the tag and id What version of the product are you using? On what operating system? Mac， 5.4.1 Please provide any additional information below. None
Original issue: http://code.google.com/p/robotium/issues/detail?id=690

Please use getView(int id) if you have the ID.


Continue open sourcing

Add copyright.
Update eslint config

To finish, the commons version needs to be changed to an open-sourced one (can be done once commons has been released).

@alexkli @jdelbick @tmathern
There is a link in the readme (shared with asset-compute-commons) that we should remove or make public
https://git.corp.adobe.com/nui/adobe-io-events-client/blob/master/docs/adobeio-journal-v2.png

@jdelbick Not yet, waiting for final reviews today

@DrGirlfriend I think some changes to the readme got in after the code moved public:
https://git.corp.adobe.com/nui/asset-compute-sdk/blob/master/README.md

@jdelbick Merged your branch into this one and checked it in, let me know if it looks wrong

Regarding the sometimes failing should send metrics - rendition and activation with cgroup metrics test:
Issue is that the cpu_* metrics are sometimes missing (mostly macOS it seems): https://travis-ci.com/github/adobe/asset-compute-sdk/jobs/326375137
We should try:

metricsDone() back to default (no value passed)
default test case timeout (i.e. no .timeout(…)
just like in this previous version: https://github.com/adobe/asset-compute-sdk/blame/7528b22215c560e238eee8ba98f1b614d6d40673/test/api.test.js#L785
but increase the await sleep(200); in the workerFn to say 300 ms or more, whatever works but still keeps the test fast

That cpu sampler finishes inside main here and we add it to the activation metric. That sampler has a 100ms interval. We can give it more time by waiting longer in the workerFn. Maybe that helps.

Traded one OS for another on that one :)

All OS/node jobs fail, but now it looks like they get values for cpu_* but they don't match: https://travis-ci.com/github/adobe/asset-compute-sdk/jobs/326583958
In this case cpu_usagePercentage_stdev is 0 and not null.
Expected:
{
  "eventType": "activation",
  "memory_containerUsage_min": 6666,
  "memory_containerUsage_max": 6666,
  "memory_containerUsage_mean": 6666,
  "memory_containerUsage_stdev": 0,
  "memory_containerUsage_median": 6666,
  "memory_containerUsage_q1": 6666,
  "memory_containerUsage_q3": 6666,
  "memory_containerUsagePercentage_min": 66.66666666666666,
  "memory_containerUsagePercentage_max": 66.66666666666666,
  "memory_containerUsagePercentage_mean": 66.66666666666666,
  "memory_containerUsagePercentage_stdev": 0,
  "memory_containerUsagePercentage_median": 66.66666666666666,
  "memory_containerUsagePercentage_q1": 66.66666666666666,
  "memory_containerUsagePercentage_q3": 66.66666666666666,
  "cpu_usagePercentage_min": 0,
  "cpu_usagePercentage_max": 0,
  "cpu_usagePercentage_mean": 0,
  "cpu_usagePercentage_stdev": null,
  "cpu_usagePercentage_median": 0,
  "cpu_usagePercentage_q1": 0,
  "cpu_usagePercentage_q3": 0
}

Actual:
{
  "eventType": "activation",
  "memory_containerUsage_min": 6666,
  "memory_containerUsage_max": 6666,
  "memory_containerUsage_mean": 6666,
  "memory_containerUsage_stdev": 0,
  "memory_containerUsage_median": 6666,
  "memory_containerUsage_q1": 6666,
  "memory_containerUsage_q3": 6666,
  "memory_containerUsagePercentage_min": 66.66666666666666,
  "memory_containerUsagePercentage_max": 66.66666666666666,
  "memory_containerUsagePercentage_mean": 66.66666666666666,
  "memory_containerUsagePercentage_stdev": 0,
  "memory_containerUsagePercentage_median": 66.66666666666666,
  "memory_containerUsagePercentage_q1": 66.66666666666666,
  "memory_containerUsagePercentage_q3": 66.66666666666666,
  "cpu_usagePercentage_min": 0,
  "cpu_usagePercentage_max": 0,
  "cpu_usagePercentage_mean": 0,
  "cpu_usagePercentage_stdev": 0,
  "cpu_usagePercentage_median": 0,
  "cpu_usagePercentage_q1": 0,
  "cpu_usagePercentage_q3": 0,
}

Note I haven't checked the other jobs (it's tedious to extract a formatted json...).
@jdelbick should we make the assert for cpu_* values more lenient?


⚠ Bofrost.de has degraded performance

In ec636a1, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 994 ms

Resolved: Bofrost.de performance has improved in f818caa after 9 minutes.


nightly test for corso

separate workflow for nightly test to run on merge to main
Does this PR need a docs update or release note?

[ ] :white_check_mark: Yes, it's included
[ ] :clock1: Yes, but in a later PR
[ ] :no_entry: No

Type of change

[ ] :sunflower: Feature
[ ] :bug: Bugfix
[ ] :world_map: Documentation
[ ] :robot: Supportability/Tests
[ ] :computer: CI/Deployment
[ ] :broom: Tech Debt/Cleanup

Issue(s)

#

Test Plan

[ ] :muscle: Manual
[ ] :zap: Unit test
[ ] :green_heart: E2E

lgtm, @meain, you still have changes requested.  I'll let you wrap up the review.


[Event Request] Table 10752 SII Doc. Upload State - OnAfterValidateDocInfo

We need a new event in Table 10752 "SII Doc. Upload State" named OnAfterValidateDocInfo:
called from:
procedure ValidateDocInfo(var TempSIIDocUploadState: Record "SII Doc. Upload State" temporary; EntryNo: Integer; DocumentSource: Enum "SII Doc. Upload State Document Source"; DocumentType: Enum "SII Doc. Upload State Document Type"; DocumentNo: Code[35])
var
CustLedgerEntry: Record "Cust. Ledger Entry";
VendLedgEntry: Record "Vendor Ledger Entry";
SalesInvoiceHeader: Record "Sales Invoice Header";
ServiceHeader: Record "Service Header";
SalesCrMemoHeader: Record "Sales Cr.Memo Header";
PurchInvHeader: Record "Purch. Inv. Header";
PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.";
SIIManagement: Codeunit "SII Management";
begin
TempSIIDocUploadState.Validate("Entry No", EntryNo);
TempSIIDocUploadState.Validate("Document Source", DocumentSource);
TempSIIDocUploadState.Validate("Document Type", DocumentType);
TempSIIDocUploadState.Validate("Is Credit Memo Removal", TempSIIDocUploadState.IsCreditMemoRemoval);
.....
.....
.....
"Document Type"::"Credit Memo":
if PurchCrMemoHdr.Get(DocumentNo) then
TempSIIDocUploadState.UpdatePurchSIIDocUploadState(
PurchCrMemoHdr."Pay-to Vendor No.", 0, PurchCrMemoHdr."Cr. Memo Type" + 1, PurchCrMemoHdr."Special Scheme Code" + 1,
PurchCrMemoHdr."Succeeded Company Name", PurchCrMemoHdr."Succeeded VAT Registration No.", PurchCrMemoHdr."ID Type")
else begin
VendLedgEntry.Get(EntryNo);
TempSIIDocUploadState.UpdatePurchSIIDocUploadState(
VendLedgEntry."Vendor No.", 0, VendLedgEntry."Cr. Memo Type" + 1, VendLedgEntry."Special Scheme Code" + 1,
VendLedgEntry."Succeeded Company Name", VendLedgEntry."Succeeded VAT Registration No.", VendLedgEntry."ID Type");
end;
end;
end;
//INIT INSERT
OnAfterValidateDocInfo(TempSIIDocUploadState, EntryNo, DocumentSource, DocumentType, DocumentNo)
//END INSERT
end;

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

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


Minor: Improve PruningPredicate documentation

Which issue does this PR close?
N/A
Rationale for this change
We make use of the PruningPredicate a lot in IOx and I think it is a powerful feature. However, it is hard to explain to people / refer them to docs about it.
I would like to make it easier to understand by reading the docs
What changes are included in this PR?
Improve the docs for PruningPredicate, clarifying the rationale as well as adding some examples
Are these changes tested?
By doc tests
Are there any user-facing changes?
Better docs. No code changes

Thank you @jackwener


docker image build failed

Orion version:
Python version:
Operating System: ubuntu 20.04

Description
Hello, thanks to your library, I've been able to create a great program.
I'm trying to build a Docker image as described in DOCKER.md, but I'm encountering the following error in the terminal:

docker build -f docker/orion-jupyter.Dockerfile -t orion-jupyter .
[+] Building 1.5s (10/13)                                                                 docker:default
 => [internal] load .dockerignore                                                                   0.0s
 => => transferring context: 2B                                                                     0.0s
 => [internal] load build definition from orion-jupyter.Dockerfile                                  0.0s
 => => transferring dockerfile: 884B                                                                0.0s
 => [internal] load metadata for docker.io/library/python:3.6                                       1.4s
 => [1/9] FROM docker.io/library/python:3.6@sha256:f8652afaf88c25f0d22354d547d892591067aa4026a7fa9  0.0s
 => [internal] load build context                                                                   0.0s
 => => transferring context: 15.84kB                                                                0.0s
 => CACHED [2/9] RUN mkdir /app                                                                     0.0s
 => CANCELED [3/9] COPY setup.py /app                                                               0.0s
 => CACHED [4/9] RUN pip install -e /app && pip install jupyter                                     0.0s
 => CACHED [5/9] COPY orion /app/orion                                                              0.0s
 => ERROR [6/9] COPY notebooks /app/notebooks                                                       0.0s
------
 > [6/9] COPY notebooks /app/notebooks:
------
orion-jupyter.Dockerfile:10
--------------------
   8 |
   9 |     COPY orion /app/orion
  10 | >>> COPY notebooks /app/notebooks
  11 |     RUN mkdir -p /app/orion/notebooks/data \
  12 |         && cd /app/orion/notebooks/data \
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 5a708955-7041-46b5-93f5-dbbb66f1a07f::n9okl95s634xfjhlo2e5xxx4l: "/notebooks": not found
make: *** [Makefile:277: docker-jupyter-build] Error 1

I suspect it might be because the 'notebooks' directory is missing. What should I do to resolve this?
What I Did
make docker-jupyter-build

Hi @SeongminLee812, thank you for opening up an issue for this!
It seems like I did not update the docker files for proper builds. I will sort this this week.
First issue:

the notebooks folder has been renamed to tutorials
the s3 bucket has been migrated to sintel-orion


[RFR] Feature/index page

First pass at index page to allow for navigation of the prototype

Going to close this PR. We just need an index page at the moment, this has other work in it.