Why vuex-orm returns null in relationship field?

I followed the guide of Defining Relationships in Vuex ORM.
I did everything like the guide, so why I get null value in the category field in Article Model?
codesandbox
This is how I defining my models (category on article is: hasOne/belongTo):
export class Category extends Model {
  static entity = "categories";

  static primaryKey = "_id";

  static fields() {
    return {
      _id: this.attr(null),
      name: this.attr("")
    };
  }
}

export class Article extends Model {
  static entity = "articles";

  static primaryKey = "_id";

  static fields() {
    return {
      _id: this.attr(null),
      name: this.attr(""),
      category: this.hasOne(Category, "_id")
    };
  }

Config Vuex-orm with vuex in main.js:
import VuexORM from "@vuex-orm/core";
import { Article, Category } from "./models";

Vue.use(Vuex);

const database = new VuexORM.Database();

const Articles = {
  namespaced: true,

  actions: {
    test() {
      console.log(this);
    }
  }
};

const Categories = {
  namespaced: true,

  actions: {
    test() {
      console.log(this);
    }
  }
};

database.register(Article, Articles);
database.register(Category, Categories);

const store = new Vuex.Store({
  plugins: [VuexORM.install(database)]
});

Inside app component I have the data that I insert to vuex and get the values like so:
 const articleData = [
      {
        _id: "6ce9bae00000000000000000",
        name: "article-1",
        category: "5ce9acd00000000000000000"
      }
    ];
    const categoryData = [
      { _id: "5ce9acd00000000000000000", name: "category-1" }
    ];

    const x = await Article.insertOrUpdate({ data: articleData });
    const y = await Category.insertOrUpdate({ data: categoryData });

    const a = Article.query()
      .with("category")
      .first();

    console.log({ a });
    console.log({ type: a.category });
    console.log("why a.category is null???");

I have been trying to understand this for several days without success. I would much appreciate any help.

Hi !
Try with this model definition:
export class Article extends Model {
  static entity = "articles";

  static primaryKey = "_id";

