Start threebot server on a fresh machine raise error

After install jsx on fresh machine then start threebot server
cl = j.servers.threebot.local_start_default()

Result:
EXCEPTION:
    cannot rsync /sandbox/lib/jumpscale/Jumpscale/servers/openresty/web_resources/ to
        /sandbox/cfg/nginx/default_openresty_threebot/

        rsync --no-owner --no-group -rLt --partial  --exclude '*.egg-info/' --exclude '*.dist-info/' --exclude
        '*__pycache__/'
            --exclude '**.egg-info' --exclude '**.pyc' --exclude '**.bak'  --delete --delete-excluded
            '/sandbox/lib/jumpscale/Jumpscale/servers/openresty/web_resources/'
        '/sandbox/cfg/nginx/default_openresty_threebot'
            --verbose

    stdout:
        sending incremental file list
        IO error encountered -- skipping file deletion

        sent 1,381 bytes  received 82 bytes  2,926.00 bytes/sec
        total size is 853,883  speedup is 583.65

    stderr:
        symlink has no referent: "/sandbox/lib/jumpscale/Jumpscale/servers/openresty/web_resources/static/weblibs"
        rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
--TRACEBACK------------------
<stdin> in <module>
    1
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in local_start_default
    59    self.default.stop()
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in stop
    203    self.openresty_server.stop()
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in openresty_server
    59    name=f"{self.name}_openresty_threebot", executor=self.executor
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in get
    113    jsconfig = self._new(name=name, autosave=autosave, **kwargs)
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in _new
    93    jsconfig = jsconfig_klass(parent=self, jsxobject=jsxobject, **kwargs_to_class)
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py in __init__
    63    self._init(**kwargs)
/sandbox/lib/jumpscale/Jumpscale/servers/openresty/OpenRestyServer.py in _init
    47    self.install()
/sandbox/lib/jumpscale/Jumpscale/servers/openresty/OpenRestyServer.py in install
    92    j.sal.fs.copyDirTree("%s/web_resources/" % self._dirpath, self.path_cfg_dir)
/sandbox/lib/jumpscale/Jumpscale/sal/fs/SystemFS.py in copyDirTree
    300    cmd, showout=showout, die=True, retry=retry, errormsg="cannot rsync %s to %s" % (src, dstpath)
/sandbox/lib/jumpscale/Jumpscale/core/InstallTools.py in execute
    2304    raise Tools.exceptions.Base(msg)
-----------------------------

None

Findings:
ls -l /sandbox/lib/jumpscale/Jumpscale/servers/openresty/web_resources/static/
total 12
drwxr-xr-x 5 root root 4096 Nov  3 15:05 chat
drwxr-xr-x 4 root root 4096 Nov  3 15:05 home
lrwxrwxrwx 1 root root   59 Nov  3 15:05 weblibs -> /sandbox/code/github/threefoldtech/jumpscale_weblibs/static
drwxr-xr-x 3 root root 4096 Nov  3 15:05 wiki

ls /sandbox/code/github/threefoldtech/
home  jumpscaleX_builders  jumpscaleX_core  jumpscaleX_libs  jumpscaleX_libs_extra  jumpscaleX_threebot  jumpscaleX_weblibs

weblibs link is broken

fixed by removing dangling link to weblibs.

Verified on
jumpscaleX_core: c07df53f2ed80a0a893085d32f80a3202b4b4a30
jumpscaleX_libs: https://github.com/threefoldtech/jumpscaleX_libs/commit/9b36ae0fd9c0da177ed7253946ca0023353828d8
jumpscaleX_builders: https://github.com/threefoldtech/jumpscaleX_builders/commit/20a09db4df576cefb639b6ef9699e4156584c7d5
jumpscaleX_libs_extra: https://github.com/threefoldtech/jumpscaleX_libs_extra/commit/112bcd485b96c6e89034cd920ae1265d9bc27ea1
jumpscaleX_threebot: https://github.com/threefoldtech/jumpscaleX_threebot/commit/3b61fd6d0a13e8db96e3b826c26d088b88ac0a50


Line comment in type cast incorrectly compiles to early return

🔎 Search Terms
"comment in type cast"
🕗 Version & Regression Information
This is the behavior in every version I tried (nightly 5.6.0-dev.20240711 via playground, 5.5.3 via playground, 5.4.5 in Node.js 18, 5.4.5 in Node.js 20, 4.9.5 via playground), and I reviewed the FAQ for entries about this issue
⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.5.3#code/GYVwdgxgLglg9mABMOcAUBKRBvRAnAUyhDyQBYAmRAXwChaB6BxKACxgGdEATOArsHCgs8MAOZiCeRAENEAFQDKiKXjh4ANI2YAjEMIhwAtgAcYAG34s4iAFLLD3Ai1YzhhYqQ7bEAA3BOwDBgBNy+smDciCEAblKIEDLm5ly+KHC+AIS0oJCwCIjBhniE0JgAXNEgRjrx2LSIjfhEJEhoDU2dTIgcxs6GRkYEYFAdnY3pslyYiAC8AHxVNVJjiBiYtHQ54NDwSMWlUBVLtdL1nR6tiO3jTd29QwnGQyOrnemr6xib9Lm7BUlegB9A4EMoYSpgaqnHCrS6ka6TGTTLALE5SL4-bZ5PayFJwIGAgmg8GQ6F1OEtBE3W7IVBTa6oxZQ5Z4T4bLaGMC9SwAOnMcDEaF8RXUh0qABJsKKSmCjhhqL4MABuWhcnkEfmC4UkqCS7C6zCKlVqhAarVC3xEkFiuX662GhVK1XquB8gWW60O23Qe34wn+x3G5VAA
💻 Code
The issue:
function foo() { return 42 }

// this does not trigger a TS error,
// but compiles to JS code that returns
// `undefined` and never calls `foo`!
function incorrect(): number {
    return (
        // some comment
        foo as () => number
    )()
}

Some cases that don't exhibit the issue:
function correct(): number {
    return (
        // some comment
        foo
    )()
}

function also_correct(): number {
    return (foo as () => number)()
}

function also_also_correct(): number {
    return (
        foo as () => number
    )()
}

For reference, the incorrect function above compiles to the following JS code:
function incorrect() {
    return
    // some comment
    foo();
}

🙁 Actual behavior
The following code:
return (
    // some comment
    foo as () => number
)()

Compiles to:
return
// some comment
foo()

Where the function returns undefined and foo is never called.
🙂 Expected behavior
It should instead compile to something like:
return (
  // some comment
  foo
)()

This happens, I think, because the compiler attempts to remove unnecessary parenthesis around the type cast, which in this situation turn out not to be unnecessary.
Additional information about the issue
The issue does not occur if removeComments is enabled.

Related: #56591

The bug happens when any "first" child node in a return statement is a parenthesized expression. Another example:
declare const foo: () => 42

function incorrect(): number {
    return (
        // some comment
        foo as () => number
    )['name']
}


NetUtils性能问题修复 #13743

What is the purpose of the change
1、getLocalAddress0() 优先获得IPv4地址，再尝试获得IPv6地址，都获取不到时不再校验getLocalHost的有效性
2、getLocalHost() 只计算一次IP地址，如果getLocalAddress() 返回null， 则用LOCALHOST_VALUE赋值,避免大量的重复计算

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

Comparison is base (f6eddf7) 70.34% compared to head (2c43242) 70.35%.

:exclamation: Current head 2c43242 differs from pull request most recent head ee58e94. Consider uploading reports for the commit ee58e94 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##              3.2   #13745      +/-   ##
==========================================
+ Coverage   70.34%   70.35%   +0.01%
==========================================
  Files        1606     1606
  Lines       70022    70020       -2
  Branches    10103    10103
==========================================
+ Hits        49255    49262       +7
+ Misses      16126    16124       -2
+ Partials     4641     4634       -7

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


Layout broken on iPad, app running in Split view

Problem Description:
Hello, seems that this library doesn't work when bulletin is opened when app is not taking 100% of the screen. When running in any split view combinations (1/4, 2/4, 3/4 or 1/3, 2/3 of the screen widths) the bulletin view is displayed as it would take the whole screen estate, therefore part of it is hidden. I have tried both showBulletin(above:animated:completion:) or showBulletin(in:animated:completion) they seem to give same result. I attach an image of the problem to further clarify the issue.

Is there any workaround?
Steps to reproduce:
Run the app, present bulletin board when app size has been reduced with split view. Present bulletin board with either showBulletin(above:animated:completion:) or showBulletin(in:animated:completion)
Environment:

Device: iPad 11" Pro, iPad 12.9" Pro
OS: iOS 13.0, 13.1, 13.2
Version of BulletinBoard: 4.1.0

I also have this problem @alexaubry could you have a look, please?

I think I managed to fix this issue. I opened up a PR #173 with the fix. I don't know if it is the correct way to go though but you who are interested on the subject can take a look!

Great, I’ll take a look and try to install it in my app to see if the issue is fixed.

The fix was released in 4.1.1, thanks for your patience.


Exec args fix

This fixes a minor error in how exec counts args and env variables.

Can we add a note indicating your assumption to the code here?  This may
save someone else (possibly even you) debugging headache in the future...
On Fri, Feb 7, 2020 at 12:27 PM Nicholas Renner<EMAIL_ADDRESS>wrote:

Merged #19 https://github.com/Lind-Project/native_client/pull/19 into
develop.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Lind-Project/native_client/pull/19?email_source=notifications&email_token=AAGRODZBH5YRCWISKXCE7PTRBWKYLA5CNFSM4KRF6IIKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWPVDTZQ#event-3018471910,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGROD6LVJOX5MGOGRRZSCLRBWKYLANCNFSM4KRF6IIA
.

