MetricReader is not bound to a MetricProducer

What version of OpenTelemetry are you using?
    "@opentelemetry/api": "^1.1.0",
    "@opentelemetry/exporter-prometheus": "^0.28.0",
    "@opentelemetry/host-metrics": "^0.27.1",

What version of Node are you using?
v16.13.0
What did you do?
const { MeterProvider } = require('@opentelemetry/sdk-metrics-base');
const { HostMetrics } = require('@opentelemetry/host-metrics');
const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus');

const exporter = new PrometheusExporter(
  {
    startServer: true
  }, () => {
    console.log('prometheus scrape endpoint: http://localhost:9464/metrics')
  }
)

const meterProvider = new MeterProvider({
  exporter,
  interval: 2000
})

const hostMetrics = new HostMetrics({ meterProvider, name: 'example-host-metrics' })
hostMetrics.start()

const fastify = require('fastify')()
fastify.listen(8080)

What did you expect to see?
Host metrics
What did you see instead?
By reaching the URL: http://localhost:9464/metrics
I get:
# failed to export metrics: Error: MetricReader is not bound to a MetricProducer

Additional context
I was trying to add the HostMetrics to the opentelemetry.NodeSDK component, but unsuccessfully. So I tried the basic example, and I get the same error.

Digging a bit, I think it relates to https://github.com/open-telemetry/opentelemetry-js-contrib/issues/983

Metrics API is still experimental and we are working to adopt the latest metrics spec changes towards GA. From @opentelemetry/sdk-metrics-base v0.28.0, you'll need to apply the following changes the get the example in the OP working:
const exporter = new PrometheusExporter(
  {
    startServer: true
  }, () => {
    console.log('prometheus scrape endpoint: http://localhost:9464/metrics')
  }
)

const meterProvider = new MeterProvider({
-   exporter,
-   interval: 2000
})

+ meterProvider.addMetricProvider(exporter);

And the @opentelemetry/host-metrics that are compatible with sdk-metrics-base v0.28.0 is pending release: https://github.com/open-telemetry/opentelemetry-js-contrib/pull/947

Applying your suggestion leads to:

TypeError: meterProvider.addMetricProvider is not a function

My versions
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>deduped
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>deduped

Should I wait for @opentelemetry/host-metrics v0.28?

Should I wait for @opentelemetry/host-metrics v0.28?

yes

Is there any release plan?

I'm cutting a release today sorry. The release automation failed while we were at kubecon and i'm looking into it

Is there any updates?, I still get the same error even with @opentelemetry/host-metrics v0.28

I will get the chance to test it by my side on the next days

@Eomm any update on if this is still an issue?

Just tried the doc example but same error for me by using node v16.x: https://www.npmjs.com/package/@opentelemetry/host-metrics
Switching to node.js v18.6.0 I get the same:

I wonder if it is an OS issue (I'm using mac os)

Would you mind updating the dependency opentelemetry/sdk-metrics-base with opentelemetry/sdk-metrics v0.33.0? It has been renamed in the recent release. Thank you!

Sure, but.. the same result.
Am I the only one that is facing this issue?
I have rm -rf node_modules and reinstalled only these packages:
    "@opentelemetry/exporter-prometheus": "^0.33.0",
    "@opentelemetry/host-metrics": "^0.30.0",
    "@opentelemetry/sdk-metrics": "^0.33.0",
    "@opentelemetry/sdk-node": "^0.33.0",

Here the code I'm running:

Click to expand!
const { MeterProvider } = require('@opentelemetry/sdk-metrics')
const { HostMetrics } = require('@opentelemetry/host-metrics')
const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus')

const exporter = new PrometheusExporter(
  {
    startServer: true
  }, () => {
    console.log('prometheus scrape endpoint: http://localhost:9464/metrics')
  }
)

const meterProvider = new MeterProvider({
  exporter,
  interval: 2000
})

const hostMetrics = new HostMetrics({ meterProvider, name: 'example-host-metrics' })
hostMetrics.start()

// const fastify = require('fastify')()
// fastify.listen(8080)
setInterval(() => { console.log('tick') }, 10000)

Sorry but you have to apply the patch mentioned at https://github.com/open-telemetry/opentelemetry-js-contrib/issues/1014#issuecomment-1120442125 too.

Yeah, I did it, but I keep getting the is not a function error and the module is up to date:
$ npm ls @opentelemetry/sdk-metrics
<EMAIL_ADDRESS>/_experiments/prj
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>deduped
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>deduped

$ node prova.js
/_experiments/prj/prova.js:17
meterProvider.addMetricProvider(exporter)
              ^

TypeError: meterProvider.addMetricProvider is not a function
    at Object.<anonymous> (/_experiments/prj/prova.js:17:15)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

Sorry, it's not addMetricProvider but rather addMetricReader. The code snippet I use is as follows:
const { MeterProvider } = require('@opentelemetry/sdk-metrics');
const { HostMetrics } = require('@opentelemetry/host-metrics');
const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus');

const exporter = new PrometheusExporter(
  {
    startServer: true
  }, () => {
    console.log('prometheus scrape endpoint: http://localhost:9464/metrics')
  }
)

const meterProvider = new MeterProvider()
meterProvider.addMetricReader(exporter)

const hostMetrics = new HostMetrics({ meterProvider, name: 'example-host-metrics' })
hostMetrics.start()

Thanks, it works!
I should study a but the APIs


SuggestModel: editor model can change between request for provideSuggestionItems and results

Does this issue occur when all extensions are disabled?: No (At least, it's much harder to reproduce because there aren't enough extensions participating in autocompletion to cause an issue with the async resolution timing)

VS Code Version: 1.60.0
OS Version: MacOS 11.5.1

Steps to Reproduce:

Apply this patch to the vscode source to get a debugger breakpoint when the problem occurs:
diff --git a/src/vs/editor/contrib/suggest/suggestModel.ts b/src/vs/editor/contrib/suggest/suggestModel.ts
index 747f78a4b4c..5ffbd091a7a 100644
--- a/src/vs/editor/contrib/suggest/suggestModel.ts
+++ b/src/vs/editor/contrib/suggest/suggestModel.ts
@@ -116,6 +116,7 @@ export class SuggestModel implements IDisposable {
        readonly onDidCancel: Event<ICancelEvent> = this._onDidCancel.event;
        readonly onDidTrigger: Event<ITriggerEvent> = this._onDidTrigger.event;
        readonly onDidSuggest: Event<ISuggestEvent> = this._onDidSuggest.event;
+       wordAtPosition?: string;

        constructor(
                private readonly _editor: ICodeEditor,
@@ -431,6 +432,7 @@ export class SuggestModel implements IDisposable {
                const itemKindFilter = SuggestModel._createItemKindFilter(this._editor);
                const wordDistance = WordDistance.create(this._editorWorkerService, this._editor);

+               this.wordAtPosition = this._editor.getModel().getWordAtPosition(this._editor.getPosition())?.word;
                const completions = provideSuggestionItems(
                        model,
                        this._editor.getPosition(),
@@ -446,6 +448,10 @@ export class SuggestModel implements IDisposable {
                        if (!this._editor.hasModel()) {
                                return;
                        }
+                       const word = this._editor.getModel().getWordAtPosition(this._editor.getPosition())?.word;
+                       if (this.wordAtPosition !== word) {
+                               debugger;
+                       }

                        let clipboardText = existing?.clipboardText;
                        if (!clipboardText && completions.needsClipboard) {

i.e. save the word at position right before provideSuggestionItems and then put a debugger statement in the Promise.all if it is different.

Enable a few extensions that are completion providers for the document type. I've been using an HTML with built in "HTML Language Features" and "Angular Language Service" extension
Starting at a location that would trigger a new completion model (i.e., not on an exiting word), type two letters very quickly.
If done quickly enough (or the completion providers have the right amount of delay), this will trigger the breakpoint. The result here is that if the editor.suggest.insertMode is replace, the replacement will be incorrectly computed because the completion results were retrieved when the document had different text. This means the replacement will delete more characters than it should.

This was found when investigating a bug report for our language service extension (https://github.com/angular/vscode-ng-language-service/issues/1503)

editor model can change between request for provideSuggestionItems and results

That's expected - we cannot stop the world and prevent typing when asking for completions. On the renderer we keep track of the position at which completion has been requested and later add such deltas to the completions. For completion providers it is vital to compute the range that it wants to replace/insert synchronously e.g. before invoking an async computation

Hi @jrieken, thanks for the quick response. I suspected there was logic somewhere that did that adjustment.
Sorry for not being clear in the report, but the problematic suggestions were coming from VSCode’s editor.suggest.show words, not from another extension so I believe the issue is still with something in VSCode.
Do you have a pointer to where those replacement ranges are computed? I can spend a bit more time debugging where the problem happens - I’m just unfamiliar with the codebase so it’s a bit difficult to do.


NIFI-8128: add support for specifying a password for Sentinel

Summary
NIFI-8128
In order to reproduce the issue in a test case the Redis Sentinel setting sentinel auth-pass is required, which is only available in a newer Redis server binary as the one bundled into the com.github.kstyrc:embedded-redis dependency.
Thus I bundled a more recent binary (for Linux only).
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

[x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[x] Pull Request based on current revision of the main branch
[x] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[x] Build completed using mvn clean install -P contrib-check

[x] JDK 17

Licensing

[x] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[x] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[x] Documentation formatting appears as expected in rendered files

@exceptionfactory Thanks for the quick review.
I understand. I was thinking the same, but assumed it might be okay-ish due to the fact, that the test library used embedded-redis does the same.
I'll take a look at replacing embedded-redis, which hasn't seen maintenance for a long time by the way, with Testcontainers.
If that proves to time consuming I'd propose to remove the binary and @Disable the one test that requires a newer version completely, with an hint that in order to execute it, one must provide a newer binary locally.
I think it's a good thing to at least have a test case that reproduces an undesired behaviour, before fixing it.
Would you be fine with both approaches?

I removed both the binary file and the dependency on the unmaintained embedded-redis test library.
It proved a little more complicated than anticipated to get the tests working with Testcontainers, due to the auto-discovery mechanisms of Redis (Sentinel), but it seems to work now.
I would appreciate if you'd take another look at the PR, @exceptionfactory.

I applied the recommended changes, @exceptionfactory. Thank you for the code review.


Compatibility with Magento 2.4.0

I've used this extension on a M2.3.0 shop and it worked flawlessly. Have you by any chance tested it with M2.4.0?

No not yet
On Tue, 15 Sep 2020 at 18:25, ThomasMW<EMAIL_ADDRESS>wrote:

I've used this extension on a M2.3.0 shop perfectly. Have you by any
chance tested it with M2.4.0?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/elgentos/regenerate-catalog-urls/issues/39, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADJKAFEGKRV4MK522DV2S3SF6IOJANCNFSM4RNMOF3Q
.

We have by now, works fine.

Excellent news Peter, thanks!


Allow parser function (@vue/compiler-sfc) passing parserOptions to the parser

What problem does this feature solve?
Currently the parse function of @vue/compiler-sfc doesn't have the ability to passing parse options to the parser.
https://github.com/vuejs/vue-next/blob/e2469fd01434a75b80e350201c60bcaad5e392ba/packages/compiler-sfc/src/parse.ts#L88
What does the proposed API look like?
function parse(
  source: string,
  {
    sourceMap = true,
    filename = 'anonymous.vue',
    sourceRoot = '',
    pad = false,
    compiler = CompilerDOM
    compilerOptions = {}
  }: SFCParseOptions = {}
): SFCParseResult

The SFC parser is opinionated, can you put your use case here?

I just want to use the isNativeTag option so I can determine which tag is a component or not.

The SFC parser is for SFC files, which is opinionated and does not mean letting users customize their behavior. But you can use a lower-level API to manually implement your needs


Joezhong fix groupby bug in Spark

Related to Issue #179. I have comment out some assert in AsyncAggMultiTierTest because I find the output of case when column can be nondeterministic.

Thanks for the fix.
I think the non-deterministic ordering is due to this line https://github.com/mozafari/verdictdb/blob/yongjoo/src/main/java/org/verdictdb/core/querying/ola/AggMeta.java#L89
I used HashMap while I should have used TreeMap. Can you do the following and see these changes fix the non-deterministic ordering problem?

Change the line to use TreeMap: https://github.com/mozafari/verdictdb/blob/yongjoo/src/main/java/org/verdictdb/core/querying/ola/AggMeta.java#L89
Change this line to use TreeMap as well: https://github.com/mozafari/verdictdb/blob/yongjoo/src/main/java/org/verdictdb/core/querying/ola/TierCombination.java#L19
Let TierCombination implement Caparable while the comparison is performed using tableToTier.keySet().

Just for your understanding, tableToTier contains "(schema, table1) -> 0, (schema, table2) -> 1", so tableToTier.keySet() will be "{(schema, table1), (schema, table2)} in this case.

Can you also change this line: https://github.com/mozafari/verdictdb/blob/yongjoo/src/main/java/org/verdictdb/core/querying/ola/AsyncAggExecutionNode.java#L280
It is using HashMap too. If the UnnamedColumn does not work for TreeMap, using List should be fine.

Codecov Report

:exclamation: No coverage uploaded for pull request base (yongjoo@7aa2322). Click here to learn what that means.
The diff coverage is 77.78%.

@@            Coverage Diff             @@
##             yongjoo     #180   +/-   ##
==========================================
  Coverage           ?   71.86%
==========================================
  Files              ?      140
  Lines              ?     8102
  Branches           ?     1275
==========================================
  Hits               ?     5822
  Misses             ?     1949
  Partials           ?      331

Impacted Files
Coverage Δ

...db/core/querying/ola/AggCombinerExecutionNode.java
95.72% <100%> (ø)

...tdb/core/querying/ola/AsyncQueryExecutionPlan.java
89.1% <50%> (ø)

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 7aa2322...776fde1. Read the comment docs.


[FLINK-36701][cdc-runtime] Add steps to get and emit schemaManager's latest evolvedSchema when SinkDataWriterOperator handles FlushEvent

Currently, directly after a failover, when the pipeline first handles a schema change event (e.g. AddColumnEvent) and then a DataChangeEvent, it may cause the job to fail again as sink has repeatedly applied that schema change.
The issue is revealed as follows:

I add steps to get and emit schemaManager's latest evolvedSchema when SinkDataWriterOperator handles FlushEvent. If the operator doesn't have a local cache of the schema when handling the flushevent, it will request Schema Manager's latest evolved schema. At this point the evolved schema is the same with the sink table's, as the schema change event hasn't been applied to the evolved schema by the master yet.
Now the new process is changed as follows:

Thanks for @Jzjsnow's clear and detailed diagram!
Just noticed that we still lack failover recovering tests for pipeline jobs. Would you like to add some based on MySqlSourceITCase#testMySqlParallelSource and trigger TM/JM Failures among different phases?


Added detail about GCCH and DoD meeting limits to limits-specifications-teams.md

Closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/7204.

Closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/7217.
@cichur could you kindly help to confirm this information? It seems that there is a lot of confusion about this sentence. Also, we should confirm if the 20,000 attendees limit will be available through June 30, 2021 or end of the year.
Thanks!

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.


Nginx custom configuration

Describe the bug
I don't see a way to override the nginx configuration, other than maybe getting creative with docker-composer-override, but the documents state to override this file .ddev/nginx_full/nginx-site.conf, but this file does not exist on my local instance.  Perhaps the documentation needs to be updated?
To Reproduce
See documentation:
https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/
Section: Providing custom nginx configuration
Start a new Drupal 8 instance.
Observe that .ddev/nginx_full directory does not exist.
Expected behavior
.ddev/nginx_full/nginx-site.conf should be created when a new instance is set up.
.ddev/nginx_full/nginx-site.conf may be overridden as the documentation indicates.
Version and configuration information (please complete the following information):
ddev version v1.14.2
Ubuntu 18.04
Docker version 19.03.6, build 369ce74a3c
Additional context
Drupal 8 project

Please upgrade to current v1.15.3 (which is what the docs reference).
If you'd like to use v1.14.2 still (I don't recommend that) the docs for doing it with that are at https://ddev.readthedocs.io/en/v1.14.2/users/extend/customization-extendibility/
But it was a lot more work. Upgrading is simple. https://github.com/drud/ddev/releases

Closing, but happy to continue the conversation here or elsewhere.


Info on how/where to get google maps API key

Added to wiki: https://github.com/mhulse/kludgy/wiki/Google-Maps-API-key
Closing.


IPv6 didn't work

I have a server from Hetzner on which I've installed the OpenVPN with this documentation: ipv6.
I have ipv6 subnet from Hetzner, e.g. 2000:dead:beaf:c0d3::/64.
I have configured Docker with IPv6:
# /etc/docker/daemon.json
{
  "ipv6": true,
  "fixed-cidr-v6": "2001:db8:1::/64"
}

I've replaced IP6_PREFIX with my ipv6 subnet:
Environment="IP6_PREFIX=2000:dead:beaf:c0d3::/64"

There is no error, but, it didn't work.
Am I missing something?

The solution https://github.com/kylemanna/docker-openvpn/issues/366


feat(v2: allow init project via npm

Motivation
When executing the release script during testing of #3727, I encountered that using yarn I cannot install all the packages. After some investigation, I realized that there is no such problem with npm, so I think this setting will be useful.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan

Build packages/docusaurus-init
Run node packages/docusaurus-init/bin/index.js init website-with-npm classic --use-npm
The installation of packages for the new site will happen via npm (not yarn), which will be specified in the output

Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

➤ YN0000: Successfully set enableGlobalCache to true
Usage Error: The nearest package directory (/home/runner/work/docusaurus/docusaurus/test-website) doesn't seem to be part of the project declared in /home/runner/work/docusaurus/docusaurus.

- If the project directory is right, it might be that you forgot to list test-website as a workspace.
- If it isn't, it's likely because you have a yarn.lock or package.json file there, confusing the project root detection.

$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds]
Error: Process completed with exit code 1.

Strange :eyes:

Maybe adding it to the workspace would help?
  "workspaces": [
    "packages/*",
    "website",
    "website-1.x",
    "website-1.x-migrated",
    "packages/docusaurus-init/templates/*"
+    "test-website",
  ],

Maybe adding it to the workspace would help?

Done it, but for some unknown reason, the E2E test still falls :(

don't see the problem, maybe try to revert some parts of the code and see if it improves in any way?

  ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR lerna ERR! yarn run build exited 1 in '@docusaurus/init'
  ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR lerna ERR! yarn run build stdout:
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(9,16): error TS7016: Could not find a declaration file for module 'fs-extra'. '/home/runner/.yarn/berry/cache/fs-extra-npm-8.1.0-197473387f-7.zip/node_modules/fs-extra/lib/index.js' implicitly has an 'any' type.
  ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR   Try `npm install @types/fs-extra` if it exists or add a new declaration (.d.ts) file containing `declare module 'fs-extra';`
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(10,24): error TS2307: Cannot find module 'child_process' or its corresponding type declarations.
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(11,22): error TS7016: Could not find a declaration file for module 'inquirer'. '/home/runner/.yarn/berry/cache/inquirer-npm-7.1.0-b82227f199-7.zip/node_modules/inquirer/lib/inquirer.js' implicitly has an 'any' type.
  ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR   Try `npm install @types/inquirer` if it exists or add a new declaration (.d.ts) file containing `declare module 'inquirer';`
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(12,18): error TS2307: Cannot find module 'path' or its corresponding type declarations.
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(13,19): error TS7016: Could not find a declaration file for module 'shelljs'. '/home/runner/.yarn/berry/cache/shelljs-npm-0.8.4-e2890f4ce2-7.zip/node_modules/shelljs/shell.js' implicitly has an 'any' type.
  ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR   Try `npm install @types/shelljs` if it exists or add a new declaration (.d.ts) file containing `declare module 'shelljs';`
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(14,23): error TS7016: Could not find a declaration file for module 'lodash.kebabcase'. '/home/runner/.yarn/berry/cache/lodash.kebabcase-npm-4.1.1-89ffca7e1f-7.zip/node_modules/lodash.kebabcase/index.js' implicitly has an 'any' type.
  ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR   Try `npm install @types/lodash.kebabcase` if it exists or add a new declaration (.d.ts) file containing `declare module 'lodash.kebabcase';`
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(49,37): error TS2304: Cannot find name '__dirname'.
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(52,14): error TS7006: Parameter 'd' implicitly has an 'any' type.
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(171,15): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i @types/node`.
  Error: ➤ YN0000: │ root-workspace-0b6124@workspace:. STDERR src/index.ts(173,23): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i @types/node`.

Strange, it looks like errors with types, but why didn't they show up before? Changes to this PR make nothing significant.

I didn't realize right away that using npm in an E2E test for Yarn v2 was a really bad idea. Thus, I refactor release script, and now in order to initialize the project via npm, need to run the command yarn test:build:v2 -n (i.e. with the n option).

What is this -n option?

It's just short for npm, in any case, this option is needed as a last resort.


apiVersion do not match the group and version of the CRD

There is a mismatch between the deployed CRD (group and version) and the api version used on the CSI.

Thanks @mskjeret! What version of k8s are you using?
csi.storage.k8s.io/v1alpha1 is no longer supported in v1.14 and storage.k8s.io/v1beta1 was introduced in v1.14: https://kubernetes-csi.github.io/docs/print.html#breaking-changes

I see. We are using v1.13. Waiting for AKS to make v1.14 available.
I saw that the CRD, https://github.com/deislabs/secrets-store-csi-driver/blob/master/charts/secrets-store-csi-driver/templates/crd-csi-driver-registry.yaml, still use the old group and v1alpha1 as version.

We are using csi.storage.k8s.io/v1alpha1 to support older clusters until csi.storage.k8s.io/v1alpha1 does not work anymore then we will switch to storage.k8s.io/v1beta1. I tested csi.storage.k8s.io/v1alpha1 on a 1.15 cluster and it seems to still work. Let me know if you have any concerns.

No problem. I was perhaps confused about the order of deployment.


Failed to subscribe

[2024-11-28T18:20:13Z ERROR carbon_yellowstone_grpc_datasource] Failed to subscribe: TonicStatus(Status { code: Unknown, message: "h2 protocol error: http2 error", source: Some(tonic::transport::Error(Transport, hyper::Error(Http2, Error { kind: GoAway(b"", FRAME_SIZE_ERROR, Library) }))) })

resolved in dms, was using the wrong url.
for public record, a helius geyser-enhanced ws url cannot be used in a yellowstone grpc datasource.
for a helius geyser-enhanced ws, use our helius atlas ws datasource.


Malformed function definition may crash the compiler

When trying to compile the following code:
bar: class{
    init: func

    foo: func ~suffix

    func(test: Int){
    }
}

rock crashes, because func(test: Int) is recognized as a function definition but it doesn't have a valid name.
(SIGSEGV) segmentation fault
[lang/Backtrace] Falling back on execinfo.. (build extension if you want fancy backtraces)
rock(lang_Backtrace__BacktraceHandler_backtrace_impl+0xe0) [0x56c6e0]
rock(lang_Exception__Exception_getCurrentBacktrace+0x13) [0x557883]
rock(lang_Exception___signalHandler+0x124) [0x5579d4]
/usr/lib/libc.so.6(+0x335b0) [0x7fc6317635b0]
rock(rock_middle_TypeDecl__TypeDecl_underName+0) [0x4cb620]
rock(rock_backend_cnaughty_ClassDeclWriter__ClassDeclWriter_writeInstanceVirtualFuncs+0x115) [0x5203a5]
rock(rock_backend_cnaughty_ClassDeclWriter__ClassDeclWriter_write__class+0x126) [0x521656]
rock(rock_backend_cnaughty_ModuleWriter__ModuleWriter_write+0x86f) [0x5240ff]
rock(rock_backend_cnaughty_CGenerator__CGenerator_write_impl+0x16) [0x51b766]
rock(rock_frontend_drivers_SequenceDriver__SequenceDriver_generateSources_impl+0x83) [0x529bb3]
rock(rock_frontend_drivers_SequenceDriver__SequenceDriver_compile_impl+0x12e) [0x52964e]
rock(rock_frontend_CommandLine____rock_frontend_CommandLine_rock_frontend_CommandLine_closure325_thunk+0x1f) [0x49ce3f]
rock(os_Time__Time_measure+0x86) [0x565716]
rock() [0x49d6e2]
rock(rock_frontend_CommandLine__CommandLine_parse_impl+0x16b) [0x49d4cb]
rock(rock_frontend_CommandLine__CommandLine_init+0x87e) [0x49e8de]
rock(rock_frontend_CommandLine__CommandLine_new+0x5e) [0x4a073e]
rock(main+0xa2) [0x49cc12]
/usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7fc631750790]
rock(_start+0x29) [0x49cc49]

Maybe we should disable defining anonymous function in class and cover.
It should not be too difficult: https://github.com/zhaihj/rock/commit/8e0936dfb429fe16da0421bc43dc647254da6a38

I'm fine with disallowing that for now. Thanks!


Add an iter_ok adaptor for non-Result iterators

The iter adaptor has been hard to use at least for me historically as it's
pretty rare to have an iterator of results. In addition with the planned change
to have errors terminate a Stream it doesn't necessarily make sense to
continue with an iterator of results!
Closes #480

👍


No default entries for AWS in app configurationsetting table although aws controller is deployed

[Version] OSCM 17.5.0 2017/11/29
[How to reproduce]
Login to app controller /oscm-app/
[Expected result]
In table are two "Controller ID" by default

for Openstack
for AWS

[Observed result]
There is only one controller: for Openstack
[Details]
I remember the problem. It was related with https://github.com/servicecatalog/development/issues/866 but then it was repaired. The problem got back in today's build.

For a fix I propose that we remove the variable CONTROLLER_ID from var.env and move it to the specific containers in docker-compose-initdb.yml[.template]. In docker-compose-initdb.yml[.template] the container oscm-initdb-controller-openstack should have a variable of CONTROLLER_ID=ess.openstack, and analogous for the aws controller container. In that way we can initialize both controller databases with minimal effort.
The only disadvantage I see with this approach is that because both containers share the other variables in the var.env file, they will always have the exact same settings for CONTROLLER_ORG_ID, CONTROLLER_USER_KEY, etc.


BUG: slsart deploy reports 'serverless.service.mergeArrays is not a function'

Describe the bug
slsart deploy does not create a Cloudformation stack as expected
To Reproduce
Steps to reproduce the behavior:

create a new directory, run slsart configure
run slsart script
run slsart deploy

Expected behavior
slsart deploy would deploy a cloudformation stack as expected
Actual behavior
slsart deploy responds with
serverless.service.mergeArrays is not a function
Also, Cloudformation stack does not exist
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
On a clean install on Ubuntu 18.04.4 LTS
AWS is set to default region us-west-2, AdministratorAccess
NodeJS installed with nvm, I tried both 8.17.0 and 10.23.0
serverless was set at v1.0.3 (I was getting an error that 2.9 was not supported, so I backtracked to 1.0.3)
serverless-artillery v0.5.2

@MikeMcShaffry had the same issue, solved it by installing<EMAIL_ADDRESS>

That did the trick! Thank you so much for posting this!


Add github push trigger options

Allow specifying whether push from tx to github happens when resources reaches 100% reviewed or 100% translated via push_trigger config var.

@lizkrznarich Thanks for this!  There were some issues with test compatibility so I merged your changes with PR: https://github.com/transifex/txgh/pull/54
Closing this one.

@matthewjackowski thanks so much! i don't write in ruby often, so i'm not too familiar with rspec. was planning to dig into it, but time was not on my side this week. thanks for helping out!


modsecurity-crs 2.2.9-1 - msg "Warning - Sticky SessionID Data Changed - IP Address Mismatch."

Hello i use the modsecurity-crs 2.2.9-1 all modsecurity's Core Rule Set.
When i load a page i got a response but without the css files.
First try is everytime blocked by mod sec
/var/log/apache2/slm_access.log
<IP_ADDRESS> - - [20/Oct/2016:12:50:04 +0200] "GET /administration/account/login HTTP/1.1" 200 1508 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:05 +0200] "GET /administration/themes/lgb/styles.css HTTP/1.1" 403 245 "https://security......./administration/account/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
/var/log/apache2/slm-geobasis-ssl_error_ssl.log:[Thu Oct 20 12:50:05.033539 2016] [:error] [pid 22727:tid<PHONE_NUMBER>76256] [client <IP_ADDRESS>] ModSecurity: Access denied with code 403 (phase 1). Match of "streq %{SESSION.IP_HASH}" against "TX:ip_hash" required. [file "/usr/share/modsecurity-crs/activated_slm_rules/modsecurity_crs_16_session_hijacking.conf"] [line "35"] [id "981059"] [msg "Warning - Sticky SessionID Data Changed - IP Address Mismatch."] [hostname "security..........."] [uri "/administration/themes/lgb/styles.css"] [unique_id "WAihXX8AAQEAAFjHiSMAAACD"]
if i press f5 and reload the Page all works as expected the Site with css was loaded.
<IP_ADDRESS> - - [20/Oct/2016:12:50:08 +0200] "GET /administration/account/login HTTP/1.1" 200 1508 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:08 +0200] "GET /administration/themes/lgb/styles.css HTTP/1.1" 200 80 "https://security......./administration/account/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:09 +0200] "GET /administration/themes/lgb/default.css HTTP/1.1" 200 3629 "https://security......./administration/account/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:09 +0200] "GET /administration/themes/common/jquery-ui-1.10.3.css HTTP/1.1" 200 6534 "https://security......./administration/account/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:09 +0200] "GET /administration/themes/lgb/images/logo_lm.gif HTTP/1.1" 200 2823 "https://security......./administration/themes/lgb/default.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:09 +0200] "GET /administration/themes/lgb/images/EFRE-MARKE-1.png HTTP/1.1" 200 18331 "https://security......./administration/themes/lgb/default.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:09 +0200] "GET /administration/themes/lgb/images/bg_fieldset.gif HTTP/1.1" 200 375 "https://security......./administration/themes/lgb/default.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
<IP_ADDRESS> - - [20/Oct/2016:12:50:09 +0200] "GET /administration/themes/lgb/images/bg_button.gif HTTP/1.1" 200 1177 "https://security......./administration/themes/lgb/default.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
is it possible th fix this error?
best regards

Hi @smerten79,
The best place to have this issue is at OWASP CRS project, at:
https://github.com/SpiderLabs/owasp-modsecurity-crs
You may want to test the OWASP CRS version 3 which is release candidate:
https://github.com/SpiderLabs/owasp-modsecurity-crs/tree/v3.0.0-rc3

Send that your session ID cookie gets altered by client side logic. You
might have to whitelist this cookie
On Thu 20 Oct, 2016, 5:43 PM smerten79<EMAIL_ADDRESS>wrote:

Hello i use the modsecurity-crs 2.2.9-1 all modsecurity's Core Rule Set.
When i load a page i got a response but without the css files.

Reply to this email directly, view it on GitHub
https://github.com/SpiderLabs/ModSecurity/issues/1235, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ARUU-xZEP0RWZ0ViPNHWbC9QNmi21C4Mks5q11rpgaJpZM4KcDam
.

--
Regards
Shiva Kumar RV
Sent from mobile, please excuse typos!
--

IMPORTANT NOTICE: This e-mail, including any attachments, may contain
confidential information and is intended only for the addressee(s) named
above. If you are not the intended recipient(s), you should not
disseminate, distribute, or copy this e-mail. Please notify the sender by
reply e-mail immediately if you have received this e-mail in error and
permanently delete all copies of the original message from your system.
E-mail transmission cannot be guaranteed to be secure as it could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. Company accepts no liability for any damage or loss of
confidential information caused by this email or due to any virus
transmitted by this email or otherwise.


Add jss-simple to the readme?

I made a thing: jss-simple. It makes it a bit nicer to work with JSS in the common case where you really only want a single global stylesheet, and it also makes it work a bit better with hot reloading (particularly if you use the babel plugin).

So in other words it handles attach/detach/toString of all styles at once.

Well, why not. Some suggestions though: rename it to "global-jss". Global because its a more exact description, jss at the end, because jss-something is a plugin convention. This is not a plugin but a wrapper.
Regarding a link: I think we need a wiki page where everybody can add links to their pojects.

Not sure though if it should be wiki or a documentation page in docs ...
Wiki is good because I don't need to merge requests. And its easier to add something.
Wiki is bad, because I would loos the control about how and what is posted there .... thoughts?

done c1ce8b9bc4a224233a2b984a9f1cbecc1f133ae3


[DM-6390] Create a testing distrib package

Create a smaller, faster to build distrib package for use with testing tools. Modeled after lsst_distrib and lsst_apps.
new file:   .gitignore
new file:   SConstruct
new file:   ups/deploy_testing_distrib.build
new file:   ups/deploy_testing_distrib.cfg
new file:   ups/deploy_testing_distrib.table

As an FYI (it doesn't affect anything), the DM branch naming convention is tickets/DM-XXXX.


Before this commit, pouch pull must run in terminal console. If you run pull in non-terminal mode,  pouch will panic.
The CI uses exec package to run pull command. Basically, the stdout of exec.Cmd is to /dev/null. Therefore if you pull images in exec.Cmd, the result will failed.
Why CI of request is pass? Because the busybox is too small. pull command receives and renders the json stream fail, but the busybox image has been downloaded successfully. That is why the CI is green right now.
2.Does this pull request fix one issue?
Fixed #313
3.Describe how you did it
I uses terminal package to check if the os.Stdout is terminal or not.
As we knows, the progress.Writer acts buffer IO writer which has Write and Flush methods.
For the non-terminal case, we don't need the progress.Writer. But, to keep the logic simple, I create interface named by bufwriter and use bufio.NewWriter to wrap os.Stdout.  Therefore, the function can use bufwriter to output something without caring about the real instance.
For the non-terminal mode, we don't need to show the current status in time.
The caller just cares what has been done.  So I only show new status each loop iteration.
4.Describe how to verify it
For the terminal mode, the behaviour is the same to the previous.
For the non-terminal mode,
➜  cat main.go
package main

import (
        "bufio"
        "bytes"
        "fmt"

        "github.com/gotestyourself/gotestyourself/icmd"
)

func main() {
        var b bytes.Buffer
        writer := bufio.NewWriter(&b)

        cmd := icmd.Cmd{Command: []string{"pouch", "pull", "registry.hub.docker.com/library/centos"}}
        cmd.Stdout = writer

        res := icmd.RunCmd(cmd)
        fmt.Println(res.Combined())
}

➜  go run main.go
registry.hub.docker.com/library/centos:latest: resolving
registry.hub.docker.com/library/centos:latest:                                 resolved
index-sha256:3b1a65e9a05f0a77b5e8a698d3359459904c2a354dc3b25ae2e2f5c95f0b3667: downloading
index-sha256:3b1a65e9a05f0a77b5e8a698d3359459904c2a354dc3b25ae2e2f5c95f0b3667:    done
manifest-sha256:3a32a170c945ffe18334b3f514fcb66f9c14001b2266c9ed8504c72db0acde11: downloading
manifest-sha256:3a32a170c945ffe18334b3f514fcb66f9c14001b2266c9ed8504c72db0acde11: done
layer-sha256:85432449fd0fabb6bef4772246d9b7948723275a4c7e4dee18728f28d79f1c2c:    downloading
config-sha256:3fa822599e10c5f2080dcf647068c72022b111d31bbec0c5adb8a96e7eb5379b:   downloading
config-sha256:3fa822599e10c5f2080dcf647068c72022b111d31bbec0c5adb8a96e7eb5379b: done
layer-sha256:85432449fd0fabb6bef4772246d9b7948723275a4c7e4dee18728f28d79f1c2c: done

5.Special notes for reviews

Ping @allencloud  and @skoo87

it's a good job, I will review it for you. thanks.

LGTM

Thanks a lot for your work. 🌞  @0x04C2


getApplicationTopology error

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?

Bug

Which version of SkyWalking, OS and JRE?
skywalking 5.0.0RC  centos6.9

Which company or project?

What happen?
Everything goes fine after an new app was added in skywalking. then I found follow error in "Application" menu. after several times, some other apps also display the same error.
it seems like when the trace fills into different indexs but lost something, which leads to this: can't find the calltype according targetid.

after remove the new app, the error goes away.  any clues about it? thanks in advance.
error:
Cannot return null for non-nullable type: 'String' within parent 'Call' (/getApplicationTopology/calls[4]/callType)
request:
/api/application
{"variables":{"duration":{"start":"2018-10-31 1119","end":"2018-10-31 1134","step":"MINUTE"},"applicationId":"110"},"query":"  query Application($applicationId: ID!, $duration: Duration!) {    getSlowService(applicationId: $applicationId, duration: $duration, topN: 10) {      service {        key: id        label: name        applicationId        applicationName      }      value: avgResponseTime    }    getServerThroughput(applicationId: $applicationId, duration: $duration, topN: 999999) {      key: id      osName      host      pid      ipv4      value: cpm    }    getApplicationTopology(applicationId: $applicationId, duration: $duration) {      nodes {        id        name        type        ... on ApplicationNode {          sla          cpm          avgResponseTime          apdex          isAlarm          numOfServer          numOfServerAlarm          numOfServiceAlarm        }      }      calls {        source        target        isAlert        callType        cpm        avgResponseTime      }    }  }"}
response:
{"data":{"getSlowService":[{"service":{"key":"263","label":"/echo","applicationId":"110","applicationName":"chatbot-api"},"value":108},{"service":{"key":"270","label":"/chatBot/getAvatarUrl","applicationId":"110","applicationName":"chatbot-api"},"value":71},{"service":{"key":"-274","label":"/chatBot/queryChatHistory","applicationId":"110","applicationName":"chatbot-api"},"value":59},{"service":{"key":"265","label":"/callback/rl","applicationId":"110","applicationName":"chatbot-api"},"value":30},{"service":{"key":"271","label":"/chatBot/hasUnReadMessage","applicationId":"110","applicationName":"chatbot-api"},"value":22},{"service":{"key":"-269","label":"/chatBot/inManualSession","applicationId":"110","applicationName":"chatbot-api"},"value":19},{"service":{"key":"262","label":"/chatBot/getRLLastReplyTime","applicationId":"110","applicationName":"chatbot-api"},"value":17},{"service":{"key":"-265","label":"RocketMQ/RongLianCustomerServiceQueue/Consumer","applicationId":"110","applicationName":"chatbot-api"},"value":0}],"getServerThroughput":[{"key":"301","osName":"Linux","host":"l-chatbot-webapi1.rd.cn1","pid":32239,"ipv4":["<IP_ADDRESS>"],"value":4},{"key":"299","osName":"Linux","host":"l-chatbot-webapi3.rd.cn1","pid":516,"ipv4":["<IP_ADDRESS>"],"value":3},{"key":"309","osName":"Linux","host":"l-chatbot-webapi2.rd.cn1","pid":2834,"ipv4":["<IP_ADDRESS>"],"value":2},{"key":"298","osName":"Linux","host":"l-chatbot-webapi4.rd.cn1","pid":3017,"ipv4":["<IP_ADDRESS>"],"value":2}]},"errors":[{"message":"Cannot return null for non-nullable type: 'String' within parent 'Call' (/getApplicationTopology/calls[8]/callType)"},{"message":"Cannot return null for non-nullable type: 'String' within parent 'Call' (/getApplicationTopology/calls[9]/callType)"},{"message":"Cannot return null for non-nullable type: 'String' within parent 'Call' (/getApplicationTopology/calls[10]/callType)"},{"message":"Cannot return null for non-nullable type: 'String' within parent 'Call' (/getApplicationTopology/calls[11]/callType)"},{"message":"Cannot return null for non-nullable type: 'String' within parent 'Call' (/getApplicationTopology/calls[12]/callType)"},{"message":"Cannot return null for non-nullable type: 'String' within parent 'Call' (/getApplicationTopology/calls[13]/callType)"}]}

Requirement or improvement

Please describe about your requirements or improvement suggestions.

Have you tried GA or 6.0.0-alpha to see what happens?

You need to check backend to see what there is some field is null. That will help on addressing this issue.

i am using skywalking on our prod env, so it's not easy to upgrade to 6.0.0. now i am using a workaround to return empty string to avoid this error.but it's not a thorough way. i doubt whether it is cause by one application has mulitiple instances(i didn't meet this issue in our test env. in our test env, one application only has one instance, while on prod env, on application has more than one instance). it's not caused by some null field in es. sometimes in the same time bucket, we get source and target appids from application_reference_metric, but some source or target ids are not found in application_component. some data is missing which cause the error. i didn't find any suspicious errors in colloect or es. any clues on it?

If your system is low throughputs, maybe. Ni component found in that duration. SkyWalking 6 uses the assumption that component not chang, until new one coming, also support no component app, based on istio metric, we don't know component.


FALCON-1840 Archive older definition in case of update

Should we undo archive if updateInternal fails?

@bvellanki  we are doing the same thing in delete also we first archive and then delete.In worst case we will have same copy which is currently running in production.

Test case of archive was missing on delete.I have added that too.

@PraveenAdlakha Patch looks good. +1. Is it possible to add some documentation for this so that user should get inform that along with update of entity happen, archive of entity also occur.

+1 for the patch @PraveenAdlakha. But, as @peeyushb mentioned, updating the doc will be a good idea.

:+1:  @PraveenAdlakha : The next question that user would look for is, what does happen in subsequent updates?. Can you also add that its versioned(timestamp) archival.

@sandeepSamudrala  its already version when ever we archive we add timestamp to the files.

Thanks @PraveenAdlakha for adding the documentation. If no one has any further comments, I will commit this patch soon.


Conventional commits: find alternative to conventional commit linter to allow optional scope

Details
Currently we use<EMAIL_ADDRESS>but this doesn't seem to allow optional scope.
For example feat: some backend stuff is okay, but feat(backend): some stuff is not okay and that seems to be more inline with conventional commit suggestions.
Optional scope would also improve any possible implementation of changelogs in the future.
EDIT: #46 perhaps optional scope works, it seems to pass check fine here. Maybe there was a different issue before like too long header or something. Investigate.

Also seems fine on #47, closing this ticket @3geek14 FYI.
It should work with current linter, not sure what was the issue with our previous attempts, perhaps header too long


Change GA dataLayer config for social

What is the context of this PR?
The GA data layer config is incorrect for Social/Health surveys this PR will fix that.
How to review

Tests pass
Test that social schemas still launch without error

Checklist

[ ] New static content marked up for translation
[ ] Newly defined schema content included in eq-translations repo

 Bug: GA dataLayer incorrect for Social/Health surveys


What is adaPnt module in AttModel.py file

Hi everyone, I know this paper use the Top-bottom attention as the decoder, but I find there is adaPnt module after the language LSTM in AttModel.py file. Could anyone know what is this or which paper referred to?

This is for adaptive module.


replace text editing of values yaml with sed script

https://eksworkshop.com/integration/monitoring/deploy-grafana/
To improve the user experience, replace the editing of values.yaml with a sed script or similar that performs the text substitutions from the command line.

Grafana installation is now using helm


Requirements?

Hello, what is the minimum required version of php? Something I have not worked on PHP 5.6.27 - Internal Server Error :(
Help me please.

Could you take a screenshot?
This is server requirement: https://laravel.com/docs/5.4#server-requirements

All figured out, the problem was in the file .htaccess directive Options -MultiViews. I comment out of her, and the problem is solved. Thank you very much for your responsiveness.

Ok. Feel free to contact me :)


added css secrets by lea verou

Pull Request

Description

Related Issue

Closes #XXXXX

@all-contributors please add @JaeKralj for code

@all-contributors add @JaeKralj  for code


sqlcmd: 1.2.0 -> 1.2.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/microsoft/go-sqlcmd/releases.
meta.description for sqlcmd is: A command line tool for working with Microsoft SQL Server, Azure SQL Database, and Azure Synapse
meta.homepage for sqlcmd is: https://github.com/microsoft/go-sqlcmd
meta.changelog for sqlcmd is: https://github.com/microsoft/go-sqlcmd/releases/tag/v1.2.1
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.2.1 with grep in /nix/store/0fwdlkd5vabbdkqy3pbp5irgbzyviaax-sqlcmd-1.2.1
found 1.2.1 in filename of file in /nix/store/0fwdlkd5vabbdkqy3pbp5irgbzyviaax-sqlcmd-1.2.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
sqlcmd

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/0fwdlkd5vabbdkqy3pbp5irgbzyviaax-sqlcmd-1.2.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A sqlcmd https://github.com/r-ryantm/nixpkgs/archive/7277d9a1a6530729282d9a4cb084fcf76af4db81.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/0fwdlkd5vabbdkqy3pbp5irgbzyviaax-sqlcmd-1.2.1
ls -la /nix/store/0fwdlkd5vabbdkqy3pbp5irgbzyviaax-sqlcmd-1.2.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

sqlcmd

Maintainer pings
cc @ratsclub for testing.

Result of nixpkgs-review pr 244032 run on aarch64-darwin 1

1 package built:

sqlcmd


launcher: not found on ubuntu 23.10

installation process fails on ubuntu 23.10:
$  ./cshell_install.sh
Start Check Point Mobile Access Portal Agent installation
Extracting Mobile Access Portal Agent... Done
Installing Mobile Access Portal Agent...
Shutdown Mobile Access Portal Agent
Done
Installing certificate... Done
Starting Mobile Access Portal Agent... /bin/sh: 1: /usr/bin/cshell/launcher: not found

Cannot start Mobile Access Portal Agent. Installation aborted.

$ ls /usr/bin/cshell/launcher
/usr/bin/cshell/launcher

$ /usr/bin/cshell/launcher
bash: /usr/bin/cshell/launcher: cannot execute: required file not found

During vpn -i debconf and systemctl is complaining (but the script completes):
Setting up x11-common (1:7.7+22) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.32.1
 /usr/local/share/perl/5.32.1 /usr/lib/i386-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl-base /usr/lib/i386-linux-gnu/perl/5.32 /usr/share/perl/5
.32 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Can't exec "systemctl": No such file or directory at /usr/sbin/update-rc.d line 93.
/usr/sbin/invoke-rc.d: 290: systemctl: not found
invoke-rc.d: could not determine current runlevel
invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block.

....

Setting up dbus (1.12.28-0+deb11u1) ...
/var/lib/dpkg/info/dbus.postinst: 94: systemd-tmpfiles: not found
Can't exec "systemctl": No such file or directory at /usr/sbin/update-rc.d line 93.
/usr/sbin/invoke-rc.d: 290: systemctl: not found
invoke-rc.d: could not determine current runlevel
invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block.
/var/lib/dpkg/info/dbus.postinst: 113: systemctl: not found
sh: 1: systemctl: not found
Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 94.
dbus.service is a disabled or a static unit, not starting it.
sh: 1: systemctl: not found
Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 94.
dbus.socket is a disabled or a static unit, not starting it.
``

The download does not seem complete.
I advise doing vpn.sh uninstall and installing it again.


Convert flaky e2e tests to unit tests

Issue
At the moment, pull requests coming to the Code Radio repo are not mergeable due to a failed test. I believe this is a Cypress issue, as reported in https://github.com/cypress-io/cypress/issues/4383.
Suggested solution
Since purpose of the failed test is just to check if some certain links are shown on the page, and no complex interactions involved, we can simply convert the test to unit test to unblock the open PRs. This will also help reduce CI time a bit, since end-to-end tests are slower than unit tests.
What we need to do are:

Set up React Testing Library and jest-dom with its recommended ESLint plugins (eslint-plugin-testing-library and eslint-plugin-jest-dom)
Write unit tests that are equivalent to these end-to-end tests
Remove the end-to-test test file
Update the CI workflow to include running unit tests

I'm familiar with the process and happy to work on this myself, but my schedule is quite packed right now. So before I'm able to pick this up, if anyone is interested in this issue feel free to beat me to it.

Hey @Jagrutiti, it is correct that you need to clone the Code Radio repo, create a new branch from there, make changes to it and submit a PR against the FCC's Code Radio repo.
The output above looks okay, the npm test command runs on the existing App.test.js file and things are working as expected.
I'm sorry about this, but one thing I forgot to mention is that we should pin the libraries version in the package.json file, meaning there shouldn't be a caret character (^) before the version number. So if you see the character in the file, please remove it and run npm install again.
Now with RTL and jest-dom having been set up, we can proceed to write new unit tests. I don't know how familiar you are with unit tests in general, so I apologize if I'm over-explaining. We will need to write unit tests that are equivalent to this one in order to replace it. What we need to do is to render the Nav component, then check if there are links on the page. That means we will need to create a Nav.test.js file.
I'm not on the computer that has the repo pulled down so I can't validate what I write here is 100% correct, but just to give you an idea of how the tests should be written:
// in Nav.test.js
import React from 'react'
import { render, screen } from '@testing-library/react'

import Nav from './Nav'

describe('<Nav />', () => {
  it('should render a link to the News page', () => {
    // Render the Nav component
    render(<Nav />)

    // Find a link with the text 'News' in the component - I'll explain more
    const newsLink = screen.getByRole('link', { name: 'News' })

    // Assert that the link exists
    expect(newsLink).toBeInTheDocument()
    // Assert that the link points to the correct page
    expect(newsLink).toHaveAttribute('href', 'https://www.freecodecamp.org/news/')
  })

  it('should render a link to the Forum page', () => {})
  it('should render a link to the Learn page', () => {})
})

I hope the snippet above helps communicate the idea, but since you're not familiar with RTL, I think the most confusing part would be the line with getByRole. I can go a bit more in the details if you are interested, but to avoid overwhelming you, when it comes to querying an item in the DOM, getByRole is the recommended method. The method helps ensure that we are using an appropriate HTML element for the links, and not, say, an input, or a p, or a mere div.
And if you compare this with the Cypress file, we are missing the status check for the target pages. I think it is totally fine and we just need to ensure that Code Radio displays the correct links. It is the responsibility of the other platforms to make sure their pages are working properly.

Once we have the unit test file ready, we can proceed to:

Delete the end-to-end test file
Update the CI workflow to include the npm test step

Hi, @huyenltnguyen I am excited to share my progress with you.
Starting with essentials. I ran the npm install after removing the carat character from package.json as you had suggested. All went fine.
getByRole sure was tricky. But nothing a good R&D can't beat.
This line const newsLink = screen.getByRole('link', { name: 'News' }) in the code threw the following error:
      10 |
      11 |     // Find a link with the text 'News' in the component - I'll explain more
    > 12 |     const newsLink = screen.getByRole('link', { name: 'News' })
         |                             ^
      13 |
      14 |     // Assert that the link exists
      15 |     expect(newsLink).toBeInTheDocument()

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:38:19)
      at getElementError (node_modules/@testing-library/dom/dist/query-helpers.js:25:35)
      at getMultipleElementsFoundError (node_modules/@testing-library/dom/dist/query-helpers.js:29:10)
      at node_modules/@testing-library/dom/dist/query-helpers.js:66:13
      at getByRole (node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
      at Object.<anonymous> (src/components/Nav.test.js:12:29)

Dived a little deeper into getByRole. With the help of react-testing-library  documentation and Testing Playground I came up with this solution:   const newsLink = screen.getByRole('link', { name: /news opens in new window/i })
Rest is history. All three test cases passed. This is the output of npm test:
 PASS  src/components/Nav.test.js
  <Nav />
    ✓ should render a link to the News page (116 ms)
    ✓ should render a link to the Forum page (41 ms)
    ✓ should render a link to the Learn page (32 ms)

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        1.408 s, estimated 2 s
Ran all test suites related to changed files.

Watch Usage
 › Press a to run all tests.
 › Press f to run only failed tests.
 › Press q to quit watch mode.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press Enter to trigger a test run.

Here is the complete code in Nav.test.js file:
import React from 'react';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';

import Nav from './Nav';

describe('<Nav />', () => {
  it('should render a link to the News page', () => {
    // Render the Nav component
    render(<Nav />);

    // Find a link with the text 'News' in the component - I'll explain more
    // const newsLink = screen.getByRole('link', { name: 'News' })

    const newsLink = screen.getByRole('link', {
      name: /news opens in new window/i
    });
    // Assert that the link exists
    expect(newsLink).toBeInTheDocument();
    // Assert that the link points to the correct page
    expect(newsLink).toHaveAttribute(
      'href',
      'https://www.freecodecamp.org/news/'
    );
  });

  it('should render a link to the Forum page', () => {
    // Render the Nav component
    render(<Nav />);

    // Find a link with the text 'Forum' in the component
    const forumLink = screen.getByRole('link', {
      name: /forum opens in new window/i
    });

    // Assert that the link exists
    expect(forumLink).toBeInTheDocument();

    // Assert that the link points to the correct page
    expect(forumLink).toHaveAttribute(
      'href',
      'https://www.freecodecamp.org/forum/'
    );
  });

  it('should render a link to the Learn page', () => {
    // Render the Nav component
    render(<Nav />);

    // Find a link with the text 'Forum' in the component
    const learnLink = screen.getByRole('link', {
      name: /learn opens in new window/i
    });

    // Assert that the link exists
    expect(learnLink).toBeInTheDocument();

    // Assert that the link points to the correct page
    expect(learnLink).toHaveAttribute(
      'href',
      'https://www.freecodecamp.org/learn/'
    );
  });
});

If the code looks good to you, I will move to the next steps you mentioned. I am a little clueless about updating CI workflow though. Also which file is the end-to-end test file?
Thanks for your invaluable guidance. I learned something new today.

Dived a little deeper into getByRole. With the help of react-testing-library documentation and Testing Playground I came up with this solution: const newsLink = screen.getByRole('link', { name: /news opens in new window/i })

Ah ha! I'm pretty sure this is from a recent change that I missed. Thanks for catching this! 👍 Also, great to hear you have made progress with the tests.
I think at this point we can create a pull request, so that it's easier to review the work as well as to test the CI workflow.
For CI workflow update, we should add a new test step to the ci.yml file. The change should be similar to this block: https://github.com/freeCodeCamp/coderadio-client/blob/main/.github/workflows/ci.yml#L6-L22. There is a list of checks in every PR, and we can verify if our change is correct by finding the new step in the list. Now that it's weekend and I have some free time, I can help you with this step though.

As for the end-to-end test file we need to delete, it's this one: https://github.com/freeCodeCamp/coderadio-client/blob/main/cypress/integration/nav-bar-links.js

Hi @huyenltnguyen I have made this pull request https://github.com/freeCodeCamp/coderadio-client/pull/233
I am not sure about adding the test step to ci.yml. What new things do I need to add to the test step?
Did not delete the end-to-end test file because it will be safe to delete the file once you have reviewed the code.

Thanks for the PR!
I have added some comments to it and I will take over the CI workflow change. To prevent code conflicts, I will be pushing commits to your branch after those comments have been addressed. No rush though 🙂

@huyenltnguyen Working with you was a pleasant learning experience. Hope to collab in the future as well :)


_bulk_docs batch deletion should require id, revision and deleted fields

Description
Based on _bulk_docs endpoint documentation to delete a document, there is required to define _id, _rev and _deleted fields. So deletion should be executed, only when the request contains all the three required fields. But the current operation shows different behaviour.
Steps to Reproduce
If we give a new doc id with _deleted field - no revision is specified in the request, then a new document will be inserted into the CouchDB, whit deleted: true status.
Request
POST _bulk_docs
{
  "docs": [
      {
         "_id": "test",
	 "_deleted": true
       }
  ]
}
Response
[
    {
        "ok": true,
        "id": "test",
        "rev": "1-de715bf126efc93d225d9e3f8e8eb81a"
    }
]

If the  request contains only _rev and _deleted fields, then the server currently responds with 201 "conflict".
If the request contains only "_deleted": true field, then the server will generate a new id and inject it into the DB, with status deleted.
Expected Behaviour
It would be better to answer to these request with 400 {"error": "bad_request", "reason": "<field_name> is required"}. The reason field should expose which field was missing from the 3 required.
Your Environment

CouchDB Version used: 2.3.1
Browser name and version: PostMan
Operating System and version: macOS Majove 10.14.6

Additional context

This behavior is expected. It should be possible to insert a deleted document. Deleted is a just a {"_deleted": true} field or it may have additional data in the document body such as {"_deleted": true, "extra_data": "foo"}.
Document ID auto-generation is also a supported feature and is orthogonal to the deleted/not deleted feature. If the _id is not present it will be generated as uuid.


Astroweather-Card Not Rendering in Home Assistant Dashboard

Issue Description
I've installed Astroweather and Astroweather-card through HACS, as well as downloading the necessary files from GitHub. After installing Astroweather-card, I am receiving weather forecasts from Astroweather. However, Home Assistant displays an error stating that the custom element doesn't exist. I've tried various fixes found online, including pressing Ctrl + R to refresh the page and opening up developer tools to perform "Empty Cache and Hard Reload," but the issue persists.
Thank you for any help or insights! I think its a great card and I'd really like to get it working!
Environment

Home Assistant Version: 2023.12.3
Installation Type: Home Assistant OS
Platform/Architecture: Beelink GK Mini (main) / Raspberry Pi 4 (test)

Steps to Reproduce

Install the Astroweather through HACS (Home Assistant Community Store).
Install the Astroweather card through HACS (Home Assistant Community Store).
Add the Astroweather integration from Home Assistant Integrations.
Reboot Home Assistant Server.
Add Astroweather-card to dashboard.

Expected Behavior
I expected a card to be present on the dashboard, displaying information from Astroweather.
Actual Behavior
Instead, Home Assistant states that the custom element doesn't exist. I have attempted to clear the browser cache and am using Chrome, but the issue persists. Additionally, I've tried refreshing the page (Ctrl + R) and performing "Empty Cache and Hard Reload" in the developer tools.

Steps Tried to Resolve the Issue

Cleared the browser cache to ensure a fresh load of the dashboard.
Manually downloaded the Astroweather card JavaScript files from GitHub and installed them.
Rebooted Home Assistant several times to check if the issue persisted after restarts.
Installed Home Assistant on a Raspberry Pi 4 and followed all Astroweather installation procedures from scratch.

Screenshot

Is there some other place I should be using to get any sort of insight or help with this? I feel like this would be the best place to post these issues. Please let me know if I'm not in the right place.


Squelch sourcemap warnings

We could fix this — without including all the sourcemaps — by removing the sourceMappingURL comments from the source files:

Turns out it's not quite that simple. Not really sure what's going on.


node.force_override not setting the attributes correctly

Hi everyone,
I have the following code into a cookbook attribute file:
force_override[:location][:datacenter] = datacenter
force_override[:location][:country]    = country
force_override[:location][:continent]  = continent

This was working with chef 11.18.4
Since we have upgraded to chef 12.4.1, this doesn't work anymore we have to first initialize the namespace to set the attribute right:
default[:location] = {}
force_override[:location][:datacenter] = datacenter
force_override[:location][:country]    = country
force_override[:location][:continent]  = continent

Is that a bug or a wanted feature?
Regards,
JM

I can't replicate this.
cookbooks/test/attributes/default.rb:
force_override[:foo][:bar] = "baz"
force_override[:fizz][:buzz] = "qux"

cookbooks/test/recipes/default.rb:
puts "foo via strings:"
pp node['foo']
puts "foo via symbols:"
pp node[:foo]
puts "fizz via strings:"
pp node['fizz']
puts "fizz via symbols:"
pp node[:fizz]

Those all render correctly:
% chef-client -z -j dna.json
Starting Chef Client, version 12.4.1
resolving cookbooks for run list: ["test::default"]
Synchronizing Cookbooks:
  - test
  - multipackage
Compiling Cookbooks...
LIBRARY FILE: Chef::RunContext
foo via strings:
{"bar"=>"baz"}
foo via symbols:
{"bar"=>"baz"}
fizz via strings:
{"buzz"=>"qux"}
fizz via symbols:
{"buzz"=>"qux"}
Converging 0 resources

Running handlers:
Running handlers complete
Chef Client finished, 0/0 resources updated in 5.260798 seconds

Wouldn't be surprised if this is just fixed by #3721

Ok I have forgotten to say that I am calling those attribute into another
cookbook attribute file which has the originale cookbook as a dependency,
don't know if that changes anything...
I will try to add more context tomorrow if I can.
Le 29 sept. 2015 01:29, "Lamont Granquist"<EMAIL_ADDRESS>a
écrit :

Wouldn't be surprised if this is just fixed by #3721
https://github.com/chef/chef/pull/3721
—
Reply to this email directly or view it on GitHub
https://github.com/chef/chef/issues/3982#issuecomment-143901125.

Since we can't replicate this, and there's a massive refactor of attributes going on, I'm going to close this

Hello,
I'm sorry to reopen this issue but do you have news about the massive refactor of attributes ?
I have the same issue as Jeremy  :
An attributes is defined in a recipe A :
node.default[:disk] = {
...
...
}

In a recipe B, I need to use it :
node['disk'].select do |dev, conf|
...
...
end

But the node['disk'] attribute is nil.
I've tried to debugged with node.debug_value in the recipe B :
pp node.debug_value('disk')
pp node['disk']

And :
pp node.debug_value('disk') :
[["set_unless_enabled?", false],
 ["default",
  {"/dev/sda"=>
    {"options"=>"fstabkey:label disklabel:msdos bootable:1",
     "volume"=>
      [{:type=>"primary",
        :mountpoint=>"/mnt/sysimage",
        :size=>"75GB",
        :filesystem=>"ntfs",
        :mount_options=>"defaults",
        :fs_options=>"createopts=\"-L SYSTEM -f \""},
       {:type=>"primary",
        :mountpoint=>"/mnt/sysimage/d",
        :size=>"50GB-",
        :filesystem=>"ntfs",
        :mount_options=>"defaults",
        :fs_options=>"createopts=\"-L DATA -f\""}]}}],
 ["env_default", :not_present],
 ["role_default", :not_present],
 ["force_default", :not_present],
 ["normal", :not_present],
 ["override", :not_present],
 ["role_override", :not_present],
 ["env_override", :not_present],
 ["force_override", :not_present],
 ["automatic", :not_present]]

pp node['disk'] :
nil

Are you aware of this kind of issue ?
Regards,
Anthony

node.default[:disk] is a symbol while node['disk'] is a string.  that is supposed to work, but was buggy in 12.0.x/12.1.x.  if you're on those versions you need to upgrade.   if you are running chef 12.5.1 and can repro then you can open a new ticket.

Hi
I am running 12.5.1. Have a similar issue with node.role_default. node.debug_value shows correctly but node['...'] gives nil.
Same for 12.4.3 as well..
Regards
-Suleyman

Hello,
Yes sorry, I forgot to mention that I have this issue with botch chef 12.4.1 and 12.5.1.
I will open a new issue if needed.
Regards,
Anthony


Update install-feature goal to work with installUtility.

Issue fixed: https://github.com/WASdev/ci.maven/issues/69

Great. Thanks!


API : change begin/end event names

insert_end_run -> insert_run_end
insert_begin_run -> insert_run_start
sundry variable/arg name changes

I am in the process of doing so.  This is the easiest way to get the code to a controls network computer from home ;)

It seems to be working


Need to replace boot kernel if the installer type is "source"

@LiliDeng LGTM

@lubaihua33 please resolve the conflict


Disk Types and Performance

Issue on page:        https://github.com/opentelekomcloud-docs/elastic-volume-service/blob/main/umn/source/overview/disk_types_and_performance.rst
This site does not represent the current portfolio. Please remove "High-IO Performance optimised" & "Ultra-high IO latency optimised" disk types

Hi Daniel,
Updated UMN is corrected and visible in PREPROD helpcenter
https://docs.otc.t-systems.com/elastic-volume-service/umn/overview/disk_types_and_performance.html#en-us-topic-0014580744
Also PD was aligned to have the same values in both documents
https://confluence.tsi-dev.otc-service.com/display/DR/OTCPR-11696-EVS-PD

Hi Daniel,
updated documentation is available in prod Helpcenter:
You can compare UMN and PD and values are the same
UMN:
https://docs.otc.t-systems.com/elastic-volume-service/umn/overview/disk_types_and_performance.html
PD:
https://confluence.tsi-dev.otc-service.com/display/DR/OTCPR-11696-EVS-PD
API:
https://docs.otc.t-systems.com/elastic-volume-service/api-ref/change_history.html


Fix LoggingBuildOperationProgressIntegTest

Fixes https://github.com/gradle/gradle-private/issues/4483
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@bot-gradle test RFR

I've triggered the following builds for you. Click here to see all build failures.

Ready for Release (Trigger) (Check)


Include custom php script

hi,
i will include a custom php script which contains HTML content and add the code into the timber context
require_once( $_SERVER['DOCUMENT_ROOT'] . '/custom/script.php' );
So, how can i get the code in a twig file?

Hi @rabillion
You could use one of the solutions posts here http://stackoverflow.com/questions/5817726/wordpress-save-get-template-part-to-variable to return the html from a template, then you can assign that data to context.
So something like
$context['foo'] = my_function_to_return_template('/custom/script.php');

{{ foo }}

I think that should work
P.S - if you are going to go down the file_get_contents route, please read http://stackoverflow.com/questions/3629504/php-file-get-contents-very-slow-when-using-full-url

Thinking about this, file_get_contents is probably not a good idea the file has PHP in it. I'd recommend the output buffering method.

Hi, going to close this for now. Please let me know if this is still an issue

Hi, it works perfectly

Thanks for getting back to me :+1:


Drag and drop, split and resize

Hi,
I would like to know about the following?

Drag and drop and re-order the material tab and group

Splitting the screen with material design
Ex: angular split

Resize support including the side panel with a handle.
Ex: angular resizable element

Are these features supported in the material/ CDK or having an intention implementing in future releases?

I'm dying here while trying to incorporate resizing AND dragging  😢

Need this feature. Any updates?

Hi I added the resize functionality for cdkDrag. Created a custom resize directive to help me.
https://stackblitz.com/edit/sq7qd3?file=package.json


Handle event after deleted wallet

Resolve #977
This PR fixed:

Dismiss modal, current page and redirect to wallet list page after delete wallet if the number of wallets left is greater than 0
Dismiss modal, curent page and redirect to start page after delete wallet if the number of wallets left is 0

PR looks good.
the code on line https://github.com/planetdecred/godcr/pull/1023/files#diff-1d583a6bf9ea9ef5e81bcff9c1e9f3bccfd9ab414092d5515ff838424907ab4fL402 is redundant. kindle remove it.

it's not redundant, it need to close current page and modal


Remove all usage of collections-api

This updates this app to call content-store, contentapi and rummager directly as needed.  This will allow collections-api to be deprecated.
This may be easier to review commit-by-commit.

Note:  With these changes as they stand, this won't support topics under the new "/topic" prefix.  I'd like to address that in a follow-up PR as this one is already big enough.
I think there are additionally some existing issues with the /topic support due to generated URLs pointing at the old namespace regardless of which route it's accessed by.  This will cause problems for the email signup form submissions in particular.


Android editor not opening any project on devices with scoped storage

Godot version
3.5 Android
System information
Samsung Galaxy S20 FE 5G
Android 12
Issue description
Clicking on "Edit" will not open the project, but instead open the default template.
Clicking play does run the project normally, but nothing shows up in the Editor.
Steps to reproduce
Click on 'Edit'
Minimal reproduction project
Any project

Update: It seems to be unable to read res:// folder at all

This sounds like a scoped storage-related regression.

I have found a workaround (not a permanent fix tho);
Resetting the app's data allows me to view and edit a project normally once.
More details:
https://drive.google.com/file/d/17VnFaMENv-xXYkHsxdfF2Bac8dyjl-eL/view?usp=drivesdk

@Swarkin @AndyAnon14 The first time you open the Godot Android Editor, there should be a prompt asking for some storage related permissions. Did you provide access when requested?

Yes, when prompted to for file permissions, full permissions were given to Godot. My assumption is that the setting is not being saved, therefore when you exit the editor and go back into it, it does not show the project files. The indication that has prompted me to believe that is the case is that, in Settings, under Apps, when you look at the permissions for Godot, it shows that it does not have any permission other then full network access.

I have this exact same problem. I tested and it also occurs 3.5-rc8, but 3.5-rc7 works fine.

Sorry for the delayed reply.
@m4gr3d The app asked for the "All file access" permission (Not the usual "Files and media" permission tho)

...which I've accepted.
Permissions tab shows nothing:

I was able to reproduce the issue myself.. definitely a regression because I had tested that scenario before and it was working as expected.
I'll investigate what may be the cause of the issue.


Update tries.ts

Added a remove function to the Trie data structure, allowing the deletion of words from the Trie. The function works recursively through a helper method, removeNode, which traverses the Trie to unmark the end of a word and clean up unnecessary nodes (nodes that no longer belong to any word). This ensures that the Trie remains optimized after removing words. No other changes were made to the existing functionality.

Added functionality to remove words from the Trie with optimized node cleanup.


added additional filing code help

@mnewsted, looking at these changes, I don't think we can edit the question in this package, since it's using IL specific links and such. I'll copy it to the AppearanceEfile PR and merge it there though.


space-around-operator mess up with SASS mixin uses

What version of Sass Lint are you using?

1.10.2 via linter-sass-lint 1.7.4

Please include any relevant parts of your configuration

space-around-operator: 1

What did you do? Please include the actual source code causing the issue.

@import "variables"

.instruction-browser
  +box
  +displayFlex

  .instruction-browser-selection
    +box(350px, 100%)
    position: relative
    min-width: 250px

    .instructions, .containers
      +box(100%, 50%)

What did you expect to happen?

I expected no problem via the rule space-around-operator.

What actually happened? Please include any error messages given to you by Sass Lint.

I have 4 warnings because it consider the + of the mixins as an operator.

If you're using a IDE plugin have you tried the CLI too?

I use it via the linter-sass-lint plugin of Atom. I did not try it via CLI.

Possible AST issue with the token/context detection. Will check back once the gonzales v4 update is ready.

This should now be fixed as of v0.11.0. Let me know if you still have issues, thanks!


Analyzer: No error if library exports declaration 'main' which is not a function

This is the analyzer specific issue for #43549, which has the details.

Do we perform these new checks only when null safety is enabled, or always?

This is a null safety only update (here).

https://dart-review.googlesource.com/c/sdk/+/165960


[Markup] add support for swift-cmark's inline attributes

Resolves rdar://96830173
When the swift-cmark branch was changes from main to gfm in https://github.com/apple/swift/pull/40188, swiftMarkup was not updated to handle the new kinds of nodes that were introduced. This causes the compiler to crash when using swift-cmark's "inline attributes" (or Foundation's attributed strings, which use the same syntax). This PR updates swiftMarkup to handle inline attributes from swift-cmark.

@swift-ci Please test

@swift-ci Please test

@swift-ci Please test

@swift-ci Please test


add word

I'd like to add the word: "ok"
lol :)

wow that's not on there?!  pr?

Yea. :D
I cant currently do a PR.


Image jumps when 1 finger remains after pinch-zooming

When pinch-zooming an image, the image tends to jump up/down/left/right at the end of the pinch.
I can reproduce this on mobile android chrome with all three examples of the demo at https://8ypwzryom0.codesandbox.io/
The issue may affect any touch device.
Problem happens when you are releasing pinch (release 1 of 2 fingers), but a touchmove event is sent before you release second finger. This happens unintentionally often enough with touch devices (and clumsy fingers).
Steps to reproduce :

use zoom at least once so the zoom level is > 100

do a pinch zoom in or out

release one finger

move the remaining finger

I have debugged it around and here is what happens in the code :

First touch : imageSlider.startHandler is called, defining sx & sy, and also calling snapSlider.onStart which defines startHandleTop & startHandleLeft

Pinch zoom : Slider.moveHandler does nothing because isSliderEnabled() returns false

When one finger remains : slider moves using reference values from first touch, which are kinda broken by the zoom.

I have fixed it for my app with the following code, feel free to reuse or make your own proper fix.

_pinchAndZoom endListener

const endListener = (eEnd) => {
    // unbind events
    events.pinchMove();
    events.pinchEnd();
    this._state.zooming = false;
    // properly resume move event if one finger remains
    if ( eEnd.touches.length == 1 )
        this._sliders.imageSlider.startHandler(eEnd);
};

I also had to adjust that line in Slider.startHandler :

const isTouchEvent = (eStart.type === 'touchstart' || eStart.type === 'touchend');

I'd like to take this on!

Good Morning the issue is again live, in attach my test
https://user-images.githubusercontent.com/51959198/119322262-c3645b00-bc7d-11eb-836f-510e0f283611.mp4
Browser: Google Chrome v90.0.4430.210
Device: LG-H930
Android: 8.0.0
Link demo tested: https://8ypwzryom0.codesandbox.io/fullscreen-mode/example.html
Steps to reproduce:
same of top description
thanks
F. Cristaldi


Write a ERD for issue #72 (RBAC)

Write down a proposal for what changes we should introduce into the codebase:

Are we changing any existing models?  Creating new models?
Will we have 1 button that supports both the sign-in and sign-up functionality, or split up the behavior into separate buttons?
Are we creating any new pages, classes, controllers?

This was completed.  Here is the ERD

ERD is located here.


Changes to allow attaching a remote debugger to bin/sbt-test.

Description
Corresponding docs updates are available in https://github.com/civiform/docs/pull/109.
Release notes:
N/A
Checklist

[X] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release >
[ ] Created tests which fail without the change (if possible)
[X] Extended the README / documentation, if necessary

Issue(s)
Fixes #<issue_number>; Fixes #<issue_number>; Fixes #<issue_number>...

Codecov Report

Merging #3226 (49edd54) into main (ccf88d6) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #3226   +/-   ##
=========================================
  Coverage     79.62%   79.62%
  Complexity     2286     2286
=========================================
  Files           282      282
  Lines          9015     9015
  Branches        602      602
=========================================
  Hits           7178     7178
  Misses         1605     1605
  Partials        232      232

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


cargo-information: init at 0.4.2

Description of changes
Added new package cargo-information.
cargo-information is a tool for rust developers conveniently prints details about rust packages.
Things done
Tested on NixOS:
nixpkgs on  init-cargo-information [+] took 11s
❯ : nix run .#cargo-information -- info redact
    Updating crates.io index
redact #secret #logging #pii #password #no_std
A simple library for keeping secrets out of logs.
version: 0.1.9
license: MIT/Apache-2.0
rust-version: 1.65
documentation: https://docs.rs/redact/
repository: https://github.com/eopb/redact
features:
  default = [std]
  std     = []
  fake    = [dep:fake, dep:rand]
  serde   = [dep:serde]
  zeroize = [dep:zeroize]
dependencies:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>owners:
  eopb (Ethan Brierley)

Built on platform(s)

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

[x] Tested basic functionality of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Thank you for your review comments @Aleksanaa
I've force pushed, addressing your comments

Tested
=> cargo-info info libadwaita
    Updating crates.io index
  Downloaded libadwaita v0.6.0
  Downloaded 1 crate (108.1 KB) in 2.62s
libadwaita #gtk4-rs #gnome #adwaita #GUI
Rust bindings for libadwaita
version: 0.6.0
license: MIT
rust-version: unknown
documentation: https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs/stable/latest/docs/libadwaita
homepage: https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs/
repository: https://gitlab.gnome.org/World/Rust/libadwaita-rs
features:
  gtk_v4_10 = [gtk_v4_8]
  gtk_v4_8  = [gtk_v4_6]
  gtk_v4_6  = [gtk_v4_4]
  gtk_v4_4  = [gtk_v4_2]
  gtk_v4_2  = []
  gtk_v4_12 = [gtk_v4_10]
  v1_1      = [ffi/v1_1]
  v1_2      = [v1_1, ffi/v1_2]
  v1_3      = [v1_2, ffi/v1_3]
  v1_4      = [v1_3, ffi/v1_4]
  v1_5      = [v1_4, ffi/v1_5]
dependencies:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>


Azure Web App Easy Auth using Reverse Proxy

My organization manages one single endpoint which must be used to expose web application;
e.g.
https://contoso.com/app-one/
We deployed an app in az web apps with Azure AD Easy Auth. (not accesible from the internet and no custom domain).
https://app-one.azurewebsites.net/
Our app registration has this callback:
https://contoso.com/app-one/.auth/login/aad/callback
When i try to open any the app using https://contoso.com/app-one/, the browser recirects to Azure Login page, but it redirects back to https://app-one.azurewebsites.net., instead of going to the public website https://contoso.com/app-one/.
Our reverse proxy user Azure APIM.
Question is: how can i make Azure Web App to redirect to public endpoint instead of the azurewebsite endpoint?
Thanks.

Hi @jbizcloud , could you double confirm if you raise this question to the right repo? This is Azure Login Action, which supports you to login to Azure in GitHub Actions.

Hi @YanaXu, maybe by mistake. Would it possible you could direct me to the right channel please.
Looking for help with Azure AD Authentication with azure webapps.

Hi @YanaXu, maybe by mistake. Would it possible you could direct me to the right channel please.
Looking for help with Azure AD Authentication with azure webapps.

Let me see if we can find the right channel.


Codespaces for Tutorials

Describe your changes
I am adding the ability to spawn a preconfigured codespace for this repo specifically designed for executing the tutorials. This will allow for tutorial ease of use, and required less initial setup by users to run the exercises.
Testing performed
I built the documentation with the modifications and they changes all rendered fine. I also spawned the corresponding codespace and the exercises all work as expected.
Additional context
One thing to note, is I am not exactly sure how the link provided via the rendered button will work, only because I am pointing to the main branch for the bloomberg/memray repo, which currently does NOT have a devcontainer.json configured. But once, we do, that button should take the user to a screen to configure a corresponding codespace.
Docs for Codespaces
You can get an idea what that screen would look like by clicking the following link, pointing to my local branch.
https://codespaces.new/jcarnaxide/memray/tree/codespaces-for-tutorials

@godlygeek I have some additional instructions on how to run the tutorial using github codespaces.
If you have time to take a look, and want to include these updates for your sprinting tomorrow, feel free to have a look.
We would also greatly appreciate having this setup for our run through in Pycon Italia this week as well!
@statkute F.Y.I.

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

Project coverage is 92.86%. Comparing base (41248ed) to head (1ecdd4c).
Report is 47 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #601      +/-   ##
==========================================
+ Coverage   92.55%   92.86%   +0.30%
==========================================
  Files          91       92       +1
  Lines       11304    11234      -70
  Branches     1581     2055     +474
==========================================
- Hits        10462    10432      -30
+ Misses        837      802      -35
+ Partials        5        0       -5

Flag
Coverage Δ

cpp
92.86% <ø> (+6.92%)
:arrow_up:

python_and_cython
92.86% <ø> (-2.86%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


⚖ Register Validator: jayjay

Network Choice
drunemeton-1
Who are you?
I'm jayjay, community driven validator.
Delegator address
okp419qqqhuz7uae06ghp7sldpaf44pvllkj9fu7z0c
gentx
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"jayjay","identity":"34589DAF06970635","website":"https://twitter.com/javalry1","security_contact":"plantzoneofficial@gmail.com","details":"community driven validator"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"okp4valoper19qqqhuz7uae06ghp7sldpaf44pvllkj9umwt3e","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"jfDzR5/tdKipi+jVaNaJNZJN/OADAd76+PKWJCKGbvE="},"value":{"denom":"uknow","amount":"10000000000"}}],"memo":"d698ea5fe6d804bad0e9f129ce7229fb168d92d6@<IP_ADDRESS>:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Apal70sl3lSz//222IvmJzJz7JJuXhJni88WT4XTFNfB"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["pMtsQEvhJpuxv+1BP9OKcgA//v15LtjhNGxSfQ51owFSnjvj/h7PwRQfmE0e2pKnZCdecUoPRFDE7Lk1mnPPKA=="]}

😉 Here is the corresponding PR: https://github.com/okp4/networks/pull/651


Feature request: Add function explorer panel in Query Builder for user defined functions

Similar requests

[X] I have searched and found no existing similar requests

How are you using Studio?
Legend Studio
What problems are you trying to solve?
To enhance our user experience in using user-defined functions in the query builder.
Adding a function explorer panel would give users ability to explorer functions defined in the project and drag and drop into fetch structure panel.
Implementation Ideas/Steps

[ ] Enable a new panel for user-defined functions
[ ] Two modes of displaying by package or flatten out by function name
[ ] CONSIDER Leverage the doc.doc tag value so producers of function can add documentation for the function and consumers can read tag value and learn what function does
[ ] For functions whom return type is primitive users can DND directly into fetch structure.
[ ] Drag and drop into derivation panel
[ ] CONSIDER include on the fly calculated attributes where users can reuse defined attributes within query builder: @akphi - I have thought about this and I think we can support it but it doesn't have to persistable, meaning that within one editing session, the user can create their calculated attribute to save time, then DnD it etc. but this will not exist in the next editing session (I have seen this behavior in Google Sheets before with number format)
[ ] CONSIDER add a dropdown somewhere to enable/disable panels to show as we start to have too many panels (parameters, setup, explorer, functions, calculated attributes, etc.)

I have updated the list a bit to add my own refinement to the implementation plan


Move to admissionregistration.k8s.io/v1

Switch to admission v1 from v1beta1. This PR drops support for k8s <= 1.15.
Requires: https://github.com/k8snetworkplumbingwg/network-resources-injector/pull/96

fix #109

/lgtm

LGTM
I see in k8 ver1.16 release notes that v1beta1 will be deprecated in v1.19.
The admissionregistration.k8s.io/v1beta1 versions of MutatingWebhookConfiguration and ValidatingWebhookConfiguration are deprecated and will no longer be served in v1.19

Also
The MutatingWebhookConfiguration and ValidatingWebhookConfiguration APIs have been promoted to admissionregistration.k8s.io/v1

Does this mean v1 of this operator will work fine for ver. k8 < 1.19 ?
Can you add to https://github.com/k8snetworkplumbingwg/sriov-network-operator/blob/master/doc/quickstart.md
If you are running a Kubernetes cluster ver. 1.16 or greater :

Does this mean v1 of this operator will work fine for ver. k8 < 1.19 ?

Correct, anything above 1.15

Can you add to https://github.com/k8snetworkplumbingwg/sriov-network-operator/blob/master/doc/quickstart.md
If you are running a Kubernetes cluster ver. 1.16 or greater :

Those instructions are explicitly disabling the webhooks so it would not be a strict requirement. We should pay attention on #114 to add it though, or here once rebased.


Stripping Videos from Stakepool Course

Just a backlog issue, to see if it is beneficial to have SPO Videos in SPO school (as against commands), due to the nature and the videos being quickly out-of-date with current releases - as well as inability to maintain it outside of controller of the videos.

About replacing content... Publishing the videos on Vimeo could help (a bit) because there you can "replace" or update a video without changing the link. If you re-upload a YouTube video the link changes. However, this does not address the maintainability issue @rdlrt talks about.

Thanks for the hint. Of course, it not only has advantages if someone can simply replace the video that we are embedding.

since Stake Pool revamp is done, this issue can be closed?

Yip