  static fields() {
    return {
      _id: this.attr(null),
      name: this.attr(""),
      category: this.belongsTo(Category, "category_id"),
      category_id: this.attr('')
    };
  }
}

You then need to use category_id in App.vue.
It happens to me too to be confused. Especially because in the docs it's in the One to One section. I'm sure we can improve this.
Hope it helps !!

Works! @paparent  Thank you!!!
And yes, this issue is common and the docs are very confusing about that. Thank you and the whole team, for the effort and it's really appreciated.

I actually think there are bugs in Vuex ORM and using belongsTo is circumventing the issues. I did the same thing; followed the tutes, and banged my head on the wall several times over a Sails to Vuex ORM model transform package. I  even contributed something with a PR in the documentation section. However, I am still yet to use Vuex ORM without issues. I then thought maybe my code is bad somewhere let me try the example code. So I cloned it and ran it. The Todo app seems to work when you run and add a few tasks, but my reason was bug hunting:

And, closer inspection in Vue-DevTools revealed this issue:

Notice the other inserted tasks' assignee are ok, but the ones I inserted are null. This is the bug!

It seems like this issue is really wrecking havoc there are many duplicates about it and people are not seeing it as the same thing... please use #356 to further this.

coming from #356 ...

@emahuni I think yes, we should use #378 maybe, I haven't looked into it just yet. But the null issue we had on your screen shot is not happening on latest version. We need to have some kind of reproduction code to tackle further.

It's still happening. I completely deleted the example I had on my machine and cloned the example again, then ran yarn && yarn serve after which point I visited localhost:3000 and opened vuex in devtools:

This time around it's even worse, the initial data is also null, unlike the initial one which had something on assignee. Take a look at the two screenshots, notice that the first one has assignee 2 on record 3, but on the last screenshot the same record now has null.

https://codesandbox.io/embed/vue-template-q44el
That's a codesandbox of the issue, but based on getting started

@emahuni Hi! Thanks for the code. But this is expected. Within store, the relationship field should be null or empty array. In your example, the author field should always be null inside store.
Are you having trouble loading the relationship...? Then you must fetch data by with query chan.
Post.query().with('author').get()

With above code, you'll get all Post with related User nested.

no, you don't get it I guess. Did you see the codesandbox? I am not fetching anything. This is just the representational store data. In documentation you said it should have 1 not null.

Ohhh sorry for that. The documentation is wrong. It should be fixed. So sorry for that. It should be null, not 1.

I am not fetching anything on the state, the state has null on author, shouldn't it have an id that relates to the author in the store? Anyway I have updated the codesandbox and still there is null

can you play with it and make it work as expected?

It is already working as expected. So you want to fetch posts "with" user (author) right? If so you should be doing this. https://codesandbox.io/embed/vue-template-q44el

ohhhh, I updated again with Post.query().with('author').get(), it's working

So you mean the state should have associations with id's null?

Associations id's should be at foreign key, not relation field. For that example, the association id is at user_id field at Post. Not at author field at Post.

so it means that author field is useless then?

It depends. Sometime it's useless, sometime it's useful. If you only want fetch Post but without author, then you don't need author field. If you want fetch Post with User, then you access User object at post.author so it's very useful.

it's useful even if it's null? Can you please put an example in the sandbox?

@emahuni I have no idea what you are trying to do... what example do you want?

exmple of this:

If you want fetch Post with User, then you access User object at post.author so it's very useful.

coz I don't get what you mean or how to use that feature

I am trying to see how this is useful since we followed the documentation with wrong assumptions.

Like this. https://codesandbox.io/embed/vue-template-hpp7e

I don't know what you changed, but there is an error with the sandbox. It can't import some files. You moved the models folder. I fixed it by just renaming references. Ok, I think I get what you mean, but I think the documentation needs heavy work on. Things need to be clarified correctly. Let me see if I am actually having an issue in my project then. I will get back to you here, but in the meantime have a look at this issue's initial post before you close this issue altogether. Will go through the documentation once more and see if I can help with it.

@emahuni Yeah sorry for the documentation, but the initial issue is solved already. It's about specifying correct foreign key. Please open another issue if you have anything by describing the specific issue so that other people can understand things better 👍


Unable to deploy with deploy scripts

When following the instructions I am getting multiple errors when trying to deploy from local or from the shell.  Log below
**_Ensuring API application exists
Checking if UserPrincipalName exists
User not, will create.
InvalidOperation: /home/fhirdeploy/fhir-server-samples/deploy/scripts/Create-FhirServerSamplesAuthConfig.ps1:170
Line |
170 |      $password = [System.Web.Security.Membership]::GeneratePassword(16 …
|                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Unable to find type [System.Web.Security.Membership].
ConvertTo-SecureString: /fhirdeploy/fhir-server-samples/deploy/scripts/Create-FhirServerSamplesAuthConfig.ps1:171
Line |
171 |      $passwordSecureString = ConvertTo-SecureString $password -AsPlain …
|                                                     ~~~~~~~~~
| Cannot bind argument to parameter 'String' because it is null.
New-AzureADUser: /home/fhirdeploy/fhir-server-samples/deploy/scripts/Create-FhirServerSamplesAuthConfig.ps1:183
Line |
183 |  …  $aadUser = New-AzureADUser -DisplayName $userId -PasswordProfile $Pa …
|                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Error occurred while executing NewUser  Code: Request_BadRequest Message: A password must be specified to create a new user. RequestId: *************43704517 DateTimeStamp: Sun, 20 Dec 2020 17:57:30 GMT
| HttpStatusCode: BadRequest HttpStatusDescription: Bad Request HttpResponseStatus: Completed
Set-AzKeyVaultSecret: /home//fhirdeploy/fhir-server-samples/deploy/scripts/Create-FhirServerSamplesAuthConfig.ps1:188
Line |
188 |  … e -Name "$userId-password" -SecretValue $passwordSecureString | Out-N …
|                                            ~~~~~~~~~~~~~~~~~~~~~
| Cannot bind argument to parameter 'SecretValue' because it is null.
Exception: /home//fhirdeploy/fhir-server-samples/deploy/scripts/fhir-server/samples/scripts/PowerShell/FhirServer/Public/Set-FhirServerUserAppRoleAssignments.ps1:43
Line |
43 |          throw "User not found"
|          ~~~~~~~~~~~~~~~~~~~~~~
| User not found_**

So did some digging with Sai and we think its because of the version of PowerShell. You need to ensure you have the correct version of each module in PowerShell. Anything higher and it will fail
4.1.0      Az
1.9.4      Az.Accounts
2.0.1      Az.Resources
2.0.0      Az.KeyVault

Thank you for this! We also specified the version specifications in our README - we will update it accordingly.

Thank you for this! We also specified the version specifications in our README - we will update it accordingly.


Container package should show Image ID in addition to Digest

Feature Description
Currently the container view shows the image digest,
while most other tools (e.g. docker image list, docker inspect, Portainer)
all show the image id by default and only provide
the digest when specifically asked for.
I think gitea should ideally show both.
Screenshots
No response

But the image id is just the first 12 chars of the image digest.

But the image id is just the first 12 chars of the image digest.
No its not.
Take for example a look at the gitea image using docker image list --digests --no-trunc gitea/gitea:

REPOSITORY    TAG       DIGEST                                                                    IMAGE ID                                                                  CREATED       SIZE
gitea/gitea   1.21      sha256:daeeb33fb2f90d94876597f3b6c73956687c03250d5e5ca71104fc03b9c626b3   sha256:a09084c8eac7b2f395d1aa362e7792da5f6fade4587d1cb135d3aedf618d390c   3 weeks ago   160MB

The IMAGE ID is the the value thats usually shortened to 12 chars and in the normal list output. Its also the value visible in docker inspect (as Image) and in the container details of tools like portainer.
The DIGEST on the other hand is the hash thats displayed on the gitea details page and briefly shown when doing a docker pull.

Isn't that just a relict from older docker versions?
My I ask, what Docker version you are running ?
I tried a variety (23.x, 24.x) as well as 26.0.0, which according to github is the latest release and I don't have a single image (including a freshly pulled one) where digest and image id match.

25.0.3 amd64 but version 26.0.0 aarch64 on a different system shows different IDs like your output.

I sadly don't have a docker host that runs on 25.x, nor any non amd64 hosts to test it.

Everything fine. https://github.com/opencontainers/image-spec/blob/main/config.md#imageid specifies what the "image id" is. Don't know why docker shows identical IDs on my system. Gitea currently shows the manifest "id" because only that info is needed to pull an image. Can't currently tell if and when the image id may be added to Gitea. Need more research first.


Make -0 output "-0" when doing toString()

As I was doing some work related to -0 I realized that we do the following
-0..toString() === "0"
0..toString() === "0"

Which is very confusing and different than what the other browsers do.

This change is

Sorry didn't see this before, will debugger show "-0" for such case as well?

There were too many problems with the change and I am not sure if it's worth it.
Namely, parseInt(-0) was returning -0 after this change, which makes no sense because -0 is not an int

This change is incorrect anyway. Spec is that toString of -0 is "0", and all implementations agree. Any differences you see here is differences in the toString behavior of the F12 tools: -0..toString() is -(0..toString()) resulting -0. You can observe the differences in the various browser consoles simply by typing -0 in the console and hitting enter - we show "0", others show "-0".


Support active_tools argument

Request
Add active_tools to hvplot.
Motivation
Motivated by working on https://discourse.holoviz.org/t/bi-dashboard-with-easy-crossfiltering-also-of-categorical-data/4263/2 I need the box_select to be the active_tool. But hvPlot only exposes the tools not the active_tool.
You can set the active_tools via .opts as shown below.
I believe this is inconsistent. And it was also confusing to me.
import plotly.express as px

import hvplot.pandas

df = px.data.tips()

print("hvplot")
df.hvplot.scatter(x="total_bill", y="tip", tools=["box_select"], active_tools=["box_select"])
print("holoviews opts")
df.hvplot.scatter(x="total_bill", y="tip", tools=["box_select"]).opts(active_tools=["box_select"])

$ python script.py
python 'script2.py'
hvplot
WARNING:param.main: active_tools option not found for scatter plot with bokeh; similar options include: []
holoviews opts

Since we support tools I think it makes sense to support active_tools too then. Let's also make sure we don't clutter too much the API. Documenting better how and when to use .opts is also important.


You can CAS fire on some parts of the western caves of solaris

Description

Title. Happened in round # 837, it was one of the edges that allowed CAS.
Reproduction

Screenshots

Additional context

Going to assume this was fixed by the areas rework.

Should be good now,  you can run areas:loadmortar to check
The very edge do allow mortar fire since it's considered close enough to the cave entrance


amd64: arm64: hang during file descriptor close

Description
First issue:
Baremetal Flatcar AMD64 hangs during ceph installation (containerized ceph installation using rook-ceph kubernetes). Debugging showed that this line hangs, during mon_osd_crush_smoke_test stage:
https://github.com/ceph/ceph/blob/389ea1666327f508d01b9318718c70eec0ed6972/src/common/fork_function.h#L66
When mon_osd_crush_smoke_test = false was set, the issue did not reproduce. Same containerized environment on Ubuntu 22.04 did not reproduce the issue. Same hardware, same identical container images, same worfklow -- which means the OS is most likely having the issue.
Second issue:
Virtual Flatcar ARM64 (qemu-kvm virtual machine) hangs during flatcar-install run. Debugging showed that the command udevadm settle hangs.
I think these two issues are related, because it looks to be a filedescriptor close problem.
More investigation is required, I will add more information while it becomes available.
Did anyone encounter this behaviour?
Impact
TBD.
Environment and steps to reproduce
First issue:
During ceph installation on baremetal (Lenovo baremetal) + virtual (qemu kvm), amd64, ceph osd goes to 100% cpu for no aparrent reason. If we set mon_osd_crush_smoke_test = false, the issue is not present anymore.
After some debugging, this line hangs forever: https://github.com/ceph/ceph/blob/389ea1666327f508d01b9318718c70eec0ed6972/src/common/fork_function.h#L66 . the ceph osd container gets killed after a while because it was not ready, and gets recreated and then same scenario applies.
The 100% CPU usage is due to the fact the code tries to retry the fdclose without any maximum retry count.
As a consequence, ceph cannot be deployed on Flatcar  without the flag override from the global config:
    [global]
    mon_osd_crush_smoke_test = false

Second issue:
During installation of flatcar on arm64 qemu kvm, using flatcar-install that uses channel | version. After executing the flatcar-install bash script, the following line from the bash script flatcar-install hangs: udevadm settle.
Expected behavior
To not hang.
Additional information
There were no useful logs in the system logs, dmesg or any hung task error message usually thrown by the kernel. Tried with ALL channels versions of Flatcar available, it looks to be a generic issue for all the Flatcar images.

These are two separate things, or? One is udevadm settle hanging, one is the ceph container?
From where do you run flatcar-install - from a PXE booted image, i.e., from RAM and where do you install to? The ceph container issue could be related to the kernel or containerd version, what release did you use?

These are two separate things, or? One is udevadm settle hanging, one is the ceph container? From where do you run flatcar-install - from a PXE booted image, i.e., from RAM and where do you install to? The ceph container issue could be related to the kernel or containerd version, what release did you use?

Further investigation is required to see if actually udevadm settle is actually hanging during an fd close too (I ll need to manually build a debug version to see where exactly it does hang).
I just presented these two issues in the same bug report because they seem to have the same cause. I will split them up when it s proven that they do not have the same cause.
flatcar-install was run manually from a KVM VM ARM64, VM running the image provided by https://alpha.release.flatcar-linux.net/arm64-usr/current/flatcar_production_qemu_uefi_image.img.bz2
The ceph issue is definitely not a containerd issue, as we used the same CAPI image binaries for both Flatcar / Ubuntu (curtoasy of the capi image builder project - https://github.com/kubernetes-sigs/image-builder). It might be a kernel issue, definitely, we need to find a way to reproduce it outside of the whole ceph code first.
These two issues are not blockers (as can be avoided by minimal code changes), but may be caused by an underlying issue that might produce non-reproducible side effects or down-right bugs.
Thank you,
Adrian Vladu.


fix(Build): Trigger build

Goal
for https://github.com/Pocket/terraform-modules/pull/757

woohoo, something else picked it up


Fix #28407 - Add inspectdb support for db column comments

rebase of this PR: https://github.com/django/django/pull/8770
Left to do:

[ ] add tests

Closing due to inactivity.


[xCode 9b5] Bunch of errors...

Bunch of errors occurs from Xcode... any idea?...

Turn off automatic ref count mode or remove 'retian' message and delete all
the release/dealloc lines.
On Tue, Sep 5, 2017 at 11:02 AM samavan<EMAIL_ADDRESS>wrote:

[image: screen shot 2017-09-05 at 12 59 47]
https://user-images.githubusercontent.com/6184992/30044760-63623216-923a-11e7-8ca3-10d1b39a743f.png
Bunch of errors occurs from Xcode... any idea?...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/midworld/unity-googledrive/issues/26, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABnn7PevoHK_4Bs6SFwhr_3OWKx0Ujocks5sfMfCgaJpZM4PMarb
.

Worked a charm!
Below the location for this settings for those having the same issue 👍


API doc examples are currently not easy to copy/paste

users may want to use a snippet from example directly, so making the notebooks copy-friendly is important
currently the code blocks have python shell prefix ">>>" in them. see http://gluon-nlp.mxnet.io/api/notes/data_api.html

I suggest we follow https://devguide.python.org/documenting/#showing-code-examples (note the toggle in the upper right corner of the code example)

Reopening due to https://github.com/dmlc/gluon-nlp/pull/438

We may not need to add a copy button again. It seems reasonably simple to copy code examples without any supporting button with the new layout. If you agree, feel free to close again.

@leezu let's see how the new build looks.

Any update on this?

The problem still exists for the linked doc http://gluon-nlp.mxnet.io/api/notes/data_api.html


docs: ghost form elements' descriptions always refer to checkbox

In the documentation, all the descriptions of the ghost variant referred to the checkbox ("Adds ghost style to checkbox").
To be more precise, it appeared in:

Text input;
Select;
Textarea;

@rinodrummer Thank you 👍


extraFlags in nixos containers can't handle values with spaces

A container would fail to start with the following extraFlags:
    extraFlags = [
      "--system-call-filter='bpf keyctl'"
    ]

The argument value gets split into two separate arguments. I've tried many forms of escaping without luck.

Can you provide minimal .nix file with command to see the issue ?

Something like
{ config, pkgs, lib, ... }:

{
  containers.test = {
    autoStart = true;
    ephemeral = true;

    privateNetwork = true;

    extraFlags = [
      "--system-call-filter='add_key keyctl bpf'"
    ];

    config = { config, pkgs, ... }: {
    };
  };
}

This is the problem..
https://github.com/NixOS/nixpkgs/blob/8c73cb0d741b8822ac9164f08df8186374a59b64/nixos/modules/virtualisation/nixos-containers.nix#L849-L851

Has anyone figured out a solution/workaround to this? I feel like I've been trying to get this work for at least an hour now..

Did anyone try lib.escapeShellArgs instead of lib.concatStringsSep?

As you might see, noone tried.


Add someone to GitHub

Please include:

GitHub ID to add: https://github.com/dkulic
Project to be added to: AnonCreds

One of:

Team to be added to:
Role: Maintainer -- anoncreds-maintainer

Read
Triage
Write
Manage
Admin

Invite sent!


[Bug] [Docker] Workflow ''push-docker" failed run with error "No space left on device"

Search before asking

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

What happened
When I tried to run the 'push-docker' workflow and push to my repository, I encountered the following error.
Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/runners/2.321.0/_diag/Worker_20241218-085953-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at System.Diagnostics.TraceSource.Flush()
   at GitHub.Runner.Common.Tracing.Dispose(Boolean disposing)
   at GitHub.Runner.Common.Tracing.Dispose()
   at GitHub.Runner.Common.TraceManager.Dispose(Boolean disposing)
   at GitHub.Runner.Common.TraceManager.Dispose()
   at GitHub.Runner.Common.HostContext.Dispose(Boolean disposing)
   at GitHub.Runner.Common.HostContext.Dispose()
   at GitHub.Runner.Worker.Program.Main(String[] args)
System.IO.IOException: No space left on device : '/home/runner/runners/2.321.0/_diag/Worker_20241218-085953-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id)
   at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message)
   at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)
System.IO.IOException: No space left on device : '/home/runner/runners/2.321.0/_diag/Worker_20241218-085953-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id)
   at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message)
   at GitHub.Runner.Common.Tracing.Error(Exception exception)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)

SeaTunnel Version
dev
SeaTunnel Config
Null

Running Command
Null

Error Exception
Null

Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

FYI https://github.com/actions/runner-images/issues/10386


refactor: Upgrade aspects-dbt for performance changes