I have this comment a bit further up which I think clarifies why we're dealing with 32 bit pointers, but I can add a bit more.
 /*
    Convert to a Sys Pointer for argv**
    We need to turn these to uint32_t pointers for now because these are still NaCl pointers
    We'll convert to a char** later.
  */


import numpy import calculator

Not available in built in

Not available in built in

Would you please some details on the issue? Please look at the troubleshooting guide on how to submit an issue.
thanks

@VinitPoddar Sorry I don't know what "not available in built in" means. Screenshot, please.

It's been a over a month since this was opened without a reply, closing. We can reopen if you can explain what you're seeing.


⚠ Bofrost.fr has degraded performance

In 7f464eb, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1881 ms

Resolved: Bofrost.fr performance has improved in 472f7f4 after 6 minutes.


Updated the provisioning client to hit the steve API endpoint.

Background
When using the provisioning client we were not getting the Steve API endpoint but rather the Kubernetes API. So when attempting to do some calls it would fail differently in comparison to the rancher monitoring UI.
Updates

Over wrote most of the API calls to hit the steve API endpoint
For now just not including watch was we need to monitor the cluster resource using the Kubernetes API
We get an unknown error during clean up for a standard user, which is expected because the user no longer has the proper RBAC to view the resource it had just deleted
We also get an expected error when cleaning up the rke-machine-config.cattle.io resource, because now when we delete the cluster using the steve API endpoint, the rke-machine-config.cattle.io resource gets deleted as well.

Is there a test set of tests that make use of these actions, that we could see in action in our freeform?
I understand the CRUD functions but I'm off context of "failing differently than the rancher monitoring UI" so we detected these errors during the design of the monitoring tests?


Reset service

Hi,
would it be possible to create a reset service using the API ? Would be great to periodically reset the router using automations …
thanks for your great work !

added since R1.6.0


[util] Move check_tool_requirements into its own directory

Reusing check_tool_requirements through the vendoring mechanism requires it to be reasonably self-contained in its own directory.

I just had a quick look at this, but I'm not sure how best to do it. @imphil: Are you imagining putting the core file, the script and tool_requirements.py into e.g. util/check-tool-requirements? Or do we want to keep tool_requirements.py at top-level? In the latter case, I can't see a nice way to group things.


Improving PowerLaw implementation

Introduction
Hi, I also need the PowerLaw for my research in numpyro. I investigated the problem over the last two days as to why the current implementation of the power law fails to pass the tests. The formulas are already correctly implemented.
The problem
To my mathematical understanding, the different gradients at $\alpha=-1$  stem from a discontinuity point on the transition from the outer bounds ($\alpha=-1+\delta t$ with $\lim_{t \to 0}$) to ($\alpha=-1$) for the normalized probability as for $\alpha\neq-1$ the partial derivation with respect to $\alpha$ of the base equation:
$\frac{(α + 1)x^α}{(b^{α + 1} - a^{α + 1})}$
tends to another value than of the base equation for $\alpha=-1$ :
$\frac{x^α}{\ln(b) - \ln(a)}$.
For the CDF and the ICDF, this issue is rooted in this cause, too. So, the issue is purely mathematical and does not account for the original code or the framework.
My solution
I partially integrated (partly via Wolfram Alpha) the log_prob, cdf, and icdf formula with respect to $x, \alpha, a, b$ and defined an individual underlying VJP rule for each formula. For the derivative with respect to $\alpha$, I approximated the value by calculating the borders of the discontinuity point with $-1\pm\delta t; \delta t = 10e-4$ and averaging the two sides to approximate an adequate middle declination.
Additionally, some improvements in the tests and the activation of float64 (without it, it was too imprecise to pass the tests) have been added too.
Best,
David

@InfinityMod Upon some closer look I see many terms are more simplifiable, or did you leave that for computational purposes?

@Qazalbash Simplification would be welcome. I didn't find a further way to simplify. I cross-checked the calculations with Wolfram Alpha and guessed they were already as simple as possible. If there's a way, a simplification would be pretty welcome.
Wolfram Alpha command for the normalized probability and $\alpha \neq 1$:
Jacobian matrix | (x^α)/(log(b) - log(a)) | with respect to | (x, α, a, b)

Wolfram Alpha command for the normalized probability and $\alpha =1$:
Jacobian matrix | log(x)/(log(b) - log(a)) | with respect to | (x, a, b)

Wolfram Alpha command for CDF and $\alpha \neq 1$:
Jacobian matrix | (x^(α + 1) - a^(α + 1))/(b^(α + 1) - a^(α + 1)) | with respect to | (x, α, a, b)

Wolfram Alpha command for the CDF and $\alpha =1$:
Jacobian matrix | (log(x) - log(a))/(log(b) - log(a)) | with respect to | (x, a, b)

Wolfram Alpha command for iCDF and $\alpha \neq 1$:
Jacobian matrix | (a^(1 + α) + q (b^(1 + α) - a^(1 + α)))^(1/(1 + α)) | with respect to | (q, α, a, b)

Wolfram Alpha command for the iCDF and $\alpha =1$:
Jacobian matrix | a (b/a)^q | with respect to | (q, a, b)

The formulas are implemented accordingly and applied via "custom_jvp".
If more documentation is needed, please let me know.

@InfinityMod By simplification some terms were being cancelled and the other aspect was memory and computation point of view. I have made changes to them you can see them here.

All test cases that were previously been failing are passing, but some other test cases (not related to power laws) are failing which was not the case before. I suspect this is due to the high floating point precession mode. What do you think?

@Qazalbash I see what you mean, well understood :). Thanks for making it calculation wise less expensive. I didn't optimize at this stage.

@InfinityMod I tried this on my local machine but it is not powerful enough to handle all these tests. I was monitoring the automated tests on GitHub Actions and found that the test was stuck on a single case for several hours after which it was cancelled. It would be great if you could look into it. This PR has been merged. Can you reflect your changes on the main PR?

-> jax_enable_x64 is unfortunately just considered at initialization, but changes are not reflected later.
-> We could force an x64 calculation inside the function if possible. This increases the complexity a bit.

I think you are referring to jax.experimental.enable_x64.

Yeah, but it seems to me that this flag can't be switched individually during runtime.
I identified the stuck test, it's: test_vmapped_binomial_p0. It seems to have an endless loop in "_binomial" at .\distributions\util.py

If you are confident enough to fix it, can you share the fixed implementation?


Add support for new dataformat

Description:
Add support for new dataformat

This is working for me, will do other adjustments on separate cards if needed.


Added button with spinner.

Changes

added button with spinner while ordering or adding items to portfolio
this will be displayed if async request is in progress

used components from: https://redhat.invisionapp.com/share/6NPCR8DYP7F#/screens/360791839_UC4-E_Spinner_In_Button

cc @sbuenafe-rh

Codecov Report

Merging #200 into master will increase coverage by 0.13%.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##           master     #200      +/-   ##
==========================================
+ Coverage   81.49%   81.63%   +0.13%
==========================================
  Files          90       91       +1
  Lines         870      882      +12
  Branches       82       83       +1
==========================================
+ Hits          709      720      +11
- Misses        145      146       +1
  Partials       16       16

Impacted Files
Coverage Δ

...lio/portfolio-item-detail/portfolio-item-detail.js
88.46% <ø> (ø)
:arrow_up:

src/redux/reducers/order-reducer.js
100% <ø> (ø)
:arrow_up:

src/App.js
0% <ø> (ø)
:arrow_up:

...io/portfolio-item-detail/detail-toolbar-actions.js
100% <100%> (ø)
:arrow_up:

...al-components/portfolio/portfolio-order-toolbar.js
100% <100%> (ø)
:arrow_up:

...folio-item-detail/portfolio-item-detail-toolbar.js
85.71% <100%> (+2.38%)
:arrow_up:

...ntational-components/shared/button-with-spinner.js
100% <100%> (ø)

