4.11 -> 4.12 upgrade: "No enabled repositories"

Describe the bug
When performing an upgrade from 4.11 to 4.12 (more specifically 4.11.0-0.okd-2023-01-14-152430 to 4.12.0-0.okd-2023-01-21-055900) we encounter the following issue on the nodes:
% oc -n openshift-machine-config-operator logs machine-config-daemon-55bkh -c machine-config-daemon --tail 2
E0127 08:48:23.531841  108959 writer.go:200] Marking Degraded due to: failed to update OS to quay.io/openshift/okd-content@sha256:01d90a996a2e78a0486616a0adba0733db428f5a1074976054cedff62f17b2ac : error running rpm-ostree rebase --experimental ostree-unverified-registry:quay.io/openshift/okd-content@sha256:01d90a996a2e78a0486616a0adba0733db428f5a1074976054cedff62f17b2ac: error: No enabled repositories
: exit status 1

The output of rpm-ostree is:
[core@okd4-worker-1 ~]$ sudo rpm-ostree status
State: idle
Deployments:
● pivot://quay.io/openshift/okd-content@sha256:bc4fe370cd76415d045b6cc2cf08e5f696ece912661cfe4370910020be9fe0b6
             CustomOrigin: Managed by machine-config-operator
                  Version: 411.36.202301141513-0 (2023-01-14T15:17:08Z)

The current status of the upgrade is:
% oc adm upgrade
info: An upgrade is in progress. Unable to apply 4.12.0-0.okd-2023-01-21-055900: wait has exceeded 40 minutes for these operators: machine-config

Upgradeable=False

  Reason: ClusterOperatorsNotUpgradeable
  Message: Multiple cluster operators should not be upgraded between minor versions:
  * Cluster operator kube-apiserver should not be upgraded between minor versions: KubeletMinorVersion_KubeletMinorVersionUnsupportedNextUpgrade: KubeletMinorVersionUpgradeable: Kubelet minor versions on 5 nodes will not be supported in the next OpenShift minor version upgrade.
  * Cluster operator machine-config should not be upgraded between minor versions: DegradedPool: One or more machine config pools are degraded, please see `oc get mcp` for further details and resolve before upgrading

Upstream: https://amd64.origin.releases.ci.openshift.org/graph
Channel: stable-4
No updates available. You may force an upgrade to a specific release image, but doing so may not be supported and may result in downtime or data loss.
% oc get co
NAME                                       VERSION                          AVAILABLE   PROGRESSING   DEGRADED   SINCE    MESSAGE
authentication                             4.12.0-0.okd-2023-01-21-055900   True        False         False      12h
baremetal                                  4.12.0-0.okd-2023-01-21-055900   True        False         False      695d
cloud-controller-manager                   4.12.0-0.okd-2023-01-21-055900   True        False         False      471d
cloud-credential                           4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
cluster-autoscaler                         4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
config-operator                            4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
console                                    4.12.0-0.okd-2023-01-21-055900   True        False         False      23h
control-plane-machine-set                  4.12.0-0.okd-2023-01-21-055900   True        False         False      38h
csi-snapshot-controller                    4.12.0-0.okd-2023-01-21-055900   True        False         False      109d
dns                                        4.12.0-0.okd-2023-01-21-055900   True        False         False      109d
etcd                                       4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
image-registry                             4.12.0-0.okd-2023-01-21-055900   True        False         False      13h
ingress                                    4.12.0-0.okd-2023-01-21-055900   True        False         False      13h
insights                                   4.12.0-0.okd-2023-01-21-055900   True        False         False      38h
kube-apiserver                             4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
kube-controller-manager                    4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
kube-scheduler                             4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
kube-storage-version-migrator              4.12.0-0.okd-2023-01-21-055900   True        False         False      22h
machine-api                                4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
machine-approver                           4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
machine-config                             4.11.0-0.okd-2023-01-14-152430   True        True          True       12h      Unable to apply 4.12.0-0.okd-2023-01-21-055900: error during syncRequiredMachineConfigPools: [timed out waiting for the condition, error pool worker is not ready, retrying. Status: (pool degraded: true total: 2, ready 0, updated: 0, unavailable: 1)]
marketplace                                4.12.0-0.okd-2023-01-21-055900   True        False         False      494d
monitoring                                 4.12.0-0.okd-2023-01-21-055900   True        False         False      12h
network                                    4.12.0-0.okd-2023-01-21-055900   True        False         False      695d
node-tuning                                4.12.0-0.okd-2023-01-21-055900   True        False         False      38h
openshift-apiserver                        4.12.0-0.okd-2023-01-21-055900   True        False         False      12h
openshift-controller-manager               4.12.0-0.okd-2023-01-21-055900   True        False         False      38h
openshift-samples                          4.12.0-0.okd-2023-01-21-055900   True        False         False      38h
operator-lifecycle-manager                 4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
operator-lifecycle-manager-catalog         4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
operator-lifecycle-manager-packageserver   4.12.0-0.okd-2023-01-21-055900   True        False         False      4d10h
service-ca                                 4.12.0-0.okd-2023-01-21-055900   True        False         False      2y119d
storage                                    4.12.0-0.okd-2023-01-21-055900   True        False         False      39h
% oc get nodes/okd4-worker-1 -o wide
NAME            STATUS                     ROLES    AGE      VERSION           INTERNAL-IP    EXTERNAL-IP   OS-IMAGE           KERNEL-VERSION           CONTAINER-RUNTIME
okd4-worker-1   Ready,SchedulingDisabled   worker   2y119d   v1.24.6+5658434   <IP_ADDRESS>   <none>        Fedora CoreOS 36   6.0.18-200.fc36.x86_64   cri-o://1.24.4

Version
4.11.0-0.okd-2023-01-14-152430, UPI, OpenStack
How reproducible
This seems to occur on all of our nodes within this specific cluster.
Log bundle
https://filebin.net/wpxwiwk022sz3dfi

There are two different config problems there:
2023-01-26T19:31:02.516673961Z E0126 19:31:02.516611   28463 on_disk_validation.go:208] content mismatch for file "/etc/systemd/system/kubelet.service.d/10-mco-on-prem-wait-resolv.conf" (-want +got):
2023-01-26T19:31:02.516673961Z   bytes.Join({
2023-01-26T19:31:02.516673961Z   	"[Service]\n# Wait for resolv-prepender to configure nameservers, ",
2023-01-26T19:31:02.516673961Z   	"exit 255 otherwise\n# to mark the unit as failed and retry later\n",
2023-01-26T19:31:02.516673961Z + 	"#",
2023-01-26T19:31:02.516673961Z   	"ExecCondition=/bin/bash -c '! systemctl -q is-enabled systemd-re",
2023-01-26T19:31:02.516673961Z   	"solved || [ -f /etc/systemd/resolved.conf.d/60-kni.conf ] || exi",
2023-01-26T19:31:02.516673961Z   	... // 141 identical bytes
2023-01-26T19:31:02.516673961Z   }, "")
2023-01-26T19:31:02.516673961Z E0126 19:31:02.516664   28463 writer.go:200] Marking Degraded due to: unexpected on-disk state validating against rendered-worker-ff80966be862e69631d89271136ffa9d: content mismatch for file "/etc/systemd/system/kubelet.service.d/10-mco-on-prem-wait-resolv.conf"

and
2023-01-26T19:33:16.966004818Z E0126 19:33:16.965994  108959 writer.go:200] Marking Degraded due to: failed to update OS to quay.io/openshift/okd-content@sha256:01d90a996a2e78a0486616a0adba0733db428f5a1074976054cedff62f17b2ac : error running rpm-ostree rebase --experimental ostree-unverified-registry:quay.io/openshift/okd-content@sha256:01d90a996a2e78a0486616a0adba0733db428f5a1074976054cedff62f17b2ac: error: No enabled repositories
2023-01-26T19:33:16.966004818Z : exit status 1

This happens on clusters installed before 4.10 or so - when we used to install glusterfs from the repos.
The fix is to run rpm-ostree uninstall glusterfs glusterfs-fuse on all nodes to make it proceed.
Closing as it doesn't happen on clean 4.11 -> 4.12 upgrade and we can't selectively apply a workaround on the clusters

Mentioned in discussion #1503.  When running the rpm-ostree rebase manually with a -C parameter, it yielded the two glusterfs packages that needed to be removed

Where should we look to learn this kind of thing before an upgrade?


Daemonize timer threads in ReadingThread, fixes #140

I don't have a full understanding of ReadingThread or why the Timer's task isn't completing, but daemonizing the timer's thread fixes the hang for me.

This doesn't really fix it as the thread still exists but doesn't prevent the JVM from shutting down. It would be better for the timer to be stopped for proper cleanup.

Closing because it's not a real fix. For now I'm working around it by calling System.exit(0) in my application until we can figure it out.


Support for multiple languages

Would it be viable to have support for multiple languages when adding a reason for the points?
It'd be nice to be able to do something like: foo++ por <insert reason>. por is the Portuguese word for for. I understand that it might not be interesting to keep a list of conjunctions for every single language out there, but maybe it's possible to insert some flexibility. What do you think?

We could make it configurable through an env var. PRs welcomed!

I finally got some time to work on this. Should I make a PR to this repo? I didn't get the note in the README pointing to hubot-scripts repo.


Support for 7.2 GM

Support for 7.2 GM

Thanks, @andr3a88! Looks like there are some conflicts here, probably for versions which have already been added. Do you mind resolving, then the merge looks ok.


Reranking models

What model would you like?
Till now, ollama supports LLM and embedding models. I wonder if it could support popular reranking models later?
Such as:

BAAI/bge-reranker-large
mixedbread-ai/mxbai-rerank-large-v1
amberoad/bert-multilingual-passage-reranking-msmarco

Thx.

Seconding this since there are apps that require them

Is the reranker model planned?

netease-youdao/bce-reranker-base_v1
BAAI/bge-reranker-v2-m3
thx

I see several issues are related to the reranker models and they are all closed by the authors. Why? Is the reranker model planned? I do not see any reranker models published in your official model library.

@applepieiris keeping every reranker into one single issue is easier, since they are all just data files (models are just numbers) that needs a little wrapper code to interact with.

llama.cpp is about to get ranking support, better to start working on those endpoints :) https://github.com/ggerganov/llama.cpp/pull/9510#issuecomment-2367526441

Reranker support is merged, this should be now easy to implement and extremely important for RAG :) https://github.com/ggerganov/llama.cpp/pull/9510#issuecomment-2367526441

Ollama will be more powerful if it supports rerank model

Any update?

Hi there. I'm going to add 'reranking' support(almost done) to ollama since llama.cpp has supported reranking days ago.
I am done with  'rerank' support on ollama part (routes.go and server.go) and I'm a little bit confused about how to rebase llama.cpp to the latest commit correctly.
The problem is that there are two spots holding llama.cpp source files, namely:

ollama/llama (seems to me go runner use it and it is NOT a git repo)
ollama/llm/llama.cpp (seems to me ext_server use it and it IS a git repo, a little bit easier to rebase)

so for now, do I need to rebase both 1 and 2 or just 2 is okay? (since go running is under development). @jmorganca @mxyng Thanks in advance!