Removes several unused models.

@bmtcril Make sure to add a migration to delete the orphan most_recent_course_blocks or you will have conflicts as I faced earlier

Reopening to test latest dbt changes


Systemd restarts agent stopped with disconnect-after-idle-timeout

An agent stopped due to disconnect-after-idle-timeout is automatically restarted by systemd. Here is my syslog:
Apr 13 00:08:18 ip-10-37-0-214 buildkite-agent: #033[38;5;48m2019-04-13 00:08:18 INFO  #033[0m #033[38;5;243mi-0bf46b89e7e89ab60#033[0m #033[0mAgent has been idle for 300 seconds#033[0m
Apr 13 00:08:18 ip-10-37-0-214 buildkite-agent: #033[38;5;48m2019-04-13 00:08:18 INFO  #033[0m #033[38;5;243mi-0bf46b89e7e89ab60#033[0m #033[0mGracefully stopping agent. Since there is no job running, the agent will disconnect immediately#033[0m
Apr 13 00:08:18 ip-10-37-0-214 buildkite-agent: #033[38;5;48m2019-04-13 00:08:18 INFO  #033[0m #033[38;5;243mi-0bf46b89e7e89ab60#033[0m #033[0mDisconnecting...#033[0m
[snip]
Apr 13 00:08:18 ip-10-37-0-214 systemd: buildkite-agent.service: control process exited, code=exited status=1
Apr 13 00:08:18 ip-10-37-0-214 systemd: Unit buildkite-agent.service entered failed state.
Apr 13 00:08:18 ip-10-37-0-214 systemd: buildkite-agent.service failed.
Apr 13 00:08:24 ip-10-37-0-214 systemd: buildkite-agent.service holdoff time over, scheduling restart.
Apr 13 00:08:24 ip-10-37-0-214 systemd: Started Buildkite Agent.
Apr 13 00:08:24 ip-10-37-0-214 systemd: Starting Buildkite Agent...
[snip]
Apr 13 00:08:24 ip-10-37-0-214 buildkite-agent: #033[0m
Apr 13 00:08:24 ip-10-37-0-214 buildkite-agent: #033[1;36m2019-04-13 00:08:24 NOTICE#033[0m #033[0mStarting buildkite-agent v3.10.4 with PID: 6096#033[0m

How have you configured your systemd unit @moensch?

I think it's just a standard Elastic Stack, I asked @moensch to drop an issue in here for context on a Slack discussion in #aws-vault.

It is not a default elastic stack (building our own AMI and deploying the lambdas using terraform). So the systemd unit is just the default the RPM ships.
[Unit]
Description=Buildkite Agent
Documentation=https://buildkite.com/agent
After=syslog.target
After=network.target

[Service]
Type=simple
User=buildkite-agent
Environment=HOME=/var/lib/buildkite-agent
ExecStart=/usr/bin/buildkite-agent start
RestartSec=5
Restart=on-failure
RestartForceExitStatus=SIGPIPE
TimeoutStartSec=10
TimeoutStopSec=0
KillMode=process

[Install]
WantedBy=multi-user.target
DefaultInstance=1

Since I am hand rolling this, I now also dropped this config in addition:
[Service]
ExecStopPost=/usr/local/bin/terminate-instance true
ExecStopPost=/usr/sbin/poweroff

@moensch I might be wrong but I think you need to have sudo in front of that poweroff like you see here.
https://github.com/buildkite/elastic-ci-stack-for-aws/blob/master/packer/linux/conf/bin/bk-install-elastic-stack.sh#L142
If I'm right then I think what's happening is the poweroff is failing to run so systemd's Restart=on-failure is going ahead and starting the service back up again. I'm pretty sure I saw similar unexpected behavior recently while working with a custom AMI and elastic stack. In fact my issue was that I have AMIs for many different platforms that have sudo in different locations so I ended up doing this.
[Service]
ExecStopPost=/usr/local/bin/terminate-instance true
ExecStopPost=$(command -v sudo) poweroff

Does the above resolve your issues @moensch?

Closing for now @moensch, let us know if that above didn't fix things for you.


gap extension penalty (-g) option does not work with glsearch36 nw score calculation

Hi,
I ran glsearch36 for DNA query and library with the options:
glsearch36 -L -f 7 -g 5 -T 18 -s *.mat -z 0 -Z 1 -m BB -q query.fa library.fa
I realized that gap extension penalty is not being subtracted from final needleman wunsch score.
For example: needleman wunsch score is 57 for all the patterns below:
57          ||.|~~|||||||||~|||| 1 substitution 3 gaps
57          ||||~~~||||||~|.|||||| 1 substitution 4 gaps
57          ||||||~~|||||~~~|||||.|| 1 substitution 5 gaps
57          ||.|||||~~~~|||~|||||||| 1 substitution 5 gaps
Thanks,
Meltem

I attached one output:
glsearch36 -E 100 -L -f 6 -g 2 -T 18 -n -z 0 -Z 1 -m BB  query2.fa  chr14_test.fa
The nw score is 22 for both patterns. I realized that this may be related to identity length. I was only taking into account the gap and mismatch numbers. I guess the number of matching bases are also included in the final nw score.
Meltem


Razor Components: OnParametersSet gets invoked again and again when parameters of non-trivial types exist

Using 3.0 preview-3 and this sample: https://github.com/springy76/RazorComponentsProblems/blob/problem/OnParametersSetGetsInvokedTooOften/WebApp/Components/Pages/Counter.razor
Problem:
Clicking the "click me" button on the counter page shows that non-related components bound to unchanged values get triggered their OnParameterSet method when the [Parameter] attributed property is of non "non-trivial" types,
Works (only one initial OnParameterSet):
bool, bool?, byte, byte?, sbyte, sbyte?, char, char?, decimal, decimal?, double, double?, float, float?, int, int?, uint, uint?, long, long?, ulong, ulong?, short, short?, ushort, ushort?, string, System.DateType, Nullable<System.DateType>.
Works not (OnParametersSet gets called again and again and again for every StateHasChanged() of the surrounding component):
Everything else, no matter if the class or struct implements IComparable<T>, IComparable, IEquatable<T>, IConvertible, IFormattable or overrides GetHashCode() or static == and != operators -- or all of them.
Surprisingly System.DateTime -- which is not an integral/aliased type -- works without hassle , and all nullables of such simple types work too, including string.

This is precisely the design. For any parameter type where we can't guarantee that the value hasn't mutated, we have the recipient re-render (because the output may change).
There is a method you can override on your component - ShouldRender - to override the logic about whether the parameter values should be treated as different or not.

How should ShouldRender know when to return true or false without managing dirty flags for every single parameter, including backing fields for every parameter property? Not to speak that this would not be aware of 1001 other reasons for a StateHasChanged to occur (message bus messages, etc.).
Further ShouldRender is the absolutely wrong candidate when I use OnParametersSetAsync to load complex data from other servers.
With the use of IEquatable<T> or IComparable<T> this could be implemented in one single place and it would not lead to surprises that DateTime works well while TimeSpan does not.

How would IEquatable/IComparable help? When an object mutates, its older state no longer exists to compare against.
You’re right that implementing ShouldRender may involve maintaining snapshots of your parameter values so you can compare them against the values on subsequent calls. But only your code can do that, not the framework, because only you know how or if your types can be cloned. The framework’s default therefore is to be conservative and treat all values as potentially changed (except some special cases with known primitives), and this is the extension point where you can plug in more sophisticated handling if you want and need the perf optimisation.

When an object mutates, its older state no longer exists to compare against.

Now I wonder how the "special cases with known primitives" work. Can you give me a hint where and how these known primitives are handled? Does it happen at runtime or at .razor->.cs pre-compilation time?

It’s here: https://github.com/aspnet/AspNetCore/blob/master/src/Components/Components/src/ChangeDetection.cs


LLDP chassisId is converted to a MAC address for non-MAC address chassisId values

Description of Issue/Question
napalm-eos get_lldp_neighbor_detail() tries to convert all chassisId values to a MAC address format but per rfc2992 (under the section for PtopoChassisIdType) chassisId is not required to be a MAC address.
Setup
napalm-eos version
napalm-eos==0.5.3

eOS version
4.15.5

Steps to Reproduce the Issue
Run get_lldp_neighbors_detail() on a switch receiving a chassisId TLV that is not a MAC address.
Error Traceback
Traceback (most recent call last):
  File "napalm_example.py", line 28, in <module>
    main()
  File "napalm_example.py", line 19, in main
    print(json.dumps(device.get_lldp_neighbors_detail(), indent=4))
  File "/home/user/Test/napalm/napalm-eos/napalm_eos/eos.py", line 538, in get_lldp_neighbors_detail
    neighbor.get('chassisId', u'')),
  File "/home/user/Test/napalm/env/local/lib/python2.7/site-packages/napalm_base-0.23.0-py2.7.egg/napalm_base/helpers.py", line 219, in mac
    return py23_compat.text_type(EUI(raw, dialect=_MACFormat))
  File "/home/user/Test/napalm/env/local/lib/python2.7/site-packages/netaddr-0.7.19-py2.7.egg/netaddr/eui/__init__.py", line 387, in __init__
    self.value = addr
  File "/home/user/Test/napalm/env/local/lib/python2.7/site-packages/netaddr-0.7.19-py2.7.egg/netaddr/eui/__init__.py", line 437, in _set_value
    % value)
netaddr.core.AddrFormatError: failed to detect EUI version: u'"AAAA-BBBB"'

Associated PR has been merged. Closing issue. Feel free to reopen if you think there is something to be done.


Change Hub and friends to abstract

https://github.com/aspnet/SignalR/issues/2107
Does this fall under API review banner? It needs to be done before release or never.

Yes it does


fix: Use golden-container latest images in enterprise contract tests

resolves: CVP-4098
Description
Tests for enterprise contract should build and test the golden-container image. Also, it should always use the latest golden-container build.
Issue ticket number and link
CVP-4098
Type of change

