Cannot sign up for new beta user on Fastlane

Cannot sign for beta user on
https://mattermost-fastlane.herokuapp.com/

Thanks @artiya4u - Apple changed their testing program and it broke the tool we were using, so we're waiting on a fix.
In the meantime, you can sign up to our team Mattermost site and direct message me (username lindsay) your email if you would like to be added.
I also made a pull request to note that in our readme in case others hit this issue as well.

This should be fixed now!


Camera-player relationship is very weird

Player doesn't have position, only his camera does. So, we are stuck with the first-person hardcoded-into-the-player camera - something has to be done about it.
Probably, camera would be created somewhere externally and then just injected into the player (DIp). That way we can support camera switching and different types of camera (orbit, etc).

Fixed by #11!


Bridge Exception: What is the issue?

[JSE] /home/abc/anaconda3/envs/manager/lib/python3.9/site-packages/javascript/js/pyi.js:149
[JSE]       throw new BridgeException(Attempt to access '${stack.join('.')}' failed.)
[JSE]             ^
[JSE] BridgeException [Error]: Attempt to access '' failed. Python didn't respond in time (100000ms), look above for any Python errors. If no
errors, the API call hung.
[JSE]     at //lib/python3.9/site-packages/javascript/js/pyi.js:149:13
[JSE]     at waitFor (/home/abc/anaconda3/envs/manager/lib/python3.9/site-packages/javascript/js/pyi.js:46:26)
[JSE]     at async PyBridge.call (/home/abc/anaconda3/envs/manager/lib/python3.9/site-packages/javascript/js/pyi.js:148:18)
[JSE] Node.js v22.2.0

That would depend on your code. The timeout is to prevent the bridge from being locked indefinitely waiting for a call. If you want to disable it you can set the REQ_TIMEOUT environment variable to 0.


Stack limitation exception is raised when debug level is finest

The CPU Time is almost reach its limit when mock ~2000 sObjects.
Stack limitation exception is raised when debug level is finest

According to this article "stack limits(1001 error) Vs recursive trigger limits -explained!". It is the function call stack limit that I have encountered. And according to the blog, it is mainly due to recursive function calls. However, in the mock methods there it is not due to recursive function calls, because debug level from DEBUG to FINER all works, only the FINEST debug level giving the exception. The FINEST debug level must have some AOP function calls added and double the call stack used.
However the ultimate way to fix this issue could be reduce call stacks as much as possible. I am not sure it will finally work or not. Did a search on Wiki Call Stack. I think my aim might be doing this:

Reduce loops
Reduce local variables
Reduce value type parameters
Reduce function calls, use large function instead which reduce the readability

Unfortunately, I have tried the above and still couldn't prevent the Max Stack Limit Exception. A few days have been spent  with different approaches, any none of them works. I think I have run into a dead end. Hope the Max Stack Limit Exception on Finest debug level wouldn't bother development and deployment.
I have to raise an issue to Salesforce team and seek help. Hope there is way to eliminate it. I will try again if there is some new ideas, currently my idea is exhausted.


Cannot find name 'WeakKey'.

Error: node_modules/pdfjs-dist/types/web/text_layer_builder.d.ts:41:32 - error TS2304: Cannot find name 'WeakKey'.
41     textDivProperties: WeakMap<WeakKey, any>;

Configuration:

Package: pdfjs-dist
PDF.js version: 3.11.174

/cc @stof @tamuratak @ineiti as known TypeScript users; do you also run into this and have ideas on how to address this?

Given that overall lack of actionable details, with e.g. no runnable example code provided, my guess is that this is simply caused by an old (and outdated) version of TypeScript.

@joutvhu please provide a minimal example that shows the failure.

FWIW, I have the same issue, not so simple to create a minimal example because for me its in the context of an angular app, which because of angular's requirements is stuck on Typescript < 5.2.0 (so Im not certain if upgrading beyond that fixes it).
At this point I'd be happy with a workaround, if possible.

@shamoon can you try if a simple example with your typescript version also fails in the same way?

Yes, in my case as soon as I add any import from 'pdfjs-dist/web/pdf_viewer' I get this.
Sorry for not saying before, but for reference, I'm using:

typescript: 5.1.6
@angular/cli: 16.2.9
pdfjs-dist: 3.11.174

I'm a little ashamed to even post it here (no judgements! 😜), but this nasty hack does allow the build to succeed:
declare global {
  interface WeakKeyTypes {
    symbol: Object
  }

  type WeakKey = WeakKeyTypes[keyof WeakKeyTypes]
}

Edit: I think its the import of EventBus, if thats relevant