looking forward of it

Hi there. I'm going to add 'reranking' support(almost done) to ollama since llama.cpp has supported reranking days ago. I am done with 'rerank' support on ollama part (routes.go and server.go) and I'm a little bit confused about how to rebase llama.cpp to the latest commit correctly.
The problem is that there are two spots holding llama.cpp source files, namely:

ollama/llama (seems to me go runner use it and it is NOT a git repo)
ollama/llm/llama.cpp (seems to me ext_server use it and it IS a git repo, a little bit easier to rebase)

so for now, do I need to rebase both 1 and 2 or just 2 is okay? (since go running is under development). can we just use llm/llama.cpp/examples/server instead of llm/ext_server?
@jmorganca @mxyng Thanks in advance!

For now, we need to update both. The Go server (#1) is currently feature complete and is just getting some soak time before switching over to it, so we don't want to add new features that will cause it to fall behind.
There is another PR that is in the process of bumping llama.cpp in both of those locations, you should check it out - it might already provide what you are looking for:
https://github.com/ollama/ollama/pull/6760

Hi there, I've made a PR for reranking support #7219 .  Reviews and comments are welcomed :)

any update on this?

maybe it is better to adapt the patch set for 0.4.0 version?

+1

+1

+1

+1 Please add reranking support.

It would be great to close this before the year end. Do we know what the huddle holding us behind?

Guys, please, we are waiting for this!

Check #3749

There is a ongoing PR: https://github.com/ollama/ollama/pull/7219

Check #3749
Also: https://ollama.com/search?q=rerank

Hm, there is a model https://ollama.com/linux6200/bge-reranker-v2-m3
How should I pass documents to it for reranking? May be you know?

Check #3749
Also: https://ollama.com/search?q=rerank

Hm, there is a model https://ollama.com/linux6200/bge-reranker-v2-m3 How should I pass documents to it for reranking? May be you know?

ollama's reranking model works in open-webui. there's an settings specific for document embedding, and you can choose reranking model in that options.

What's with the thumbs down? At least comment, so that I know what I did wrong.

#3749 was closed as duplicate of this issue here
The models you find using "reranking" are actually used for embeddings.

Without api support ollama can not do reranking. See #7219

Yes, confirmed. We need rerank models support from Ollama.

Please add support for reranker models.
Also I would like to suggest support for this one, which in my tests work better for long documents with data overshadowing LLM's training data (eg, data that contradicts what an LLM was trained on): maidalun1020/bce-reranker-base_v1

I think Ollama already took a stance on this by making this easier (even though having dedicated names would be better than ollama run hf.co/{username}/{repository}:{quantization) https://www.kdnuggets.com/use-almost-any-language-model-locally-with-ollama-and-hugging-face-hub


Error in acceptance tests: "Error during create Workspace: 503 Service Unavailable"

Summary
We've been seeing consistent failures in acceptance tests:
Run make testacc
TF_ACC=1 make test
make[1]: Entering directory '/home/runner/work/terraform-provider-prefect/terraform-provider-prefect'
gotestsum --max-fails=50 ./...
∅  .
∅  internal/api
∅  internal/client
∅  internal/provider
∅  internal/provider/customtypes
∅  internal/provider/helpers
∅  internal/testutils
∅  internal/utils
✓  internal/provider/datasources (5.17[8](https://github.com/PrefectHQ/terraform-provider-prefect/actions/runs/10379690891/job/28738291855?pr=202#step:7:9)s)
✖  internal/provider/resources (10.815s)
=== Failed
=== FAIL: internal/provider/resources TestAccResource_flow (0.44s)
    flow_test.go:34: Step 1/3 error: Error running apply: exit status 1

        Error: Error during create Workspace

          with prefect_workspace.workspace,
          on terraform_plugin_test.tf line 12, in resource "prefect_workspace" "workspace":
          12: resource "prefect_workspace" "workspace" {

        Could not create Workspace, unexpected error: status code 503 Service
        Unavailable, error={"exception_message":"Service Unavailable"}
DONE 23 tests, 1 failure in 12.766s
make[1]: *** [Makefile:3[9](https://github.com/PrefectHQ/terraform-provider-prefect/actions/runs/10379690891/job/28738291855?pr=202#step:7:10): test] Error 1
make[1]: Leaving directory '/home/runner/work/terraform-provider-prefect/terraform-provider-prefect'
make: *** [Makefile:45: testacc] Error 2

Examples:

Failure in flow test: https://github.com/PrefectHQ/terraform-provider-prefect/actions/runs/10379690891/job/28738291855?pr=202
Failure in workspace test: https://github.com/PrefectHQ/terraform-provider-prefect/actions/runs/10377092449/job/28730515383

We found a trace in DataDog:
sqlalchemy.exc.DBAPIError: (sqlalchemy.dialects.postgresql.asyncpg.Error) <class 'asyncpg.exceptions.SerializationError'>: could not serialize access due to read/write dependencies among transactions
DETAIL:  Reason code: Canceled on identification as a pivot, during conflict out checking.
HINT:  The transaction might succeed if retried.

I posted in #platform-backend asking for some insight. Eddie has a feeling we're seeing this because Prefect isn't correctly handling several simultaneous requests to create workspaces at the same time.

There are currently 3 ephemeral workspaces being created each time Acceptance Tests run:
$ rg 'EphemeralWorkspace' **/*/*_test.go
internal/provider/resources/block_test.go:36:43:        workspace, workspaceName := testutils.NewEphemeralWorkspace()
internal/provider/resources/work_pool_test.go:30:43:    workspace, workspaceName := testutils.NewEphemeralWorkspace()
internal/provider/resources/variable_test.go:51:43:     workspace, workspaceName := testutils.NewEphemeralWorkspace()

I suspect the root cause of the issue is the small size (42 rows) of our workspace_role table is forcing a seq scan when we lookup workspace roles. Since multiple transactions are performing this seq scan at close the same time, they both end up with an SIReadLock on the entire table
Good write up here https://stackoverflow.com/questions/42288808/why-does-postgresql-serializable-transaction-think-this-as-conflict

Zach and I caught up on this in Slack:

Was still seeing 503s after the change above. Zach is looking into this further.
In the meantime, Zach suggested adding retries and mentioned that 409s will indicate the Workspace already exist. I pushed https://github.com/PrefectHQ/terraform-provider-prefect/pull/242 to add that.

With the retry mitigation in place, we haven't seen this since. Will close this for now - upstream issue is being tracked in https://linear.app/prefect/issue/CLOUD-95/concurrent-workspace-creation-results-in-database-locks.


Memory leak reports in tcl test cases

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
unstable
Minimal reproduce step
$ ./build.sh build -DENABLE_ASAN=ON
$ cd tests/tcl
$ ./runtest --dont-clean

What did you expect to see?
No memory leak reported
What did you see instead?
https://github.com/apache/incubator-kvrocks/runs/7133747333?check_suite_focus=true
=================================================================
==30270==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 1023 byte(s) in 1 object(s) allocated from:
    #0 0x7f0b2c2e5b40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x55ef1f258c72 in strbuf_init (/home/runner/work/incubator-kvrocks/incubator-kvrocks/tests/tcl/redis-server+0xa1ec72)

Anything Else?
I noticed only the cjson library is using strbuf_init.
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

@git-hulk is it an issue on unstable branch or #697 only? We shouldn't create issue for further problem. It seems we may fix this issue at KvrocksLabs/luajit aspect?

@git-hulk is it an issue on unstable branch or #697 only? We shouldn't create issue for further problem. It seems we may fix this issue at KvrocksLabs/luajit aspect?
In another word, I don't see what we can do before #697 merged and on unstable branch.

My bad. I think the Lua library is using cjson, so it should have the same problem as well. Will close this issue since it looks introduced by #697 and have an eye on this case.


fix: remove problematic upstream API nvim_get_hl_by_name(#40)

Thanks for the effort you put on solving this. I changed your patch a little and pushed it to main. Once again thanks for the time.


Duplicate internal commands

3NKP5eG9qvMbJM78thgQMvwnNnjrEkfcAfS31YbNNzeBsa8ADqPR

It depends on how we want to display this data. We store/show all fee transfers as they correspond to each user command. We could also aggregate all transfers from the same pk.
Do we want to display coinbases here? They’re already in the block spotlight

Does the "state hash" in this image indicate that internal commands are all part of the same block? If so, we should close this issue.

Yes

I think there is still a discussion to be had about how we should display this info

Yes, this has been the eternal debate - whether to display the coinbases. Best not to have that discussion on a closed issue, however. I'm only commenting because I was @-mentioned.


[AutoPR iothub/resource-manager] Add package-2018-04 to Go SDK build

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/2861

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/1580


liana: remove daemon feature

We expect user to use systemd service to manage a daemon or
to handle their process by themself.
The json-rpc server is exposed only for unix systems through
unix sockets, it is moved to its own module while the implementation
for windows is marked as TODO.

she should check if #255 and #414 can be closed after merging this (but i don't believe libc was used only for forking the process...)

You are right, libc is required by rust anyway to call OS-level functions and system calls directly. I do not think the current change resolves #255 and #414

tACK c14c55b run GUI and lianad


Add ability to pass output to another step

Awesome work!
I have added the possibility to access the output variables in an additional step.
You can now use this Action to comment on a PR:
.
See my fork for working example.
Fixes #16

Strangely it is failing - even though it works on my fork. May it is because of ${{ secrets.GITHUB_TOKEN }} (the error message is 403 - Resource not accessible by integration // See: https://developer.github.com/v3/issues/comments/#create-a-comment (Octokit::Forbidden)). I think it is using my Github token. May this will get resolved once it is on master?

@jakejarvis do you have time to review this?


help in crash when trying to manage static tls

I'm trying to improve your manual tls static
and from pe format on microsoft :
"The loader assigns the value of the TLS index to the place that was indicated by the Address of Index field."
and in the description of tls directory structure :
"Address of Index : The location to receive the TLS index, which the loader assigns. This location is in an ordinary data section, so it can be given a symbolic name that is accessible to the program "
so what I understood is : I should make a tls index and store the data in it the write this index to the address of index in tls directory (IMAGE_TLS_DIRECTORY.AddressOfIndex) so the loaded dll will try to retrieve an index from this address and will get the index I made then get the data stored in the index
there is another thing and it's : your method in blackbone works only for the thread that DllMain would start execution in
I think I can resolve this by using TlsAlloc
in the description of it on microsoft site :
"Allocates a thread local storage (TLS) index. Any thread of the process can subsequently use this index to store and retrieve values that are local to the thread, because each thread receives its own slot for the index."
finally this is what I wrote :
           uintptr_t sizeOfTlData = tlsdir->EndAddressOfRawData - tlsdir->StartAddressOfRawData;
	                               unsigned char *tls_buffer = (unsigned char*)VirtualAlloc(0,sizeOfTlData,MEM_COMMIT|MEM_RESERVE,PAGE_EXECUTE_READWRITE);
	                               memcpy(tls_buffer,&tlsdir->StartAddressOfRawData, sizeOfTlData);
	                               dwIndex = TlsAlloc(); // get an index that the dll will use
	                               TlsSetValue(dwIndex, tls_buffer); // write the tls raw data in the index
	                               cout << "got a tls index with value " << dwIndex << endl;
                           *(DWORD*)(tlsdir->AddressOfIndex) = dwIndex; // the loaded dll will retrieve the index from this address

but when I call DllMain I immediately get an access violation at 0x0000000000000004

@DarthTon

tlsdir->AddressOfIndex this is static TLS index. You are confusing it with dynamic one. Static index serves as an offset into TEB::ThreadLocalStoragePointer


Custom cache directory should be resolved to an absolute path

Expected Behavior
I expect nyc to consistently use the same cache directory throughout the process. When a custom cache directory is specified as a relative path, and the working directory of the process changes, this assumption is violated.
The custom cache path needs to be resolved to an absolute path (using path.resolve()) before it's used.
Observed Behavior
If a custom cache directory is specified as a relative path (such as in package.json), and the working directory of the process is changed by one of the tests, then the cache directory will be recreated in a new location for that portion of the test suite. This puts cache files in an unexpected location and defeats the purpose of having a cache.
If the cache directory is left unspecified, then nyc correctly resolves the value to an absolute path. It's the custom path that isn't being resolved.
See: https://github.com/istanbuljs/nyc/blob/master/index.js#L52
This line needs to be:
this.cacheDirectory = path.resolve(config.cacheDir) || findCacheDir({name: 'nyc', cwd: this.cwd})

Forensic Information
Operating System: Fedora 26 (Linux)
Environment Information:
Node: v8.9.3
npm: 5.5.1
yarn: 1.3.2
nyc: 11.4.1

Thanks for the fix, looks like this released in<EMAIL_ADDRESS> If I'm mistaken please let me know and I can reopen this issue.


Failed to send/recv storage err=GetStorage() when testing with Foundry

Description
I have successfully set up Foundry to work with Hedera by configuring it to work with npm modules.  Github repo here.
The issue lies when attempting to use Foundry's fork testing to test against a smart contract that is deployed on testnet. In my test set up, I provided my smart contract's evm address (which I grabbed from hashscan).
Below is a snippet of my test set up.
function setUp() public {
        counter = Counter(0x0000000000000000000000000000000002Eba2A0);
        //counter.setNumber(0);
    }

The expected output is for my tests to run successfully. However, the result of running my tests gives the following error:
2022-12-01T18:28:36.945764Z ERROR sharedbackend: Failed to send/recv `storage` err=GetStorage(0x0000000000000000000000000000000002eba2a0, 0,
(code: -32603, message: [Request ID: 6153887f-a84f-42e9-93c7-8fcb32047a21] Error invoking RPC: , data: None)) address=0x0000000000000000000000000000000002eba2a0 index=0

Running 1 test for test/foundry/Counter.t.sol:CounterTest
[FAIL. Reason: EvmError: FatalExternalError] testIncrement() (gas:<PHONE_NUMBER>854754743)
Test result: FAILED. 0 passed; 1 failed; finished in 38.01s

Failing tests:
Encountered 1 failing test in test/foundry/Counter.t.sol:CounterTest
[FAIL. Reason: EvmError: FatalExternalError] testIncrement() (gas:<PHONE_NUMBER>854754743)

Steps to reproduce

Unzip the project below and open it in vscode
simulate-swap-hedera.zip
edit the .env file
Open a terminal in the project's dir
run HEDERA_RPC_URL=https://testnet.hashio.io/api
run forge test --fork-url $HEDERA_RPC_URL -vv --fork-block-number <block number>

Additional context
note: block number needs to be at least 15 minutes in the past or you'll get the error below.
(code: -32007, message: [Request ID: 3804b205-6ef8-471d-92a2-e640d9131558] Historical balance data is available only after 15 minutes., data: None)) address=0x0000000000000000000000000000000002eba2a0
Hedera network
testnet
Version
v2.18.5
Operating system
macOS

Seems like an error in the eth_getStaorageAt()
It makes a call to https://testnet.mirrornode.hedera.com/api/v1/contracts/0x0000000000000000000000000000000002eba2a0/results/1669763444.249631003
But then fails with
Failed to retrieve contract result details for contract address 0x0000000000000000000000000000000002eba2a0 at timestamp=1669763444.249631003
    err: {
      "type": "TypeError",
      "message": "Cannot read properties of undefined (reading 'value_written')",
      "stack":
          TypeError: Cannot read properties of undefined (reading 'value_written')
              at .../hedera-json-rpc-relay/packages/relay/dist/lib/eth.js:418:46
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    }

Since the state_changes is an empty array it passes the check for non null but when extracting stateChange it returns undefined which would result in the error above - https://github.com/hashgraph/hedera-json-rpc-relay/blob/main/packages/relay/src/lib/eth.ts#L501


refactor: extract validator duties into its own module.

Motivation
Validator module is getting big and hard to follow. As part of a refactor of duties, I've extracted it into it's own module and added typespecs

LGTM. Will leave the approval to the more experienced ones.


Possible bug parsing file expert JSON response

I’m seeing this error from wakatime-cli:
{"caller":"pkg/heartbeat/sanitize.go:30","func":"fileexperts.initHandleOptions","level":"debug","message":"execute heartbeat sanitization","now":"2023-08-25T13:10:21Z","os/arch":"linux/amd64","version":"v1.76.0"}
{"caller":"pkg/api/fileexperts.go:36","func":"api.(*Client)","level":"debug","message":"fileexpert: {\"entity\":\"/workspaces/codespaces-blank/test.txt\",\"project\":\"\",\"project_root_count\":3}","now":"2023-08-25T13:10:21Z","os/arch":"linux/amd64","version":"v1.76.0"}
{"caller":"cmd/run.go:310","func":"cmd.runCmd","level":"error","message":"failed to run command: file experts fetch failed: bad request: bad request at \"https://api.wakatime.com/api/v1/users/current/file_experts\"","now":"2023-08-25T13:10:22Z","os/arch":"linux/amd64","version":"v1.76.0"}

This could be:

WakaTime API returning an invalid response
WakaTime API returning a valid JSON response, but with an error message and wakatime-cli can't parse it
WakaTime API returning a valid JSON response with empty data (when not yet availabe), and wakatime-cli can't parse it

The error happens when project couldn't be auto-detected.
{"caller":"pkg/api/fileexperts.go:36","func":"api.(*Client)","level":"debug","message":"fileexpert: {\"entity\":\"/Users/gandarez/.wakatime/wakatime.log\",\"project\":\"\",\"project_root_count\":4}","now":"2023-08-26T17:03:09-03:00","os/arch":"darwin/arm64","version":"<local-build>"}
{"caller":"pkg/api/fileexperts.go:64","func":"api.(*Client)","level":"debug","message":"bad request at \"https://api.wakatime.com/api/v1/users/current/file_experts\". body: \"{\\\"errors\\\": {\\\"project\\\": [\\\"This field is required.\\\"]}}\"","now":"2023-08-26T17:03:10-03:00","os/arch":"darwin/arm64","version":"<local-build>"}


Support for Arrow PyCapsule Interface

Is your feature request related to a problem? Please describe.
The Arrow PyCapsule Interface is a new spec to simplify Arrow interop between compiled Python libraries.
For example, you have a daft.from_arrow method but this narrowly allows only pyarrow Table objects https://github.com/Eventual-Inc/Daft/blob/a5badb4a99a47bbe8ae9b7dde9d8d3d10d2faa1c/daft/table/table.py#L102-L104. This would fail on a pyarrow.RecordBatchReader or any non-pyarrow Arrow objects, and requires a pyarrow dependency, which is quite large.
A from_arrow method that looks for the __arrow_c_stream__ method would work out of the box on any Arrow-based Python library implementing this spec. That includes:

pyarrow Tables and RecordBatchReaders
ibis Tables (https://github.com/ibis-project/ibis/pull/9143)
nanoarrow objects
pandas DataFrames as of v2.2 and later (https://github.com/pandas-dev/pandas/pull/56587)

and hopefully soon duckdb and polars objects as well (https://github.com/pola-rs/polars/issues/12530).
Implementing the pycapsule interface on daft classes means that any of those other libraries would just work on daft classes.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
I've implemented import and export of the pycapsule interface for arrow objects in pyo3-arrow (in a separate crate for a few reasons).
It looks like daft is still tied to arrow2, but maybe pyo3-arrow is useful as a reference here.

Very cool. I was just chatting with @paleolimbot about whether Daft could remove its dependency on PyArrow at some point and rely on something lighter-weight to do import/export of arrow data.
Today it's technically possible (we can have PyArrow as an optional dependency for the most part, except for some file writing code where we still rely on PyArrow utilities), but definitely requiring PyArrow at all on the critical path is a heavy dependency.
If I understand correctly, there are a few issues to be fixed here:

On the import side: fix from_arrow to check hasattr("__arrow_c_stream__") and use this API to import Arrow data if possible
On the export side, we can add a __arrow_c_stream__ interface as well to return a stream of arrow data instead of a fully materialized arrow table

Am I understanding this correctly?

In case it's useful, I implemented the pycapsule interface for polars in https://github.com/pola-rs/polars/pull/17676 and https://github.com/pola-rs/polars/pull/17693. I figure polars-arrow hasn't diverged too much from arrow2, so it should be pretty similar to implement the pycapsule interface in daft.


error when using volto_addon option, reinstalling cookiecutter-plone

pipx install cookieplone
  installed package cookieplone 0.5.0, installed using Python 3.10.12
  These apps are now globally available
    - cookieplone

pipx run cookieplone volto_addon

...
You've downloaded /home/<MYUSERNAME>/.cookiecutters/cookiecutter-plone before.
Is it okay to delete and re-download it? [y/n] (y): y
ERROR: git clone failed with error: fatal: empty string is not a valid pathspec.
please use . instead if you meant to match all paths

Shouldn't cookiecutter-volto be installed, if I choose to create a volto-addon ?

works now with
pipx run cookieplone frontend_addon :+1:


AsyncReadyCallback signature is low level

Same as https://github.com/StefanSalewski/gintro/issues/142
I will provide vala example soon.
Can you explain why we have 00 version of all types?
Here example Im working on:
import gintro/[gdk4, gtk4, gobject, gio]
import std/with

let readTextCb: AsyncReadyCallback = proc (sourceObject: ptr gobject.Object00; res: ptr AsyncResult00; userData: pointer) {.cdecl.} =
  echo "sas"
  echo res == nil
  # Trying to get text from res here

  # echo cast[cstring](res[])

proc appActivate(app: Application) =

  let window = newApplicationWindow(app)
  let clb = window.getClipboard()
  clb.readTextAsync(nil, readTextCb, nil)

  with window:
    title = "GTK4 Clipboard example"
    defaultSize = (200, 200)
    show

proc main =
  let app = newApplication("org.gtk.example")
  connect(app, "activate", appActivate)
  discard run(app)

main()

I think AsyncReadyCallback signature should look like
(sourceObject: gobject.Object; res: AsyncResult; userData: pointer)

I thought you had retired :-)
Do you still think https://github.com/StefanSalewski/gintro/issues/145 is a memory leak?
For your other question and for https://github.com/StefanSalewski/gintro/issues/142:
For callbacks we generally need a macro, which we have to create manually. The gimpl files have some examples for that. The reason is that we have at least three problems: Nim does not use cdecl calling convention, but GTK use it when calling callbacks. Gintro Nim code operates on the proxy objects like Button, while GTK internally uses the low level objects like Button00. So GTK passes the low level objects when calling a callback. We have to provide with our Nim macro a cdecl trampoline function which creates the proxy object and calls the real user Nim callback function, additional passing an optional argument with well defined type.
All that is not too difficult, but I see no way to automate that. Module gimplgobject.nim has examples like macro timeoutAdd() and idleAdd(). But of course for each new macro we need testing code. Creating such a macro takes generally only a few hours, but creating a test may take more time.
Unfortunately I have the impression that we two are currently the only gintro users. We just had a bindings discussion at https://discourse.gnome.org/t/steps-to-get-started-creating-a-new-language-binding/6904/12. I would really like to hire a Rust and GTK dev to create more Rust like bindings without proxy objects, maybe that would make callback handling easier. On the other hand, I have seen Rust GTK code which was not that nice, with wrap and unwrap calls. I would really want to avoid such ugly code.
A week ago we had the online Nim conf, I had some hope to see a talk about Fidget2 or maybe about another Nim GUI toolkit, but unfortunately there was nothing.

I thought you had retired
I went to the dacha for 2 weeks, the Internet here is incredibly bad xd.
I'm not going to leave, I really think that nim is the best language for GTK. Vala has few libraries and is developing slowly, Rust is too systemic for the GUI(write drivers or graphic renders, not high order buisness logic). Crystal does have bindings only for GTK 3, and is still too not finished(lack of windows support and multithreading).

This can be gintro leak or GTK bug, I think it can be related to
https://gitlab.gnome.org/GNOME/gtk/-/issues/3784
I just need to remake this code on Vala and check if it leaks, if it is then its GTK bug.

This can be gintro leak or GTK bug,

See my last reply, I had the impression that there is no leak at all?

On the other hand, I have seen Rust GTK code which was not that nice, with wrap and unwrap calls

Maybe you should look at others for inspiration
https://github.com/gircore/gir.core
https://github.com/diamondburned/gotk4
https://github.com/jhass/crystal-gobject

Here C example https://github.com/andyholmes/valent/blob/da678083640f1bccd23d3718631f3df921d4997b/src/plugins/gtk/valent-gdk-clipboard.c#L44
Here my code now:
import gintro/[gdk4, gtk4, gobject, gio]
import std/with

let readTextCb: AsyncReadyCallback = proc (sourceObject: ptr Clipboard00; res: ptr AsyncResult00; userData: pointer) {.cdecl.} =
 echo "sas"
 echo res == nil
 let text = gdk4.readTextFinish(cast[Clipboard](sourceObject[]) , cast[AsyncResult](res[]))
 echo text
 # gdk_clipboard_read_text_finish(sourceObject, res, nil)

proc appActivate(app: Application) =

 let window = newApplicationWindow(app)
 let clb = window.getClipboard()
 clb.readTextAsync(nil, readTextCb, nil)

 with window:
   title = "GTK4 Clipboard example"
   defaultSize = (200, 200)
   show

proc main =
 let app = newApplication("org.gtk.example")
 connect(app, "activate", appActivate)
 discard run(app)

main()

Got sigseg on line 7, and Im stuck.
Also I see internal
proc gdk_clipboard_read_text_finish(self: ptr Clipboard00; resu: ptr gio.AsyncResult00;
   error: ptr ptr glib.Error = nil): cstring {.
   importc, libprag.}

In gdk4.nim, may be it would be nice if all internal(pure GTK C funcs) was awaileble in some kind of another module like
import gintro/[gtk4private]

to get access to low level gtk.

Thanks for C example. Does that work fine?

Got sigseg on line 7, and Im stuck.

Will try in the next days. Have never used Clipboard before.

would be nice if all internal(pure GTK C funcs) was awaileble

Mixing low level and high level is not that easy. In early gintro versions we had all the low level functions available, and some people used them in the wrong way, so we do not export them now. We still export the 00 types, as sometimes they are useful. Well a separate module for low level functions may be an option.
When you think that you need a low level function, you can just edit the nim file like ~/.nimble/pkgs/gintro-#head/gintro/gtk4.nim and add a export marker to a function. I do that often when I have to create macros, as I generally write the code which the macro shall create manually first.
But the general problem is that most people just do not know GTK good enough, or often not at all.
For really hard cases I created the example with a C part and a Nim part in https://github.com/StefanSalewski/gintro/issues/141. That is really not that bad as we so can use the C macros.

Here C example

How do I compile and run/test that C code?

to create more Rust like bindings without proxy objects,

But for that we need destructors which work with plain pointer objects. In 2016 when I started the gintro project we had only finalizers for ref objects. Now with ARC/ORC destructors seems to work for distinct pointers, so it may be possible. But without proxy objects, we can not subclass widgets like we do now, i.e. by adding a Nim data type like a seq. We would have to use composition instead as Go does.
For your linked C code example, that seems to be not a stand alone file, but a component of a larger unmaintained project. So it is not that helpful as we can test it not separately.

OK, I see your problem with the async callback.
For simple clipboard operation you can use clipboard without async callback as shown in
https://developer.gnome.org/gtk4/stable/ch41s02.html
using gdk_clipboard_get_content().
Providing manually a working async callback macro should be not that hard, and for testing a tiny test program should work. Maybe one weekend is enough for it, I am not sure. Unfortunately I am really busy currently, and generally that is more a task for dark winter days. Have you already considered asking in the Nim forum or Nim IRC? There seems to be some people who sit the whole day in front of IRC, maybe some of them are interested doing some useful work instead, writings some nice macros? Or you may ask which of the other 20 Nim GUI tools supports clipboard already well.

async callback macro also will be userfull for async work with files in GIO
https://developer.gnome.org/gio/stable/GFile.html


lo0 not ignored on NetBSD (AutoInterfaces)

lo0 is not ignored on NetBSD but should be.
A larger issue is that it would be nice to have two structural changes in the default ignore list:

Have a list for all systems that includes lo0 (BSD-derived) and lo (Linux), to make things work better on unknown systems.
Rather than having is_darwin() etc. and variables per os, have a osname() method and a dictionary by os, so that it's easier to add support for new systems.

(But, it looks like on normal systems that mostly the odd interfaces that should be ignored don't have fe80, and aren't used anyway.)

Agreed, I am looking into improving this for the next release.


Strip scheme from sqlite database urls

This PR rebases #1895 and adds a test case as requested there.

This PR strips the sqlite:// scheme from sqlite database URLs, as mentioned in #1124 (comment)
I wasn't able to locate anywhere that tested the functionality I was editing, please let me know if I just missed it and I'll be happy to update this PR.

Could you run rustfmt to pass CI?


python36Packages.sseclient: 0.0.19 -> 0.0.20

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-sseclient/versions.
meta.description for python36Packages.sseclient is: '"Client library for reading Server Sent Event streams"'.

Checks done (click to expand)

built on NixOS

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.0.20 with grep in /nix/store/8r15fng156azd7gzz30vhhfiib8lvwbn-python3.6-sseclient-0.0.20

directory tree listing: https://gist.github.com/9f51187028e0ae899f031a1c0e2b2863

du listing: https://gist.github.com/72094039639d3aa838a550645ad2c84c

Rebuild report (click to expand)

12 total rebuild path(s)
3 package rebuild(s)
3 x86_64-linux rebuild(s)
3 i686-linux rebuild(s)
3 x86_64-darwin rebuild(s)
3 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
appdaemon
python27Packages.sseclient
python36Packages.sseclient

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8r15fng156azd7gzz30vhhfiib8lvwbn-python3.6-sseclient-0.0.20 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A python36Packages.sseclient https://github.com/r-ryantm/nixpkgs/archive/b8e006bf09f5001a48bdb0bc3cfac5b6719cc097.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8r15fng156azd7gzz30vhhfiib8lvwbn-python3.6-sseclient-0.0.20
ls -la /nix/store/8r15fng156azd7gzz30vhhfiib8lvwbn-python3.6-sseclient-0.0.20/bin

cc @peterhoeg for testing.

Success on x86_64-darwin (full log)
Attempted: python36Packages.sseclient
Partial log (click to expand)
platform darwin -- Python 3.6.6, pytest-3.7.4, py-1.5.4, pluggy-0.7.1
rootdir: /private/tmp/nix-build-python3.6-sseclient-0.0.20.drv-0/sseclient-0.0.20, inifile:
plugins: backports.unittest-mock-1.4
collected 13 items

test_sseclient.py .............                                          [100%]

========================== 13 passed in 1.40 seconds ===========================
pytestcachePhase
/nix/store/y34xcpna64jvp9hrbp5vvmcc0rjbbd2a-python3.6-sseclient-0.0.20

Success on aarch64-linux (full log)
Attempted: python36Packages.sseclient
Partial log (click to expand)
platform linux -- Python 3.6.6, pytest-3.7.4, py-1.5.4, pluggy-0.7.1
rootdir: /build/sseclient-0.0.20, inifile:
plugins: backports.unittest-mock-1.4
collected 13 items

test_sseclient.py .............                                          [100%]

========================== 13 passed in 0.53 seconds ===========================
pytestcachePhase
/nix/store/ckg02qyg3zv724dsd1bm6ylvlp9p2rqm-python3.6-sseclient-0.0.20

Success on x86_64-linux (full log)
Attempted: python36Packages.sseclient
Partial log (click to expand)
platform linux -- Python 3.6.6, pytest-3.7.4, py-1.5.4, pluggy-0.7.1
rootdir: /build/sseclient-0.0.20, inifile:
plugins: backports.unittest-mock-1.4
collected 13 items

test_sseclient.py .............                                          [100%]

========================== 13 passed in 0.38 seconds ===========================
pytestcachePhase
/nix/store/8r15fng156azd7gzz30vhhfiib8lvwbn-python3.6-sseclient-0.0.20

@GrahamcOfBorg build appdaemon

Success on x86_64-linux (full log)
Attempted: appdaemon
Partial log (click to expand)
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed appdaemon-3.0.2
/build/appdaemon-3.0.2
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/g6vk3njzlm1pm2w6420l4grsf47hq5h5-appdaemon-3.0.2
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/g6vk3njzlm1pm2w6420l4grsf47hq5h5-appdaemon-3.0.2/lib  /nix/store/g6vk3njzlm1pm2w6420l4grsf47hq5h5-appdaemon-3.0.2/bin
patching script interpreter paths in /nix/store/g6vk3njzlm1pm2w6420l4grsf47hq5h5-appdaemon-3.0.2
checking for references to /build in /nix/store/g6vk3njzlm1pm2w6420l4grsf47hq5h5-appdaemon-3.0.2...
wrapping `/nix/store/g6vk3njzlm1pm2w6420l4grsf47hq5h5-appdaemon-3.0.2/bin/appdaemon'...

Success on aarch64-linux (full log)
Attempted: appdaemon
Partial log (click to expand)
Successfully installed appdaemon-3.0.2
/build/appdaemon-3.0.2
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/l8y95lza21chc6z78j2vbmih6r0rnymw-appdaemon-3.0.2
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/l8y95lza21chc6z78j2vbmih6r0rnymw-appdaemon-3.0.2/lib  /nix/store/l8y95lza21chc6z78j2vbmih6r0rnymw-appdaemon-3.0.2/bin
patching script interpreter paths in /nix/store/l8y95lza21chc6z78j2vbmih6r0rnymw-appdaemon-3.0.2
checking for references to /build in /nix/store/l8y95lza21chc6z78j2vbmih6r0rnymw-appdaemon-3.0.2...
wrapping `/nix/store/l8y95lza21chc6z78j2vbmih6r0rnymw-appdaemon-3.0.2/bin/appdaemon'...
/nix/store/l8y95lza21chc6z78j2vbmih6r0rnymw-appdaemon-3.0.2


Implement point in time backups (snapshots)

A solution to mitigate #52

Thanks for your review and your work on this library!


'Kind' property was already registered by 'ControlzEx_PackIconBase`1_14_190585527'

Any advice and insight is appreciated

@khteh Can you post your Xaml code of the PackIcon?

@khteh ?

@punker76, please find attached my .XAML.  Which VS version is this?

VS 2015
MahApps.Metro: <IP_ADDRESS>
MahApps.Metro.IconPacks: <IP_ADDRESS>

@khteh What is your selected solution platform for your app? Is it maybe different to Any CPU?

x64. I tried Any CPU but have problem detecting my MS Unit Tests in test explorer.

@khteh Problem is, that I can't reproduce this issue. I've chatted with another guy with the same problem. I don't really know why this issue happens with different solution platforms, I will investigate it...

I just switched to Any CPU but the same exceptions persist.

@khteh It's Designer related stuff so you shoudl delete all obj/bin folders and the Designer shadow cache... close VS and start again...

@punker76 That works. Thanks!

Also Solved it for me.
I was Running VS Community 2019 V. 16.3.10 and MahApps.Metro.1.6.5 and MahApps.Metro.IconPacks.2.3.0
Thank you very much


Keypoints with FBNet backbone error

🐛 Bug
Hi everyone, I encountered a bug where I get errors while trying to run training script with fbnet backbone for keypoint detection.
Following errors occur:
maskrcnn_benchmark.trainer INFO: Start training
/opt/conda/conda-bld/pytorch-nightly_1556168745906/work/aten/src/THCUNN/ClassNLLCriterion.cu:105
: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [5,0,0]
Assertion `t >= 0 && t < n_classes` failed.

THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch-nightly_1556168745906/work/aten/src/THCUNN/generic/ClassNLLCriterion.cu line=110 error=59 : device-side assert triggered
Traceback (most recent call last):
  File "/snap/pycharm-community/132/helpers/pydev/pydevd.py", line 1758, in <module>
    main()
  File "/snap/pycharm-community/132/helpers/pydev/pydevd.py", line 1752, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/snap/pycharm-community/132/helpers/pydev/pydevd.py", line 1147, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/snap/pycharm-community/132/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/home/user/maskrcnn-benchmark/tools/train_net.py", line 190, in <module>
    main()
  File "/home/user/maskrcnn-benchmark/tools/train_net.py", line 183, in main
    model = train(cfg, args.local_rank, args.distributed)
  File "/home/user/maskrcnn-benchmark/tools/train_net.py", line 88, in train
    arguments,
  File "/home/user/maskrcnn-benchmark/maskrcnn_benchmark/engine/trainer.py", line 85, in do_train
    loss_dict = model(images, targets)
  File "/home/user/anaconda3/envs/tf_python_37/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/user/anaconda3/envs/tf_python_37/lib/python3.7/site-packages/apex-0.1-py3.7-linux-x86_64.egg/apex/amp/_initialize.py", line 193, in new_fwd
    **applier(kwargs, input_caster))
  File "/home/user/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 52, in forward
    x, result, detector_losses = self.roi_heads(features, proposals, targets)
  File "/home/user/anaconda3/envs/tf_python_37/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/user/maskrcnn-benchmark/maskrcnn_benchmark/modeling/roi_heads/roi_heads.py", line 53, in forward
    x, detections, loss_keypoint = self.keypoint(keypoint_features, detections, targets)
  File "/home/user/anaconda3/envs/tf_python_37/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/user/maskrcnn-benchmark/maskrcnn_benchmark/modeling/roi_heads/keypoint_head/keypoint_head.py", line 45, in forward
    loss_kp = self.loss_evaluator(proposals, kp_logits)
  File "/home/user/maskrcnn-benchmark/maskrcnn_benchmark/modeling/roi_heads/keypoint_head/loss.py", line 168, in __call__
    keypoint_loss = F.cross_entropy(keypoint_logits[valid], keypoint_targets[valid])
  File "/home/user/anaconda3/envs/tf_python_37/lib/python3.7/site-packages/torch/nn/functional.py", line 2056, in cross_entropy
    return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
  File "/home/user/anaconda3/envs/tf_python_37/lib/python3.7/site-packages/torch/nn/functional.py", line 1871, in nll_loss
    ret = torch._C._nn.nll_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
RuntimeError: cuda runtime error (59) : device-side assert triggered at /opt/conda/conda-
bld/pytorch-nightly_1556168745906/work/aten/src/THCUNN/generic/ClassNLLCriterion.cu:110

To Reproduce
Steps to reproduce the behavior:
1.Run training with the following script:
MODEL:
  META_ARCHITECTURE: "GeneralizedRCNN"
  BACKBONE:
    CONV_BODY: FBNet
  FBNET:
    ARCH: "default"
    BN_TYPE: "bn"
    WIDTH_DIVISOR: 8
    DW_CONV_SKIP_BN: True
    DW_CONV_SKIP_RELU: True
  RPN:
    ANCHOR_SIZES: (16, 32, 64, 128, 256)
    ANCHOR_STRIDE: (16, )
    BATCH_SIZE_PER_IMAGE: 256
    PRE_NMS_TOP_N_TRAIN: 6000
    PRE_NMS_TOP_N_TEST: 6000
    POST_NMS_TOP_N_TRAIN: 2000
    POST_NMS_TOP_N_TEST: 100
    RPN_HEAD: FBNet.rpn_head
  ROI_HEADS:
    BATCH_SIZE_PER_IMAGE: 512
  ROI_BOX_HEAD:
    POOLER_RESOLUTION: 6
    FEATURE_EXTRACTOR: FBNet.roi_head
    NUM_CLASSES: 2
  ROI_KEYPOINT_HEAD:
    FEATURE_EXTRACTOR: FBNet.roi_head_keypoints
    NUM_CLASSES: 17
    SHARE_BOX_FEATURE_EXTRACTOR: False
  KEYPOINT_ON: True
DATASETS:
  TRAIN: ("keypoints_coco_2014_train", "keypoints_coco_2014_valminusminival",)
  TEST: ("keypoints_coco_2014_minival",)
SOLVER:
  BASE_LR: 0.0025
  WARMUP_FACTOR: 0.1
  WEIGHT_DECAY: 0.0001
  STEPS: (480000, 640000)
  MAX_ITER: 720000
  IMS_PER_BATCH: 4
# TEST:
#   IMS_PER_BATCH: 8
INPUT:
  MIN_SIZE_TRAIN: (320, )
  MAX_SIZE_TRAIN: 640
  MIN_SIZE_TEST: 320
  MAX_SIZE_TEST: 640
  PIXEL_MEAN: [103.53, 116.28, 123.675]
  PIXEL_STD: [57.375, 57.12, 58.395]

Environment
Collecting environment information...
PyTorch version: 1.1.0.dev20190425
Is debug build: No
CUDA used to build PyTorch: 10.0.130

OS: Ubuntu 18.04.2 LTS
GCC version: (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
CMake version: Could not collect

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: GeForce RTX 2070
Nvidia driver version: 418.67
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.16.4
[pip] torch==1.1.0.dev20190425
[pip] torchvision-nightly==0.2.3
[conda] mkl                       2019.3                      199
[conda] mkl_fft                   1.0.13           py37h516909a_1    conda-forge
[conda] mkl_random                1.0.4            py37hf2d7682_0    conda-forge
[conda] pytorch-nightly           1.1.0.dev20190425 py3.7_cuda10.0.130_cudnn7.4.2_0    pytorch
[conda] torchvision-nightly       0.2.3                    pypi_0    pypi

Additional context
I can train faster rcnn fbnet config and keypoint rcnn with resnet-50-fpn backbone with no problems.
From what I understand so far, in  "/home/user/maskrcnn-benchmark/maskrcnn_benchmark/modeling/roi_heads/keypoint_head/loss.py", line 153, in __call__ heatmaps are being generated with values already bigger, than the keypoint_logits[n] size we get in line 166 which causes this error.
Did anyone succeed in training keypoint RCNN with fbnet backbone? Maybe I am doing something completely wrong here.

You can try add ‘RESOLUTION’ size：
ROI_KEYPOINT_HEAD:
RESOLUTION: 12

cuda runtime error (59) : device-side assert triggered at /opt/conda/conda-
bld/pytorch-nightly_1556168745906/work/aten/src/THCUNN/generic/ClassNLLCriterion.cu:110

i check this issue ,loss in keypint is error,so total loss cannot computer
Do you solve it ?

class KeypointRCNNPredictor(nn.Module) donot support the fbnet.keypoint prediction
mask have another predict api


XML Deceleration with inline css

Is it possible to insert inline css into the xmlns declaration via gulp?
Currently the file is rendering out:
svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
I would ilke to be able to add width/height/position:
svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0" style="position:absolute"

Hi @jackfearing,
please have a look at the brand new svg.rootAttributes option. You should be able to do so by setting
var options = {
	svg: {
		rootAttributes: {
			width: 0,
			height: 0,
			style: 'position:absolute'
		}
	}
}

Please let me know if this works for you.
Cheers,
Joschi

That worked perfect! Thanks for the code and quick response.
Jack

Thanks for letting me know! Happy spriting! :)


[Unity][Relax] Check for call_tir early in DataflowReshapeRewriter

In an earlier commit, the check for call_tir was moved until later, which exposed some of the code to any calls, not just call_tir. The code was making assumptions about some of the arguments, which now are not necessarily met. Specifically, that there are at least two arguments, and that the first argument was a GlobalVar.
Move the check for call_tir back to the beginning of the function.

Sorry, I missed that thing in the last commit.

yeah I have https://github.com/apache/tvm/pull/15125 as well

You have a testcase, so let's go with yours.


fixes issue #674

this PR fixes issue with pagefind configuration #674

@HiDeoo I've fixed deps and will examine search changes

Hey @HiDeoo & @vedmalex 👋
Just popping into this PR to mention that Pagefind v1.0.0-beta.3 includes improvements around compound words and excerpts, thanks for the feedback! ❤
That excerpt does have a lot of mentions of component, so it might still favor the code, but in most cases compound words will be less likely to be the focus of an excerpt.
Additionally, beta.3 adds the ability to lower the weight of sections, and this weighting is used for both search ranking and excerpt generation, which means you can tailor this further by wrapping your code blocks in data-pagefind-weight="0.5" (or any number between 0 and 1) — which would make code even less likely to be the focus.

Damn @bglw, this looks super great and this was so fast 😮 Thanks for the amazing work! Time to play with all the new changes ^^

Follow-up to ☝
There was a wee issue with that initial fix that meant some compound words actually ranked higher 😅
That's fixed on v1.0.0-beta.5, if you want to try it out in the next... 22 hours or so 😄

Final follow-up, v1.0.0-beta.6 sneaks in some last minute quick-wins on ranking.
Before / after:

Final follow-up, v1.0.0-beta.6 sneaks in some last minute quick-wins on ranking.

Wow, this looks super neat! I have to say that I am super impatient, amazing work once again.


Opportunity to change file extension without visiting settings

你好！ Great tool!
I'd like to request the ability, when adding a title in the search dialog, to also add a file extension which would allow an override of the default extension from settings. I don't know if you could add a separate text box, or just automatically search for something like \..*?$. Thanks!

Cool, That's really good idea, I'll let you know if I got time implement it :) thanks
but for now, alternatively you can create a whatever file, and it will actually create a gist folder for you, you can see it will display on the tree directory, then you can create any file there and sync.

Seconded, this would be very useful!

closed by https://github.com/jcouyang/glist/releases/tag/v2.2.0


feat(trait): dynamic configuration

With this PR we enable the configuration of traits via Kubernetes Configmap. We can only provide this feature when defining the traits as annotation. I've tried to enable it for the generic use case but since we have a static type defined for each trait (ie, bool or int properties) the serialization to Integration and Trait type fail as we need to declare the configmap key to use, which is a string. We may revisit this in the future to make the Trait type flexible enough not to be forced to use its type, but in the while I think it's a good start.
Closes #3891

Release Note
feat(trait): dynamic configuration

usually this kind of customisations are handled using either an helm chart or using kustomize (i.e. you don't see this approach for configuring the cpu/memory for deployment), is there any reason not to use kustomize ?

usually this kind of customisations are handled using either an helm chart or using kustomize (i.e. you don't see this approach for configuring the cpu/memory for deployment), is there any reason not to use kustomize ?

No, I haven't thought about it. I'll have a look to see how does it fit, thanks!

Having a look at Kustomize, I guess we can try to apply the same principles. So, for instance, we could have an Integration like the below:
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  name: test
spec:
  ...
  traits:
    container:
      port: 1234

and a Kustomize like configuration (ie, prod-traits.yaml) as below:
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  name: test
spec:
  traits:
    container:
      port: 6789

We can think of kamel run ... --kustomize xyz.yaml and kamel promote ... --kustomize xyz.yaml that would take care to merge the content of the second into the first one. I was having a look at the Kustomize dependency API and I wonder if it makes sense to us it at all. I think we can simply have the same result by applying a merge on our own before pushing the resource to the cluster (it could work both when running the first time or promoting where the operator create a copy of the source integration).
@lburgazzoli wdyt?

I'm not very sure that what you are describing here is the right way of using kustomize, what one would expect is to write something like:
resources:
  - integration.yaml

patchesJson6902:
  - target:
      group: camel.apache.org
      version: v1
      kind: Integration
      name: test
    patch: |-
      - op: replace
        path: /traits/container/port
        value: 6789

So I would expect kamel promote to have an option to generate a yaml file you can then post-process with kustomize.
The main point for me is that kustomize is pretty much the standard for post processing resources as it is embedded in kubectl (i.e. kubectl applu -k) and integrated by almost all the CD tools (ArgoCD, Flux, etc) so any other option would make things a little special.
Btw, those are my 2c :) I think it would be perfectly possible to have both the solution in place, but for the specific case of the #3891 a standard way would be to leverage kustomize.

Thanks @lburgazzoli I agree and prefer the declarative approach, also because, the imperative one cannot work with traditional traits the way they are (we can only make it work in annotations). While it's clear how we can kustomize via kubectl -k, what I miss to understand is the following statement

So I would expect kamel promote to have an option to generate a yaml file you can then post-process with kustomize

When we promote, we copy an Integration CR and we create a cloned one via k8s API. We can let the user provide a kustomization config file, like the one you suggested, but I am not able to understand if there is any API to apply in a similar fashion how we'd kubectl apply -k. Do you mind elaborating a bit more this part? Thanks!

Superseded by #4050


result tableView seen through textfield

Hi,
Thanks for this great library!
I have a transparent textfield that I use with MLPAutocompleteTextField.
Unfortunately, the result tableview Y position is not positioned just below the textfield but behind it. Which is OK with an opaque textfield, but here it is a problem since we can see it.
Is there any way to change the Y position of the result table view?

For those having the same problem, I almost found a solution:

set autoCompleteTableOriginOffset to 0
The tableview is correctly positionned, but then I still have a blank space on top of the first row.


Better integration of dynamical decoupling into the transpiler

What should we add?
Right now the transpiler has a pass for running dynamical decoupling but to use it one has to manually construct a PassManager using the pass and set that as the scheduling stage in a larger preset pass manager (or skip scheduling in the preset pass manager/transpile() and instead run it as a standalone pass manager second step). It would be good if we had a better integration of this as a scheduling step in the default pipeline. I think this involves two primary components, the first is building a scheduling stage plugin for running dd. After #10545 we're now solely using the plugin interface for scheduling and it is trivial to add another built-in plugin for running dd with scheduling_method="dd" (or dd_alap and dd_asap) that uses PadDynamicalDecoupling instead of PadDelay. The second part (and is probably why we didn't do this sooner) is provide a way backends to inform the gate sequence and spacing to use. This likely just means adding 2 new fields to the target for a backend to optionally specify the sequence and spacing. If it's not specified we can just pick a default (probably X-X).

This likely just means adding 2 new fields to the target for a backend to optionally specify the sequence and spacing. If it's not specified we can just pick a default (probably X-X).

Sounds like we need Options object attached to Target. In my opinion Target represents device (static) configuration and DD is user provided (configurable) setting. I'm not sure how much we can rely on Qiskit DD framework because IBM devices doesn't report conditional operation and measurement latency, and DD across (mid-circuit) measurement is not really trustable. IBMProvider provides a scheduler plugin but its implementation is basically to give up the scheduling around measurement operation. I guess end users tend to put too much confidence on DD.

Well I wasn't really viewing it as user configurable here. My assumption (probably a faulty one) was that a backend can declare it has a known good/default dd sequence and spacing that works reasonably well on a given backend. In that case a field in the target makes sense to me as it is a property of the backend that running DD with a y - y sequence provides good results. For user configuration/experimentation the pass can still be manually instantiated with any options somebody wants to use.


Deal with libiomp5 / libgomp conflict introduced by nGraph

Root of the conflict

It's generally unsafe to have two OMP implementations in the same process.
nGraph depends on libiomp5.so for several reasons, including:

nGraph's LLVM-based JIT uses libclang's default OMP implementation, which is libiomp5.so.
nGraph's bundled build of MKL and/or MKL-DNN is built/configured to depend on libiomp5.so, not libgomp.so.

MXnet indirectly depends on libgomp.so, via the Ubuntu-supplied version of libsoxr.so.0, via this dependence chain:libopencv_core.so.2.4
libavformat-ffmpeg.so.56
libavcodec-ffmpeg.so.56
libswresample-ffmpeg.so.1
libsoxr.so.0
libgomp.so.1

Drop-in equivalence (at dynamic linking time) of libgomp.so and libiomp5.so
In practice it's not possible:

Code compiled to assume libgomp.so sometimes depends on dynamic symbols not provided by libiomp5.so.
I can't remember if code compiled to assume libiomp5.so at runtime can be satisfied by the implementation provided by libgomp.so.
The Ubuntu-supplied libsoxr.so,0 is overly (IMO) dependent on libgomp.so:  It stipulates the filename as well:$ readelf -d /usr/lib/x86_64-linux-gnu/libsoxr.so.0 | grep -i omp
 0x0000000000000001 (NEEDED)             Shared library: [libgomp.so.1]

Compiler / static-linker support for OMP library selection:

GCC 5.4 (and maybe newer, I don't know) seems to generate code that requires libgomp.so specifically.
Clang (at least current master, maybe earlier) is more flexible:  It supports -fopenmp={libgomp|libiomp5}, and generates appropriate object code.

Possible solutions

Custom build of libsoxr.so.0 that depends on libiomp5.so instead of libgomp.so

I prototyped a hack of this, and it should work.

Modify nGraph's build system to let users specify which OMP implementation to use.

Feasible in principle, since nGraph's build system builds most supporting libraries as well.

Binary-level hacking of Ubuntu-supplied libsoxr.so.0 to replace libgomp.so.1 with libiomp5.so.

Possible, but an insanely low-level and hack-ish.  Not appropriate for public-release software.


The order of enum values shown in dialogs is not the same as in property declarations

The order of enum values shown in property dialogs is not the same as the one specified in property declarations in archetype XML files.

Enum property choices were handled as a set instead of a list.
Fixed in commit 793d8f79103233b6e2badaf1373e43d58b65c4c0


How do we use variables in TagUI steps

Raising from user's email query for benefit of other users

I have one question about the tagui "type" command as it's seems that it's only enter the hard coded text instead of reading from the variable as I am having trouble in inputting variable into the website as it's input "contain" instead of cat -
https://www.google.com/
contain = "cat"
type lst-ib as contain[enter]
wait 5 seconds

updated email from user
it's seems that I should use '+contain+'😅
https://www.google.com/
contain = "cat"
type lst-ib as '+contain+'[enter]
wait 5 seconds

my response

That's correct! Where did you find out how to use this syntax?
Thinking where I can improve the readme or samples so that this is easier to see.
PS: variables can also be use as identifiers to specify which elements to interact with

Hi,
can you please show where to find the correct syntax about the usage of variables?
Regards

I found it,
username = "DEVELOPER"
vision type '+username+'[TAB]

username = "DEVELOPER"
type user.png as '+username+'[TAB]
I guess this should be correct?

Yes that's correct, now there's an improved way to use variables with backticks `, you can do -
username = "DEVELOPER"
type user.png as `username`[TAB]

There are more examples in flow samples and this is also mentioned in readme document.

@kensoh Could you please edit your first anwer of this issue to directly include or reference the updated backtick-syntax? Also I didn't found any mention of this in the docs. Is this intended? Using variables is quite an important basic concept in my oppinion🤔

Hi @ruthtxh,
thank you very much for the quick reply. I already got variables working for me, but was quiet confused that a basic concept like variable usage is not mentioned in the docs (or at least I didn't find it). On my search for an answer I stumbled upon this issue which finally resolved my confusion.
However, what I tried to express is that this is a point where the docs need to be improved as well as Ken's first reply to this issue as it refers to a deprecated syntax.

Hi @Steve2955, as for when to use the backticks/how to use it for accessing variables or concatenating variables, it is quite dependent on the usage and steps involved. Most of the steps already have examples on how to access variables for that particular step.
I've put together some examples to show this, let me know if it helps and I will add it to the docs:
text = "hello world"
echo `text`
// output: hello world

a = "hello"
b = "world"
c = a + " " + b
echo `c`
// output: hello world

echo hello world
// output: hello world

echo `a` `b`
// output: hello world

if a equals to b
  echo same
  // output:

P.S. this list is not exhaustive, just some examples to show how it might differ with different usage.

Thanks @Steve2955 for suggesting an update. Indeed it is confusing, I have updated the post above. Thanks too @ruthtxh!

Hi @Steve2955 @kensoh
I have updated the docs here, hope its clearer. Cheers.

Hi @ruthtxh your new guide looks great! There is some formatting issue, the backtick needs to be somehow escaped otherwise render as italic instead of backticks. And there is extra indentation in the output block -

@kensoh edited, thanks!

Maybe still need to iterate but i'm not sure what's the right syntax (now it is a different format but no backticks too) -

Oh the other docs are just referring to variables and use above formatting syntax.
But in this case, it is to demostrate that backticks are required, thus to show this way will be confusing for users when they are asked to surround the variable name with backticks but it is shown as just the variable name without the ``

Still need iteration (see below), though I'm not sure the syntax. I did a quick google search but didn't find the solution.


Sampler2D repeat_enable not working in Compatibility renderer

Godot version
v4.1.1.stable.official
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1060 (NVIDIA; <IP_ADDRESS>98) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
Texture repeat mode seems to be ignored in Compatibility mode when rendered inside of a SubViewport. Switching to forward+ or mobile fixes the issue.
Here's my shader from the MRP:
shader_type spatial;
uniform sampler2D tex: filter_nearest, repeat_enable;
void fragment() {
    vec2 uv = vec2(UV.x, UV.y);
    ALBEDO  = texture(tex, uv).rgb;
}

Expected:

Result:

Steps to reproduce

Open the attached project
Run project

Minimal reproduction project
MRP_Bug.zip

Duplicate?

https://github.com/godotengine/godot/issues/79315

Can you test on 4.2-dev4? Will be in 4.1.2

I test it with Godot v4.2.dev (f7c48cf80) - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 (NVIDIA; <IP_ADDRESS>19) - 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 Threads)
It worked as expected. But why the system info has Vulkan (Compatibility), I thought the Compatibility rendering method uses OpenGL.

It worked as expected. But why the system info has Vulkan (Compatibility), I thought the Compatibility rendering method uses OpenGL.

Its a bug in the editor code that prints the information. The bug is fixed in the dev releases

Duplicate of https://github.com/godotengine/godot/issues/79315
Fixed by https://github.com/godotengine/godot/pull/79685


runtime: Fix verification of blocks between two trusted heights

Updates tendermint-rs to include our fix from https://github.com/informalsystems/tendermint-rs/pull/1247.

Updated, please take another look.


fix(inline-property-schema): avoid false warnings

PR summary
This commit modifies the isEmptyObjectSchema() utility function so that it will correctly ignore annotations present on a schema when deciding whether or not a schema is an "empty object" schema (i.e. an object schema with no properties defined).
PR Checklist
General checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[ ] Dependencies have been updated as needed
[ ] .secrets.baseline updated as needed?

Checklist for adding a new validation rule:

[ ] Added new validation rule definition (packages/ruleset/src/rules/*.js, index.js)
[ ] If necessary, added new validation rule implementation (packages/ruleset/src/functions/*.js, updated index.js)
[ ] Added new rule to default configuration (packages/ruleset/src/ibm-oas.js)
[ ] Added tests for new rule (packages/ruleset/test/*.test.js)
[ ] Added docs for new rule (docs/ibm-cloud-rules.md)

:tada: This PR is included in version 0.45.4 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 0.97.4 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 0.0.2-rc.1 :tada:
The release is available on npm package (@v1-rc dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Status "icons" in project list (cards) should be color coded

 Issue by chriskacerguis
Wednesday Jan 21, 2015 at 22:54 GMT
Originally opened as https://github.com/projectjellyfish/ux/issues/104

The Status "icons" (budget, cpu, ram, disk) in project list (the circle thingy's) should be color coded.
Grey = unknown
Green = all good
Yellow = warning
Red = problem
(these are the 4 circles in the project cards)

 Comment by sonejah21
Thursday Mar 12, 2015 at 21:17 GMT

No longer valid with 3.0


Issue in self deploying langchain-serve

Can you provide more documentation on how to self-deploy langchain-serve on other cloud platforms like AWS?

Hi @sundar7D0, we are going to pick this up soon.

This is supported - https://github.com/jina-ai/langchain-serve#-self-host-llm-apps-with-docker-compose-or-kubernetes since v0.0.43


Not Working on Firefox

ReferenceError: unsafeWindow is not defined
Please revert https://github.com/coryshaw1/saliens-hack/issues/3

You have to use a userscript extension for the unsafeWindow to work. Please follow the installation instructions from the readme. If you don't want to use an extension, you'll have to manually remove unsafeWindow.requestAnimationFrame = c => { setTimeout(c, 1000 / 60); }; from the script yourself

Why not add if(unsaveWindow) before the line setting the requestAnimationFrame?

Would help the reports haha, good call!

I am using Tampermonkey, I made it work by setting 10 seconds, maybe my internet connection an my pc are not the best.
I am closing this for now.
Thanks!


Add FP16/BF16 TN MT32x16x250 kernel into FreeSize YAML

What is the purpose of this PR?

What is the purpose of this PR?
This MT can help at size FP16 TN 5120x1x5120, but the large DU (320) may also have chances to help on other sizes. so was wondering to put this MT at FreeSize first.

Could you confirm that we really need this? ex: measure the perf from the latest node. That this tilexDU get can get benefit is still weired for me.

LGTM, Please revise the PR title.
Done

LGTM, Please revise the PR title.
Done

32x16x256


Fixes #46 - Confusing highlighting of bracket matcher

Closes #46

very similar to that of a text  selection.

That's a good point. Ok, let's remove the background. Thanks for the PR.

Yes!  I'm honored.  Thank you for being so receptive.
On Thu, Sep 24, 2015 at 12:47 AM, simurai<EMAIL_ADDRESS>wrote:

Merged #47 https://github.com/atom/one-dark-syntax/pull/47.
—
Reply to this email directly or view it on GitHub
https://github.com/atom/one-dark-syntax/pull/47#event-417781060.


Release build unable to access .env file on android

Everything works fine on debug but on release build, no variable in my .env files is accessible. They all appear as undefined.
 "react-native": "0.71.7",
"react-native-config": "^1.5.0",
I build using the following: react-native run-android --mode=release or react-native run-android --variant=release
Here are my codes:
// ../app/build
// Load gradle.properties
def keystorePropertiesFile = rootProject.file('.gradle/gradle.properties')
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

project.ext.envConfigFiles = [
        debug: '.env',
        release: '.env',
        stagingrelease: '.env.staging',
        productionrelease: '.env.production'
]

apply plugin: "com.android.application"
apply plugin: "com.facebook.react"

import com.android.build.OutputFile

apply from: project(':react-native-config').projectDir.getPath() + '/dotenv.gradle' //react-native-config

apply from: '../../node_modules/react-native-vector-icons/fonts.gradle' // react-native-vector-icons
/**
 * This is the configuration block to customize your React Native Android app.
 * By default you don't need to apply any configuration, just uncomment the lines you need.
 */
react {}

def enableSeparateBuildPerCPUArchitecture = false

def enableProguardInReleaseBuilds = true

def jscFlavor = 'org.webkit:android-jsc:+'

def reactNativeArchitectures() {
    def value = project.getProperties().get("reactNativeArchitectures")
    return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

android {
    ndkVersion rootProject.ext.ndkVersion

    compileSdkVersion rootProject.ext.compileSdkVersion

    namespace "com.myPageName"
    defaultConfig {
        applicationId "com.myPageName"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 5
        versionName "1.0"
    }

    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include (*reactNativeArchitectures())
        }
    }
    signingConfigs {
        debug {
            storeFile file('debug.keystore')
            storePassword 'android'
            keyAlias 'androiddebugkey'
            keyPassword 'android'
        }
        release {
                storeFile file(keystoreProperties['MYAPP_UPLOAD_STORE_FILE'])
                storePassword keystoreProperties['MYAPP_UPLOAD_STORE_PASSWORD']
                keyAlias keystoreProperties['MYAPP_UPLOAD_KEY_ALIAS']
                keyPassword keystoreProperties['MYAPP_UPLOAD_KEY_PASSWORD']
        }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        release {
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }

        stagingrelease {
            initWith release
            matchingFallbacks = ['debug', 'release']
        }

        productionrelease {
            initWith release
            matchingFallbacks = ['release', 'debug']
        }
    }

    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        defaultConfig.versionCode * 1000 + versionCodes.get(abi)
            }

        }
    }
}

dependencies {
    implementation("com.facebook.react:react-android")

    implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

    implementation 'com.google.firebase:firebase-messaging:21.1.0'

    debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
    debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
        exclude group:'com.squareup.okhttp3', module:'okhttp'
    }

    debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
    if (hermesEnabled.toBoolean()) {
        implementation("com.facebook.react:hermes-android")
    } else {
        implementation jscFlavor
    }
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

apply plugin: 'com.google.gms.google-services'

// proguard-rules.pro
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

-keep class com.myPackageName.BuildConfig { *; }

My AndroidManifest.xml does not have a package name
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
...

Please can someone help me with this?

Is it working for you in dev mode?
I am unable to get it working with new RN project

xlcrr I had to upgrade my RN to 0.72.3 the latest version.

It's working for you now @eakenbor ?

ensure that you add your BuildConfig to your proguard rules. Took me hours to figure out. IMHO the README needs a major makeover. This should be pretty much on top it.
In your proguard-rules.pro add
-keep class my.app.package.BuildConfig { *; }

ensure that you add your BuildConfig to your proguard rules. Took me hours to figure out. IMHO the README needs a major makeover. This should be pretty much on top it.
In your proguard-rules.pro add
-keep class my.app.package.BuildConfig { *; }

I had done the above, but it still didn't work. Thank you @rburgst for writing also this, which I had missed!:

Obviously you need to adapt the package to your actual app package name

With that it works properly. As stated in another issue, the readme needs an overhaul!

Thanks for the tip but updating proguard-rules.pro fails for me
> Task :app:compileDebugJavaWithJavac FAILED
255 actionable tasks: 4 executed, 251 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

/Users/sean/react/openlittermap/android/app/src/main/java/com/openlittermap/MainApplication.java:42: error: cannot find symbol
          return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
                            ^
  symbol:   variable IS_NEW_ARCHITECTURE_ENABLED
  location: class BuildConfig
/Users/sean/react/openlittermap/android/app/src/main/java/com/openlittermap/MainApplication.java:47: error: cannot find symbol
          return BuildConfig.IS_HERMES_ENABLED;
                            ^
  symbol:   variable IS_HERMES_ENABLED
  location: class BuildConfig
/Users/sean/react/openlittermap/android/app/src/main/java/com/openlittermap/MainApplication.java:60: error: cannot find symbol
    if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
                   ^
  symbol:   variable IS_NEW_ARCHITECTURE_ENABLED
  location: class BuildConfig
3 errors

FAILURE: Build failed with an exception.

I am working on an open source project here if anyone would like to help fix this problem on android would really appreciate it ! https://github.com/OpenLitterMap/react-native

Thanks for the tip but updating proguard-rules.pro did not work for me
If anyone would like to help collaborate on an open source project with latest versions of everything I would really love some help here!
https://github.com/OpenLitterMap/react-native
Happy to post the solution when I get it

Latest minor react-native release fixed it for me, 0.72.3 -> 0.72.4

No idea why this fixed it for me but I was running through an npm script that was also doing ./gradlew clean which stopped this from working properly. Removing that fixed the issue for me.

https://github.com/luggit/react-native-config/issues/541#issuecomment-1491388207

#541 (comment)

This did not work for me

Latest minor react-native release fixed it for me, 0.72.3 -> 0.72.4

I have upgraded to 0.72.4 and 0.72.5 but it still isn't working for me.

Hello, I was trying to update from react-native 0.71.11 to 0.72.6 and I started to face the same issue, any news on that?

-keep class my.app.package.BuildConfig { *; }

Thankyou! Its working after add this line pro-guard

https://github.com/lugg/react-native-config/issues/777#issuecomment-1985475281
I have problem same. Someone help me!


gssntlm_acquire_cred_from crashes due SIGSEGV when desired_name=NULL

Running samba winbind with gssntlmssp of the latest development version installed (got sources from github + compiled). Immediately after start I get this crash:
Program received signal SIGSEGV, Segmentation fault.
get_creds_from_store (name=name@entry=0x0, cred=cred@entry=0x5555558a6a40, cred_store=cred_store@entry=0x7fffffffd260) at src/gss_creds.c:239
239	src/gss_creds.c: No such file or directory.
(gdb) bt
#0  get_creds_from_store (name=name@entry=0x0, cred=cred@entry=0x5555558a6a40, cred_store=cred_store@entry=0x7fffffffd260) at src/gss_creds.c:239
#1  0x00007fffddb9a487 in gssntlm_acquire_cred_from (minor_status=0x7fffffffce34, desired_name=0x0, time_req=<optimized out>, desired_mechs=<optimized out>, cred_usage=<optimized out>,
    cred_store=0x7fffffffd260, output_cred_handle=0x7fffffffcd60, actual_mechs=0x0, time_rec=0x0) at src/gss_creds.c:435
#2  0x00007fffede7d160 in gss_add_cred_from () from /lib64/libgssapi_krb5.so.2
#3  0x00007fffede7d7a9 in gss_acquire_cred_from () from /lib64/libgssapi_krb5.so.2
#4  0x00007fffedea622b in get_available_mechs () from /lib64/libgssapi_krb5.so.2
#5  0x00007fffedea643d in spnego_gss_acquire_cred_from () from /lib64/libgssapi_krb5.so.2
#6  0x00007fffede7d160 in gss_add_cred_from () from /lib64/libgssapi_krb5.so.2
#7  0x00007fffede7d7a9 in gss_acquire_cred_from () from /lib64/libgssapi_krb5.so.2
#8  0x00007ffff504fc7f in smb_gss_krb5_import_cred () from /usr/lib64/samba/libkrb5samba-samba4.so
#9  0x00007ffff10b7edf in gensec_gse_client_start () from /usr/lib64/samba/libgse-samba4.so
#10 0x00007ffff18fb91b in gensec_start_mech () from /usr/lib64/samba/libgensec-samba4.so
#11 0x00007ffff18fc71c in gensec_start_mech_by_ops () from /usr/lib64/samba/libgensec-samba4.so
#12 0x00007ffff18eb58d in gensec_spnego_client_negTokenInit_step () from /usr/lib64/samba/libgensec-samba4.so
#13 0x00007ffff18ebb4b in gensec_spnego_client_negTokenInit_start () from /usr/lib64/samba/libgensec-samba4.so
#14 0x00007ffff18ecc61 in gensec_spnego_update_send () from /usr/lib64/samba/libgensec-samba4.so
#15 0x00007ffff18fa940 in gensec_update_send () from /usr/lib64/samba/libgensec-samba4.so
#16 0x00007ffff3015835 in cli_session_setup_gensec_local_next () from /usr/lib64/samba/liblibsmb-samba4.so
#17 0x00007ffff3017287 in cli_session_setup_creds_send () from /usr/lib64/samba/liblibsmb-samba4.so
#18 0x00007ffff30179dd in cli_session_setup_creds () from /usr/lib64/samba/liblibsmb-samba4.so
#19 0x0000555555599727 in init_dc_connection_network ()
#20 0x00007ffff27a4ea4 in messaging_dispatch_classic () from /lib64/libsmbconf.so.0
#21 0x00007ffff27a5f51 in messaging_recv_cb () from /lib64/libsmbconf.so.0
#22 0x00007fffeecff5ba in msg_dgm_ref_recv () from /usr/lib64/samba/libmessages-dgm-samba4.so
#23 0x00007fffeecfd706 in messaging_dgm_read_handler () from /usr/lib64/samba/libmessages-dgm-samba4.so
#24 0x00007ffff5469153 in tevent_common_invoke_fd_handler () from /usr/lib64/samba/libtevent.so.0
#25 0x00007ffff546f587 in epoll_event_loop_once () from /usr/lib64/samba/libtevent.so.0
#26 0x00007ffff546d6a7 in std_event_loop_once () from /usr/lib64/samba/libtevent.so.0
#27 0x00007ffff546889d in _tevent_loop_once () from /usr/lib64/samba/libtevent.so.0
#28 0x000055555557b15c in main ()

As far as I see from backtrace and source code, the problem happens because Kerberos library calls gssntlm_acquire_cred_from with  desired_name=NULL and library tries to de-reference it without proper check for NULL.
# 2
status = mech->gss_acquire_cred(minor_status, internal_name, time_req,
                    &target_mechs, cred_usage, &cred, NULL,
                    time_recp);

# 1
 if (cred_usage == GSS_C_INITIATE) {
        if (name != NULL && name->type != GSSNTLM_NAME_USER) {
            set_GSSERRS(ERR_NOUSRNAME, GSS_S_BAD_NAMETYPE);
            goto done;
        }

        if (cred_store != GSS_C_NO_CRED_STORE) {
            retmin = get_creds_from_store(name, cred, cred_store);
        } else {

# 0

static int get_creds_from_store(struct gssntlm_name *name,
                                struct gssntlm_cred *cred,
                                gss_const_key_value_set_t cred_store)
{
    uint32_t i;
    int ret;

    /* special case to let server creds carry a keyfile */
    if (name->type == GSSNTLM_NAME_SERVER) {

Uhmm so a cred_store was provided but no name was provided ...
What key/value pairs are actually provided in the cred store ?
We definitely need to resolve the crash, but currently the code assumes that a name needs to be provided if acquire with cred store is provided, so I am trying to figure out what is the right thing to do in this case.

i provided a possible patch, please let me know if this will work for you.

That said I think there is a bug in samba here.
Samba is looking specifically for krb5 credentials, but is not setting the preferred oid, or checking it, so with gssntlmssp installed it may get back creedntials it is not asking for, I believe.
There is also the chance it will  loop back to windbind to obtain NTLM creds where it does not expect so and may lead to a deadlock if this happens within winbindd itself (although I think the windbind client interface prevents it).

Thank you very much for fast fix, haven't expected it so quick :-)
Will try to test it as soon!

I have tested the fix (I have done cherry-pick for this commit over the latest version of code because I found that your private branch 'name_crash' misses some recent changes).
I confirm that winbind doesn't crash and it starts properly.
However the basic checks of NTLM functionality have failed due other bug - see #42 .
So I cannot fully verify the changes, but probably we can give green light for this fix.


Website: guides boxes should be aligned vertically

https://cescoffier.github.io/mutiny-doc-sandbox/guides should have all boxes the of same height.

found a way to do it... removed the boxes :-D


Fix list example data type

I've not searched in details, but there may be other instances of this same typo.
And maybe also the datatype is right and the text is wrong, dunno.


feat(Grid): Expose isFromKeyboard prop

This PR aims to expose isFromKeyboard prop so the clients can style properly grid items based on the state if the focus goes from keyboard or mouse

Fails

:no_entry_sign:
All of your entries in CHANGELOG.md should be in the **Unreleased** section!

  Generated by :no_entry_sign: dangerJS


tendermint start error

fresh install on 3 node.
-OS : Ubuntu 20.04 lts

bigchaindb : 2.2.2
tendermint : 0.31.5-d2eab536
nginx and ssl using letsencrypt

when i start bigchaindb, it's look good
when start tendemint with tendermint node iget this message
E[2021-05-12|22:12:41.717] abci.socketClient failed to connect to tcp://<IP_ADDRESS>:26658.  Retrying... module=abci-client connection=query err="dial tcp <IP_ADDRESS>:26658: connect: connection refused"
any ideas are welcome

is ok for me just update gevent
pip install --upgrade gevent

check if the ports are accepting outbound request or not , may be some security issues with ports
else try to build the network using tendermint testnet command .

I have exactly the same problem on Ubuntu 20.04. I have installed bigchaindb like in the official documentation but seems that tendermint refuse any connection. I tried with two nodes but I imagine that should not mater. Each node works itself and can be used independenty but can't connect to the other(s). The network is made like in their documentation.
Any ideas are apreciated.

hi @geosoft1  the minimum number of nodes required to establish a successful connection is 4 , as according to BFT consensus , 3f+1 nodes are required in tendermint  ( where f= no of faulty nodes )


AuthorizeFilter always returns 401

From @epot on August 3, 2017 11:51
I added a dummy AuthorizationHandler with a IAuthorizationRequirement that does not do anything, but the code is never reached and asp.net core returns a 401 without any details. I read https://stackoverflow.com/questions/37276005/asp-net-core-policy-based-authorization-ends-with-401-unauthorized but my case seems to be different as my user is authenticated after exiting the AuthenticationHandler callback. Can I debug somehow what is happening?
Copied from original issue: aspnet/Mvc#6622

From @epot on August 3, 2017 13:33
I found the following logs:
Microsoft.AspNetCore.Authorization.DefaultAuthorizationService: Information: Authorization failed for user<EMAIL_ADDRESS>Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Information: Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
Microsoft.AspNetCore.Mvc.ChallengeResult: Information: Executing ChallengeResult with authentication schemes ().
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Information: Executed action Gna.Controller.test (Gna) in 28.5914ms

Answered here:
https://stackoverflow.com/questions/45499636/asp-net-core-custom-authorization-always-ends-with-401-unauthorized
Not sure why it was moved to security as it seems more related to MVC integration.

That's because it's not related to MVC. MVC just calls into the auth system.

Well regarding this specific ticket, the issue was when trying to integrate my security code in MVC, that was the part that was not working.

Is the issue resolved? Can this be closed?

yes (see stackoverflow)

Kewl