[ x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Used cluster bot to spin up a cluster and ran ./bin/e2e-appstudio --ginkgo.focus="enterprise-contract-suite"

/lgtm

/approved


Fix Audio output list is empty in android

This used to throw a state error because the audio output list is empty under android ( or at least my android device)

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


Update to Latest Rust and Add Usage Examples

Update pistoncore-input to 0.0.5.
Update pistoncore-window to 0.0.12.
Remove quack dependency.
Update tcod to 0.9.0.
Re-organize Cargo.toml.
Remove quack macro code.
Implement BuildFromWindowSettings for TcodWindow.
Implement Window for TcodWindow.
Implement AdvancedWindow for TcodWindow.
Add clippy as an optional dependency.
Add nightly-testing feature to enable clippy dependency.
Add clippy plugin to lib.rs to run clippy when building with the
nightly-testing feature.
Add cfg_attr to tcod_map_mouse function to allow the if_not_else clippy
lint when building with the clippy feature enabled.
Add rustfmt.toml with reasonable default configuration.
Update tcod_map_mouse and tcod_map_key functions for latest tcod.
Update TcodWindow struct, and the TcodWindow methods new and
check_for_event for the latest piston and tcod.
Add a with_console method for TcodWindow.
Modify TcodWindow to store the Root in a Rc<RefCell<Root>>.
Simplify the TcodWindow mouse_state_prev initialization code.
Clean up use statements in library root and in functions and methods.
Fix clippy lints pertaining to unnecessary return statements.
Replace match statements with if let blocks where possible.
Improve tcod_map_key by implementing support for printable characters and by
simplifying the match statement logic.
Apply rustfmt to the project.
Remove unnecessary comments.
Closes #5 and #6.

@homu r+

:pushpin: Commit 4a54cef has been approved by indiv0

:hourglass: Testing commit 4a54cef with merge 3dd718d...

:broken_heart: Test failed - status


[limits] Response time limits

Context
In some scenarios such as high database load, demanding users, crazy maps and so on, responses takes too long to be delivered. Depending on the request (tile format, dataview aggregation, etc..)  we need to implement a fallback to indicate properly that a timeout in database happened or Mapnik couldn't render the tile in time before the timeout fires.
Things to do
1. Tile service

[ ] Update asset for raster format.
[x] Research to know how to respond to the client (carto.js) a timeout happened for interactive tiles and vector formats:

Custom header in the response.
Respond with 200 (OK) and an asset for both interactive and vector formats.

[ ] Asset for .grid.json
[ ]  Asset for .mvt

Respond with 429 (Too Many Requests) if we can tune leaflet and google in order to support this kind of scenarios.

[x] Be able to pass to tilelive-mapnik a custom timeout (in ms).
[x] Be able to pass to tilelive-bridge a custom timeout (in ms).

Note: Unfortunately we cannot stop programatically queries that mapnik runs against the database. We hacked tilelive-mapnik in order to not wait for mapnik when a tile is requested and the timeout fires. At the end, the database is still processing the query.
2. Dataview service

[x] Catch timeout errors from database and respond:

429 and error message: {"error":["timeout: you are over the limits, please contact ..."]}

3. Attributes service

[x] Catch timeout errors from database and respond with 429 and error message: {"error":["timeout: you are over the limits, please contact ..."]}

4. Static maps service

[x] Catch timeout errors from database and respond with 429 and error message: {"error":["timeout: you are over the limits, please contact ..."]}

cc/ @rochoa @jorgesancha

Pending stuff:

Get a new timeout error image for raster formats.
Chose a header to add in the response when the fallback for timeout errors is enabled, e.g: X-Timeout-Error or X-User-Over-Limits, suggestions??
Decide which http-error code fits better into our need. 429 Too many request is currently used but pretty straightforward to change if we pick another code out.


Release 2.0.0 breaks installs from script runner

Summary
I am having an issue installing AZNFS-mount with the latest release using the install instructions provided.
wget -O - -q https://github.com/Azure/AZNFS-mount/releases/latest/download/aznfs_install.sh | bash
I am currently running this install command as part of a build script for a Virtual Machine image, using a tool called packer.
The failure we are seeing is:
/dev/tty: No such device or address
This failure is currently breaking all builds.
The only workaround at this time is to pin the release before 2.0.0 like so:
wget -O - -q https://github.com/Azure/AZNFS-mount/releases/1.0.10/download/aznfs_install.sh | bash
but I would prefer to install the latest version.
When I run the command on it's own from a command line, I see that there's a whiptail prompt about auto-update that pops up, which I suspect is the root cause of the issue.
I believe it should be possible to run this install as part of a build script, rather than manually from a command line. Is there any way we can bypass the prompt without enabling auto-update?
Would appreciate any help you can provide, thanks!

Hello @nat-muon, Thanks for reporting the issue. We're looking into this specific issue, surely will get back to you soon after the fix.
Thanks

Update @nat-muon, We've addressed your issue in the our latest release (https://github.com/Azure/AZNFS-mount/releases/tag/2.0.2). Pls go through readme for steps of non-interactive installation. Pls try with that and let us know in case of any issues.
Thanks
Palash

@palashvij-msft Just tested it out and it worked! Greatly appreciate the quick turnaround on this.


Card popup improved in Project page

Description
Improved the card popup on Project page as you asked. Now popup opens by clicking anywhere on card except the name of the project
Fixes # (65)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Test A
[x] Test B

Test Configuration:

Firmware version:
Hardware:
Toolchain:
SDK:

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Please Share the screenshot or screen recording of output. So that we can easily review your work

Sure sharing in few minutes

Please have a look


[AutoPR network/resource-manager] Update description of "location" in serviceTags.json

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

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


InactiveRpcError, StatusCode.UNAVAILABLE

Background
I have two instances of lnd running on the same machine. One making a regular payment to the other. I have a script that loops and is checking to see if an invoice has been paid (amount other things) to <IP_ADDRESS>:10010, using LookupInvoice. The loop sleeps for 75ms every time, so the rpc call is happening less than that frequency. After about 10 minutes of looping and receiving payments, the receiver crashes with the following error.
Traceback (most recent call last):
  File "wall.py", line 131, in <module>
    OutstandingInvoiceStatus=lnd.lookup_invoice(OutstandingInvoice.r_hash)
  File "/home/xxxx/.local/lib/python3.7/site-packages/lndgrpc/errors.py", line 30, in wrapper
    raise exc
  File "/home/xxxx/.local/lib/python3.7/site-packages/lndgrpc/errors.py", line 19, in wrapper
    return fnc(*args, **kwargs)
  File "/home/xxxx/.local/lib/python3.7/site-packages/lndgrpc/client.py", line 132, in lookup_invoice
    response = self._ln_stub.LookupInvoice(request)
  File "/home/xxxx/.local/lib/python3.7/site-packages/grpc/_channel.py", line 826, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/xxxx/.local/lib/python3.7/site-packages/grpc/_channel.py", line 729, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses"
	debug_error_string = "{"created":"@1582683263.546610256","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1582683263.546599150","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}"
>

About 30% of the time, the sender (another script), also crashes at the same time with the same error, with a call of DecodePayReq to <IP_ADDRESS>:10009 (and it loops at a similar frequency).
If you'll notice above, I'm using the module lndgrpc, which includes some convenience wrapper functions for the grpc interface. In it's source code, it indicates that with every request, a new secure_channel is created to the interface.
https://github.com/adrienemery/lnd-grpc-client/blob/master/lndgrpc/common.py#L103
I'm wondering if there is a limit to the number of secure_channels that can be created? Maybe I'm looping too fast and the existing secure_channels aren't timing out quick enough in lnd, so eventually it won't let any more be created? Is there a way to close out a secure_channel so that this does not happen? Is lndgrpc's approach a bad design?
Your environment

version of lnd: commit 38b521d87d3fd9cff628e5dc09b764aeabaf011a
ubuntu 18.04
bitcoind

I modified lndgrpc to not create a new connection on each request and that was a workaround for my issue. Apparently lnd does have a limit to the number of secure_channels that can be created.

Modified version of lndgrpc can be found here: https://github.com/AndySchroder/lnd-grpc-client/commit/536a21f27c01ad098f7eccd1eabb1ae16509bb36