@shamoon I do get `Duplicate identifier 'WeakKey' when I try to use your workaround.
Did you did something special ?

Sorry I cant help more, Im no longer using that workaround


implement the replaceCharForBrowserConsistency function

this function replaces some known chars that will affect the parsing of the html5 template page. for example, some version of IE will strip out the null character leading to vulnerability
taking this as an example:
<\x00script>alert(0);
if the browser is complied with the html5 spec, the \x00 char is replaced by the \ufffd and considered as the tagname, however, in IE, the \x00 will be striped, leading to the execution of the js.
the idea of this function is to replace some known chars to achieve browser implementation consistency when we are parsing the template file.

CLA is valid!


Android export error with logcat output

Godot version:

Godot version 3.0.5 & Godot version 3.0.4
OS/device including version:

Hp
Ram size: 4gb
Issue description:

i try exporting my game to my android phone which android version is norgat(7.0) it installed perfectly but it will stop immediately with error message "sorry game has stopped" i try using andriod studio logcat and it print out this information
--------- beginning of crash
08-09 21:33:28.037 29344-29359/org.godotengine.brave E/AndroidRuntime: FATAL EXCEPTION: GLThread 5045
    Process: org.godotengine.brave, PID: 29344
    java.lang.RuntimeException: createContext failed: EGL_SUCCESS
        at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1245)
        at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1236)
        at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1086)
        at android.opengl.GLSurfaceView $GLThread.guardedRun(GLSurfaceView.java:1462)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1299)

the jdk version i installed is jdk1.8.0_181, my adb is up to date and i have tried export to other devices it still the same problem and the game i want to export is a 2D game
i dont  know if there is something am missing when it comes to exporting to android
thanks
Steps to reproduce:
Minimal reproduction project:

this log does not give any useful information.
did you try to install and run empty project?

Superceded by #31420


Add Access type to MapError

Fixes #3182
PR checklist:

[X] make succeeds (on *nix)
[X] make reftests succeeds
[X] tested examples with the following backends: Vulkan
[ ] rustfmt run on changed code

Updated :+1:

Just thought, should I squash them together?

Yes, please

On Mar 30, 2020, at 16:17, Hugh Gallagher<EMAIL_ADDRESS>wrote:

Just thought, should I squash them together?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Okie doke should be all good now :smiley:


When can we expect to use GPUs for training on Macs

Note: The models trained with GPUs on Macs result in significantly lower quality compared to those trained on other devices, so we are temporarily using CPUs instead.

When can we expect to use GPUs for training on Macs?

This depends on PyTorch's optimization for MPS.

This depends on PyTorch's optimization for MPS.

right

mac用autodl租个玩玩吧。mac本地体验很差的

mac用autodl租个玩玩吧。mac本地体验很差的

建议训练上云，本地推理速度过得去

mac用autodl租个玩玩吧。mac本地体验很差的

Why do you think that? Mac has the largest GPU Memory among PCs, and has good GPU performance

Because of the attention Performance on MPS, it's not suitable for GSV training and inference, that's why we choose CPU instead. If you do want, you could try MLX

mac用autodl租个玩玩吧。mac本地体验很差的

Why do you think that? Mac has the largest GPU Memory among PCs, and has good GPU performance

You are right, but there can be errors when using MPS (Metal Performance Shaders), such as memory leaks and poor model quality, so we can only use the CPU. Currently, using a Mac for training is not the best option. If MPS can be used without issues in the future, we will support it.

mac用autodl租个玩玩吧。mac本地体验很差的

Why do you think that? Mac has the largest GPU Memory among PCs, and has good GPU performance

You are right, but there can be errors when using MPS (Metal Performance Shaders), such as memory leaks and poor model quality, so we can only use the CPU. Currently, using a Mac for training is not the best option. If MPS can be used without issues in the future, we will support it.

Could you please provide some information about the errors that occurred when using MPS? Or if it has already been posted, where can I find them? I might be able to help debug


Fix bad assumptions for OmniOS/Solaris

simple fix
I'm about to give up on gerbera, but while I'm still hanging in there, one more patch...

:(


Update cocoapods build with latest from repo

It seems as if the version that is coming from cocoapods is an old version of ImageViewer.
With xcode 8, i'm forced to Swift 2.3 and the new version of ImageViewer can handle this.
My workaround is using this in my PodFile
pod 'ImageViewer', :git => 'https://github.com/MailOnline/ImageViewer.git'
but then this has an issue with missing file ThumbnailsViewController.swift and ThumbnailCell.swift

I have exactly the same issue! Would be great to see fix!

Hey @RuiAAPeres can you push the updated podspec from master to Cocoapods please?

Done.


Async encoding of profiles to reduce latency impact

I've added an encodeAsync method to Profile which splits up encoding into separate ticks by section of the profile data. This should help reduce latency impact of encoding.

It was a simple idea I had in my head and was just as fast to implement as to explain, so I just went and wrote it. 😅


HDDS-8830. Add admin CLI to list open files

What changes were proposed in this pull request?
Add Ozone Admin CLI listopenfiles as a debug command for admins and devs. e.g.
# First, auth as Ozone admin
$ ozone admin om lof --service-id=om-service-test1 --length=3 --prefix=/volumelof/buck1
5 total open files (est.). Showing 3 open files (limit 3) under path prefix:
  /volume-lof/buck1

Client ID		Creation time	Hsync'ed	Open File Path
111726338148007937<PHONE_NUMBER>523	No		/volume-lof/buck1/-9223372036854774527/key0
111726338151415810<PHONE_NUMBER>578	No		/volume-lof/buck1/-9223372036854774527/key1
111726338152071171<PHONE_NUMBER>588	No		/volume-lof/buck1/-9223372036854774527/key2

To get the next batch of open keys, run:
  ozone admin om lof -id=om-service-test1 --length=3 --prefix=/volume-lof/buck1 --start=/-9223372036854775552/-9223372036854775040/-9223372036854774527/key2/111726338152071171

JSON output:
$ ozone admin om lof --service-id=om-service-test1 --length=3 --prefix=/volumelof/buck1 --json

{
  "openKeys" : [ {
    "keyInfo" : {
      "metadata" : { },
      "objectID" : -9223372036854774015,
      "updateID" : 7,
      "parentObjectID" : -9223372036854774527,
      "volumeName" : "volume-lof",
      "bucketName" : "buck1",
      "keyName" : "key0",
      "dataSize" : 4194304,
      "keyLocationVersions" : [ ... ],
      "creationTime" :<PHONE_NUMBER>487,
      "modificationTime" :<PHONE_NUMBER>487,
      "replicationConfig" : {
        "replicationFactor" : "THREE",
        "requiredNodes" : 3,
        "replicationType" : "RATIS"
      },
      "fileName" : "key0",
      "acls" : [ ... ],
      "path" : "-9223372036854774527/key0",
      "file" : true,
      "replicatedSize" : 12582912,
      "objectInfo" : "OMKeyInfo{volume='volume-lof', bucket='buck1', key='key0', dataSize='4194304', creationTime='1704808722487', objectID='-9223372036854774015', parentID='-9223372036854774527', replication='RATIS/THREE', fileChecksum='null}",
      "hsync" : false,
      "latestVersionLocations" : { ... },
      "updateIDset" : true
    },
    "openVersion" : 0,
    "clientId" :<PHONE_NUMBER>37039105
  }, {
    "keyInfo" : { ... },
    "openVersion" : 0,
    "clientId" :<PHONE_NUMBER>40578050
  }, {
    "keyInfo" : { ... },
    "openVersion" : 0,
    "clientId" :<PHONE_NUMBER>41233411
  } ],
  "totalOpenKeyCount" : 5,
  "hasMore" : true,
  "contToken" : "/-9223372036854775552/-9223372036854775040/-9223372036854774527/key2/111726344441233411"
}

[x] Optional filter by bucket or key prefix
[x] Pagination support
[x] JSON output
[x] Documentation

What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8830
How was this patch tested?

[x] Integration test addition.
[x] Unit test addition.

Looks like this would list both visible and invisible (keys that are written but no hsync() is called at it) keys. If that's the intend it would be good to distinguish them in the output.

That makes sense. Added in the latest revision. Thanks for taking a look at the draft.

You can check out OmMetadataManagerImpl.getExpiredOpenKeys()   https://github.com/apache/ozone/blob/f4a3b0e64c0cb3f2debaded68dcc0b7573602837/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java#L1808
to see how we tell a key has hsync or not. You shouldn't need to walk through the keyTable.

Just a few comments on the CLI portion of this change:

I think we should follow standard kebab-case conventions for commands going forwards.
We should avoid combining multiple words in one command since it makes it less flexible for future use. Instead of ozone admin om listopenfiles we could do something like ozone admin om open-files ls in case we need to provide more open file operations in the future.
I'm not sure whether we want to use open-files or open-keys as the term here. Even though this is being implemented for hsync which is a filesystem operation, the command is under ozone admin and therefore outside of ofs. In this area we usually refer to objects as keys like ozone admin key list.
Related to the above, can you clarify the scope of this command? Is it operating on only open files, open keys as well? Does it work for all bucket layouts? Do you pass it a bucket name to limit the scope?
Can you provide an example of expected CLI parameters and output in the PR description? This makes it easier for others to quickly give feedback on the UI portion without reviewing implementation details.
Since the output will likely be verbose, I think it makes sense to only have this command print json, similar to ozone sh key list. In the current draft there is a --json flag that defaults to false.

Thanks @errose28 for the comment.

I think we should follow standard kebab-case conventions for commands going forwards.
We should avoid combining multiple words in one command since it makes it less flexible for future use. Instead of ozone admin om listopenfiles we could do something like ozone admin om open-files ls in case we need to provide more open file operations in the future.

+1 this. But in this way we'd also need to rename all other commands (e.g. getserviceroles, cancelprepare). I'd like @jojochuang and @adoroszlai 's opinions as well.

I'm not sure whether we want to use open-files or open-keys as the term here. Even though this is being implemented for hsync which is a filesystem operation, the command is under ozone admin and therefore outside of ofs. In this area we usually refer to objects as keys like ozone admin key list.

This is basically a command that enumerates OpenKeyTable (or OpenFileTable). It is not just limited to hsync'ed keys but all open keys. I should remove [hsync] from the jira title.
I do like the idea of ozone admin key list --open.

Related to the above, can you clarify the scope of this command? Is it operating on only open files, open keys as well? Does it work for all bucket layouts? Do you pass it a bucket name to limit the scope?

Yup it is supposed to work with FSO/OBS/LEGACY. Path to a bucket (or just a key prefix) can be optionally passed to limit the scope. But without it (or when passing root as the path) it just iterates over two OpenKey(File)Tables.

Can you provide an example of expected CLI parameters and output in the PR description? This makes it easier for others to quickly give feedback on the UI portion without reviewing implementation details.

I planned to. But it is not finalized yet so I will do that later. Plus I will add it to the markdown doc as well.

Since the output will likely be verbose, I think it makes sense to only have this command print json, similar to ozone sh key list. In the current draft there is a --json flag that defaults to false.

I think we need both.

You can check out OmMetadataManagerImpl.getExpiredOpenKeys()
https://github.com/apache/ozone/blob/f4a3b0e64c0cb3f2debaded68dcc0b7573602837/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java#L1808
to see how we tell a key has hsync or not. You shouldn't need to walk through the keyTable.

As I can see it is using the same approach as mine to check whether a key is hsync'ed or not. AFAIK the metadata tag is the only way to do it at the moment. Plus getExpiredOpenKeys looks to be iterating over the entire KeyTable/FileTable.
Again, the problem is that OpenKeyTable doen't have this metadata tag at all. If we can add that it will be much more efficient (both for getExpiredOpenKeys and this PR).

Filed HDDS-10077 for hsync metadata tag improvement.

Looks like branch HDDS-7593 needs a master branch merge before I can cleanly base this PR on to that one.

Right now this is returning object IDs in the path of the keys, which were previously only internal to OM. What is the expected use of this CLI? If it is to do some sort of file close/reclamation based on key name the current paths returned will not help. Alternatively, providing the actual full paths may be problematic because keys can remain open after their parent directories or buckets are deleted, and only the final commit will fail.

Thanks @jojochuang for merging this to the HDDS-7593 feature branch. And thanks @adoroszlai and @errose28 for the reviews and comments.
Will post a PR for HDDS-10077 that depends on this one.


Conflict between Domain Sharding and Webdriver Configuration

Bug happens between two config parameters:
WEBDRIVER_BASEURL
SUPERSET_WEBSERVER_DOMAINS
Once SUPERSET_WEBSERVER_DOMAINS is set, it is used for resource requests  on "standalone page", resulting in timeout by selenium. This seems as logical conflict. Worst part is amount of testing I had to do to find out which interaction was causing problem.
Workaround is to set WEBDRIVER_BASEURL to same value as WEBDRIVER_BASEURL_USER_FRIENDLY and bypass internal kubernetes service routing.
Expected results
WEBDRIVER_BASEURL should take precedence by knowing, or notification should be generated that there is logical conflict
Actual results
Selenium Timed out receiving message from renderer
Environment
superset version 1.3.2
chrome driver
Python 3.8.12
Node 14
Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.

sorry, already lost them

[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Hello @jsanko9 thanks for reporting this issue. If you would be interested in opening a PR to fix this I'd be glad to help you through that process!

Closing this as stale since no further discussion or issue validation/corroboration has taken place in over a year. If folks are still facing this, we're open to revisiting/reopening, or a new issue with update context. Thanks!


Add new tools to the LLM runtime tools page

https://docs.spiceai.org/features/ai-gateway/runtime_tools
With the copilot launch there's a new tool available. Also the "Available tools" section should be a table

Blocked until the new tool is merged


Current find/replace implementation is unclear

Keyboard shortcuts are not obvious
UI does not fit in with the rest of the app UX

I removed the codemirror search replace, ctrl+F now triggers chrome default search


Vagrant: store last used arguments on vagrant up

Vagrant: store last used arguments on vagrant up, only when all boxes come up successfully.

Not going to implement.

Reason: adds an indirect complexity in figuring out which arguments are required and which are not.
Simply require the user to provide the arguments and rely on Vagrant on any other error handling.


mix ecto.ch.schema fails for columns with type AggregateFunction

Getting this error:
** (ArgumentError) failed to decode "AggregateFunction(argMin, Decimal(18, 4), DateTime)" as ClickHouse type (no function clause matching in Ch.Types.decode/3)
    lib/ch/types.ex:338: Ch.Types.decode([:type], "AggregateFunction(argMin, Decimal(18, 4), DateTime)", [])
    lib/ch/types.ex:328: Ch.Types.decode/1
    lib/mix/tasks/schema.ex:77: Mix.Tasks.Ecto.Ch.Schema.build_field/2
    lib/mix/tasks/schema.ex:46: anonymous fn/1 in Mix.Tasks.Ecto.Ch.Schema.run/1
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    lib/mix/tasks/schema.ex:46: Mix.Tasks.Ecto.Ch.Schema.run/1
    (mix 1.14.4) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4

when running  mix ecto.ch.schema default.<TABLE>
The table has the columns:
`foo` AggregateFunction(argMin, Decimal(18, 4), DateTime),
`bar` AggregateFunction(argMax, Decimal(18, 4), DateTime),

How would I define a schema for those fields as well?
** (ArgumentError) failed to decode "AggregateFunction(argMin, Decimal(18, 4), DateTime)" as ClickHouse type (no function clause matching in Ch.Types.decode/3)
    (ch 0.1.11) lib/ch/types.ex:338: Ch.Types.decode([:type], "AggregateFunction(avgWeighted, Decimal(18, 4), Int64)", [])
    (ch 0.1.11) lib/ch/types.ex:328: Ch.Types.decode/1
    (ecto 3.10.1) lib/ecto/parameterized_type.ex:190: Ecto.ParameterizedType.init/2
    (ecto 3.10.1) lib/ecto/schema.ex:1916: Ecto.Schema.__field__/4
    lib/core/clickhouse/schemas/chain_aggregates.ex:34: (module)

and just using Decimal(18,4) won't work because then on insert we will get:
 Type of 'foo' must be AggregateFunction(argMin, Decimal(18, 4), DateTime), not Decimal(18, 4)

I haven't used AggregateFunction types so I'm not sure how to properly decode them. However, we can add something like :as option:
# uses `AggregateFunction(argMin, Decimal(18, 4), DateTime)` in the header
# uses `Decimal(18, 4)` for actual encoding and decoding
field :foo, Ch, type: "AggregateFunction(argMin, Decimal(18, 4), DateTime)", as: "Decimal(18, 4)"

@Zarathustra2 what do you think?

or maybe it can be a :name, with the logic reversed
field :foo, Ch, name: "AggregateFunction(argMin, Decimal(18, 4), DateTime)", type: "Decimal(18, 4)"
field :is_bounce, Ch, name: "UInt8", type: :boolean

@ruslandoga can you also add a test for inserting the data? I am wondering if we will run into the same issue as https://github.com/ClickHouse/clickhouse-java/issues/1232
I personally prefer type & name maybe even go with ch_name instead of name

@Zarathustra2 what kind of test do you have in mind?

Sorry bad phrasing, more like how would I even insert into this column with ecto:
defmodule SomeSchema do

  use Ecto.Schema

  @primary_key false
  schema "table" do
     field :foo, Ch, type: "Decimal(18, 4)", name: "AggregateFunction(argMin, Decimal(18, 4), DateTime)"
  end

end

How would I insert into this column since I need to insert not Decimal(18,4) but an argMinState(Decimal(18, 4), DateTime)).

How would you insert in that column with clickhouse-client?

for my example above?

Yes, since I haven't used AggregateFunction myself but I can try help you translating a clickhouse-client query into ecto_ch :)

This query won't work in "streaming" formats like native or rowbinary, since they don't do any evaluation of the data.

I am wondering whether the data can be encoded in a different way because the java issues states:

On the other hand, in order to support more AggregateFunction types, since there's no document about the data structures for read and write, we have to dig into ClickHouse code to figure it out one by one, which is going to take a while. Would be great if someone from the server team can document all the details, so that not only Java but all other clients will benefit from that.

So it seems serializing a state of an aggregate function is possible but it is not documented? Maybe we have to ping someone on the slack?

We probably won't be supporting undocumented APIs in this driver. However, it would be possible to support them in a separate library since Ch has a very liberal API:
encoded = YourRowBinaryEncoder.encode_rows(...)
Ch.query(conn, "insert into ... format RowBinary", encoded, encode: false)

It seems to me right now that we won't be needing :as option in Ch since it doesn't accomplish much.
field :is_bounce, Ch, type: :boolean, as: "UInt8"

can be already covered with a custom Ecto type which is more typing but more conventional and possibly easier to understand.
And
field :foo, Ch, type: "AggregateFunction(argMin, Decimal(18, 4), DateTime)", as: "Decimal(18, 4)"

doesn't seem to be possible, since we can't just take a decimal and insert it into an aggregate function type.

Yeah I don't think as is needed right now

Do you think creating insert queries such as
"""
 INSERT INTO test_insert_aggregate_function
                 SELECT uid, updated, arrayReduce('argMaxState', [name], [updated])
                 FROM input('uid Int16, updated DateTime, name String')
                 FORMAT RowBinary
"""

would be possible in ecto_ch with a macro or something based on a given schema?

I'll add tests that use the approaches shown in https://kb.altinity.com/altinity-kb-schema-design/ingestion-aggregate-function/,,,,,, it seems like all of them can already be supported with the current functionality.

yeah all of them can be used via arrayReduce + input

would be possible in ecto_ch with a macro or something based on a given schema?

That SQL statement can be constructed without macros. One sec.

Something like this:
defmodule Schema do
  use Ecto.Schema

  @primary_key false
  schema "test_insert_aggregate_function" do
    field :uid, Ch, type: "Int16"
    field :updated, :naive_datetime
    field :name, :string
  end
end

table = Schema.__schema__(:source)
fields = Schema.__schema__(:fields)
types = Enum.map(fields, fn field -> Schema.__schema__(:type, field) |> Ecto.Type.type() end)

select = from i in fragment("input(?)", "uid Int16, updated DateTime, name String"),
  select:  %{uid: i.uid, updated: i.updated, name: fragment("arrayReduce('argMaxState', [name], [updated])")}

{select, _no_params = []} = Repo.to_sql(:all, select)

Repo.query!(["insert into ", table, ?\s, select, " format RowBinary"], rows, types: types)

Oh that is sick, thanks @ruslandoga <3

Should this may be added to the readme of ecto_ch, I bet someone else will run into this as well :D

I'll try to find a way to "automate" fragment("input(?)", "uid Int16, updated DateTime, name String") in the tests for https://kb.altinity.com/altinity-kb-schema-design/ingestion-aggregate-function/.

@Zarathustra2 I've merged https://github.com/plausible/ecto_ch/pull/79 and I wonder if it solves your use-case.
def deps do
  [
-   {:ecto_ch, "~> 0.1.0"},
+   {:ecto_ch, github: "plausible/ecto_ch"}
  ]
end

Oh that is sick!!! Let me test that today/tomorrow, I will ping you but just from reading over the code it looks pretty incredible easy to work with! <3

Currently getting  ** (Ch.Error) Code: 477. DB::Exception: FORMAT must be specified for function input(). (INVALID_USAGE_OF_INPUT) (version <IP_ADDRESS> (official build)) let me see if I can debug this one :D (can't really share the schema due to being confidential :( )

You might be able to use the tests as a guide: https://github.com/plausible/ecto_ch/blob/fb995abad0207b1751898c237a9d89c93a2154e7/test/ecto/integration/aggregate_function_type_test.exs#L78-L152

Works now I had TestRepo.insert_all("users", input, input: rows) instead of TestRepo.insert_all("users", rows, input: input) lol
Super awesome! @ruslandoga <3

Ah, yes.  I considered both of your approaches (and picked the current one since we are still inserting rows, but "via" an input). And I also thought about Repo.insert_input(table, query, rows, opts)


Merging scattered WASM & EVM test library into the common one

Effects

[ ] Soft update
[ ] Breaking change
[ ] Chain fork related

Major Reviewer

@JoowonYun
@yoosah

Background

Common libraries are updated by each EVM / WASM & test usage
Need to unify and should consume from the further tests

Summary

Unified into the common

Step to write integration test

Checkout a branch from test/integration (this branch should always be updated)
Rebase or cherry pick the feature PR
Write & test, make a PR on the feature PR

If there is a change on the docker setting, init_test.go, wallet_*_test.go, the change should be built with separate commit and make a PR to test/integration

Checklist

[ ] Backward compatible?
[ ] Test enough in your local environment?
[ ] Add related test cases?

FYI
The fail of TestWasmContractAndTx/Test07_NativeTransfer_PayByXPLA_LackOfFee_SimulationShouldFail is currently expected one and will probably be fixed along with XATP change or change the test behavior


Text in o-teaser__content is default link color

Text should be color-grey.

<?php the_excerpt(); ?> comes in with <p> elements which puts the o-teaser__text class and attachment outside the excerpt.


Confusion using createSource

I want to implement a payment form with credit card payment or SEPA payments.
I have successfully created a form with <StripeProvider>, <Elements/> and the <CardElement/>.
this.props.stripe is available and the card component shows up and works as expected.
Now I am confused by the docs and examples how to go on.
Here is what I think.
IF Payment is CreditCard I createSource and pass in the elementRef from the .
This throws an error Converting circular structure to JSON.
IF Payment is Sepa I createSource and pass in manually the data since there are no components yet (right?).

How to pass in the  to createSource correctly?
Is my workflow correct?

Thanks in advance!

Hi @Knaackee!
For the card Element, you do not need to pass in the elementRef when creating a source. Within the context of Elements, we already know which Element you're trying to use. See the example here (https://github.com/stripe/react-stripe-elements#setting-up-your-payment-form-injectstripe). Just replace createToken with createSource.
For SEPA, your workflow is correct! Here's an example I posted in another issue recently: https://codesandbox.io/s/zx5350wkx3.
I would recommend taking a look at the demos and docs in this repo for reference as well. And our support team is available on #stripe on Freenode and at<EMAIL_ADDRESS>for similar issues.


Edit-config issue on netopeer2-server with a different Netconf client.

I have connected  the netopeer2-server and i am trying to changing the attributes values in container by using edit-config. It is giving the error as "Server Error. Status: [500] RemoteDevice{Test}: Commit of transaction failed".
Could please help me in this issue.
Netopeer2-server log attached below of netopeer2 errors.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 538 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Published event "rpc" with ID 21 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:get-config" "rpc" event with ID 21 priority 0 (remaining 1 subscribers).
[INF]: SR: Finished processing "rpc" event with ID 21 priority 0 (remaining 0 subscribers).
[INF]: SR: Event "rpc" with ID 21 priority 0 succeeded.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: NP: Session 2: thread 2 event new RPC.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 539 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Published event "rpc" with ID 5 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:lock" "rpc" event with ID 5 priority 0 (remaining 1 subscribers).
[ERR]: SR: Callback event "rpc" with ID 5 processing timed out.
[WRN]: SR: Event "rpc" with ID 5 priority 0 failed (Timeout expired).
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 4 event new RPC.
[INF]: NP: Session 2: thread 4 event reply error.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 540 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[ERR]: SR: Module "yang" is locked by session 505 (NC SID 2).
[INF]: SR: Published event "rpc" with ID 6 priority 0 for 1 subscribers.
[ERR]: SR: Unable to finish processing event "rpc" with ID 5 priority 0 (timeout probably).
[INF]: SR: Processing "/ietf-netconf:lock" "rpc" event with ID 6 priority 0 (remaining 1 subscribers).
[ERR]: SR: Callback event "rpc" with ID 6 processing timed out.
[WRN]: SR: Event "rpc" with ID 6 priority 0 failed (Timeout expired).
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 4 event new RPC.
[INF]: NP: Session 2: thread 4 event reply error.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 541 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[ERR]: SR: Module "yang" is locked by session 506 (NC SID 2).
[INF]: LY: All data nodes and constraints resolved.
[ERR]: SR: Unable to finish processing event "rpc" with ID 6 priority 0 (timeout probably).
[INF]: SR: Published event "rpc" with ID 22 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:get-config" "rpc" event with ID 22 priority 0 (remaining 1 subscribers).
[INF]: SR: Finished processing "rpc" event with ID 22 priority 0 (remaining 0 subscribers).
[INF]: SR: Event "rpc" with ID 22 priority 0 succeeded.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: NP: Session 2: thread 4 event new RPC.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 542 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Published event "rpc" with ID 3 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:edit-config" "rpc" event with ID 3 priority 0 (remaining 1 subscribers).
[ERR]: SR: Callback event "rpc" with ID 3 processing timed out.
[ERR]: SR: Module "oven" is locked by session 506 (NC SID 2).
[WRN]: SR: Event "rpc" with ID 3 priority 0 failed (Timeout expired).
[ERR]: SR: Unable to finish processing event "rpc" with ID 3 priority 0 (timeout probably).
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 0 event new RPC.
[INF]: NP: Session 2: thread 0 event reply error.
[INF]: SR: Session 543 (user "root") created.
[INF]: SR: Published event "rpc" with ID 3 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:commit" "rpc" event with ID 3 priority 0 (remaining 1 subscribers).
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[ERR]: SR: Callback event "rpc" with ID 3 processing timed out.
[WRN]: SR: Event "rpc" with ID 3 priority 0 failed (Timeout expired).
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 0 event new RPC.
[INF]: NP: Session 2: thread 0 event reply error.
[ERR]: SR: Module "yang" is locked by session 505 (NC SID 2).
[ERR]: SR: Unable to finish processing event "rpc" with ID 3 priority 0 (timeout probably).
[INF]: SR: Session 544 (user "root") created.
[INF]: SR: Published event "rpc" with ID 3 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:discard-changes" "rpc" event with ID 3 priority 0 (remaining 1 subscribers).
[INF]: SR: Finished processing "rpc" event with ID 3 priority 0 (remaining 0 subscribers).
[INF]: SR: Event "rpc" with ID 3 priority 0 succeeded.
[INF]: NP: Session 2: thread 2 event new RPC.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 545 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Published event "rpc" with ID 5 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:unlock" "rpc" event with ID 5 priority 0 (remaining 1 subscribers).
[ERR]: SR: Callback event "rpc" with ID 5 processing timed out.
[WRN]: SR: Event "rpc" with ID 5 priority 0 failed (Timeout expired).
[ERR]: SR: Module "yang" is locked by session 506 (NC SID 2).
[ERR]: SR: Unable to finish processing event "rpc" with ID 5 priority 0 (timeout probably).
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 2 event new RPC.
[INF]: NP: Session 2: thread 2 event reply error.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 546 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Published event "rpc" with ID 6 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:unlock" "rpc" event with ID 6 priority 0 (remaining 1 subscribers).
[ERR]: SR: Callback event "rpc" with ID 6 processing timed out.
[WRN]: SR: Event "rpc" with ID 6 priority 0 failed (Timeout expired).
[ERR]: SR: Module "yang" is locked by session 505 (NC SID 2).
[ERR]: SR: Unable to finish processing event "rpc" with ID 6 priority 0 (timeout probably).
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 2 event new RPC.
[INF]: NP: Session 2: thread 2 event reply error.

Hi,
I am not sure about the log because it only says that <lock> RPC timed out, which then resulted in the rest of the errors. However, working with metadata (XML attributes) is not supported by NETCONF (not specified anywhere) so whatever you were doing, it was wrong.
Regards,
Michal

how to enable the content of RPC received at netopeer2 server ?

Hi,
by netopeer2-server -c MSG, works only when build in debug mode.
Regards,
Michal

Hi,
Below is the RPC being sent from a client, not sure why is failing on server side.

rollback-on-error

45
true

Could you please help me in this issue.

Hi,
I do not know either. If the initial server output is still relevant then there is some problem with how the datastore is locked, possibly just a timeout problem but it is hard to guess. You can increase the timeouts in netopeer2 by setting DATA_CHANGE_TIMEOUT and RPC_TIMEOUT (only in devel).
Regards,
Michal

Hi,
I am trying to perform the edit-config operation by using netopeer2-cli and it is getting error.
I am not able find the issue.
<SubNetwork
 xmlns="urn:3gpp:sa5:_3gpp-common-subnetwork"
 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <id>3</id>
  <attributes>
   <userLabel>Test</userLabel>
   <priorityLabel>5</priorityLabel>
  </attributes>
  <MeasurementControl xmlns="urn:3gpp:sa5:_3gpp-common-measurements">
   <id>6</id>
   <MeasurementReader>
    <id>7</id>
    <attributes>
     <measurementTypes>abc</measurementTypes>
    </attributes>
   </MeasurementReader>
  </MeasurementControl>
</SubNetwork>

Netopeer-cli Error::

edit-config --target running --config=/usr/local/bin/subnetwork.xml
ERROR
type:     application
tag:      operation-failed
severity: error
path:     /_3gpp-common-subnetwork:SubNetwork[id='3']
message:  Unknown element "MeasurementControl".

Netopeer2 server log::
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Session 18 (user "root") created.
[INF]: LY: Resolving unresolved data nodes and their constraints...
[INF]: LY: All data nodes and constraints resolved.
[INF]: SR: Published event "rpc" with ID 3 priority 0 for 1 subscribers.
[INF]: SR: Processing "/ietf-netconf:edit-config" "rpc" event with ID 3 priority 0 (remaining 1 subscribers).
[INF]: NP: edit-config error-option "stop-on-error" not supported, rollback-on-error will be performed.
[ERR]: LY: Unknown element "MeasurementControl". (/_3gpp-common-subnetwork:SubNetwork[id='3'])
[INF]: SR: Finished processing "rpc" event (callback fail) with ID 3 priority 0 (remaining 1 subscribers).
[ERR]: SR: Unknown element "MeasurementControl".
[WRN]: SR: Event "rpc" with ID 3 priority 0 failed (libyang error).
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 2 event new RPC.
[INF]: NP: Session 2: thread 2 event reply error.

Hi,
I cannot know what the exact problem is without seeing the YANG modules. Most likely the node MeasurementControl does not belong to the namespace urn:3gpp:sa5:_3gpp-common-measurements or has a disabled if-feature.
Regards,
Michal

Hi,
Please find the below yang model and also edit-config operations.
Please let me know what are change i need to do for working it. so i can do some operation on 3gpp measurement yang model.
<SubNetwork
 xmlns="urn:3gpp:sa5:_3gpp-common-subnetwork"
 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <id>3</id>
  <attributes>
   <userLabel>Test</userLabel>
   <priorityLabel>5</priorityLabel>
  </attributes>
  <MeasurementControl xmlns="urn:3gpp:sa5:_3gpp-common-measurements">
   <id>6</id>
   <MeasurementReader>
    <id>7</id>
    <attributes>
     <measurementTypes>abc</measurementTypes>
    </attributes>
   </MeasurementReader>
  </MeasurementControl>
</SubNetwork>

module _3gpp-common-subnetwork {
 yang-version 1.1;
 namespace "urn:3gpp:sa5:_3gpp-common-subnetwork";
 prefix "subnet3gpp";

 import _3gpp-common-yang-types { prefix types3gpp; }
 import _3gpp-common-top { prefix top3gpp; }
 import _3gpp-common-measurements { prefix meas3gpp; }
 import ietf-yang-schema-mount { prefix yangmnt; }
 organization "3GPP SA5";

 description "Defines basic SubNetwork which will be augmented by other IOCs";
 reference "3GPP TS 28.622
 Generic Network Resource Model (NRM)
 Integration Reference Point (IRP);
 Information Service (IS)

 3GPP TS 28.620
 Umbrella Information Model (UIM)";

 revision 2019-06-17 {
 description "Initial revision";
 reference "Based on
 3GPP TS 28.620 V15.X.XX
 3GPP TS 28.622 V15.X.XX";
 }
 feature ExternalsUnderSubNetwork {
 description "Classes representing external entities like EUtranFrequency,
 ExternalGNBCUCPFunction, ExternalENBFunction
 are contained under a Subnetwork list/class.";
 }

 feature MeasurementsUnderSubNetwork {
 description "The MeasurementSubtree shall be contained under SubNetwork";
 }

 grouping Domain_Grp {
 description "A domain is a partition of instances of managed entities
 such that :
 - the group represents a topological structure which describes the
 potential for connectivity
 - Subject to common administration
 - With common characteristics";

 leaf dnPrefix {
 type types3gpp:DistinguishedName;
 reference "Annex C of 32.300 ";
 }

 leaf userLabel {
 type string;
 description "A user-friendly (and user assignable) name of this object.";
 }

 leaf userDefinedNetworkType {
 type string;
 description "Textual information indicating network type, e.g. 'UTRAN'.";
 }
 }
 grouping SubNetworkGrp {
 uses Domain_Grp;
 uses meas3gpp:Measurements;

 leaf-list setOfMcc {
 description "Set of Mobile Country Code (MCC).
 The MCC uniquely identifies the country of domicile
 of the mobile subscriber. MCC is part of the IMSI (3GPP TS 23.003)
 This list contains all the MCC values in subordinate object
 instances to this SubNetwork instance.
 See clause 2.3 of 3GPP TS 23.003 for MCC allocation principles.
 It shall be supported if there is more than one value in setOfMcc
 of the SubNetwork. Otherwise the support is optional.";
 type types3gpp:Mcc;
 }
 leaf priorityLabel {
 mandatory true;
 type uint32;
 }

 }
 list SubNetwork {
 key id;
 description "Represents a set of managed entities";
 uses top3gpp:Top_Grp;
 container attributes {
 uses SubNetworkGrp;
 leaf-list parents {
 description "Reference to all containg SubNetwork instances
 in strict order from the root subnetwork down to the immediate
 parent subnetwork.
 If subnetworks form a containment hierarchy this is
 modeled using references between the child SubNetwork and the parent
 SubNetworks.
 This reference MUST NOT be present for the top level SubNetwork and
 MUST be present for other SubNetworks.";
 type leafref {
 path "../../../SubNetwork/id";
 }
 }

 leaf-list containedChildren{
 description "Reference to all directly contained SubNetwork instances.
 If subnetworks form a containment hierarchy this is
 modeled using references between the child SubNetwork and the parent
 SubNetwork.";
 type leafref {
 path "../../../SubNetwork/id";
 }
 }
 }

 uses meas3gpp:MeasurementSubtree {
 if-feature MeasurementsUnderSubNetwork ;
 }
 yangmnt:mount-point children-of-SubNetwork {
 description "Mountpoint for ManagedElement";
 reference "RFC8528 YANG Schema Mount";
 }

 // augment external parts here
 }
}

module _3gpp-common-measurements {
 yang-version 1.1;
 namespace "urn:3gpp:sa5:_3gpp-common-measurements";
 prefix "meas3gpp";

 import _3gpp-common-top { prefix top3gpp; }
 import _3gpp-common-yang-types { prefix types3gpp; }
 organization "3GPP SA5";

 description "Defines Measurement related groupings
 Any list/class intending to use this should include 2 uses statements
 controlled by a feature:

 A)
+++ feature MeasurementsUnderMyClass {
+++ description 'Indicates whether measurements are supported for this class.';
+++ }

 B) include the attribute supportedMeasurementsGPs indicating the
 supported measurmentTypes and GPs. Note that for classes inheriting from
 ManagedFunction, EP_RP or SubNetwork this attribute is already inherited,
 so there is no need to include it once more.E.g.

 grouping MyClassGrp {
+++ uses meas3gpp:Measurements;
 }

 C) include the classes MeasurementControl & MeasuremntReader to
 control the measurements. E.g.

 list MyClass {
 container attributes {
 uses MyClassGrp;
 }
+++ uses meas3gpp:MeasurementSubtree {
+++ if-feature MeasurementsUnderMyClass ;
+++ }
 }

 Measurements can be contained under ManagedElement, SubNetwork, or
 any list representing a class inheriting from EP_RP, Subnetwork or
 ManagedFunction.";

 reference "3GPP TS 28.622
 Generic Network Resource Model (NRM)
 Integration Reference Point (IRP);
 Information Service (IS)";
 revision 2019-06-17 {
 reference "Based on
 3GPP TS 28.622 V15.X.XX";
 }

 feature StreamingSupported {
 description "The delivery of measurement data using streaming is supported.";
 }
 grouping Measurements {
 description "Identifies the supported Measurement types and their
 supported GPs.";

 list supportedMeasurementsGPs {
 config false;
 key measurementType;
 description "List of supported Measurement types and their
 supported GPs for the parent function/class";

 leaf measurementType {
 type string;
 }

 leaf-list supportedGPs {
 type uint32 ;
 min-elements 1;
 units second;
 description "GP (granularity period) is the time between the initiation
 of two successive gatherings of measurement data.";
 }
 }
 }

 grouping MeasurementControlGrp {
 description "represents the capabilities to produce and deliver Measurements
 identified by a MeasurementReader.
 There are two delivery methods (i.e. file-based and stream-based) via
 which the consumer(s) can receive the Measurements.";
 leaf pMAdministrativeState {
 default LOCKED;
 type types3gpp:AdministrativeState ;
 description "It describes the permission to use or prohibition against
 using the capability of MeasurementControl, imposed through the consumer
 of OAM services produced by MeasurementControl,
 The measurement report production would begin when pMadministrativeState
 is UNLOCKED and pMoperationalState is ENABLED.";
 }

 leaf pMOperationalState {
 config false;
 mandatory true;
 type types3gpp:OperationalState ;
 description "Indicates whether the MeasurementControl is working.";
 }
 leaf defaultFileLocation {
 type string ;
 description "It is the path to the location where produced
 measurement reports (containing PM data) are stored. File based
 measurement delivery will not start if this leaf does not have a
 valid value.

 It is the path to a location on either the producer’s file system or a
 URI to a network file location that is not part of the producer’s file
 system. In case it points to a location on the producer’s file system,
 it is a relative path based on a vendor-specified root directory for
 measurement files.

 The size of this fileLocation is decided by consumer and producer.
 The producer is expected to remove old files to make room for
 new files, when necessary.

 This value is ignored in case the fileLocation leaf in the
 MeasurementReader is defined.";
 }

 leaf defaultFileBasedGP {
 when '../defaultFileLocation' ;
 mandatory true;
 type uint32 ;
 units second;
 description "GP (granularity period) defines the frequency of producing
 measurement data. Measurement data would be produced immediately at the
 end of each fileBasedGP.

 This value is ignored in case the fileBasedGP leaf in the
 MeasurementReader is defined.";
 }

 leaf defaultFileReportingPeriod {
 when '../defaultFileLocation' ;
 must '. *60 >= ../defaultFileBasedGP' {
 error-message "defaultFileBasedGP must not be greater than defaultFileReportingPeriod";
 }
 mandatory true;
 type uint32 ;
 units minute;
 description "The frequency of producing the measurement report files.
 A measurement report file contains multiple measurement data.

 This value is ignored in case the fileReportingPeriod leaf in the
 MeasurementReader is defined.";
 }

 leaf defaultStreamTarget {
 if-feature StreamingSupported ;
 type string ;
 description "Identifies the target of the notifications carrying the
 content of the measurement report.
 This value is ignored in case the streamTarget leaf in the
 MeasurementReader is defined.";
 }

 leaf defaultStreamBasedGP {
 if-feature StreamingSupported ;
 when '../defaultStreamTarget' ;
 mandatory true;
 type uint32 ;
 units second;
 description "It defines the frequency of producing and sending the
 Measurement to the streamTargets.

 This value is ignored in case the streamBasedGP leaf in the
 MeasurementReader is defined.";
 }
 }

 grouping MeasurementReaderGrp {
 description "Identifies the entity whose Measurements are required by
 consumer, the types of Measurements required and the delivery method for
 the measurements.";
 leaf-list measurementTypes {
 type string ;
 description "The Measurement type to be reported. It must be one of the
 measurmentTypes supported by the containing function/class.
 The Measurement type can be those specified in TS 28.552,
 TS 32.404 and can be those specified by other SDOs or can be
 vendor-specific.";
 }

 leaf-list managedObjectDNsBasic {
 type types3gpp:DistinguishedName ;
 description "Identifies the managed functions whose Measurements are
 required to be produced.

 It identifies specific managed entities (say X, Y, Z). It would mean
 Measurements type specified in MeasurementReader.measurementTypes,
 are required to be produced if X, Y, Z are capable of supporting
 the Measurement types.
 If managedObjectDNs of the same MeasurementReader instance has valid
 information, the information of this leaf-list is ignored.";
 }

 leaf-list managedObjectDNs {
 type types3gpp:DistinguishedName ;
 description "Identifies the managed entities whose Measurements are
 required to be produced.
 In case the base is SubNetwork, it identifies all, including the base,
 managed entities that are subordinates, in the sense of name-containment,
 of the base.
 In case the base is NetworkSliceSubnet, it identifies all, including
 the base, managed entities that has aggregation association relation
 with the base.
 We called the identified entities a collection. It would mean
 Measurement types specified in attribute
 MeasurementReader.measurementTypes, are required to be produced if the
 member (of the collection) is capable of supporting the Measurement
 types.";
 }
 leaf fileLocation {
 type string ;
 description "It is the path to the location where produced
 measurement reports (containing PM data) are stored. File based
 measurement delivery will not start if this leaf does not have a
 valid value.

 It is the path to a location on either the producer’s file system or a
 URI to a network file location that is not part of the producer’s file
 system. In case it points to a location on the producer’s file system,
 it is a relative path based on a vendor-specified root directory for
 measurement files.

 The size of this fileLocation is decided by consumer and producer.
 The producer is expected to remove old files to make room for
 new files, when necessary.

 If defined this value overrides the value of defaultFileLocation in the
 parent MeasuremnetControl.";
 }

 leaf fileBasedGP {
 when '../fileLocation' ;
 mandatory true;
 type uint32 ;
 units second;
 description "GP (granularity period) defines the frequency of producing
 measurement data.";
 }

 leaf fileReportingPeriod {
 when '../fileLocation' ;
 must '. *60 >= ../fileBasedGP' {
 error-message "fileBasedGP must not be greater than fileReportingPeriod";
 }
 mandatory true;
 type uint32 ;
 units minute;
 description "The frequency of producing the measurement report files.";
 }

 leaf streamTarget {
 when 'not(../fileLocation)' ;
 type string ;
 description "Identifies the target of the notification carrying the
 content of the measurement report.
 There are two delivery methods (i.e. file-based and stream-based) via
 which the consumer(s) can receive the Measurements. This attribute
 is used for the stream-based delivery method.";
 }

 leaf streamBasedGP {
 when '../streamTarget' ;
 mandatory true;
 type uint32 ;
 units second;
 description "Defines the frequency of producing and sending the
 Measurement to the consumer.";
 }
 }

 grouping MeasurementSubtree {
 description "Contains classes that define measurements.
 Should be used in al classes (or classes inheriting from)
 - SubNnetwork
 - ManagedElement
 - ManagedFunction
 - NetworkSliceSubnet
 - EP_RP

 If some YAM wants to augment these classes/list/groupings they must
 augment all user classes!

 If a class uses this grouping in its list it shall also use the
 grouping Measurements to add supportedMeasurementsGPs as
 an attribute to its grouping";

 list MeasurementControl {
 description "Represents the properties of the file-based and stream-based
 measurement delivery methods.

 The file-based delivery method has properties for the file location,
 the file reporting period and the file-based GP.
 The stream-based delivery method has properties for the stream target
 and the stream-based GP.
 These properties are labelled as default (e.g. defaultFileBasedGP) in
 that they will be ignored in case the same properties captured in
 MeasurementReader are used.

 Instance of this list shall not be created nor deleted by client. It
 shall be created and deleted by the system.
 Depending on particular deployment context and agreement between
 operator and vendor, all attributes could be config=false.";
 key id;
 uses top3gpp:Top_Grp ;
 container attributes {
 uses MeasurementControlGrp ;
 }

 list MeasurementReader {
 description "Identifies the entity (derivatives of ManagedFunction)
 whose Measurements are required by consumer to be produced and
 captured. The types of Measurements required are identified by the
 measurementNames.

 It captures the properties of the two delivery methods for delivering
 the Measurements.
 The file-based delivery method has properties: fileLocation,
 reportingPeriod and fileBasedGP.
 The stream-based delivery method has properties: streamTarget and
 streamBasedGP.
 The parent MeasurementControl list entry also can capture the
 properties of the file-based and stream-based delivery methods.
 If the MeasurementReader instance’s file-based delivery method has
 valid properties, the file-based delivery method is used and the
 MeasurementControl instance’s file-based delivery method is ignored.
 If the MeasurementReader instance’s stream-based delivery method has
 valid properties, the stream-based delivery method is used and the
 MeasurementControl instance’s stream-based delivery is ignored.
 The file-based and stream-based delivery methods can be active at the
 same time for a MeasurementReader instance.
 The activity of a MeasurementReader instance is independent of that
 of other MeasurementReader instances.
 This IOC uses managedObjectDNs or managedObjectDNsBasic to identify
 specific managed entities whose Measurements are required by consumer.";

 key id;
 uses top3gpp:Top_Grp ;
 container attributes {
 uses MeasurementReaderGrp;
 }
 }
 }
 }
}

Hi,
so it seems you are using schemas with schema-mount extension and libyang does not support that currently. But may soon (cesnet/libyang#691).
Regards,
Michal


Docs website down

Not sure if this is the right place to post this but I believe that the documentation site is down.
I've verified that: https://create-react-app.dev/docs/deployment
fails on https://downforeveryoneorjustme.com/
Cheers!
P

Seems to be working now, can you confirm?

Yep, all good thanks


Dropbox images gone

Not a real problem/bug, but it seems like you lately removed the images from your dropbox. They are not visible on the github-readme anymore.

Thanks for the ping. The images are still there, but I lost the public folder when dowgrading from Dropbox Pro. Migrated them to GitHub.
Fixed in https://github.com/jdg/MBProgressHUD/commit/a7c3601fbd58946c9dc0892ab9394f2e1f3c4d89


show actual values in error message

... instead of just throwing an empty runtime exception.
Problem
Before this change, test might fail with an unclear message:
java.lang.RuntimeException
	at net.datafaker.Issue759.issue759Test(Issue759.java:93)

or the output of multiple failing tests might be mixed:
 0 0 0 0 0
 0 0 0 0 0
 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0
 0 0 0
 0 0 0
 0 0 0
 0

 0 0 0 0 0

java.lang.RuntimeException
	at net.datafaker.Issue759.issue759Test(Issue759.java:93)

Solution
Now the error message is clear:
java.lang.AssertionError: Not all of s[0, 0, 0, 0, 0] are not equal to 20000

	at net.datafaker.Issue759Test.issue759Test(Issue759Test.java:85)

P.S.
To reproduce the issue, just put breakpoint, say, to any field of WorkerThread, run Issue759 test in debug mode and resume the execution after stopping on the breakpoint.

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

Project coverage is 92.03%. Comparing base (b37c566) to head (393a6e9).
Report is 97 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1196      +/-   ##
============================================
- Coverage     92.35%   92.03%   -0.32%
- Complexity     2821     2888      +67
============================================
  Files           292      300       +8
  Lines          5609     5726     +117
  Branches        599      618      +19
============================================
+ Hits           5180     5270      +90
- Misses          275      294      +19
- Partials        154      162       +8

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

Thanks for your contribution @asolntsev
it seems there was a long standing issue with this test, which apparently started to reproduce with your PR [1] on Windows only...
I submitted a fix for that (a bit more description is below)
If you are ok with it, we can merge it, otherwise please express your concerns
About the issue:
It looks the problem was with the code
        int[] lastIters = getIterations(threads);
        while (true) {
            Thread.sleep(100);
            int[] iters = getIterations(threads);
            if (Arrays.equals(lastIters, iters)) {
                // Either all threads are done, or something is probably stuck
                System.err.println();
                if (allElementsEqual(iters, iterationsPerThread)) {
                    break;
                } else {
                    printIterations(iters);
                    throw new RuntimeException();
                }
            }

On Windows it could happen that we reach the line if (allElementsEqual(iters, iterationsPerThread)) { before the threads are even started... as a result there was none iterations executed...
The idea of fix is to measure amount of time of being unchanged and react on the fact that this amount of time is exceeded some limit.

@snuyanzin Thank you for sharing the information.
Now I looked at the test once more and realized it can be simplified using Java built-in class CountDownLatch.
Look my last commit. :)

@asolntsev Indeed it is better approach
Thanks a lot!
It look great
I left one tiny comment


Add a solution for the Minimal Tokens Exercise

Closes #34

Submitted to Base Goerli: https://goerli.basescan.org/address/0xF0bd02c87f42F920d498d964ee87311DBCc0eFeC#code


OCPBUGS-18461: Dockerfile: use the rhel9 based builder to build the binaries

Using rhel9 based builder

/jira refresh

/lgtm

/retest

/retest


Let defaultRoot be null

Related: #25

@wmhilton yeah, these pass on master too
https://app.circleci.com/pipelines/github/stoplightio/json-schema-ref-parser/105/workflows/f0892d4c-d5fa-4bda-a697-ec9593614282/jobs/352
IIRC it's due to screwed mocking.

@P0lip is this a blocker for anything?


NPM Provenance - a build signature badge

As an user,
I want to be assured that all released packages are coming from notable source,
to be able to trust the package I'm adopting into my project.

Setup an NPM provenance for CI that will mark all of our release packages as "✅ Build & signed on GitHub Actions".
https://www.npmjs.com/package/sigstore#provenance

Blocked until we move all our releases to GitHub Actions


Fix metric namespaces for Email Alert API

Previously we updated the metric collection worker to use GovukStatsd
defaults to export metrics 1. Unfortunately this caused an unintentional
change in the namespace of the metrics exported. The new per-machine
namespace is actually more consistent with every other app, so this
changes the alerts to use the new namespace.
Previously the machine-agnostic metrics were automatically averaged into
a single gauge. This replicates the previous averaging by using an
explicit Graphite function.

[ ] deploy this to Integration and check each alert is associated with a live metric
[ ] plan follow-up work to report when these metrics are dead, so we know in future


Added dockerconfig workspace and corrected regex expression for all 3 tasks.

Added the optional dockerconfig workspace to the S2I task to provide flexibility to the customers to provide their dockerfile and also to make our task at par with the S2I clustertasks.
Signed off by:- @Senjuti256<EMAIL_ADDRESS>

/retest

/retest-required

/test osp-113-ocp-414-e2e


fix: increase Node memory limit to workaround webpack crash, fix #1453

https://github.com/vuejs/vue-cli/issues/1453#issuecomment-396811585
@yyx990803 I've been running with this setting for a while and haven't encountered crashes any more.

Well, the builds are failing probably because this hits the memory limit on CircleCI: https://circleci.com/docs/1.0/oom. Wondering what should we do here...

The root cause seems to be https://github.com/webpack/webpack/issues/6929.
I've been running this for a while, this lessens the issue but doesn't completely work around it. In 10-20 minutes of heavy editing I still get OOM error.

@yyx990803 @octref  the memory leaks found in https://github.com/webpack/webpack/issues/6929 have been resolved in
https://github.com/webpack/webpack/releases/tag/v4.15.1
which might resolve the issues in https://github.com/vuejs/vue-cli/issues/1453

@DRoet Gave it a try, didn't help. https://github.com/webpack/webpack/issues/6929#issuecomment-402845683

@yyx990803  help me !~~

@octref a fix for another memory leak landed in:
https://github.com/postcss/postcss-loader/releases/tag/v2.1.6
I'll try and test it out myself later


duplicated terms?

http://amigo.geneontology.org/amigo/term/GO:0103054
http://amigo.geneontology.org/amigo/term/GO:0102972
these look like the same thing to me...
neither has any annotations.
Should they be merged?

my goodness these have been there a while - they fail exact name checks since they differ by a space character...
these have different metacyc IDs associated
MetaCyc:RXN-6544
MetaCyc:RXN-947

If they have different metacycs they should be different so may need to change term name anyways; I think these are from Peifen; I'll check. All these plant giberillins give me a headache.

Ah yes products .. I missed that difference going back and forth between the two screens.. thought I checked the equations.

Name changes
Accession  GO:0102972
Name  gibberellin A12,2-oxoglutarate:oxygen oxidoreductase activity (gibberellin A110-forming)
Accession GO:0103054
Name gibberellin A12, 2-oxoglutarate:oxygen oxidoreductase activity (gibberellin A15-forming)
done


Add support for aeroway=gate

Please consider adding support for aeroway=gate e.g. in the "tree view".
At the moment I can add a gate (like any other unsupported tag) by creating a new node using a different preset and manually changing the tags. It'll then appear in the tree view as an airport gate and I can upload it. But I can't select an existing airport gate and move or delete it.
(Also thanks for developing this fantastic editor!)

Good idea! I wonder if those should be snapped to building contours, like entrances.

Not sure. I've seen them placed just inside the terminal building, on the outline, and just outside the building.

Okay, should be available in micromapping mode (I know, but definitely not an amenity) in 5.0.


null is not an object (evaluating' reactNative.NativeModules.NativeMobileSDKBridge.startMeeting')

I have integrated the amazon sdk in react native. I have followed this step : https://github.com/aws-samples/amazon-chime-react-native-demo#2-add-sdk-binaries-to-the-project.
Step to reproduce :

add sdk to the project.
Add this folder to the project :  https://github.com/aws-samples/amazon-chime-react-native-demo/tree/master/src

Screenshot of the issue :

Environment Setup :
React Native : 0.68.8
SDK version : 0.17.9
React : 17.0.2
Mac Version : 12.4
buildToolsVersion = "31.0.0"
Build Gradle :
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
ndkVersion = "21.4.7075529"
Note : I have already reinstalled node_modules and gradlew clean

Thanks for reporting. We'll take a look and get back to you.

Hi I have tried on my machine, but I wasn't still able to do reproduce the same.
I have tried with node v16.16.0 and tried on following PR and see if it works for you?
https://github.com/aws-samples/amazon-chime-react-native-demo/pull/173

Hi @hokyungh, I am sharing a video for you to check the things which we have done. We have degraded the node version from the 19.4.0 to 16.16.0 as mentioned and also upgraded the Amazon chime to

'software.aws.chimesdk:amazon-chime-sdk:0.17.9'
'software.aws.chimesdk:amazon-chime-sdk-media:0.17.10'

Still its running the same error as you can see in the video recording
Please advice what needs to be done from our end
amazon_chime-Integration-error.mp4.zip

Could you share minimal demo where you are having issue? Based on the video, I don't think it was using the PR I published.

Here is the full uses video of  library as well as setup part
https://drive.google.com/file/d/146yD8w5s7e_yPfz4E40oGXTamG1bOaNQ/view?usp=sharing

Hi for minimal demo I wanted some repo which I can run it locally. Based on the video, it is hard to know what you have copied and what is missing. For example, do you have code1 and code2? When you build android, do you see these files getting built from the logs?

Hi @hokyungh, here is the demo application that I have created with the same configuration of our current application.
https://github.com/devsonuyadav/chimesdk.git. Please let me know if anything more information required

Hi @devsonuyadav, I have taken a look at your repo, but looks like it is missing a lot of files as described here. I don't see files like

NativeMobileSDKBridge.kt:Functions that will be available in React Native through Native Module.
RNEventEmitter.kt: Utility class that provides helper to send events to React Native.
MeetingObservers.kt: Event handlers to pass Amazon Chime SDK events into React Native.
RNVideoViewManager.kt: UI component manager.
NativeMobileSDKBridgePackage.kt:  Package definition to register the bridge in the Android application.

Could you add these and retest? You might need to change the package name and import.
You can compare the files rndemo and chimesdk to see which files are missing.

facing the same problem...trying a workaround if found will post here.

able to solve following the steps above.

I'll close this issue since I wasn't able to reproduce from my side. Feel free to reopen if you still face issue. @equilizer do you mind opening new issue for it with repro steps?


Bugfix: plugin installer crash on non-text responses

processResponseSubsection was failing if any of the responses contains a false or null or anything with not surrounded by "".
Change the regexp to match these cases.
Should fix #21

One issue with the plugin installer is that it depends on GitHub not changing their HTML. When they do that it can break.


SoundChecker - Test THD and SNR - The graph at the bottom does not show completely?

Launch Sound-Checker
Select "Test THD and SNR"
Select input device / output device
Start the test

EXPECTED
We can see the whole wave graph (from top to the bottom)
ACTUAL
The bottom part of waves got cut
Tested on Pixel 7 and Pixel 7 Pro. Same results.

The wave display may be going to zero, which can look cut off.
The "logarithmic" checkbox should be below the graph in the latest version of SoundChecker.
Please update to the newest version.

This is as intended. You are seeing the bottom of the graph.


Failed to register FillShader#cebf426f1e2d36cb

Describe the bug
We are getting a new error upon rolling out metal.
std::runtime_error: Failed to register FillShader#cebf426f1e2d36cb with shader group!

0  redacted +0x6b9faec          mbgl::mtl::ShaderGroup<(mbgl::shaders::BuiltIn)7>::getOrCreateShader(mbgl::gfx::Context&, std::__1::pair<ankerl::unordered_dense::v4_1_2::detail::table<std::__1::basic_string_view<char, std::__1::char_traits<char> >, void, ankerl::unordered_dense::v4_1_2::hash<std::__1::basic_string_view<char, std::__1::char_traits<char> >, void>, std::__1::equal_to<std::__1::basic_string_view<char, std::__1::char_traits<char> > >, std::__1::allocator<std::__1::basic_string_view<char, std::__1::char_traits<char> > >, ankerl::unordered_dense::v4_1_2::bucket_type::standard, false>, ankerl::unordered_dense::v4_1_2::detail::table<unsigned long, void, ankerl::unordered_dense::v4_1_2::hash<unsigned long, void>, std::__1::equal_to<unsigned long>, std::__1::allocator<unsigned long>, ankerl::unordered_dense::v4_1_2::bucket_type::standard, false> > const&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) (shader_group.hpp:72:17)
1  redacted +0x6987134          mbgl::RenderFillLayer::update(mbgl::gfx::ShaderRegistry&, mbgl::gfx::Context&, mbgl::TransformState const&, std::__1::shared_ptr<mbgl::UpdateParameters> const&, mbgl::RenderTree const&, std::__1::vector<std::__1::unique_ptr<mbgl::ChangeRequest, std::__1::default_delete<mbgl::ChangeRequest> >, std::__1::allocator<std::__1::unique_ptr<mbgl::ChangeRequest, std::__1::default_delete<mbgl::ChangeRequest> > > >&) (render_fill_layer.cpp:570:34)
2  redacted +0x69c48f8          mbgl::RenderOrchestrator::updateLayers(mbgl::gfx::ShaderRegistry&, mbgl::gfx::Context&, mbgl::TransformState const&, std::__1::shared_ptr<mbgl::UpdateParameters> const&, mbgl::RenderTree const&) (render_orchestrator.cpp:913:21)
3  redacted +0x69d0428          mbgl::Renderer::Impl::render(mbgl::RenderTree const&, std::__1::shared_ptr<mbgl::UpdateParameters> const&) (renderer_impl.cpp:218:22)
4  redacted +0x69cf384          mbgl::Renderer::render(std::__1::shared_ptr<mbgl::UpdateParameters> const&) (renderer.cpp:35:15)
5  redacted +0x685a3f4          MLNRenderFrontend::render() (MLNRendererFrontend.h:55:19)
6  redacted +0x685a374          -[MLNMapView renderSync] (MLNMapView.mm:1152:32)
7  redacted +0x6876b84          MLNMapViewImpl::render() (MLNMapView+Impl.mm:24:5)
8  MetalKit +0x2638         -[MTKView draw]
9  QuartzCore +0x1dca0      CA::Layer::layout_and_display_if_needed(CA::Transaction*)
10 QuartzCore +0x2f094      CA::Context::commit_transaction(CA::Transaction*, double, double*)
11 QuartzCore +0x663c0      CA::Transaction::commit()
12 QuartzCore +0x29d44      CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long)
13 QuartzCore +0x3b3e4      display_timer_callback(__CFMachPort*, void*, long, void*)
14 CoreFoundation +0x7bb2c  ___CFMachPortPerform
15 CoreFoundation +0x9900c  ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
16 CoreFoundation +0x9ac14  ___CFRunLoopDoSource1
17 CoreFoundation +0x7c448  ___CFRunLoopRun
18 CoreFoundation +0x811e0  _CFRunLoopRunSpecific
19 GraphicsServices +0x1364 _GSEventRunModal
20 UIKitCore +0x3a2d84      -[UIApplication _run]

To Reproduce
Currently, unsure about repro steps
Platform information (please complete the following information):

OS: iOS
Platform iOS
Version: v6.4.1

Additional context
It appears to be happening across all versions of ios and models.

The line in question:
https://github.com/maplibre/maplibre-native/blob/096ea7fc9b91c39c85a45348b5c6dc361cff28fa/include/mbgl/shaders/mtl/shader_group.hpp#L72
cc @TimSylvester

What distribution are you using? Is this happening with a small demo app as well?

There are two things that could cause that exception, so we should probably break them out into separate errors.
But most likely seems to be a shader compiler error, which in turn is likely because of some inconsistency in that particular permutation.  Unfortunately it's difficult to reverse the hash into a permutation.  We don't have coverage for shaders, so there may be values that none of our tests use via attributes or uniforms.
@bsudekum Can you share the style and data that was being used?
Also, there may be a message in the console describing the shader compilation error.

@louwers haven't been able to repro yet.
Shared with style with tim on slack.
Haven't seen anything in the console when running locally.

Local testing indicates that all the #if cases are being used without errors, so it's not that simple.

Thanks for looking into it @TimSylvester!

Found an interesting log prior to the crash
[event]:Shader [code]:-1 [message]:SymbolIconShader#1cacc8927eff4040 compile failed: <built-in>:1:2: fatal error: file
'/private/var/mobile/Containers/Data/Application/9591DBF5-F80A-447A-A1C8-
E8688F1F4532/Library/Caches/com.zimride.instant/com.apple.metalfe/6N0KXPNH8M9S/monolithic_metal.pcm' is not a
valid precompiled module file
#include "metal_types"
 ^

Looks like mapbox encountered the problem before, not notes how it was fixed: https://github.com/mapbox/mapbox-navigation-ios/issues/3560#issuecomment-969324873

folks 🙏
just another log example below (right before the crash):
[event]:Shader [code]:-1 [message]:SymbolIconShader#697d5490a17bd584 compile failed: Compiler encountered an internal error

One other log I'm seeing is disk space related:
[event]:Database [code]:14 [message]:Can't write resource: unable to open database file

There doesn't seem to be a strong correlation between disk space and the crash, but it definitely is not uncommon.

👋 folks! Keep seeing the issue across various oses and device versions. What's is common this the log.
[event]:Shader [code]:-1 [message]:FillShader#16d7cd7f2e2773a0 compile failed: <built-in>:1:2: fatal error: file '/private/var/mobile/Containers/Data/Application/F1DC6A46-2846-4C2C-AB24-43275515F504/Library/Caches/---/com.apple.metalfe/1G2DBWOFC9OG7/monolithic_metal.pcm' is not a valid precompiled module file #include "metal_types" ^
Any guidance on resolving this is highly appreaciated.

We have seen that before (@bsudekum), but with no determined cause or resolution.  It seems to be a problem with Metal's internal caching mechanism, and was heavily skewed toward iPhone 11 in the previous report.
It was found that the same thing has been reported with Chromium, where it seems to stem from a problem with the setup of sandboxing not allowing write access to the cache directory.  If the application is using App Sandbox Entitlement, it may be necessary to add the GPU helper's bundle ID to the sandbox profile, as described in the Chromium issue.
A lack of storage space would also explain failures to write cache files, of course.


New style modals

Refactoring the Settings and Edit Listing modals to use the new modal style.
FWIW, the majority of the markup changes aren't as big as the diff report leads you to believe. It's just that some wrapping elements were put in and github can't make sense of it... so it all looks new.
Also, settings JS got a bit of a refactor because there is no longer one single Save button for the entire Settings modal. Instead, each tab has it's own save, so it didn't make sense to route some of the save functionality through the parent view as was being done.
closes #231
closes #207
closes #152

@rmisio looks like there are some minor merge conflicts. Other than that, it looks good.


help me

Challenge Use CSS Selectors to Style Elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Thank you for reporting this issue.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "Help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding.


Reset PayloadBuffer every time Port is opened or in the event of an overflow

Running https://github.com/Simpit-team/KerbalSimpitRevamped-Arduino/blob/main/examples/KerbalSimpitHelloWorld/KerbalSimpitHelloWorld.ino#L34 I often get an IndexOutOfRange exception on handshake and the port status hangs on WAITING_HANDSHAKE.

This does not occur every time, and often only once per Arduino power cycle. Relaunching KSP often fixes it.
That said, it can be a very annoying issue with multiple mods installed and longer game load times. Manually closing and re-opening the port in game does not fix the issue when this occurs.
After some debugging I've found that, for some reason, the Arduino is sending several messages containing nothing but a single byte value:

The screenshot above demonstrates the contents of 3 incoming messages, followed by a properly formed Handshake. The initial 3 messages contain nothing but the byte 0x47
In my debugging I've seen 3 possible values: 0x7, 0x47, and 0x83. After a quick glance at https://github.com/Simpit-team/KerbalSimpitRevamped-Arduino/ I found no obvious cause for this data spam or significance behind the listed byte values.
In these instances KSPSerialPort::RecievedDataEvent never receives a 0x0 byte and thus the overflow is allowed to happen.
Currently, a newly opened port never resets the CurrentBytesRead value, which prevents simply closing/re-opening the port from resolving the issue.

Changes in this PR will:

Ensure CurrentBytesRead gets reset each time a port is opened
Reset CurrentBytesRead in the event of a PayloadBuffer overflow, discarding all remaining message contents at that time

Thanks for the catch, I have added it in the develop branch and it will be integrated in the next release.


1.3.0 breaks in Narwhal JS

You all switched to only using module.exports for serverside JS.
That is a non-standard extensions supported by some, but not all serverside JS.
The previous version 1.2.0 worked fine.

I’m bumping into this issue when using jquery/qunit + jdalton/qunit-clib to run bestiejs/punycode.js unit tests. Please revert!

Will also break in RingoJS < v0.8

The previous version was exporting things twice. Is it enough to use extend(exports, QUnit); to make it work in both environments? Can someone help out with a patch that make it work as var QUnit = require('qunit'); in node.js, and whatever is used on Narwhal/Ringo?

For Punycode.js I used this pattern: https://github.com/bestiejs/punycode.js/blob/master/punycode.js#L493-510 Thanks to @jdalton and @unscriptable.
Note that freeExports, freeModule, freeDefine, key etc. are defined at the top of the file.

Any chance NarwhalJS will also implement what node.js and RingoJS 0.8 support?

@jzaefferer It's trivial to support platforms like Narwhal by using the CommonJS standard exports object and not module.exports.
Simply change this:
// Expose the API as global variables, unless an 'exports'
// object exists, in that case we assume we're in CommonJS
if ( typeof exports === "undefined" || typeof require === "undefined" ) {
	extend(window, QUnit);
	window.QUnit = QUnit;
} else {
	module.exports = QUnit;
}

to this:
// Expose the API as global variables, unless an 'exports'
// object exists, in that case we assume we're in CommonJS
if ( typeof exports === "undefined" || typeof require === "undefined" ) {
	extend(window, QUnit);
	window.QUnit = QUnit;
} else if (typeof module === "object" && module.exports === exports) {
	(module.exports = QUnit).QUnit = QUnit;
} else {
	exports.QUnit = QUnit;
}

The reason you do (module.exports = QUnit).QUnit = QUnit; is do devs can use the same require/assign pattern cross-enviro
var QUnit = require('./qunit').QUnit;

Shouldn't that be var QUnit = require('./qunit')?

Shouldn't that be var QUnit = require('./qunit')?

The reason you do (module.exports = QUnit).QUnit = QUnit; is so devs who have code that works in multiple enviros can just stick with 1 way to require the script. So if you are only using Node.js then ya you could just do var QUnit = require('./qunit'); but if you wan't to not muck with it for multiple enviros then devs would have the option to just do var QUnit = require('./qunit').QUnit;.

extend(exports, QUnit); should work fine and make var QUnit = require('./qunit') work in both environments, I believe.
The only reason to use module.exports is if you're exporting a function.

Fixed by doing extend(exports, QUnit) and moving that the the end of the file.

I take it back :P
extend(exports, QUnit) doesn't seem to work. It just hangs at the start.
Also you left the window export in the middle of the file. It too should be moved to the bottom.

The window export is supposed to be half-way through, as we don't want to export all QUnit properties as variables.
Gonna install NarwhalJS to test it myself...

@jzaefferer Thanks for digging into it, much appreciated.

The export in NarwhalJS works fine, except when something goes wrong it chokes on jsDump's check for setInterval, or something like that. As so far no one reported that as an issue, I'm inclined to not care that much either. Specifically:
InternalError: Java class "[Ljava.lang.annotation.Annotation;" has no public instance field or method named "setInterval". (/Users/jza/dev/narwhal/packages/narwhal-lib/lib/narwhal/sandbox.js#118)
If you want to take a look, here's something to test with: d600c31749fdd4c3dff8d35e993a39d413b65012


pfft: init at 1.0.8-alpha; pnfft: init at 1.0.7-alpha

Description of changes

This contributes the two parallel FFT packages developed by TU Chemnitz.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

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

The builds fail on Darwin. Please limit the platform to Linux.


Bulk connects override bundle components even without valid assignment (different than Chisel2)

This code behaves differently in Chisel2 and 3
io.rocc.resp.ready := !(wb_reg_valid && wb_ctrl.wxd)
...
csr.io.rocc <> io.rocc

In Chisel2 because the csr module does not write to rocc.resp.ready the initial assignment is preserved and last connect semantics are ignored.
In Chisel3 last connect semantics are honored and the second bulk connect overrides the previous assignment. This leads to a random value since csr.io.rocc.resp.ready was never written to.
This anomalous behavior in Chisel2 can cause issues in porting from chisel2 to chisel3 as it silently generates a different circuit.

I think this should be filed as a ticket against chisel2 because not detecting it is a limitation of the compatibility checker


Update starter_example_local.md

see https://github.com/run-llama/llama_index/issues/10650
Description
Fix import.
Fixes #10650
Type of Change
Please delete options that are not relevant.

[x] Documentation fix

Thanks @ziodave !
Actually, https://github.com/run-llama/llama_index/pull/10619 makes this import work again, so going to close this for now in favor of a shorter import path (just need to release a new version of core, which is happening this morning!)


[page] Category

Available at http://localhost:3000/category/<category_name>, e.g. http://localhost:3000/category/beach


running for loop over all output and inputs

hello,
thank you for creating this library.
unfortunately i ran into a problem from a library i downloaded from Arduio ide.
in the example for output you declared for (size_t i = 0: i <16 ; i++)
when using this example receive:
invalid conversion from 'size_t' {aka 'unsigned int'} to 'PCA95x5::Port::Port' [-fpermissive]
ioex.write(i,PCA95x5::Level::H);
can idea how to make it work without using static_cast?

Already fixed in v0.1.3
https://github.com/hideakitai/PCA95x5/issues/8

Please see a new example.
https://github.com/hideakitai/PCA95x5/blob/main/examples/output/output.ino

yes.... its not so practical way around. isnt enum creates a uint value? so when passing an argument it should point to the correct location.

also, how many ports does read() actually reads? because it uses Reg::INPUT_PORT_0 only.

read() reads all ports. read(port) reads one port.
uint16_t read();
Level::Level read(const uint8_t port);

yes.... its not so practical way around. isnt enum creates a uint value? so when passing an argument it should point to the correct location.

I couldn't understand what you wanted to say, but feel free to make a pull request.

read() reads all ports. read(port) reads one port.
uint16_t read();
Level::Level read(const uint8_t port);

yes.... its not so practical way around. isnt enum creates a uint value? so when passing an argument it should point to the correct location.

I couldn't understand what you wanted to say, but feel free to make a pull request.

you wrote your code very cleaver but i cant pass uint or size value to functions that way to receive argument of the type enum. this makes working with the code harder than it could be. even with your example you used "static_castPCA95x5::Port::Port(uint_8t value) " to make the write function work.
is there a chance you make it more easy to access? you are the master mind behind this beauty.


fix: remove swc binaries

Next 11.1.0 added a dependency on swc that meant a >30MB binary was being bundled inside every function. The latest version of zip-it-and-ship-it allows you to exclude node modules from the bundle. This fix approximately halves the size of the bundle on the demo site.

folks, can I get notified when this is live and users get it automatically in their builds? I'd like to keep an extra eye as soon as we can see its effects


Keras Model produces nan on fit

System information

Google Colab Python 3

Bug Description
I have a confusing problem. Before I call .fit() my model can produce output from inputs (see below).

>>> print(f0.predict(x))
>>> print(f1.predict([x, x]))

[[16.913166 ]
 [ 6.2363415]
 [10.625664 ]
 ...
 [13.86934  ]
 [15.4675865]
 [16.353233 ]]
[[-0.94484174]
 [-1.0965291 ]
 [-0.829823  ]
 ...
 [-1.0362396 ]
 [-0.18886864]
 [-0.3576672 ]]

But after calling fit all I get are nans
>>> print(f0.predict(x))
>>> print(f1.predict([x, x]))

[[16.913166 ]
 [ 6.2363415]
 [10.625664 ]
 ...
 [13.86934  ]
 [15.4675865]
 [16.353233 ]]
[[nan]
 [nan]
 [nan]
 ...
 [nan]
 [nan]
 [nan]]

Here is the code for generating the model. Error is not dependent on the data as I can reproduce this with any sklearn dataset as an input.
def create_base_model(p, units=20):
    # Specs
    input_layer = k.layers.Input((p,))

    penultimate_layer = k.layers.Dense(units, activation='elu')(input_layer)
    penultimate_layer = k.layers.Dense(p)(penultimate_layer)

    training_output = k.layers.Dense(1)(penultimate_layer)

    # Models
    boost_model = k.Model(inputs=input_layer, outputs=penultimate_layer)
    training_model = k.Model(inputs=input_layer, outputs=training_output)

    # Compile and export
    training_model.compile(optimizer='sgd', loss='mse')
    return training_model, boost_model

def create_staged_model(p: int, model: k.Model, units=20):
    # Freeze prior model
    for layer_i in model.layers:
        layer_i.trainable = False

    # Specs
    input_layer = k.layers.Input((p,))

    penultimate_layer = k.layers.concatenate([model.output, input_layer], axis=-1)
    penultimate_layer = k.layers.Dense(units, activation='elu')(penultimate_layer)
    penultimate_layer = k.layers.Dense(p)(penultimate_layer)

    training_output = k.layers.Dense(1)(penultimate_layer)

    # Models
    boost_model = k.Model(inputs=[model.input, input_layer], outputs=penultimate_layer)
    training_model = k.Model(inputs=[model.input, input_layer], outputs=training_output)

    # Compile and export
    training_model.compile(optimizer='sgd', loss='mse')
    return training_model, boost_model

fit_kwargs = dict(
    epochs=50,
    validation_split=0.1,
    callbacks=[
        k.callbacks.ReduceLROnPlateau(factor=.5, patience=5, min_lr=1e-6),
        k.callbacks.EarlyStopping(patience=10, restore_best_weights=True)
    ]
)

f0, _ = create_base_model(p)
f0.fit(x, y, **fit_kwargs)  # Works fine

f1, _ = create_staged_model(p, model0)
f1.fit([x, x], y, **fit_kwargs)  # Breaks on fit

Note that this nan issue occurs immediately
Epoch 1/50
282/282 [==============================] - 0s 2ms/step - loss: nan - val_loss: nan - lr: 0.0100
Epoch 2/50
282/282 [==============================] - 0s 2ms/step - loss: nan - val_loss: nan - lr: 0.0100
Epoch 3/50
282/282 [==============================] - 0s 1ms/step - loss: nan - val_loss: nan - lr: 0.0100
Epoch 4/50
282/282 [==============================] - 0s 2ms/step - loss: nan - val_loss: nan - lr: 0.0100
Epoch 5/50
282/282 [==============================] - 0s 2ms/step - loss: nan - val_loss: nan - lr: 0.0100
Epoch 6/50
282/282 [==============================] - 0s 1ms/step - loss: nan - val_loss: nan - lr: 0.0050
Epoch 7/50
282/282 [==============================] - 0s 1ms/step - loss: nan - val_loss: nan - lr: 0.0050
Epoch 8/50
282/282 [==============================] - 0s 2ms/step - loss: nan - val_loss: nan - lr: 0.0050
Epoch 9/50
282/282 [==============================] - 0s 1ms/step - loss: nan - val_loss: nan - lr: 0.0050

@arose13
I have tried in colab with TF version 2.2 and i am seeing the below error messaage.(NameError: name 'p' is not defined).Please, find the gist here.Please, help me with reproducible code, so it helps us in localzing the issue faster.Thanks!

I have no idea if my changed affected your gist so I'm sharing my URL here of your colab. https://colab.research.google.com/gist/arose13/a580640c042278b82d6d7dc424070592/untitled56.ipynb
I added summary prints so you can a little more about what is going on. I'm also having a different error than in your Colab but the observed behaviour is still the same (and strange).

@arose13
Use tensorflow.keras rather than keras will fix the problem.

@arose13  You are right (but I think I did see that worked before I replied above. Not sure if I modified anything else at that time.)
If f0 is not trained, training f1 does not have problem.  Also if I change optimizer from 'sgd' to 'adam' it does not have nan.  Maybe it is a sgd problem caused by the training result of f0?

Incredibly clever fix @yixingfu !
I am so incredibly confused, do you have any intuition why this works?
f0 appears normal and I can .predict() etc, so why would something as arbitrary as the 'sgd' -> 'adam' work (it has worked).
Note 1: Only changed the second model f1 to 'adam' fixes it. Changing only f0 does not. This continues to make me believe that somehow the problem is with how f1 is created (created by create_staged_model()).
Note 2: The reason why it is important is that I must train the staged models (eg f1 ) with stochastic gradient descent.

I did not face any issues while running your code in Tf Nightly 2.6, please find the gist here and confirm us if the issue is fixed. Thanks!


⚠ Bofrost.lu has degraded performance

In fd028eb, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1013 ms

Resolved: Bofrost.lu performance has improved in 8584039 after 7 minutes.


AVRO-3906: Add .NET 8.0 support

What is the purpose of the change
Add .NET 8.0 support (AVRO-3906)
Verifying this change
This change is already covered by existing tests.
Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

It seems like there is an issue with the C# ARM64 build if the XZ library package Joveler.Compression.XZ is bumped to the latest. The latest package works on my dev environment and succeeds with the standard github worklows, except on ARM64. Added comment about it in the versions.props.

@martin-g This PR fixes AVRO-3909. I wanted to wait for people give some suggestion before I merge, however this PR is fairly simple, so I can go ahead and merge it now to resolve the Newtonsoft vulnerability warning.

Fyi, I created #2523 back in September asa preparation for the NET 8 analyzer  warning about it, however it wont be needed any more, I will reject that PR once this is merged

Merged. @martin-g if you rebase those failing PRs with main and it should be ok now.

Nice work! Definitely helps!
Is there a plan to release this on NuGet as well?