...nents/portfolio/add-products-to-portfolio/index.js
96.77% <87.5%> (-3.23%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 944a058...55b1d9b. Read the comment docs.


Isn't compatible with rails main branch and unix systems

To integrate Tailwind with your Rails project, first, set your gem to the main branch by adding the following line to your Gemfile:
gem "tailwindcss-rails", github: "rails/tailwindcss-rails", branch: "main"

Afterward, run:
bundle update

Next, generate authentication with:
bin/rails generate authentication
bin/dev

Error Encounter
You might encounter this error:
08:49:46 css.1  | bin/rails aborted!
08:49:46 css.1  | Tailwindcss::Commands::ExecutableNotFoundException: Cannot find the tailwindcss executable for x86_64-linux...

Steps to Resolve:

Ensure you're using the latest Bundler version:

gem install bundler
bundle update --bundler

Add the platform to your Gemfile.lock:

bundle lock --add-platform x86_64-linux
bundle install

Check Bundler configuration: Ensure force_ruby_platform isn’t set to true:

bundle config

I already run the instructions but still an error.

This was fixed in https://github.com/rails/tailwindcss-rails/releases/tag/v2.7.7 yesterday.


can't access vuex modules

Hi,
I'm integrating this tool with Vuex, and have the following problem.
According to the documents, integrated with Vuex should pass Vuex store object into treeOptions
The file tree looks like this (see also github repo)
.
├── components
|   ├── common
|   |   └── Filetree.vue
|   |   └── ...
|   └── ...
├── store
|   ├── modules
|   |   ├── Filetree.js
|   |   └── ...
|   └── index.js
└── ...

When I create several modules, the states of each modules are separated but the mutations are mixed. It seems unable to get a Vuex store object.
In my understanding, this plugin will copy the reference of its data into Vuex state in initTree mutation. Can I pass only listened state property and some actions(or mutations) into tree options? So that I can visit the required objects from Vue file via mapState, mapActions and mapMutations.

Hi! It is not implemented yet. So you cannot use Vuex modules

Ohh, I'm sorry. You able to get the data from the modules... See the example:
Your store (from your example)
export default new Vuex.Store({
  modules: {
      reading: {
          state: {}, // ....
          mutations: {},
          actions
      },

      filetree: {
          state: {
              treeData: []
          },
          mutations = {
            initTree(state, treeData) {
                state.treeData.push(...treeData)
            },
            updateTree(state, newData) {
                state.treeData = newData
            }
          }
      }
  },

  getters: {
      tree(state) {
        return state.filetree.tree  // reads 'tree' state from `filetree` module
      }
  },

  strict: process.env.NODE_ENV !== 'production'
})

liquor-tree options:
treeOptions: {
          paddingLeft: 10,
          store: {
            store: this.$store,
            getter: 'tree', // ~~~  use `getter` instead of `key`
            mutations: ['initTree', 'updateTree']
          }
        }

@amsik thanks for your demo!
Set getter in tree options works, however, the mutations in vuex modules seems will not be executed.
I'm currently using mapMutations and event trigger to execute mutation in vuex modules.
btw, a quotation mark is missing in vuex document page line 21.

Cool tree display tool!


Fix #9332

Changed overloaded methods. Commits require check.

@jljljl could you update the associated HelperUtils method calls and tests as well to reflect the fix? Right now I have failing tests if we introduce this change.

@agibsonccc I'll try

@jljljl  happy to help if you get stuck. There's 2 batches of classes: the MKLDNN helpers in deeplearning4j-nn and the CUDNN helpers in deeplearning4j-cuda. There's tests in both modules that should pass.

@agibsonccc try now. If you have any troubles with it, you can change code. It also requires manual check.

@jljljl I'm not really sure what changed...could you just run this test and make sure it passes? That's really all that needs to be done. There's no manual work here and you can verify it on your own. I keep getting this:
C:\Users\agibs\Documents\GitHub\dl4j-PR-split\deeplearning4j\deeplearning4j\deeplearning4j-nn\src\main\java\org\deeplearning4j\nn\layers\HelperUtils.java:57:46
java: no suitable method found for createNewInstance(java.lang.String,java.lang.Class<capture#1 of ? extends org.deeplearning4j.nn.layers.LayerHelper>,java.lang.Object[])
    method org.deeplearning4j.common.config.DL4JClassLoading.<T>createNewInstance(java.lang.String) is not applicable
      (cannot infer type-variable(s) T
        (actual and formal argument lists differ in length))
    method org.deeplearning4j.common.config.DL4JClassLoading.<T>createNewInstance(java.lang.String,java.lang.Object[]) is not applicable
      (cannot infer type-variable(s) T
        (actual and formal argument lists differ in length))
    method org.deeplearning4j.common.config.DL4JClassLoading.<T>createNewInstance(java.lang.String,java.lang.Class<? super T>) is not applicable
      (cannot infer type-variable(s) T
        (actual and formal argument lists differ in length))
    method org.deeplearning4j.common.config.DL4JClassLoading.<T>createNewInstance(java.lang.String,java.lang.Class<? super T>,java.lang.Object...) is not applicable
      (cannot infer type-variable(s) T
        (argument mismatch; java.lang.Class<capture#1 of ? extends org.deeplearning4j.nn.layers.LayerHelper> cannot be converted to java.lang.Class<? super T>))
    method org.deeplearning4j.common.config.DL4JClassLoading.<T>createNewInstance(java.lang.String,java.lang.Class<? super T>,java.lang.Class<?>[],java.lang.Object[]) is not applicable
      (cannot infer type-variable(s) T
        (actual and formal argument lists differ in length))

when running this test. https://github.com/eclipse/deeplearning4j/blob/203c5434b30905dc8b5b4dacf254d5f35bb4487d/deeplearning4j/deeplearning4j-core/src/test/java/org/deeplearning4j/nn/layers/HelperUtilsTest.java#L34

@agibsonccc here is no method createNewInstance(java.lang.String,java.lang.Class<capture#1 of ? extends org.deeplearning4j.nn.layers.LayerHelper>,java.lang.Object[]). Tell me what method. What method is correct for it?

@jljljl  with a bit of running the tests, I found out that this actually works fine. I jus thad 1 minor correction in one o fthe tests that was on me to fix anyways. Merging this.


Gateway enhancements for improved extensibility

Allow extended properties on security realm (authentication context)
Add ExtensionHelper to provide extra features for WebSocket extensions
Move AMQP service XSD element type definition into the standard gateway XSD file instead of having it in its own file under service/amqp

Closing in favor of https://github.com/kaazing/gateway/pull/318


Allow users to tweak remote queue parameters

See https://github.com/prometheus/prometheus/blob/master/storage/remote/queue_manager.go#L118
We should at least expose these in the config file - right now we're limiting users to 10 shards, 100 samples / batch - so for a service with 100ms latency, that only 10k samples/s.
We also discussed back in https://github.com/prometheus/prometheus/pull/1931 making this dynamic - so now is probably a good time to discuss that.  I guess users probably want to bound how long data sits in the queue, and bound the maximum parallelism (to not overwhelm their prometheus) and batch size?  From there we could minimise parallelism / maximise batch 'fullness'?
Thoughts?

The primary goal is to not take down the Prometheus, while also not doing things that'd be difficult to deal with on the other end (e.g. 1k shards for everyone would eat unnecessary resources on both ends for the vast majority of users).
I propose we have something that is effectively a memory limit on the Prometheus side (which may be tied automatically to throughput) and try to automatically run a sufficient number of workers/shards to manage that.

automatically run a sufficient number of workers/shards to manage that.

With a cap, right?  As you say, we almost never want a 1k shards.
There also has to be something to optimise for - otherwise we'd always just run max shards.  For example, consider:

100 max shards
a batch size of 100
a low sample rate (100/s)

If we just ran 100 shards, then the user would have to wait 100s to fill a batch up and flush.  If we ran less shards (for 100/s, one shard) we could give them a latency of 1s.
If we capped the max buffer size, we could do something like every time the buffer fills up and we drop a sample, we double the number of shards, up to max shards.  For the negative pressure, we could do something like every time a shard has to wait more than target seconds to fill a batch, we reduce the number of shards.  And then add some hysteresis.
It all sounds a little complicated though...

Something along those lines sounds about right.
I suggest we hardcode a maximum delay somewhere in the 1-10s range.

SGTM.  I'll let this sit for a few days before I start anything - I'm hoping someone knows of a fancy algorithm that will stop this oscillating etc.  Something like a PID.

I've coded up a quick experiment using a PID to control resharding:
https://github.com/prometheus/prometheus/compare/master...tomwilkie:remote-write-pid-sharding
TLDR; the PID interacts badly with the queuing.  I think a simpler approach might work better, so I'm going to try that tomorrow.

I've got rid of the PID and just done a proportional feedback loop:
https://github.com/prometheus/prometheus/compare/master...tomwilkie:remote-write-sharding
Its works much better, but still some oscillation.  I'm going to add come of the concepts from the PID controller back in, hopefully that will solve the problem.


cdecl16far calling conventions incorrectly return 4-byte value

Describe the bug
I create functions with the calling convention _cdecl16far, which returns a 32 bit value (dword, long, char * 32) the result is declared as register AX: 2 (ntr) and the value on the stack. The code shows that the result is transmitted by registers DX: 2, AX: 2
If you select the calling agreement as cdecl16near, then the result is declared correctly DX: 2, AX: 2
To Reproduce
Steps to reproduce the behavior:

Open WIN16 exe file
Select function, "Edit Function Signature"
Calling Convention __cdecl16far
 Datatype char*32

Expected behavior
 Storage DX:2,AX:2
Screenshots

Attachments
If applicable, please attach any files that caused problems or log files generated by the software.
Environment (please complete the following information):

OS: Windows 10 20H2
Java Version: <IP_ADDRESS>
Ghidra Version: 9.2.1

Additional context
Add any other context about the problem here.

Looks like the definitions in your .cspec file are incorrect.  Here's mine:
  <prototype name="__cdecl16near" extrapop="2" stackshift="2">
    <input>
      <pentry minsize="1" maxsize="500" align="2">
        <addr offset="2" space="stack"/>
      </pentry>
    </input>
    <output>
        <pentry minsize="1" maxsize="2">
          <register name="AX"/>
        </pentry>
        <pentry minsize="3" maxsize="4">
          <addr space="join" piece1="DX" piece2="AX"/>
        </pentry>
    </output>
    <unaffected>
      <register name="SP"/>
      <register name="BP"/>
      <register name="SI"/>
      <register name="DI"/>
      <register name="DS"/>
      <register name="CS"/>
      <register name="ES"/>
      <register name="SS"/>
      <register name="DF"/>
    </unaffected>
  </prototype>

  <prototype name="__cdecl16far" extrapop="4" stackshift="4">
    <input>
      <pentry minsize="1" maxsize="500" align="2">
        <addr offset="4" space="stack"/>
      </pentry>
    </input>
    <output>
      <pentry minsize="1" maxsize="2">
        <register name="AX"/>
      </pentry>
      <pentry minsize="3" maxsize="4">
        <addr space="join" piece1="DX" piece2="AX"/>
      </pentry>
    </output>
    <unaffected>
      <register name="SP"/>
      <register name="BP"/>
      <register name="SI"/>
      <register name="DI"/>
      <register name="DS"/>
      <register name="CS"/>
      <register name="ES"/>
      <register name="SS"/>
      <register name="DF"/>
    </unaffected>
  </prototype>


youtube video from url

First of all thanks men, I like your plugins.
I have a request can you add code, for getting videos from youtube URLs.
example url =
https://www.youtube.com/watch?v=IB7b3S3W8RI

@Ashish-Raturi Did you find a solution?

@ihorkozar use different plugin https://pub.dev/packages/youtube_player_flutter


host reports were not send for February.

Describe the bug
The hosts didn't receive the monthly report again this month. Last time the issue was #1730.
To Reproduce
check the emails sent for the host reports February 2019
Expected behavior
receive the report on the 1st of the following month

@xdamman what do we need to do to make sure it's sent next month?

ping @xdamman (there is a priority label on that issue)

I ran it manually so priority label should be dropped. It ran smoothly so not sure why it didn’t work first time. Let’s keep an eye on it for next first of the month.

It's the second month in a row it happened, so there seems to be an underlying issue. It's a pain for WWCode who complained about this twice already.

Didn't happen last months.


Use of zipzap CocoaPod disables exception support project-wide

As described in some of the comments on #71, the mere inclusion of the zipzap CocoaPod in a project seems to have the effect of turning off support for Objective-C exceptions on a project-wide basis. For existing code and dependencies that are not easily altered, this is a blocker.
Earlier, I addressed the problem by ensuring a project-level setting was in force for GCC_ENABLE_OBJC_EXCEPTIONS = YES. After updating to CocoaPods 0.34.1 today and ensuring that a complete list of link_with targets are specified in my Podfile, this no longer works—the setting is superseded project-wide by zipzap.
As a further work-around, I moved this build setting to target-level on all affected targets in the project. While this now allows a build, it first creates a ton of spew when pod install is run:
[!] The `Kashoo [Development]` target overrides the `GCC_ENABLE_OBJC_EXCEPTIONS` build setting defined in `Pods/Target Support Files/Pods/Pods.development.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

This message is repeated for every build configuration on every target (4 targets x 3 configurations = 12 warnings in my case).

@pixelglow is this still an issue?

The fix was merged to master, but a new release version of zipzap has not yet been made since then. (I've been pointing explicitly to master in my Podfile for the time being.)

Apologies, folks. I was busy with Instaviz 2.0 and my old MBP had grown flaky. I have a new MBP now and some free time, so I'll work on getting 8.0.2 an official pod spec soon.

Glen, btw, talking about instaviz - this url is broken on its website http://instaviz.com/get/

@ttaranov thanks for the heads up. I fixed the link.

I added a comment on [this diff of the podspec|https://github.com/pixelglow/zipzap/commit/d0a33d6fd96c311b3010bf4b3e855a93e65280ee] made just prior to releasing 8.0.2, which once again breaks my build.

I updated to CocoaPods 0.38.0 and I am seeing the return of the "target overrides the GCC_ENABLE_OBJC_EXCEPTIONS build setting" warning

And exceptions are disabled project-wide as well.

Same here; 8.0.4 reintroduces this regression. This issue needs to be reopened.

Ping? Should I file a new issue instead?


[Bug]: Currency Input widget issues

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When user changes the Decimals back to 0, the value does not automatically round off rather the user has to click inside the widget for the value to round off.
https://www.loom.com/share/3257dda3e9b4459a9bf8f49a9bfa280c
Steps To Reproduce

D&D a Currency Input widget.
Set the Decimals to 2.
Enter any value with decimals.
Now change the Decimals value back to 0.

Notice that the value does not automatically round off to the nearest number. The user has to click inside the widget in order to round off the value.
Public Sample App
No response
Version
Cloud
 Front conversations

Hey @codedmind this is a low priority item on our plate and I don't think we will get to it anytime soon. Why is this important for you?

@dilippitchika one of our apps have a lot of currency widgets and we are not able to input decimals values... so this have a high impact in our end.
Are this difficult to solve? Otherwise we must redo the app and replace the currency widget...

@codedmind this is a different issue, i believe you are talking about this issue - https://github.com/appsmithorg/appsmith/issues/14261 - where the decimal separator is not working in EU countries as expected.
This is a different issue, which only happens in the edit mode and has no impact on view mode

@dilippitchika your are correct! My mistake ... any news regarding that issue :D

We have figured out a solution, but are stuck in terms of scaling that. Could you help us with the details of how your users use currencies, do all of them follow a single style for entering decimals like . or based on the country they are located in they change the way they write decimals?

@dilippitchika yes they all use the same way... in our case the decimal is the comma

Hi @shadabbuchh , I'm picking this issue.

Hi @shadabbuchh , the selected decimals are not being reflected even on onFocus, it's reflecting while clicking on onFocus and then clicking on the canvas.


Flicker when switching between pages on pdf projection

When changing the page on a pdf slide the screen is completely white for a moment.
It should be waited until a slide is ready before displaying it.

@MSoeb Can you check this issue again and close or confirm?

WIth big pdf files this should still happen as we still do not do a prerendering of slides.


UNUSED_METHOD_ARGUMENT ignores scoped arguments

I'm getting an issue where scoped arguments are being highlighted as unused.
consider this code:
<cffunction name="helloWorld" access="public" returntype="string">
  <cfargument name="name" type="string" required="false" default="">
  <cfscript>
    return (len(arguments.name)) ? "Hello #arguments.name#" : "Hello World";
  </cfscript>
</cffunction>

(terribleness of code, my own)
arguments.name will be highlighted as being unused, however if you switch it to len(name) it won't highlight as the argument being unused.

@justinmclean fixed this in the dev branch,  we need to merge and release it.
Thanks for reporting this.


[Feature] Configuration file needed + possibility to set filesystem (S3) disk from config

Hello! For now, the plugin has a disk that is hard-coded locally (filesystems.disks.filament-excel). It would be great if the plugin had a configuration file where you can specify which predefined in filesystems file system to work with. For example - S3.
Currently, the plugin does not work if the laravel site runs on multiple servers, or if another queue server is already in use.

Can't you just override the defined disk to make it work?

For other users: for dedicated queues you need to publish Maatwebsite excel config and in generated file excel.php set         'remote_disk'   => 's3',

php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider" --tag=config
excel.php 'remote_disk'   => 's3',

I assume you can just override the configuration in your AppServiceProviders boot() method:
config()->set('filesystems.disks.filament-excel', [
    'driver' => 'your_driver',
    // other configuration option
]);

I assume you can just override the configuration in your AppServiceProviders boot() method:
config()->set('filesystems.disks.filament-excel', [
    'driver' => 'your_driver',
    // other configuration option
]);

much better setup this via config, then can be visible to the filesystems configuration,

@ValtersBergs Does the code above work for you?


docker build

Hi, thank you for providing this template and your blog posts regarding vscode, docker and ros2. I am very inexperienced but wanted to try out your template. I was uncertain whether to docker pull your stock template or to git clone and docker build .devcontainer/. I was wondering if you could clarify what advantages both options have for novice docker users. I guess it's easier to modify your template if it's a source controlled repository?

Good question!
This is a template repository which means you can copy its contents in a new repository, without forking it, and VSCode will build the container for you.
How this works
Prerequisites
You should already have Docker and VSCode with the remote containers plugin installed on your system.

docker on your system
vscode
vscode remote containers plugin

Get the template
Click on "use this template"

Create your repository
On the next dialog, name the repository you would like to start and decide if you want all of the branches, or just the latest LTS: Foxy.

Github will then create a new repository with the contents of this one in your account.  It grabs the latest changes as "initial commit".
Clone your repo
Now you can clone your repo as normal

Open it in vscode
Now that you've cloned your repo onto your computer, you can open it in VSCode (File->Open Folder).
When you open it for the first time, you should see a little popup that asks you if you would like to open it in a container.  Say yes!

If you don't see the pop-up, click on the little green square in the bottom left corner, which should bring up the container dialog

In the dialog, select "Remote Containers: Reopen in container"
VSCode will build the dockerfile inside of .devcontainer for you.  If you open a terminal inside VSCode (Terminal->New Terminal), you should see that your username has been changed to ros, and the bottom left green corner should say "Dev Container"

Thank you, this is very helpful. I was able to install ros-foxy-turtlesim, but was uncertain whether to use apt or apt-get.
Long term goal is to run Carla and Autoware or ASLAN in containers, but that's a stretch goal ;-)

Oh, I think I understand. You're wondering how you install more things with the template?
If you're extending the dockerfile, it's general practice to use apt-get instead of apt, but you're free to use whichever you prefer in the terminal.
But I want to use more/different packages!
There are a couple of ways you can poke around with this IDE and ros2.  Pick the use case that most closely resembles your goals.

I want to download some packages and run them.  Just to kick the wheels and see what they do.
You can install new packages within the containers terminal.  This will put them in the container environment VSCode is using.  It will stick around, even if you open and close the container, but will disapear if you rebuild the container.

I want to download some code and run it!
You should clone the code into the src directory.  Once you've done that, you can install all of the packages that depend on your downloaded code, as identified in its package.xml file.  (Tasks->Run Task->install dependencies).

I want to add packages to a standard setup, cache it, and share it. Or, the packages I want to depend on for building aren't in the ROS ecosystem.  Or they are some how special.
You should add additional installation/setup steps to .devcontaienr/Dockerfile.


Repo sync for protected CLA branch

The pull request is created from master637643198007574568 to master to fix git push error for protected CLA branch

@ghogen : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Add RetentionDays.INFINITE

Issue #, if available:

None
Description of changes:

According to the documentation, the value 9999 exists, so we should be able to use it.
See<EMAIL_ADDRESS>Checklist

[x] :wave: I have run the unit tests, and all unit tests have passed.
[ ] :warning: This pull request might incur a breaking change.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@heowc thank you for your contribution. We will look into it and add it to our backlog.

This affects both RetentionInDays and RetentionDays, so you can't use 9999. (RetentionInDays up to 3653)
That's why other changes are needed.
See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-retentionindays

This is still on our backlog to evaluate, and we will get to it. We appreciate your effort and submission.

Hi @heowc,
Thanks for your contribution here. This one gets a little complicated since passing that value of 9999 in CDK would normally have the CloudFormation resource parameter on log groups not include the RetentionInDays field (which is why it only supports up to 3653 as you mentioned). Because the solution is deployed through a generated CloudFormation template, we wouldn't be able to just reference that CfnParameter in that field, and would need to override the RetentionInDays property, making it dependent on a CfnCondition. We don't currently have bandwidth assigned to this task, but if you'd like to try your hand at it, we can take a look. For now, we're going to close this PR, but feel free to re-open this PR or open a new one if you give it a shot.
Thanks for your interest in SIH :)
Simon

Hi @heowc,
I've re-evaluated this and managed a working version, the implementation would have the LogRetention period look like:

Let me know if you think that would be reasonable,
Simon


Update domains for EqualWeb

This adds another domain encountered for the EqualWeb  vendor, as encountered on gsatcedders.org.

@tmthywynn8 Thanks for the fix. We'll release an update to the stores as soon as we figure out what's currently going wrong with our automated release process.


Instant reporting.

Definitelly a lot better. :)

I also changed some stuff. :P

What does instant reporting mean?

Report stuff when is sent, instead of waiting to server disconnect.
Actually it's better do this due to A LOT of things.

PS, this works for more than the post report plugin. It works for more stuff.


Using client keepalive between the gateway and amplifier

Enabled a keep-alive between the amplifier-gateway and amplifier. The keep-alive is client driven, i.e. the client sends ping requests to the server, which in turn responds.
The keep-alive frequency is set to every 5 minutes, with a 20 seconds timeout for the response.
This is supposed to improve reliability of the connection between amplifier-gateway and amplifier based on the conclusions of this issue: https://stackoverflow.com/questions/43311004/docker-services-stops-communicating-after-some-time/43528819

nice. we'll probably need it also on etcd connection in amplifier, and nats connection in the agent.


ART-2024: Allow promotion of private releases in build/release

The private release controller payloads can be discerned from public payloads since they will include a 'priv' in the nightly name. For example, 4.8.0-0.nightly-s390x-priv- . If an artist enters the name of one of these private release payloads, the release job will:

Prompt the artist to confirm that embargo dates have lifted
Build a release payload from the -priv imagestreams.
Create a new, named (e.g. 4.6.x) release payload for the corresponding PUBLIC release controller.

@jupierce Could you please check if the parameters passed to oc commands are correct?
Test run: https://saml.buildvm.openshift.eng.bos.redhat.com:8888/job/hack/job/yuxzhu/job/aos-cd-jobs/job/build%252Frelease/15/console

I totally forgot the pre-release job. Now the PR is updated to use the new function signature and raise an error if an embargoed nightly is specified.


Fix 525 type collision modulo case

Description

Fixes #525
Checklist

[ ] I have added tests that prove my fix is effective or that my feature works

[ ] I have updated the CHANGELOG-PENDING file with my change

[ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

You're correct that programgen would continue emitting mis-spelled code for the affected type. I am inclined to ignore this for the moment. I still think this is the appropriate fix since the blast radius of the bug is exactly N=1 type in azure-native:

no functions
no resources
Java provider generation do not use tfbridge, it uses the schema as input, where tfbrdige was used to make the schema
https://github.com/pulumi/pulumi-azure-native/issues/1692 would be preferable to fix upstream, then this fix can be dropped


No YubiKey detected macOS

Yubico Authenticator version: 4.3.6
Operating system and version: macOS 10.14.5 (running on Mid 2012 Retina MacBook Pro)
YubiKey model and version: YubiKey 5 Nano (Running 5.1.2 Firmware)
Bug description summary: YubiKey Manager detects my YubiKey without any problems but Yubico Authenticator can't detect it. The YubiKey works fine on my newer 2017 MacBook Pro at work.

Steps to reproduce

Plug in the YubiKey.
Open YubiKey Manager
Open Yubico Authenticator

Expected result
The YubiKey should be detected by both applications.
Actual results
The YubiKey is detected by YubiKey Manager, but not Yubico Authenticator.
Other info
As suggested by @dagheyman in #331, I ran the application with logging enabled and this is the output:
qml: Cannot import module: yubikey (Traceback (most recent call last):

  File "qrc:///py/yubikey.py", line 12, in <module>
    from ykman.descriptor import get_descriptors

  File "/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ykman/descriptor.py", line 30, in <module>
    from .util import PID, TRANSPORT, Mode, YUBIKEY

  File "/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ykman/util.py", line 41, in <module>
    from OpenSSL import crypto

  File "/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL

  File "/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/OpenSSL/crypto.py", line 16, in <module>
    from OpenSSL._util import (

  File "/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding

  File "/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 195, in <module>
    Binding.init_static_locks()

  File "/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 142, in init_static_locks
    __import__("_ssl")

ImportError: dlopen(/Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_ssl.cpython-36m-darwin.so, 2): Library not loaded<EMAIL_ADDRESS>  Referenced from: /Applications/Yubico Authenticator.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_ssl.cpython-36m-darwin.so
  Reason: image not found
)
qml: Function not found: 'yubikey.init_with_logging' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devices' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined
)
qml: Error: Cannot assign [undefined] to int undefined
qml: Function not found: 'yubikey.controller.count_devicfish: '/Applications/Yubico\ Authentic…' terminated by signal SIGTERM (Polite quit r

I'd really appreciate a fix for this. I purchased two YubiKeys so I could leave one plugged into each laptop and never have to worry about carrying them around. This is preventing me from fully using my YubiKey setup.

Hi, it looks like a library is missing. How did you install Yubico Authenticator?

I used the installer from the website.

That's weird. I tried reinstalling the application and everything worked fine. I'm not sure how I got into the bad state previously, but at least I can move forward now. 🤷♂

Yeah, hard to say, but I'm glad you got it working! Let us know if you have any more problems.


fix(connectivity_plus): Return valid connection type when only one available

Description
I was working on updates for example app to show newly added multiple connection types feature in a more nice way and found a bug that when only one connection type is available there is an exception in the platform interface as returned result isn't a list, but a String:

This PR fixes mentioned bug and also updates the example UI to look better:

Before

After

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
[x] No, this is not a breaking change.

On which platform did you get this error? I would like to look it up and ensure that the stream always returns an array

On Android

I hope this issue will be fixed soon.

I hope this issue will be fixed soon.

Do you experience this issue? It never made it to the stable release of the plugin.


Weekend Update

added "IsWeekendAsync", returns true if voting multiplier = x2
Fixed "GetVotersAsync" no longer required days parameter as it's obsolete, also, added created a throw exception if the bot has more than 1000 votes
Renamed "Score" to "Points"
added "IsWeekendAsync" unit test (passing)
added "GetVotersAsync" unit test (passing)
Changed naming "24h" to "12h" cooldown

A throw is not needed when you have more than 1000 votes, you can still get the last 1000

Removed Throw.

I'll look over the latest commits in an hour or two, travelling to my parents for a birthday party.

One thing I've noticed is that you set the authentication again in GetWeekendAsync, this shouldn't have to happen. Also consider using the serialised output instead of body.Contains

Alright. I will remove authorization and change .Body.Contais later today
or tomorrow
On Fri, Jul 20, 2018, 13:49 Mike<EMAIL_ADDRESS>wrote:

One thing I've noticed is that you set the authentication again in
GetWeekendAsync, this shouldn't have to happen. Also consider using the
serialised output instead of body.Contains
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DiscordBotList/DBL-dotnet-Library/pull/3#issuecomment-406677026,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ah98nDmHRkIx6SSA91IqMWFyP2sjjNe-ks5uIhg5gaJpZM4VXeXg
.

HasVoted" have to be authorized.

IsWeekend is now a non-authorized method, also I moved it into  DiscordBotListApi.cs
using "Deserialize" instead of ".Body.Contains()"


Override CSRF header for existing tabs on page load

Upon deploying in our environment I noticed that existing tabs would get the correct CSRF header on initial load but after refreshing/etc. with sessions only the new tab was using the correct CSRF header.

I'm in the middle of deploying this change in our environment and will report back with how testing went. 😄

If anyone comes across this in the future we got around this using the below patch for adding CSRF to settings to go across sessions: https://github.com/prisma-labs/graphql-playground/compare/prisma-labs:ae450c0...erran:6c350ed
    // Add "csrf.header" setting
    if (csrf) {
        properties.settings["csrf.header"] = {
            name: csrf.headerName,
            value: csrf.token
        }
    }


aes: fix build errors

Updates the hmac version requirements and code to fix the build errors
Fixes: #16
Signed-off-by: stevenhorsman<EMAIL_ADDRESS>

Hey @arronwy - this issue is causing problems in the kata-agent CCv0 build due to the dependency on this repo for the rustified pull image (e.g. the static checks failing in https://github.com/kata-containers/kata-containers/pull/3377). I may have got the fix wrong here, but it would be great if you could have a look and let me know. Thanks!

Hey @stevenhorsman . Thanks for the PR...Running the GH actions now, let's see.

@sameo - thanks for kicking off the workflow.  None of it in code I changed, but I've fixed up most of them. There was one error in src/utils/keyprovider.rs which I could fix as I think that file is generated and I've not got much experience with proto buffers to know how to add annotations.

Hi @arronwy - are you able to help with the final linting problem? Thanks.

Hi @arronwy - are you able to help with the final linting problem? Thanks.

Sure, I'll be back to office tomorrow and check this issue with @pravinrajr9

Hi @arronwy - are you able to help with the final linting problem? Thanks.

Sure, I'll be back to office tomorrow and check this issue with @pravinrajr9

utils/keyprovider.rs is auto generated code, there is a issue opened here https://github.com/hyperium/tonic/issues/876 has an open issue
we might to wait or we might need to stop generating this code from build.rs and fix manually with the patch below
`diff --git a/src/utils/keyprovider.rs b/src/utils/keyprovider.rs
index d12ce43..c481f8e 100644
--- a/src/utils/keyprovider.rs
+++ b/src/utils/keyprovider.rs
@@ -59,11 +59,13 @@ pub mod key_provider_service_client {
#[doc = r""]
#[doc = r" This requires the server to support it otherwise it might respond with an"]
#[doc = r" error."]

   #[must_use]
   pub fn send_gzip(mut self) -> Self {
       self.inner = self.inner.send_gzip();
       self
   }
   #[doc = r" Enable decompressing responses with `gzip`."]

   #[must_use]
   pub fn accept_gzip(mut self) -> Self {
       self.inner = self.inner.accept_gzip();
       self

`

@pravinrajr9 - thanks for the information and link. Given that the tonic issue hasn't been looked at for 12 days and this PR has been holding up work in kata-containers for 8 days it would be great to get a workaround in with the patch you suggested.

@sameo Since the clippy error happens on nightly build aganist auto generated code, can we merged this PR first and wait tonic upstream to fix the issue to avoid the temp fix in our repo?

@sameo Since the clippy error happens on nightly build aganist auto generated code, can we merged this PR first and wait tonic upstream to fix the issue to avoid the temp fix in our repo?

@arronwy I'd prefer if we carry @pravinrajr9 patch and disable the autogenerated code until https://github.com/hyperium/tonic/pull/892 is merged.

@arronwy @stevenhorsman @pravinrajr9 Build is fixed with a couple of fixes. Are you ok with merging it?


Complex export to repo logic

multi Grafana org export to different repos / single repo

not possible as per:
https://github.com/cstanislawski/grafana-db-exporter/issues/1
https://github.com/cstanislawski/grafana-db-exporter/issues/2
I'll create separate issues for other examples

new specific issues were created - closing


Handle a couple issues

Mention the CLI in the writing and querying data guides, Fixes https://github.com/influxdata/docs.influxdata.com/issues/54
Add some context to the first point in insights_tradeoffs.md, Fixes https://github.com/influxdata/docs.influxdata.com/issues/171
Takes care of a few spacing issues in glossary.md
Adds a brief description of CREATE SUBSCRIPTION to the InfluxQL Reference page, I think SUBSCRIBE-related things will need a more detailed discussion, but this starts to fix https://github.com/influxdata/docs.influxdata.com/issues/38

:+1:


Error importing a Superset chart with an empty metric label

Describe the bug
While importing Superset dashboards, I ran into some occurrences where a metric  would have an empty label string.  Here is the chart data as returned by the Superset API:
{
    "adhoc_filters": [],
    "bottom_margin": "auto",
    "color_scheme": "supersetColors",
    "columns": [],
    "datasource": "242__table",
    "extra_form_data": {},
    "granularity_sqla": "date",
    "groupby": [
        "type"
    ],
    "label_colors": {},
    "metrics": [
        {
            "aggregate": "SUM",
            "column": {
                "business_type": null,
                "column_name": "COUNT",
                "description": null,
                "expression": null,
                "filterable": true,
                "groupby": true,
                "id": 3772,
                "is_dttm": false,
                "python_date_format": null,
                "type": "LONGLONG",
                "type_generic": 0,
                "verbose_name": null
            },
            "expressionType": "SIMPLE",
            "hasCustomLabel": false,
            "isNew": false,
            "label": "",
            "optionName": "metric_b55n1d75khf_9fzxgcbt5ro",
            "sqlExpression": null
        }
    ],
    "order_desc": true,
    "row_limit": 100,
    "slice_id": 129,
    "time_range": "No filter",
    "time_range_endpoints": [
        "inclusive",
        "exclusive"
    ],
    "url_params": {},
    "viz_type": "dist_bar",
    "x_ticks_layout": "auto",
    "y_axis_bounds": [
        null,
        null
    ],
    "y_axis_format": "SMART_NUMBER"
}

As you can see, the label attribute is empty:
            "isNew": false,
            "label": "",
            "optionName": "metric_b55n1d75khf_9fzxgcbt5ro",

When ingesting, I get the following error:
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/.vscode-server/extensions/ms-python.python-2021.12.1559732655/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
    cli.main()
  File "/home/.vscode-server/extensions/ms-python.python-2021.12.1559732655/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main
    run()
  File "/home/.vscode-server/extensions/ms-python.python-2021.12.1559732655/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
  File "/usr/lib/python3.8/runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "metadata-ingestion/test.py", line 40, in <module>
    pipeline.run()
  File "/home/git/datahub/metadata-ingestion/src/datahub/ingestion/run/pipeline.py", line 153, in run
    for wu in itertools.islice(
  File "/home/git/datahub/metadata-ingestion/src/datahub/ingestion/source/superset.py", line 323, in get_workunits
    yield from self.emit_chart_mces()
  File "/home/git/datahub/metadata-ingestion/src/datahub/ingestion/source/superset.py", line 313, in emit_chart_mces
    chart_snapshot = self.construct_chart_from_chart_data(chart_data)
  File "/home/git/datahub/metadata-ingestion/src/datahub/ingestion/source/superset.py", line 281, in construct_chart_from_chart_data
    "Metrics": ", ".join(metrics),
TypeError: sequence item 0: expected str instance, NoneType found

Expected behavior
I think the get_metric_name() should return "" in this case.

PR to follow shortly.

Thanks for pushing a fix for this, @cccs-eric! We'll close out this issue for now.


CodeActAgent: Fix hack for multiple edits in same command

This PR changes ([\s\S]) to ([\s\S]?) to make the capturing group non-greedy. This change ensures that the regex captures the smallest set of characters that extends up to the first end_of_edit it encounters, rather than extending across multiple edit commands.
Without the fix, a bash command consisting of multiple edits would be corrupt and lead to unexpected edit results.
Related to #1663, but doesn't necessarily solve the root cause. It simply fixes a bug in the hack.
TODO:

[ ] Add an integration test
[ ] Update integration test regeneration script

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

:exclamation: No coverage uploaded for pull request base (main@f8d4b1a). Click here to learn what that means.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1684   +/-   ##
=======================================
  Coverage        ?   62.59%
=======================================
  Files           ?       96
  Lines           ?     3839
  Branches        ?        0
=======================================
  Hits            ?     2403
  Misses          ?     1436
  Partials        ?        0

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


avoid outdated crate skim

The crate skim has seen no development activites for more than a year, and depends on tuibox stalled for 2 years.
I am concerned about maintainability, and already struggle now: I am trying to build Gooseberry for Debian, where a minimum of concurrent branches of each crate is kept, and my attempts at rebasing to have tuikit link with newer nix stopped at v0.26, where Debian now has moved on to v0.27.
Obviously my work on rebasing dependencies is not your concern, but I mention them as they are indicative of a larger concern about long-term sustainability.
Would it perhaps be possible to switch from skim to the fuzzy-solving optionally built into dialoguer? Or perhaps switch from dialoguer to the more modern inquire which also optionally does fuzzy-resolving?

skim currently does quite a bit more than fuzzy search in gooseberry, it's used to generate the tui with a preview window + keyboard shortcuts and search highlighting. However, this is all compartmentalized in search.rs, so should be possible to replace it piecemeal. I don't believe inquire provides the same functionality though, will take a look if there are now other alternatives.

nucleo is loosely described as a replacement for skim.


Bump nikos - test

What does this PR do?

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the config template has been updated.

@mx-psi @albertvaka as you can see, the workflow is triggered three times (one for each label). But the script part works great ! Maybe you could use something like https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#fetch-metadata-about-a-pull-request to trigger on pull requests from dependabot directly (instead of on label events)

Where do you see it running three times? I can't find it 🤔
Also, why did it run here and not in #10680?

https://github.com/DataDog/datadog-agent/actions/workflows/dependabot-pr.yml

I think it runs on label change so if the PR is only rebased/recreated, the event is not retriggered because the label set did not change

I think it runs on label change so if the PR is only rebased/recreated, the event is not retriggered because the label set did not change

That checks out, removing and adding the dependencies label made it work. It doesn't run on dependabot PRs though, because Github Actions is not allowed to commit (see here).
My proposal is to have an if rule that triggers this if (1) the author is dependabot and (2) the milestone is other than triage. That way an engineer can, whenever they are going to review the PR, set the milestone correctly and it will autocommit the fixes for them. What do you think?

Seams like a good idea yes


How to write a Workflow for automatic synchronization of forks?

Describe the feature or enhancement
As the title suggests, I use Vercel to deploy umami, and every time umami is updated, I need to manually sync the fork to update. Is there a Workflow that provides automatic updates for the fork?

I believe Github Actions is the only way to truly automate it. Outside of that Github makes it really easy to fetch and merge the upstream changes, but yes its manual.


create qimen dunjia chart

I'm about to make a qimen dunjia diagram, but I can't find the calendar yang dun and yin dun, can you tell me where they are?
which method thank you

not supported yang dun and yin dun.


[CELEBORN-1389] Bump Dropwizard version from 3.2.6 to 4.2.25

What changes were proposed in this pull request?
Bump Dropwizard version from 3.2.6 to 4.2.25. Meanwhile, introduce metrics_jvm_thread_peak_count_Value and metrics_jvm_thread_total_started_count_Value in celeborn-jvm-dashboard.json.
Why are the changes needed?
Dropwizard metrics has released v4.2.25 including some bugfixes and improvements including:

[JVM] Fix maximum/total memory calculation: https://github.com/dropwizard/metrics/pull/3125
[Thread] Add peak and total started thread count to ThreadStatesGaugeSet: https://github.com/dropwizard/metrics/pull/1601

Backport:

https://github.com/apache/spark/pull/26332
https://github.com/apache/spark/pull/29426
https://github.com/apache/spark/pull/37372

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual test.

Ping @pan3793, @onebox-li.

Have you verified the Grafana Dashboard?

@pan3793, I have not verified the dashboard changes. But I just added metrics_jvm_thread_peak_count_Value and metrics_jvm_thread_total_started_count_Value in dashboard, which works well in theory.

Thanks for mention, the grafana dashboard looks fine to me.

@pan3793, PTAL.


Trident through a Firewall

We are attempting to setup a Trident backend on a NetApp SVM that is behind a firewall, with NATed addresses for the managementLIF and the dataLIF.  Is this a supported setup?
Here are some of the error messages we are getting from Trident:
"Could not determine controller serial numbers. API status: failed, Reason: Unable to find API: system-node-get-iter, Code: 13005"
"Could not initialize storage driver." error="error validating ontap-nas driver: driver validation failed: data LIF validation failed: could not find Data LIF for <IP_ADDRESS>"
"problem initializing storage driver 'ontap-nas': error validating ontap-nas driver: driver validation failed: data LIF validation failed: could not find Data LIF for <IP_ADDRESS>" backend= handler=AddBackend
We are seeing this on the NetApp side for each attempt:
Unable to find API: system-node-get-iter :: ONTAPI :: Error

@jakewarren81 This isn't a supported configuration. Kubernetes, Trident, the management LIF, and data LIFs should not be separated by NAT.

Hi @cesarandreslopez,
The ports that Trident uses is included in the Trident documentation.


Error Sending Image Message

I got the following error when sending image message:
error sending message: image upload failed: Post https:///mms/image/Wj9a-bDlz3_IJXvdJGK-20lZ6rznV2tB4dqVwNs9e9c=?auth=&token=Wj9a-bDlz3_IJXvdJGK-20

Yes and we solved the problem, please check the pull request


OSX Window/Dialogs Ordering

Describe the bug
When opening a Folder/File dialog from a child window, when the Folder/File dialog closes, focus is moved back to MainWindow instead of the open child window. The child window ends up behind the main window.
Clicking anywhere on the main window, brings the child window back in front of the main window.
To Reproduce
Open a File/Folder browse window from within the context of a child window, complete the window to pass control back to the app.
Expected behavior
Focus should shift back to the child window, not the application main window.

OS: Only seeing this issue on macOS (M1 mini running Monterey)

Additional context
My main window is set like:
public override void OnFrameworkInitializationCompleted()
{
	if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
		desktop.MainWindow = _mainWindow;
	else if (ApplicationLifetime is ISingleViewApplicationLifetime singleView)
		singleView.MainView = _mainWindow;
}

The child window is launched like:
public async void ShowDialog<TViewModel, TView>(TView view, TViewModel viewModel, Action<TViewModel> callback)
    where TView : Control where TViewModel : DialogViewModel
{
    var win = new DialogWindow
    {
        WindowStartupLocation = WindowStartupLocation.CenterOwner,
    };
    var contentControl = win.FindControl<ContentControl>("Host");
    contentControl.Content = view;
    win.DataContext = viewModel;

    if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
    {
        var accept = await win.ShowDialog<bool>(desktop.MainWindow);
        if (accept)
        {
            callback(viewModel);
        }
    }
}

This is all working flawlessly on Windows. I have tried setting TopMost but there are obvious issues as then the child window is always in front of any dialogs.
I'm seeing the same behaviour if I use either System or Managed dialogs.
Possibly Related
Also on OSX it seems there are issues related to this with ToolTips. On OSX when hitting the button that opens the Child window, the tooltip will stay open and will even appear on top of any dialogs opened by the child window.

You open the dialog with your MainWindow as owner. If you are in a child window, I think you need to pass this window as owner.
var accept = await win.ShowDialog<bool>(theOwnerWindowToReturnTo);
If you want to stick with MVVM, it may be not an easy task to figure out the current window. I'm cheating in that case:
        // This code is inside my App.axaml.cs file.
        public static Window GetActiveWindowOrMainWindow()
        {
            if (Current?.ApplicationLifetime is ClassicDesktopStyleApplicationLifetime desktop)
            {
                return desktop.Windows.SingleOrDefault(x => x.IsActive) ?? desktop.MainWindow;
            }

            throw new InvalidOperationException(
                "Cannot find a Window when ApplicationLifetime is not ClassicDesktopStyleApplicationLifetime");
        }

There is a better way, see this discussion: https://github.com/AvaloniaUI/Avalonia/discussions/7130
Hope it helps a bit and happy coding
Tim

Whoa ... I can't believe I missed this as a potential solution. Will investigate, thanks.


feat: added basic and complete example

Description
Starting with a basic EN module that simply deploys the service. Added basic and complete example.
Release required?

[ ] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[X] Major release (X.x.x)

Release notes content
Initial module release.
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

/run pipeline

/run pipeline

@Ak-sky I'm seeing several requested changes not done yet. Are you sure you pushed all changes?
Also, can you update the badge in the readme to be Stable (since it will be once this PR is merged). Source code for stable is:
[![Stable (With quality checks)](https://img.shields.io/badge/Status-Stable%20(With%20quality%20checks)-green)](https://terraform-ibm-modules.github.io/documentation/#/badge-status)

I have just pushed the code along with the badge update in readme.

/run pipeline

Left some comments. If there is no extra cost, or quota issued with lite instances, I would suggest you run the basic example in pr_test.go

I think we can

/run pipeline

Left some comments. If there is no extra cost, or quota issued with lite instances, I would suggest you run the basic example in pr_test.go

I think we can

Moving back basic example to other test due to below -

/run pipeline

/run pipeline

@Ak-sky Seems to be an issue:
│ Error: ListIntegrationsWithContext failed Instance ID doesn't exist
│ {
│     "StatusCode": 404,
│     "Headers": {
│         "Cf-Cache-Status": [
│             "DYNAMIC"
│         ],
│         "Cf-Ray": [
│             "822555a74df4237a-SJC"
│         ],
│         "Content-Type": [
│             "application/json"
│         ],
│         "Date": [
│             "Tue, 07 Nov 2023 11:46:14 GMT"
│         ],
│         "Server": [
│             "cloudflare"
│         ],
│         "Strict-Transport-Security": [
│             "max-age=31536000; includeSubDomains"
│         ],
│         "X-Envoy-Upstream-Service-Time": [
│             "258"
│         ],
│         "X-Request-Id": [
│             "beef4ce2-d277-4a4d-aa53-9931b06f856d"
│         ]
│     },
│     "Result": {
│         "errors": [
│             {
│                 "code": "wrong_instance_id",
│                 "message": "Instance ID doesn't exist",
│                 "more_info": "https://cloud.ibm.com/apidocs/event-notifications#event-notifications-api-authentication"
│             }
│         ],
│         "status_code": 404,
│         "trace": "d10e5029-3e5b-488f-a98d-2a7bc8e82bef"
│     },
│     "RawResult": null
│ }
│
│
│   with module.event_notification.data.ibm_en_integrations.en_integrations,
│   on ../../main.tf line 43, in data "ibm_en_integrations" "en_integrations":
│   43: data "ibm_en_integrations" "en_integrations" {
│
╵}

@Ak-sky Seems to be an issue:
│ Error: ListIntegrationsWithContext failed Instance ID doesn't exist
│ {
│     "StatusCode": 404,
│     "Headers": {
│         "Cf-Cache-Status": [
│             "DYNAMIC"
│         ],
│         "Cf-Ray": [
│             "822555a74df4237a-SJC"
│         ],
│         "Content-Type": [
│             "application/json"
│         ],
│         "Date": [
│             "Tue, 07 Nov 2023 11:46:14 GMT"
│         ],
│         "Server": [
│             "cloudflare"
│         ],
│         "Strict-Transport-Security": [
│             "max-age=31536000; includeSubDomains"
│         ],
│         "X-Envoy-Upstream-Service-Time": [
│             "258"
│         ],
│         "X-Request-Id": [
│             "beef4ce2-d277-4a4d-aa53-9931b06f856d"
│         ]
│     },
│     "Result": {
│         "errors": [
│             {
│                 "code": "wrong_instance_id",
│                 "message": "Instance ID doesn't exist",
│                 "more_info": "https://cloud.ibm.com/apidocs/event-notifications#event-notifications-api-authentication"
│             }
│         ],
│         "status_code": 404,
│         "trace": "d10e5029-3e5b-488f-a98d-2a7bc8e82bef"
│     },
│     "RawResult": null
│ }
│
│
│   with module.event_notification.data.ibm_en_integrations.en_integrations,
│   on ../../main.tf line 43, in data "ibm_en_integrations" "en_integrations":
│   43: data "ibm_en_integrations" "en_integrations" {
│
╵}

Yes @ocofaigh, I am debugging this issue.

/run pipeline

/run pipeline

/run pipeline

Test is failing because whichever the region is being selected randomly from the test, it is not using the same region for the resources.
Here TF apply is with eu-de region.

TestRunCompleteExample 2023-11-07T11:45:11Z logger.go:66: Running command terraform with args [apply -input=false -auto-approve -var resource_group=geretain-test-event-notifications -var resource_tags=[] -var prefix=event-notification-complete-ohxuum -var region=eu-de -lock=false]

but en resources are created in other region, hence data block to fetch integrations are failing.

/run pipeline

PR is filing with- looking into this.

TestRunCompleteExample 2023-11-08T07:11:33Z logger.go:66: │         "errors": [
TestRunCompleteExample 2023-11-08T07:11:33Z logger.go:66: │             {
TestRunCompleteExample 2023-11-08T07:11:33Z logger.go:66: │                 "code": "SERVICE_TO_SERVICE_UNAUTHORIZED_ERROR",
TestRunCompleteExample 2023-11-08T07:11:33Z logger.go:66: │                 "message": "Unauthorized, service to service authorization is not enabled.",
TestRunCompleteExample 2023-11-08T07:11:33Z logger.go:66: │                 "more_info": "https://cloud.ibm.com/apidocs/event-notifications"
TestRunCompleteExample 2023-11-08T07:11:33Z logger.go:66: │             }
TestRunCompleteExample 2023-11-08T07:11:33Z logger.go:66: │         ],

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add controller node labels if specified

It appears that the userdata of controller is missing --node-labels on kubelet
even if it is specified in cluster config.

Codecov Report

Merging #577 into master will increase coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #577      +/-   ##
==========================================
+ Coverage    37.7%   37.76%   +0.06%
==========================================
  Files          47       47
  Lines        3212     3212
==========================================
+ Hits         1211     1213       +2
+ Misses       1800     1798       -2
  Partials      201      201

Impacted Files
Coverage Δ

core/controlplane/config/config.go
55.26% <0%> (+0.23%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 080f788...43f7073. Read the comment docs.

I just realised there is an issue: #574

@cheungpat Great! Thanks for your contribution 👍


Rename old fake BackendV2 classes

What is the expected enhancement?
https://github.com/Qiskit/qiskit-terra/pull/7643 implemented mocked IBM Quantum Systems backends using the new BackendV2 interface.
There were older fake BackendV2 classes that were created before for testing. We need to rename, reorganize or remove those classes
https://github.com/Qiskit/qiskit-terra/blob/8105a80c84ce2447a1e224b85f4f56e98f074763/qiskit/test/mock/fake_mumbai_v2.py

[x] FakeMumbaiV2. Fixed by https://github.com/Qiskit/qiskit-terra/pull/7839

https://github.com/Qiskit/qiskit-terra/blob/8105a80c84ce2447a1e224b85f4f56e98f074763/qiskit/test/mock/fake_backend_v2.py

[ ] FakeBackendV2
[ ] FakeBackend5QV2
[ ] FakeBackendSimple

Reopening as #7839 only partially fixed this issue.

@mtreinish What would you suggest to replace the old FakeBackendV2 class? Should I choose one of the fake IBM Quantum systems to replace it, e.g. FakeMumbaiV2? And use a FakeBelemV2 to replace the usage of FakeBackend5QV2?

I decided to use FakeManilaV2 which has 5Q qubits to replace FakeBackendV2, FakeBackend5QV2 and FakeBackendSimple. One thing I am not sure is how to deal with FakeBackendV2LegacyQubitProps.
https://github.com/Qiskit/qiskit-terra/blob/main/qiskit/test/mock/fake_backend_v2.py#L103-L109

@mtreinish Having a deeper look at the different classes of these fake backends.
FakeBackendSimple is only used in https://github.com/Qiskit/qiskit-terra/blob/main/test/python/algorithms/test_backendv2.py and https://github.com/Qiskit/qiskit-terra/blob/6aacabd99122be2c2d59ef29655217db6ab33f0f/test/python/providers/test_backend_v2.py#L68-L71 so I can probably replace it with a fake V2 IBM Quantum backend with more than 18 qubits (required for the shor factoring test) or (probably better approach) a fake V2 QasmSimulator.
The rest of them are written in a very specific way and the tests specifically test the details of these backends. I am not sure how to generalize them to base on the new FakeBackendV2 or a specific instance of a fake V2 IBM Quantum backend.
Or maybe I should just rename them and improve docstrings to describe what they are used for?

I think this is can be closed, via #10918


CFD coupling to use AD15 mesh only

This PR is ready for merging
Feature or improvement description
The OpenFOAM module had been using both the ElastoDyn structural mesh (for loads) and the AeroDyn 15 mesh (for motions).  After much in person discussions with @tonyinme, @gantech, @michaelasprague, @jjonkman, and @ebranlard
(see #1232), we settled on using only the AeroDyn 15 mesh.
This also allows BeamDyn to be used with CFD codes.
Related issue, if one exists

First step of corrections in #1232
Closes https://github.com/Exawind/amr-wind/issues/673

Impacted areas of the software
Glue code:

Pass tower and blade info from AD15 instead of ElastoDyn

OpenFOAM module:

remove all ElastoDyn information
remove unnecessary intermediate meshes in mapping (extra Line2 mesh)
Some code factoring (indentation mostly)
improved error handling

Additional supporting information
The original problem was a mismatch in location of motion points and force points passed to CFD.  The velocity points were taken from the AD15 input mesh (interpolated to finer discretization), but the force points were set based on the ElastoDyn blade mesh (also refined discretization).
This PR is a short term fix for the mesh issue.  The long term fix will involve modifications to AD15 and interface changes for SOWFA, NALU-Wind, and AMR-Wind:

AD15 interpolate points to refine the mesh

use nearest neighbor for polar

will require passing to CFD the point locations and number of points instead of receiving the number of points

Recommend squash merge for cleaner history.
Test results, if applicable
@tonyinme  will post relevant info from AMR-Wind tests inline below

Some updates from @tonyinme:
Overlay of the force and velocity measurement locations.  The force positions are shown for 3 timesteps and the velocity positions are shown for one timestep.  The latest timestep for force position overlaps with the velocity locations as expected.

Comparison of tangential forces before and after the fixes in this PR:

For anyone following this PR, I squashed down the commit history for a cleaner looking merge commit.

Hello,@jjonkman @andrew-platt @ebranlard
Hi , I tried to calculate the IEA15MW wind turbine model in openfast+sowfa. The IEA15MW wind turbine calculation example I found corresponds to a higher version of openfast (openfast-2.6.0 onwards). When I try to couple openfast3.4.1+openfoam2.4.x+sowfa2.4.0 an error message appears. The error message tells me that the horizontalAxisWindTurbinesALMOpenFAST.C file cannot find the numScInputs and numScOutputs parameters.
I double-checked the OpenFAST.H file in openfast 3.4.1 and indeed there are no numScInputs and numScOutputs parameters.
Since I had previously coupled openfast2.6.0+openfoam2.4.x+sowfa2.4.0 successfully and calculated the arithmetic for a 5MW wind turbine, I compared the OpenFAST.H file of openfast-2.6.0 with that of openfast-3.4.1 and found that in the 2.6.0 version but not in 3.4.1.
I would therefore like to ask
(1) Is it possible that sowfa 2.4.0 cannot be installed in coupling with openfast 3.4.1?
(2) If not, what can I do in order to couple the latest version of openfast with sowfa2.4.0?
(3) If sowfa 2.4.0 can only be coupled with openfast 2.6.0, what can I do to calculate the IEA15MW case? Do I change the input file of the IEA15MW example based on openfast 3.4.1 to the openfast 2.6.0 version? Or is there any other way?
Thank you for your answer!
OpenFAST.H file for openfast2.6.0

OpenFAST.H file for openfast3.4.1


Release version with updated dependency to yaml-rust2

This is already merged in, but a new version of config hasn't been released. Could one of the maintainers release a new version?

Hi! Same question as @tahaafzal5. Any plans to release a new version?

Update for anyone subscribed here. The project has now been moved to the rust-cli org, so maintenance will pick up again and a release will be handled AFAIK :)


1.0.0 🤘🎸

Roq n roll 🤘🎸

@mcruzdev you need a name in all your modules 🤣

@mcruzdev you need a name in all your modules 🤣
quarkiverse/quarkus-qute-web@bb1b774

no worries, I could have done the same 🫣😇

@mcruzdev I give you the honour of merging 1.0.0 for all the great effort you have been putting in Roq (when CI's done :)


set the default version to 1.0 (again)

this should have been done with:
https://github.com/crowbar/crowbar-client/pull/99

+1

+1 apart from the float issue (which I guess is best handled in a separate PR)