Hi Andy,
I am also facing the same issue, but I am using docker Toolbox for dockerisation and using the default Ip if Docker toolbox and getting a similar error, what approach did u take to resolve this?
root@539efd88dba7:/# python3 app/greeter_client.py
Traceback (most recent call last):
File "app/greeter_client.py", line 37, in
run()
File "app/greeter_client.py", line 31, in run
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
File "/usr/local/lib/python3.6/dist-packages/grpc/_channel.py", line 826, in call
return _end_unary_response_blocking(state, call, False, None)
File "/usr/local/lib/python3.6/dist-packages/grpc/_channel.py", line 729, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses"
debug_error_string = "{"created":"@1588159609.228804144","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3981,"referenced_errors":[{"created":"@1588159609.228782011","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}"

@ananya-samal did you find a solution for the problem? I'm facing the same problem.

Did you try the fork of lndgrpc that I linked to above?


Gdpr following ui

Note
(This PR branches out from one of  @cdolm92's  branch. So to review it, you just need to review the commits assigned to my name).
What
Following opt out. Gives the user the ability to stop following other users activities.
Why
GDPR.
See 👀

TODO ⏰

[ ] Final Strings

does this include the fix on the string-break in the alert? The screenshot might be old. Just checking

@dannyalright What you saw yesterday was happening because the string was hard coded. Once we get the strings from the server, we shouldn't have problems. The prompt will adjust the text dynamically.


Write failed.. data is too long

Let's say I have this hex string:
String hexData =         "55aa00450300011b08484f4e44415f43414c0d0a312e35009ac7fe8b5b678c231de740db1190ce91d68ca64de9c1b123a7b56bf3c1ff1ffa5bc7fe8b5b678c231de740db1190ce91d60676";
How to split and send them in max 20 bytes.
Can someone provide an example ?

I need to pass around 150K of data in my project，My approach is to split the send，code show as below:
    void setDataToDevice(List<int> datas) {
    int singleMax = 20;
    int tempCount = datas.length ~/ singleMax;
    int maxCount = datas.length % singleMax == 0 ? tempCount : tempCount + 1;
    List<int> tempList = [];
    for (int i = 0; i < maxCount; i++) {
      int start = i * singleMax;
      tempList =
          datas.sublist(start, i == maxCount - 1 ? datas.length : start + 20);
      _bluetoothCharacteristic!.write(tempList, withoutResponse: true);
      // Delay of 6800 milliseconds ,6500 is the best value for iOS native testing, which can ensure both data integrity and
        // the shortest time,  150k data takes about 59 seconds
       //  The Android interval needs to be set longer, and the same data 150K takes about 1 minute and 25 seconds
     sleep(Duration(microseconds: (Platform.isIOS ? 6800 : 10000)));
    }
  }


Vehicle Lifecycle Demo Manufacturer does not start up

Using the latest version of this demo. The manufacturer application does not start up.
Start the manufacturing application.
docker run
-d
--network composer_default
--name manufacturing
-e COMPOSER_BASE_URL=http://rest:3000
-e NODE_RED_BASE_URL=ws://node-red:1880
-p 6002:6001
hyperledger/vehicle-lifecycle-manufacturing:latest
178c699ca7a8dc7ac73b2ef9a7d35c7a11637c4ccabfc06b0efbb85768af5227
docker: Error response from daemon: driver failed programming external connectivity on endpoint manufacturing (bb70edd226491931d5e68b5e722112d4361ede3054c7fc0bad8cf6f7f351ab0e): Error starting userland proxy: Bind for <IP_ADDRESS>:6002 failed: port is already allocated.

Strangely a docker ps shows:
docker ps
CONTAINER ID        IMAGE                                                                                COMMAND                  CREATED             STATUS              PORTS                                            NAMES
d33789fcf02c        hyperledger/vehicle-lifecycle-vda:latest                                                                                "npm start"              33 seconds ago      Up 31 seconds       <IP_ADDRESS>:6001->6001/tcp                           vda
75e1fa0924a4        nodered/node-red-docker                                                                                "npm start -- --us..."   2 minutes ago       Up 42 seconds       <IP_ADDRESS>:1880->1880/tcp                           node-red
6fa3ea7100bf        hyperledger/composer-rest-server:latest                                                                                "pm2-docker compos..."   2 minutes ago       Up 2 minutes        <IP_ADDRESS>:3000->3000/tcp                           rest
b118ced1e7ad        dev-peer0.org1.example.com-vehicle-lifecycle-network-0.14.2-55b280d1a25f05401f35e27c8ac15573131013aef760d0880b1b15d0f6e9d14b   "chaincode -peer.a..."   3 minutes ago       Up 3 minutes                                                         dev-peer0.org1.example.com-vehicle-lifecycle-network-0.14.2
f4947fa82543        hyperledger/composer-playground:latest                                                                                "pm2-docker compos..."   3 minutes ago       Up 3 minutes        <IP_ADDRESS>:8080->8080/tcp                           composer
5467fc3e6533        hyperledger/fabric-peer:x86_64-1.0.3                                                                                "peer node start -..."   3 minutes ago       Up 3 minutes        <IP_ADDRESS>:7051->7051/tcp, <IP_ADDRESS>:7053->7053/tcp   peer0.org1.example.com
3ea63b171a47        hyperledger/fabric-orderer:x86_64-1.0.3                                                                                "orderer"                3 minutes ago       Up 3 minutes        <IP_ADDRESS>:7050->7050/tcp                           orderer.example.com
92eb82432c79        hyperledger/fabric-ca:x86_64-1.0.3                                                                                "sh -c 'fabric-ca-..."   3 minutes ago       Up 3 minutes        <IP_ADDRESS>:7054->7054/tcp                           ca.org1.example.com
79689bb21260        hyperledger/fabric-couchdb:x86_64-1.0.3                                                                                "tini -- /docker-e..."   3 minutes ago       Up 3 minutes        4369/tcp, 9100/tcp, <IP_ADDRESS>:5984->5984/tcp       couchdb

I tried to change the port to 6002 for the manufacturer in the install.sh script but the browser is not able to access the app.
docker run
-d
--network composer_default
--name manufacturing
-e COMPOSER_BASE_URL=http://rest:3000
-e NODE_RED_BASE_URL=ws://node-red:1880
-p 6002:6002

I got the manufacturing app to come up by modifying the install.sh:
Start the manufacturing application.
docker run
-d
--network composer_default
--name manufacturing
-e COMPOSER_BASE_URL=http://rest:3000
-e NODE_RED_BASE_URL=ws://node-red:1880
-p 6002:6001
hyperledger/vehicle-lifecycle-manufacturing:latest

Appears my port 6002 was in use by another app.


Change start led

Hi,
i have 894 led ws2815 ,
If i connect my d1 mini pro af first led , i have 6mt of cable and effect not work correctly.
If i connect my board at led  ~100 , i have 1mt of cable and all work correctly but some
effect start at bad led obviously...
I can't put the board near LED 1 and I don't have the possibility to use repeaters...
There is a way to shift start led compared to where is the signal cable connected at program?
Ws2812fx have a segment feature to make this...
Thanks

Hi @Maurotb,
that sounds like a faulty LED somewhere in the first 100. Connecting the strips somwhere in the middle isn't supported because of the way these strips work. Maybe you can find out which LED has the error and just get rid of this one.
Regards
Tobias

I have not explained myself, everything works correctly. My strips are installed as an O.
To keep the length of the signal cable short, I need to connect it to a specific point, but so some effects where you need to have the start / end pixel in a specific position are bad to see.
I should be able to move this starting point via the 2812fx segment function. I should perhaps send photos to make it clear

Please add changes to here:
https://github.com/toblum/McLighting/blob/090bddd32b2705f5edb7ec999cb26c50dc470151/Arduino/McLighting/McLighting.ino#L260

i have created a pull request


Render error when template uses include of a template filename

unittest fails when the template includes a file to create a checksum as described here
 FAIL  test deployment	tests/deployment_test.yaml
	- should work
		Error: render error in "fsjetty/templates/deployment.yaml": template: fsjetty/templates/deployment.yaml:18:28: executing "fsjetty/templates/deployment.yaml" at <include "../template...>: error calling include: template: no template "../templates/configmap.yaml" associated with template "gotpl"

deployment_test.yaml:
suite: test deployment
templates:
  - deployment.yaml
tests:
...

where deployment.yaml has:
annotations:
  checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}

@lrills any comment?

@lrills ping

This is solvable by including the configmap yaml file in templates section. Example:
suite: test
templates:
  - deployment.yaml
  - configmap.yaml

Great - thanks - that worked!

It seem to solved, but maybe we should consider not to filter files while rendering.

Thanks, ran into this today and was happy to find the solution documented here.

Thanks, ran into this today and was happy to find the solution documented here.


chore: Google sheet shared drive support added behind a flag

Description
This PR hides shared drive support for Google Sheets Integration behind a feature flag as we need to do thorough testing for it.
The feature flag implementation done in this PR involves passing feature flags from server to google sheets plugin module. This temporary feature flagging solution tech debt can be removed once the testing is done and once we would release this feature to all.
Why feature flags are only available at server module?
Because they have a dependency on UserIdentifierService, SessionUserService, TenantService etc which exists at server module. Supporting feature flags out of the box at plugin module level would require significant efforts to migrate these dependencies.
Fixes #37714
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test<EMAIL_ADDRESS>@tag.Datasource"
:mag: Cypress test results

[!IMPORTANT]
🟣 🟣 🟣 Your tests are running.
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/12063155077
Commit: b5c702f5464cd94a0e885661aeae6983fc887066
Workflow: PR Automation test suite
Tags: @tag.Authentication, @tag.Datasource
Spec: ``
Thu, 28 Nov 2024 05:36:47 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[x] No

Summary by CodeRabbit

New Features

Introduced support for Google Sheets shared drive through feature flags.
Added new methods to handle feature flags in plugin execution and triggering processes.
Enhanced action execution and triggering logic to utilize feature flags for dynamic behavior.

Bug Fixes

Improved error handling for plugin execution processes.

Documentation

Updated comments and documentation to reflect new feature flag capabilities.

Tests

Integrated FeatureFlagService into the testing framework for enhanced test coverage.

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

Is it possible to add the tests specifically for the feature flag scenario?

Can I add test cases for this in a separate PR? As this is a release blocker I would like to get this merged ASAP, WDYT?


Release 2.2.8

Codecov Report

Merging #346 (2336c1c) into main (bd021e2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #346   +/-   ##
=======================================
  Coverage   11.60%   11.60%
=======================================
  Files         537      537
  Lines       38689    38689
  Branches     1127     1127
=======================================
  Hits         4488     4488
  Misses      33767    33767
  Partials      434      434


butane: 0.19.0 -> 0.20.0

Description of changes
There is a new tag upstream. The release notes are here.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 290239 run on x86_64-linux 1

1 package built:

butane


Expect enums to exist and catch exceptions

See here (via @Kamekameha).

I actually kinda want to implement my own enums, so I can use them in the way I've been using strings all over the PyAV codebase, and do so without breaking everyone's code.
Also, because fundamentally, I care more about the string name than the numeric value. The numeric value only means anything to the library, and in the few cases they seem to be different on different platforms.
As an example, I'd want a MediaType with video, audio, subtitle, etc.:

>>> type_ = MediaType('video')
>>> type_
MediaType('video')

>>> MediaType(1) # or whatever the number is
MediaType('video')

>>> type_ == 'video'
True

>>> type_ == 1 # Maybe not this.
True

>>> type_ == 'VIDEO' # Maybe this.
True

>>> type_ == 'audio'
False

>>> type_ == 'not a type'
...
ValueError: 'not a type' is not a MediaType.

That last one is pretty huge to me.

PEP435-like enums do support retrieving their members by name, through item access, see https://docs.python.org/3/library/enum.html#programmatic-access-to-enumeration-members-and-their-attributes. Also the name of an enum's members is available as their name attribute.
So, if we take your example the changes would be minimal, e.g.:
>>> type_ = MediaType['video']
>>> type_
<MediaType.video: 1>
>>> MediaType(1)
<MediaType.video: 1>
>>> type_.name == 'video'
True
>>> type_ == 1  # if MediaType is an IntEnum (or int, for that matter) subclass
True
>>> type_.name.upper() == 'VIDEO'  # :^)
True
>>> type_ == 'audio'
False

Except for your last one, obviously, which definitely requires some implementation.

Also, because fundamentally, I care more about the string name than the numeric value. The numeric value only means anything to the library, and in the few cases they seem to be different on different platforms.

Quoting from somewhere in the previously linked docs,

In the vast majority of use-cases, one doesn’t care what the actual value of an enumeration is.

So, in the end, I think that PEP435 enums will surely fulfill the proposed approach you mention above without much, if any, customization.

I'm still mulling this over. Another thing I'd like to be keyed by name instead of int value is pickling:
import pickle
import enum

Test = enum.Enum('Test', dict(FOO=100, BAR=200))
enc = pickle.dumps(Test.FOO)

Test = enum.Enum('Test', dict(FOO=101, BAR=201))

x = pickle.loads(enc)
print(x)

results in:
ValueError: 100 is not a valid Test

I could be wrong, but I feel like a few of the constants have been different on different platforms, or at least between FFmpeg and Libav. That seems kinda silly, TBH, but it is a feeling I have.

I implemented my own enums a while ago.


Can't put text-davinci-003 as the model

APi's like the one from https://github.com/PawanOsman/ChatGPT (api.pawan.krd) allows using text-davinci-003 as conversational model, but the page doesn't has it in the list.
Anyway putting an option that let the user write the model he want could be a good idea.

Is is worth pointing out that text-davinci-003 is not a conversation model. It requires extra work to make it conversational, and the result would not be satisfying.

Is is worth pointing out that text-davinci-003 is not a conversation model. It requires extra work to make it conversational, and the result would not be satisfying.

I thought that both text-davinci-003 and gpt-3.5-turbo are the same of good.


Possessive "its" does not have an apostrophe

Possessive "its" does not have an apostrophe.
The apostrophe was taken by the contraction, "it's" (i.e. "it is"), in one of the more unfortunate events in the English language.

thanks this look's pretty good


I found a bug

I found a bug that was eating your code.

Thanks for letting me know  but I don't care.  Closing this issue.


APEXMALHAR-2065 #resolve #comment Added getWindowIds method to Window…

…Datamanager

@chandnisingh please review

@ilooner this uses replayState and returns window ids which are sorted, however the getWindowIds(int operatorId) utilizes FSStorageAgent. Can you please looking into making the older method use replayState as well and return a sorted array. If there are any operators that are using WindowDataManager you might have to check that we didn't break them.
Thanks,
Chandni

@chandnisingh since the implementation of WindowDataManager will be changing soon anyway I'd like to avoid making additional changes to it.

@ilooner there is a check style issue at line 111. There needs to be an empty line between class/method definitions.
Please fix it and then I will merge it.

@ilooner please close this. I merged it and fixed the check style.
I needed to change WindowDataManager to use Wal which is why I took the change.
Thanks,
Chandni


production-install: Update instructions for creating initial user.

Issues: MEN-1347
Changelog: title
Signed-off-by: Drew Moseley<EMAIL_ADDRESS>

Does this look like the right fix for MEN-1347?  I based this on the change already included in the "Create a Test Environment" section

@mchalski want to take a look as well?

@GregorioDiStefano @mchalski is this important for the 1.2 release?

@drewmoseley yes, it is. This is the new procedure requires for 1.2.x

@GregorioDiStefano can you approve the review?
@mchalski?

Also I added a commit here to fix a typo.

@drewmoseley let me try adding the useradm bit today to this pr

@GregorioDiStefano I'm confused.  What useradm bit are you referring to?

@drewmoseley I was going to add an "AUTOMATION: " tag that create the initial user and logs in, but, I realized there is little benefit in doing so, as this is already covered in integration tests.


Fix network resiliency

Network connections were supposed to be resilient such that if the AMQP connection got disconnected it reconnected. There was an error in this code that didn't allow it to re-connect. This fixes that issue and several other small bug fixes (like a io loop error when exiting a consumer).

This has been tested and works flawlessly. Going over the commits again and everything looks good. Merging...

Force push to GPG sign every commit. Everything still looks good. Merging...


Vagrant: add access to RabbitMQ admin.

See http://dev.dosomething.org:15672:

cc @DeeZone

woah

:mindblown:

It already was sitting there for a while :)

15672 is the RabbitMQ Management Plugin port. The UI as well as API calls go through the same port. Pointing to /admin/config/services/message-broker-producer should also work as it gets Rabbit health stats via this port.
Nice :+1:


Auto-Resume

Modify it to pause once the player loses so that he can take a screenshot xD, or take a few seconds break before starting to play it again

+1


Revert "add httpoption to kingress spec (#306)"

Some issues with the pr which make it a bit dangerous.


Multiple hooks on the same component - Cannot redeclare block-scoped variable

I am using three generated hooks on the same component, and I am getting the error 'Cannot redeclare block-scoped variable 'loading'.ts(2451) (highlighted on red). when I change the name fromloadingtoNloadingI get of courseProperty 'Nloading' does not exist on type 'MutationResult'.ts(2339)`

how to ignore this error for the three lines only

You can simply do:
const [insertBlogTag, { loading: insertBlogTagLoading }] = useInsertBlogTagMutation()
const [deleteBlogTag, { loading: deleteBlogTagLoading }] = useDeleteBlogTagMutation()

Then you'll have two booleans that indicate loading status for the two mutations :)

Thanks, I feel stupid :-)


Recolour deconvoluted stains

Hi,
Thank you so much for histiomicstk.
I'd love to use your colour deconvolution example
and then recolour the separated images back to respectively the original haem or eosin, so the separated images are no longer grayscale. I think I'm probably missing something already explained in the docs, but would it be possible to ask for help with that?
Thank you
Best wishes,
Emily

Emily,
I think this is what you are looking for:
https://digitalslidearchive.github.io/HistomicsTK/histomicstk.preprocessing.color_deconvolution.html#histomicstk.preprocessing.color_deconvolution.color_convolution
-Lee

Thank you so much for your help - I'm really sorry I think I'm still failing to understand though. Is it possible to just get the blue haem channel image displayed or the brown dab image rather than the gray scale?
For example,
new_im = htk.preprocessing.color_deconvolution.color_convolution(imDeconvolved.StainsFloat, imDeconvolved.Wc)
and then new_im is an array of shape (x, y, 3)
but I can't figure out how to display new_im[:, :, 0] as just a blue image i.e convert it into an rgb image displaying haem without dab
Is that possible at all? Thank you so much!

I understand what you want. I think you can just zero out the columns of Wc that you want to suppress. IIRC each of those columns is a color vector e.g. hematoxylin.

Thanks - could I please check that I've understood correctly?
#change im to 3 channels
im = np.array(im)
im = im[:, :, :3]
h, w, c = im.shape
imInput = im.copy()

# create stain to color map
stain_color_map = htk.preprocessing.color_deconvolution.stain_color_map

# specify stains of input image
stains = ['hematoxylin',  # nuclei stain
          'dab',        # ab stain
          'null']         # set to null if input contains only two stains

# create stain matrix
W = np.array([stain_color_map[st] for st in stains]).T

# create initial stain matrix
W_init = W[:, :2]

# Compute stain matrix adaptively
sparsity_factor = 0.5

I_0 = 255
im_sda = htk.preprocessing.color_conversion.rgb_to_sda(imInput, I_0)
W_est = htk.preprocessing.color_deconvolution.separate_stains_xu_snmf(
    im_sda, W_init, sparsity_factor,
)

# perform sparse color deconvolution
imDeconvolved = htk.preprocessing.color_deconvolution.color_deconvolution(
    imInput,
    htk.preprocessing.color_deconvolution.complement_stain_matrix(W_est),
    I_0,
)

Wc = imDeconvolved.Wc.T

H = np.matmul(htk.preprocessing.color_conversion.rgb_to_sda(imDeconvolved.StainsFloat[:, :, 0], 255).reshape(-1, 1), Wc[0, :].reshape(1, -1))
H = htk.preprocessing.color_conversion.sda_to_rgb(H, 255)
H = H.reshape(h, w, c)
H = H.clip(0, 255).astype(np.uint8)

D = np.matmul(htk.preprocessing.color_conversion.rgb_to_sda(imDeconvolved.StainsFloat[:, :, 1], 255).reshape(-1, 1), Wc[1, :].reshape(1, -1))
D = htk.preprocessing.color_conversion.sda_to_rgb(D, 255)
D = D.reshape(h, w, c)
D = D.clip(0, 255).astype(np.uint8)

B = np.matmul(htk.preprocessing.color_conversion.rgb_to_sda(imDeconvolved.StainsFloat[:, :, 2], 255).reshape(-1, 1), Wc[2, :].reshape(1, -1))
B = htk.preprocessing.color_conversion.sda_to_rgb(B, 255)
B = B.reshape(h, w, c)
B = B.clip(0, 255).astype(np.uint8)

#create a subplot of 5 figures (1 row, 5 columns)

fig, axes = plt.subplots(1, 5, figsize=(20, 20))

axes[0].imshow(imInput)
axes[0].set_title("Input Image", fontsize=titlesize)

axes[1].imshow(imDeconvolved.Stains)
axes[1].set_title("Deconvolved Stains", fontsize=titlesize)

axes[2].imshow(H)
axes[2].set_title("Hematoxylin", fontsize=titlesize)

axes[3].imshow(D)
axes[3].set_title("DAB", fontsize=titlesize)

axes[4].imshow(B)
axes[4].set_title("Background", fontsize=titlesize)

plt.tight_layout()

plt.show()

Emily - I didn't check line-by-line but this output looks correct to me. Interestingly, you didn't need the color_convolution function.

Great - thank you!


Just a question...

So i'm just wondering why keep updating this version of MultiOgar when Tyler3D made a better version of MultiOgar https://github.com/Tyler3D/Multi-Ogar-Edited-Unlimited with plugins and cool gamemodes. Theres so many things you can add to his to make it better and more fun! The only problem is since hes the only one working on it its a little buggy and doesn't get updated often. If all the people on here worked on his version it would be so much better then this. Its literately the same besides being on an older version but with plugins!

I don't understand how this is even an issue...

@AlexHGaming If you would read it, you would realize that this isn't a issue and that its a question by the title, And since theirs not section on github to ask questions where am I suppose to put this? Exactly Right where it is.

Well don't say it in an issue then

@AlexHGaming Where do I put it exactly? Maybe Create a section just for questions so people dont have to keep opening issues.

Or just don't say it at all. We're a project to maintain performance, not make bugs. We are trying to make it like real agar. Having fun is what you have to make yourself.
Plugins and cool gamemodes is what we might want, but we are trying to handle performance. What we currently have is fine enough, balanced performance and game balance. It looks like real agar near enough...
Although @Megabyte918 might want to add gamemodes, we're making it look like real agar, if you want gamemodes, great! Use Tyler's fork!
var UselessIssue = "#719'
if UselessIssue reaches '#700'
this.closeIssue

I made one fucked up code there ;D

@AlexHGaming I understand but the people that having the features like adding plugins is just something awesome/extra you could add to improve your server which is what Tyler3D did. Having it just like the real Agar is fun and all but you want to be able to switch things up and customize your server to your liking so your users have more fun.

@AlexHGaming And the problem with Tylers fork is nobody helps him improve it and he just
dosnt have the time to fix everything

Eh you got a point

I do not want this project to be like what Ogar-Unlimited used to be. If you want a more "OgarUnlimited" esc experience, then use Tyler's fork.

@Megabyte918 Im just trying to say he kinda needs help

You want us to fix some bugs from that fork,
I did it, it's pretty easy, just try to understand the code and see what's wrong and if you can not, you can compare this MegaByte fork and solve problems like PopSplit, Mass, fix ERTP (make it work with Q - ERTP), and I also fix the autestart, and leaderboard + position (so that it does not show the position, but only the mass).

@jhaie2015 I new to coding. I'm not capable of fixing broken code yet. I just need someone's help to fix the plugins for Tyler3ds fork

Lol I accidentally replaced my version with this verison. I'm noob at github. So I'm trying to fix everything that broke. But, I don't have much free time. I have a test tomorrow :/


Classloader issue related to java.xml.bind in ArtifactTransform

Current Behavior
I was trying to use javax.xml.bind in a plugin I’m developing. I see issues related to missing classes when I try to run in Java 11, but these only happen in a part of the code that uses JAXB and not in others.
I'm running it on both Java 8 and Java 11. Since JAXB is not part of the JDK anymore from Java 9, I added a dependency in the plugin build:
dependencies {
    implementation("com.sun.xml.bind:jaxb-ri:2.3.9") {
        because("javax.xml.bind is not part of the JDK anymore starring with JDK9")
    }
}

I have two places in my plugin where I use JAXB. One place is in a task:
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;

public class WriteCompileSpecFile extends DefaultTask {
    // ...

    @TaskAction
    protected void generate() {
        DefaultHDVLCompileSpec compileSpec = new DefaultHDVLCompileSpec(getSvSource().getFiles());
        try {
            JAXBContext jaxbContext = JAXBContext.newInstance(DefaultHDVLCompileSpec.class);
            Marshaller marshaller = jaxbContext.createMarshaller();
            marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);

            FileAdapter fileAdapter = new FileAdapter(getProject().getProjectDir());
            marshaller.setAdapter(fileAdapter);

            marshaller.marshal(compileSpec, destination.get().getAsFile());
        } catch (JAXBException e) {
            throw new RuntimeException(e);
        }
    }
}

I can execute this task without any problems.
The other place where I use JAXB is in an artifact transform:
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;

public abstract class WriteXrunArgsFile implements TransformAction<TransformParameters.None> {
    // ...

    private static DefaultHDVLCompileSpec getCompileSpec(File input) {
        File compileSpec = new File(input, ".gradle-hdvl/compile-spec.xml");
        try {
            JAXBContext jaxbContext = JAXBContext.newInstance(DefaultHDVLCompileSpec.class);
            Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();

            FileAdapter fileAdapter = new FileAdapter(input);
            unmarshaller.setAdapter(fileAdapter);

            DefaultHDVLCompileSpec result = (DefaultHDVLCompileSpec) unmarshaller.unmarshal(compileSpec);
            for (File svSourceFile : result.getSvSourceFiles()) {
                assert svSourceFile.isAbsolute() : "not absolute: " + svSourceFile;
                assert svSourceFile.exists() : "doesn't exist: " + svSourceFile;
            }

            return result;
        } catch (JAXBException e) {
            throw new RuntimeException(e);
        }
    }
}

When the artifact transform gets executed, I get:
      > Execution failed for WriteXrunArgsFile: /home/tudor/.gradle/caches/transforms-4/2f8f369cd18dbcfb90e34fd250b46eaa/transformed/some-published-dependency-0.1.0.zip.
         > javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
            - with linked exception:
           [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]

Expected Behavior
I would expect the dependency to be enough. I discussed this here in the Gradle forum with @Vampire and he suggested I open an issue.
Context (optional)
I switched to using a newer version of JAXB, which works on both Java 8 and 11 (version 3.0.2), but this required changing the namespace as well. I'm not blocked by the issue, but would like to understand whether I'm doing something wrong or whether something can be improved in Gradle.
Steps to Reproduce
I see the issue in this commit of my plugin: https://github.com/tudortimi/gradle-hdvl/commit/3347a4e9a4f8e51e1c3d8081edcd53e2f633455b
To reproduce, after cloning that repo and selecting the commit, with Java 11 installed, run:
cd examples/using-published/some-published-dependency
../../../gradlew publish  # executes task that writes XML using JAXB, works

cd examples/using-published/some-project
../../../gradlew genFullXrunArgsFile  # consumes artifact produced by previous project, triggers artifact transform, using JAXB fails

Gradle version
8.7
Build scan URL (optional)
https://scans.gradle.com/s/2micrd4yj3ahe
Your Environment (optional)
Java 11

This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary.

One question to answer here is whether transforms implementations can have dependencies.

Maybe I misunderstand, but why should they not?
I have many artifact transforms that need dependencies.
Just as one example I have an artifact transforms that signs DLLs contained within JARs on-the-fly.
I wouldn't want to implement this myself, so I use JSign for it.

Yes, I think we should set a thread context classloader as suggested by @Vampire in that discussion. We should probably set it here here.
A workaround for your problems is to do something like:
     public void transform(TransformOutputs outputs) {
         File input = getInputArtifact().get().getAsFile();
         File xrunArgsFile = outputs.file(input.getName() + ".xrun_args.f");
-        DefaultHDVLCompileSpec compileSpec = getCompileSpec(input);
-        writeXrunArgsFile(xrunArgsFile, compileSpec);
+        ClassLoader original = Thread.currentThread().getContextClassLoader();
+        Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
+        try {
+            DefaultHDVLCompileSpec compileSpec = getCompileSpec(input);
+            writeXrunArgsFile(xrunArgsFile, compileSpec);
+        } finally {
+            Thread.currentThread().setContextClassLoader(original);
+        }
     }

This change could have some different consequences so it needs more research.
The issue is now in the backlog of the relevant team, but the existence of a workaround means it might take a while before a fix is made.


README.md documenation

Please add database comand...

@viveksharmapoudel added 🙇

Since commits were not signed, this pull request has been closed and another one is opened.


update cs3apis

Description
Update CS3 apis to latest.
We currently do not implement ListTransfers and RetryTransfer
Is that already implemented on master? @ishank011 @labkode can you clarify?
Let us go forward here and try to merge master into edge.

Is that already implemented on master? @ishank011 @labkode can you clarify?

That is pending https://github.com/cs3org/reva/pull/2052, which was pretty much ready. @ishank011 I guess we have to prioritize the re-review.

Is that already implemented on master? @ishank011 @labkode can you clarify?

That is pending #2052, which was pretty much ready. @ishank011 I guess we have to prioritize the re-review.

ok. I will postpone this PR until we merge #2052
Let us speed this up and merge master into edge as soon as possible. The challenge here is that all further CS3Api changes are blocked by this.

cs3api was already updated


lemonade support

@spitsw: If you rebase this, I'll accept it.
Otherwise, it'll wait till I'm done with the current milestones.


[SPARK-45906][YARN] Fix error message extraction from ResourceNotFoundException

What changes were proposed in this pull request?

This PR aims to fix the error message extraction from ResourceNotFoundException, the current wrong implementation also has a potential NPE issue.
Why are the changes needed?

This bug is introduced in SPARK-43202, previously, e.getCause() is used to unwrap InvocationTargetException, after replacing reflection invocation with direct API calling, we should not apply getCause().
Does this PR introduce any user-facing change?

Yes, bug fix.
How was this patch tested?

Review.
Was this patch authored or co-authored using generative AI tooling?

No.

cc @sunchao and @LuciferYang

Thank you all.
Merged to master and 3.5


Runners that should not scale up scales up and never down again

Controller Version
0.24.1
Helm Chart Version
0.19.1
CertManager Version
1.7.1
Deployment Method
Helm
cert-manager installation
Helm based installation
Checks

[X] This isn't a question or user support case (For Q&A and community support, go to Discussions. It might also be a good idea to contract with any of contributors and maintainers if your business is so critical and therefore you need priority support
[X] I've read releasenotes before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
[X] My actions-runner-controller version (v0.x.y) does support the feature
[X] I've already upgraded ARC (including the CRDs, see charts/actions-runner-controller/docs/UPGRADING.md for details) to the latest and it didn't fix the issue

Resource Definitions
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: default
  namespace: default
spec:
  replicas: 2
  template:
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                runner-deployment-name: default
            topologyKey: kubernetes.io/hostname
      dockerEnabled: true
      dockerdContainerResources: {}
      dockerdWithinRunnerContainer: false
      env:
      - name: ENV_LANG
        value: en_US.UTF-8
      - name: ENV_LANGUAGE
        value: en_US:en
      - name: ENV_LC_ALL
        value: en_US.UTF-8
      ephemeral: true
      group: Default
      labels:
      - dp-global
      nodeSelector:
        buildertype: small
      organization: myorg
      resources:
        requests:
          cpu: 500m
          memory: 500Mi
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: dp-testing
  namespace: default
spec:
  template:
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                runner-deployment-name: dp-testing
            topologyKey: kubernetes.io/hostname
      dockerEnabled: true
      dockerdContainerResources: {}
      dockerdWithinRunnerContainer: false
      env:
      - name: ENV_LANG
        value: en_US.UTF-8
      - name: ENV_LANGUAGE
        value: en_US:en
      - name: ENV_LC_ALL
        value: en_US.UTF-8
      ephemeral: true
      group: Default
      labels:
      - testing
      nodeSelector:
        buildertype: small
      organization: myorg
      resources:
        requests:
          cpu: 500m
          memory: 500Mi
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
  name: dp-testing
  namespace: default
spec:
  maxReplicas: 4
  minReplicas: 0
  scaleDownDelaySecondsAfterScaleOut: 120
  scaleTargetRef:
    kind: RunnerDeployment
    name: dp-testing
  scaleUpTriggers:
  - amount: 1
    duration: 10m
    githubEvent:
      checkRun:
        status: queued
        types:
        - created

### To Reproduce

```markdown
Setup the webhook ingress's and apply the config in Resource Definitions

Describe the bug
It seems the testing pool scales up when there are jobs starting on the default pool and they should be 0 since there haven't been any jobs on it.
Describe the expected behavior
Runners should not be scaling up if there are no events that should trigger it.
Controller Logs
https://gist.github.com/ekarlso/1f946a6e932e2d45caaec56467e12699

Runner Pod Logs
NA

Additional Context
No response

@ekarlso Hey! Thanks for reporting.
I started correlating your logs and the configs to see what's going on, and realized that your HRA name doesn't match with the logs. In logs your HRA is dp-testing and it's testing in your manifest, that makes me wonder if you've brought up slightly different resource manifests than what resulted in the log output?
Could you either send me a full log from ARC managing the exact HRA and RunnerDeployments you've shared in this report, or fix manifests to match logs? Thanks!

@ekarlso Thanks for updating the manifests.
After careful reading, I found you're still using checkRun as the scale trigger. It's legacy and I don't think it supports runner labels... by its definition. Check runs don't have a notion of runner labels because it's actually not a GitHub Actions concept. There's no runner in the context of check runs. It's a part of Checks API that is unrelated to GitHub Actions and it was like the only way to let ARC auto-scale runners when we had no workflow_job yet.
Would you mind using workflowJob: {} as the trigger instead, and give it a shot?

Thanks! This solved it :)

Related: https://github.com/actions-runner-controller/actions-runner-controller/issues/1607


Upgrade to KIND 0.7.0

Changes since 0.6.1:
https://github.com/kubernetes-sigs/kind/releases/tag/v0.7.0
We also bump the default Kubernetes version to 1.18.0.
Signed-off-by: Stephen Kitt<EMAIL_ADDRESS>

The operator deploy job failed because subctl was invalid. The Helm jobs failed because of a configuration error in Helm.

I’ve updated this but GH isn’t picking up the changes: https://github.com/submariner-io/shipyard/compare/master...skitt:kind-0.7.0?expand=1

This currently fails Submariner e2e anyway.

https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files is highly relevant if you see failures locally.


asymmetric insets

Fixes #520.

I like having tests, but I think it makes them less effective as examples if we use obscure features solely for the purpose of testing. So I’m going to revert these changes to tests. It’d be nice to have either standalone or unit tests (rather than snapshot tests). But I’m also not too worried about this feature breaking.

I thought it made these two charts a bit nicer :) But yeah… unit tests will be fine


GCP: use Terraform self-signed TLS certificate

The default for multi-region GCP deployment has been changed to use
Terraform's self-signed TLS certificate. This makes it easier for users
to deploy multi-region since users no longer have to generate
self-signed certs outside of Terraform. The option for users to specify
their own certs is available inside of terraform.tfvars.
Signed-off-by: Edwin Pau<EMAIL_ADDRESS>

Merged manually


Is there a way to change the underline text color?

Is your feature request related to a problem? Please describe.
I see in the demo images that the tab underline can be changed to blue, green, etc. Looking at the options struct however, there isn't such an option. In addition, the underline color doesn't match the selectedTextColor.
Describe the solution you'd like
Either
1/ provide a color option in Underline
or
2/ match the line's color to the selectedTextColor

Here you go:
var options = SwipeMenuViewOptions()
options.tabView.itemView.textColor = color
options.tabView.itemView.selectedTextColor = selectedColor
options.tabView.additionView.backgroundColor = greenColor

swipeMenuView.reloadData(options: options)

@sbotichelli Are these the only customisations possible or can I have a custom view element part of the tabView?
I want to place a coloured dot top-right of tab label as an indication of new content. Can I do such tabView customisation? (I think, I will either need to add my customisation as subview to tabView or replace the tabView with my custom view)


Closing last open while being in non-existing working dir raises exception

Description
When closing the last file in the editor while the working directory is non-existing (e.g. after changing git branch) I get this exception:
File "[...]/spyder/plugins/editor.py", line 1746, in new
    basedir = getcwd()
FileNotFoundError: [Errno 2] No such file or directory

The same happens when I immediately try to open a file without changing the working dir.
Steps to reproduce the problem

Make new directory and make it the working directory. Have a file open.
Remove the directory on disk.
Close all files in the editor.

Version and main components

Spyder Version: 3.2.1
Python Version: 3.6.2
Qt Versions: 5.6.2, PyQt5 5.6 on Linux

Dependencies
pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  None (NOK)
numpy >=1.7      :  1.12.1 (OK)
sphinx >=0.6.6   :  1.6.3 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
psutil >=0.3     :  5.2.2 (OK)
nbconvert >=4.0  :  5.2.1 (OK)
sympy >=0.7.3    :  None (NOK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.1.0 (OK)
pylint >=0.25    :  1.7.2 (OK)

Thanks for reporting. We'll take a look at this after we release 3.2.2

@rlaverde, please work on this one.


[release 2.5.2] OSSM-6035 mod: update to protobuf v1.33

Please provide a description of this PR:
Related upstream PRs:
https://github.com/istio/istio/pull/49733
https://github.com/istio/istio/pull/49815
They were merged in upstream Istio 1.21
This PR target branch is releases/2.5.2 . I will create a cherry pick PR later to maistra-2.5 branch
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Ambient
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[ ] Does not have any user-facing changes.


Sketch formatted message design for game notifications

This is a design / layout task that doesn't require any coding (although HTML / CSS would be nice). The messages will be presented using email or MMS (most likely email due to cost). Here are the messages that we need design layouts for:

Player notified about the score they got for a challenge.
Player notified that a new challenge is available.
Player notified that they've been switched to a new team.
Player notified that it's time for tribal council (time to vote someone out).
Player notified about what team, tribe or player won the last challenge.
Player notified that it is time for the last tribal council before announcing the winner.
Player notified that they've been voted out.
Player notified that tribal council has ended and who got voted out (multiple players).
Player notified of the final winner.
Player notified that they've been granted immunity and cannot be voted out.

Ideally 1 template can cover most or all of these, and we can just plug the message text.

Done.


The kernel appears to have died. It will restart automatically

❓ Questions and Help

I suppose you have found a solution to your problem?

Yes, sorry to bother you.


feat: uni-v2 staking txns support

Description
Added support for Stake/Unstake transaction methods from uniV2 parser
Notice

[x] Have you followed the guidelines in our Contributing guide?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
closes https://github.com/shapeshift/web/issues/1214
Risk

Testing
Pull this PR https://github.com/shapeshift/web/pull/1798, build unchained-client and asset-service and link them to the web
Connect ethereum account which interacted with contract 0x212ebf9FD3c10F371557b08E993eAaB385c3932b
Go to Transaction History page
Screenshots (if applicable)

converting to draft until https://github.com/shapeshift/lib/pull/648 is merged

final view

@vividwood this pr is being deployed to prod today but for some reason during testing it wasnt working. Suspect it could be related to the wrong package version of asset-service or unchained-client being used.
Can you possibly take a look at this again and figure out whats wrong?

@vividwood this pr is being deployed to prod today but for some reason during testing it wasnt working. Suspect it could be related to the wrong package version of asset-service or unchained-client being used.
We are going to re-open this issue if you want to take another look at what could be wrong

This is on the unchained end. Since we are still parsing transaction in the ingester, we need to bump the package there. I am getting that updated and we can test again and it should be working as expected at that point.

@vividwood I can confirm seeing the stake transaction row at https://d65ee710.web-29e.pages.dev/ after the unchained-client package bump in unchained. The asset icon and value is not displaying however. Confirmed locally against @shapeshiftoss/asset-service v4.1.0 that the asset icon and value display correctly, that should be the last req for this feature to be complete

@vividwood I can confirm seeing the stake transaction row at https://d65ee710.web-29e.pages.dev/ after the unchained-client package bump in unchained. The asset icon and value is not displaying however. Confirmed locally against @shapeshiftoss/asset-service v4.1.0 that the asset icon and value display correctly, that should be the last req for this feature to be complete

Thanks, completely forgot to bump versions, sorry.

@vividwood I can confirm seeing the stake transaction row at https://d65ee710.web-29e.pages.dev/ after the unchained-client package bump in unchained. The asset icon and value is not displaying however. Confirmed locally against @shapeshiftoss/asset-service v4.1.0 that the asset icon and value display correctly, that should be the last req for this feature to be complete

https://github.com/shapeshift/web/pull/1856


Intertesting Find

Service name
AWS S3  && Fastly
I've come across a sub-domain with a CNAME pointing to Fastly.net service while the actual http fingerprint confirms the S3 bucket Not in Use.
Is there are possibility of takeover through S3 bucket (which is not known) while the CNAME points to i2.shared.us-eu.fastly.net?

@sumgro usually if it is an S3 bucket, the bucket name would be in the HTTP response, in which case you could takeover the domain by simply registering that bucket name.
I'm not sure if this is always the case though!

@hakluke thanks for the suggestion. I was able to discover the bucket name from the HTTP response.
Now I understand, that the S3 bucket is pointed at using the Fastly service.
One more question:
What is the best way to confirm the endpoint given by AWS is the exact match with one pointed to by fastly service.

@sumgro You can derive the bucket endpoint from the bucket name using the schema outlined in this doc: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html
http://bucket.s3.aws-region.amazonaws.com.
http://bucket.s3.amazonaws.com


Freewallet displaying closed/erroneous dispensers

I am having some trouble with the display of dispensers on Freewallet.
The x-chain.io displays my dispensers correctly according to my understanding (only one dispenser for 500 XCP @ 0.00018900 ea).
But the Freewallet "My Dispensers" tab lists two dispensers that I recently closed (one for 500 XCP and one for 1000 XCP), and a large number of dispensers that are either so old I can't remember them, or are erroneous.   (As shown below, all for 158 XCP @ 0.0001498)

Addy:  162HmQNyWHRcFdrFniWwgL7LVLnv9WAphK

Freewallet is no longer displaying phantom dispensers for any of my addresses.
I'm not sure what changed but for whatever reason, the phantom dispenser phenomenon has disappeared.


Added note about swarm ignoring the pid option

Proposed changes
Added a note to the pid block stating that it is ignored in swarm mode.
Related issues (optional)
Fixes #12993

@Adrian-at-CrimsonAuzre Thanks for the PR. Unfortunately, I'll have to close this without merging as Mirantis is now in charge of Swarm maintenance and any docs must be updated there.


Links in the Docu should point to the version being viewed instead of latest

As in the title.

Another idea is to use relative referencing.

Done in the scope of some different issues.


Add hgv access preset

I think hgv should be added as an preset to the access presets in id. This way it's easier for beginners to map truck access restrictions.

Hmm this is kind of related to #3945.. Can you add your request there instead?

Done


Change Component CRD apiVersion to v1

The API version for the Component CRD is stable and should be changed to support v1 while keeping v1alpha1 for backwards compatibility.

hello i would like to fix this issue can you give me the schema for v1 so i can update it?

Thanks for picking this up! The current CRDs schemas for Component, Configuration and Subscription (v2alpha1) remain the same and should be made v1 while still supporting the existing api versions for backward compatbility.

@aharonYK this would be great to get in next release if you are able :)