@opentelemetry/instrumentation crashes when used with typescript esModuleInterop: true

What happened?
Steps to Reproduce
Create a Node application in TypeScript setting esModuleInterop: true in tsconfig.json. Add otel instrumentations using the @opentelemetry/instrumentation package. Transpile the application using esbuild (with target format CommonJS). Try to run the application.
Expected Result
Since the final application is a CommonJS file (not ESM) it should run without crashing.
Actual Result
Build warnings are produced and the application crashes.
Additional Details
This StackOverflow answer suggests that the culprit is indeed esModuleInterop: true. It seems to me that all that is needed is the following change here:
- import * as RequireInTheMiddle from 'require-in-the-middle'
+ import RequireInTheMiddle from 'require-in-the-middle'

OpenTelemetry Setup Code
import os from "node:os";
import { Logger } from "@warrify/json-logger";
import {
  diag,
  DiagLogLevel,
  trace,
} from "@opentelemetry/api";
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node";
import { registerInstrumentations } from "@opentelemetry/instrumentation";
import { AwsLambdaInstrumentation } from "@opentelemetry/instrumentation-aws-lambda";
import { DnsInstrumentation } from "@opentelemetry/instrumentation-dns";
import { AwsInstrumentation } from "@opentelemetry/instrumentation-aws-sdk";
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
import {
  SemanticAttributes,
  SemanticResourceAttributes,
  CloudProviderValues,
  CloudPlatformValues,
} from "@opentelemetry/semantic-conventions";

const logger = new Logger("tracing");

diag.setLogger(logger as any, DiagLogLevel.ALL);

try {
  const provider = new NodeTracerProvider();
  const spanProcessor = new BatchSpanProcessor(
    new OTLPTraceExporter({
      url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,
    })
  );

  provider.addSpanProcessor(spanProcessor);
  provider.register();
  trace.setGlobalTracerProvider(provider);

  registerInstrumentations({
    instrumentations: [
      new AwsInstrumentation({}),
      new AwsLambdaInstrumentation({
        requestHook: (span, { event, context }) => {
          span.setAttributes({
            [SemanticAttributes.AWS_LAMBDA_INVOKED_ARN]:
              context.invokedFunctionArn,
          });
        },
        responseHook: (span, { err, res }) => {
          if (err instanceof Error) {
            span.recordException(err);
          }
          if (res) {
            span.setAttribute("faas.res", res);
          }
        },
      }),
      new DnsInstrumentation({}),
      new HttpInstrumentation(),
    ],
  });
} catch (err: any) {
  logger.error(err);
}

package.json
{
  "dependencies": {
    "@opentelemetry/auto-instrumentations-node": "^0.36.4",
    "@opentelemetry/exporter-trace-otlp-http": "^0.36.1",
    "@opentelemetry/instrumentation": "^0.36.1",
    "@opentelemetry/instrumentation-aws-lambda": "^0.35.0",
    "@opentelemetry/instrumentation-aws-sdk": "^0.34.0",
    "@opentelemetry/instrumentation-dns": "^0.31.2",
    "@opentelemetry/instrumentation-http": "^0.36.1",
    "@opentelemetry/resources": "^1.10.1",
    "@opentelemetry/sdk-node": "^0.36.1",
    "@opentelemetry/sdk-trace-base": "^1.10.1",
    "@opentelemetry/sdk-trace-node": "^1.10.1",
    "@opentelemetry/semantic-conventions": "^1.10.1"
  }
}

Relevant log output
## during build

▲ [WARNING] Calling "RequireInTheMiddle" will crash at run-time because it's an import namespace object, not a function [call-import-namespace]

    ../../.yarn/__virtual__/@opentelemetry-instrumentation-virtual-4be7f7a678/0/cache/@opentelemetry-instrumentation-npm-0.36.1-606efe6525-07401e23e0.zip/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js:63:8:
      63 │         RequireInTheMiddle(
         ╵         ~~~~~~~~~~~~~~~~~~

  Consider changing "RequireInTheMiddle" to a default import instead:

    ../../.yarn/__virtual__/@opentelemetry-instrumentation-virtual-4be7f7a678/0/cache/@opentelemetry-instrumentation-npm-0.36.1-606efe6525-07401e23e0.zip/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js:27:7:
      27 │ import * as RequireInTheMiddle from 'require-in-the-middle';
         │        ~~~~~~~~~~~~~~~~~~~~~~~
         ╵        RequireInTheMiddle

## during runtime

2023-03-27T16:46:22.383Z	undefined	ERROR	Uncaught Exception
{
    "errorType": "TypeError",
    "errorMessage": "RequireInTheMiddle3 is not a function",
    "stack": [
        "TypeError: RequireInTheMiddle3 is not a function",
        "    at RequireInTheMiddleSingleton3._initialize (/var/task/index.js:53274:9)",
        "    at new RequireInTheMiddleSingleton3 (/var/task/index.js:53270:14)",
        "    at RequireInTheMiddleSingleton3.getInstance (/var/task/index.js:53317:91)",
        "    at new InstrumentationBase3 (/var/task/index.js:53386:75)",
        "    at new AwsInstrumentation2 (/var/task/index.js:55209:9)",
        "    at Object.<anonymous> (/var/task/index.js:82015:5)",
        "    at Module._compile (node:internal/modules/cjs/loader:1218:14)",
        "    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)",
        "    at Module.load (node:internal/modules/cjs/loader:1081:32)",
        "    at Module._load (node:internal/modules/cjs/loader:922:12)"
    ]
}

The suggested fix would require us to enable es module interop, which would in turn require our downstream consumers to enable it which we want to avoid. The real fix here is to add a named export to require in the middle so it can be used from Typescript more easily. The maintainer of that module was on the SIG call and is going to look into this for us.

@trentm I'll get a new release of require-in-the-middle out that does:
module.exports.Hook = Hook

My understanding from the call is that this will allow @opentelemetry/instrumentation to continue to use import * as RequireInTheMiddle from 'require-in-the-middle'.

@matthias-pichler-warrify I need some help reproducing what you see. I'd like to understand it and confirm that the proposed change in 'require-in-the-middle' will help.
I have an attempted repro here: https://github.com/trentm/repro-otel-js-issue-3701
The README shows my current status. There must be some difference between that and what you have in your project (code or tsconfig.json or esbuild options or "type": "module"). Can you either show a full repro that I could use or help me update my attempt to reproduce the same esbuild warnings?

Any estimation when this will be released?

Any estimation when this will be released?

It will be part of 1.13.0/0.39.0, next week most likely.


proxy tensor

take a look at #include <valarray>

std::valarray
std::indirect_array
std::gslice
std::slice

take a look at array_view


Header not being added

Hi
I am using your library and it was working fine until i tested the app in a low connectivity situation - low / intermittent signal.
In this case it does not show the header .
is this a known issue ? How can i get around it ?
Thanks

It's ok i found the issue

Hi @createS0ftware thanks for the issue :) There is something wrong with the library?


overview: show recent slow quries

complete #418

@breeswish , @Deardrops  PTAL

So fast 👍 I will review it tomorrow


[SDL 0282] Screen Manager Alert Manager

Proposal: Screen Manager Alert Manager

This proposal adds alert management (based on the Alert RPC) to the screen manager API.

Review: https://github.com/smartdevicelink/sdl_evolution/issues/948
Steering Committee Decision:

The Steering Committee voted to accept this proposal with the following revisions:

Use a builder pattern as described in this comment.
Change SDLAlertAudioData to be a subclass of SDLAudioData.
Change the audio data property and initializer to take an array to allow for multiple pieces of audio data.
Clarify "if the error value is present, then the alert failed to appear or the user aborted it, if not, then the alert dismissed without error." within the inline documentation for presentAlert.

The proposal .md file was updated to reflect these revisions on 3/9/2020.

The proposal markdown file has been updated per the revisions included in the accepted Revise SDL-0282 Screen Manager Alert Manager.
Accepted revisions can be reviewed in the merged PR here: https://github.com/smartdevicelink/sdl_evolution/pull/1111.

Implemented in #1555


Weird simulated result in LevelSetLiquidSim

Describe the bug
In the first example of LevelSetLiquidSim, simulated result is weird like below.
Screenshots
https://user-images.githubusercontent.com/24654975/116342791-2947f900-a81e-11eb-86d3-7799bc47d6ab.mp4

Thanks for the report! I'll fix it soon. 😢

@Snowapril Can you confirm the fix in #102? Thanks!

https://user-images.githubusercontent.com/24654975/117107526-ae9e5100-adbc-11eb-9d7f-7c28d68bb06a.mp4
LevelSetLiquidSim work correctly now! Great work!

I'll close this issue after PR is merged.

Ok. Sorry for closed issue by myself 😂

I merged the code that fixes this issue. Thanks for the report! :D


Fails to install under OS X 10.11

Yeah, installing the beta was probably a mistake. But this looks very similar to #220.
Any help would be much appreciated.
Here's what happens when I try to install:
/Users/will/code/char-rnn/ (master|✚ 2…) $ luarocks install cutorch
Installing https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode
Cloning into 'cutorch'...
remote: Counting objects: 81, done.
remote: Compressing objects: 100% (77/77), done.
remote: Total 81 (delta 7), reused 23 (delta 0), pack-reused 0
Receiving objects: 100% (81/81), 121.49 KiB | 0 bytes/s, done.
Resolving deltas: 100% (7/7), done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/will/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/will/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install

-- The C compiler identification is AppleClang <IP_ADDRESS>20053
-- The CXX compiler identification is AppleClang <IP_ADDRESS>20053
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /Users/will/torch/install
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found suitable version "7.5", minimum required is "5.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_cutorch-scm-1-307/cutorch/build
[  4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorSort.cu.o
[  4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o
[  6%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o
[ 10%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o
[ 13%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o
[ 13%] Generating TensorMath.c
[ 17%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o
[ 17%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o
Scanning dependencies of target cutorch_static
In file included from <built-in>:326:
In file included from <command line>:13:
In file included from /usr/local/cuda/include/cuda_runtime.h:112:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found
#include <string.h>
         ^
In file included from <built-in>:326:
In file included from <command line>:13:
In file included from /usr/local/cuda/include/cuda_runtime.h:112:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found
#include <string.h>
         ^
In file included from <built-in>:326:
In file included from <command line>:13:
In file included from /usr/local/cuda/include/cuda_runtime.h:112:
/usr/local/cuda/include/Icno mfmiolne_ fiunnccltuidoends .fhr:o6m5 :<1b0u:i lfta-tianl> :e3r2r6o:r
:I n' sftirlien gi.nhc'l ufdielde  fnrootm  f<ocuonmdm
a#nidn clliundee> :<1s3t:r
iInng .fhi>l
e   i n c l u d e d^
from /usr/local/cuda/include/cuda_runtime.h:112:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: In file included from <built-in>:326:
In file included from <command line>:13:
In file included from /usr/local/cuda/include/cuda_runtime.h:112:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found
#include <string.h>
         ^
'string.h' file not found
#include <string.h>
         ^
In file included from <built-in>:326:
In file included from <command line>:13:
In file included from /usr/local/cuda/include/cuda_runtime.h:112:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found
#include <string.h>
         ^
In file included from <built-in>:326:
In file included from <command line>:13:
In file included from /usr/local/cuda/include/cuda_runtime.h:112:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found
#include <string.h>
         ^
[ 19%] Building C object CMakeFiles/cutorch_static.dir/Storage.c.o
11 error generated.
 error generated.
CCMMaakkee  EErrrroorr  aatt  TTHHCC__ggeenneerraatteedd__TTHHCCBSltaosr.acgue.Coo.pcym.ackue.:o2.0c7m a(kmee:s2s0a7g e()m:e
s s aEgrer)o:r
  g eEnrerroart ignegn
e r a/ttimnpg/
l u a/rtomcpk/sl_ucaurtoocrkcsh_-csuctmo-r1c-h3-0s7c/mc-u1t-o3r0c7h//cbuutiolrdc/hl/ib/bTuHiCl/dC/Mlaikbe/FTiHlCe/sC/MTaHkCe.Fdiilre/s//.T/HTCH.Cd_igre/n/e.r/aTtHeCd__gTeHnCeBrlaatse.dc_uT.HoC
S
torag
eCopy.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1
[ 21%] Building C object CMakeFiles/cutorch_static.dir/init.c.o
[ 23%] Building C object CMakeFiles/cutorch_static.dir/Tensor.c.o
1 error generated.
CMake Error at THC_generated_THCTensor.cu.o.cmake:207 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-307/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o] Error 1
1 error generated.
1 error generated.
CMake Error at THC_generated_THCTensorCopy.cu.o.cmake:207 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-307/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1
CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:207 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-307/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1
[ 26%] Building C object CMakeFiles/cutorch_static.dir/TensorMath.c.o
[ 28%] Building C object CMakeFiles/cutorch_static.dir/TensorOperator.c.o
[ 30%] Building C object CMakeFiles/cutorch_static.dir/torch/utils.c.o
1 error generated.
CMake Error at THC_generated_THCStorage.cu.o.cmake:207 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-307/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCTensorSort.cu.o.cmake:207 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-307/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorSort.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorSort.cu.o] Error 1
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 32%] Linking C static library libcutorch.a
[ 32%] Built target cutorch_static
make: *** [all] Error 2

Error: Build error: Failed building.

string.h not found, man, that sounds pretty terrible.

yeah...

@willwhitney Were you able to resolve the issue?

Well, now I get a new message:
nvcc fatal   : The version ('70000') of the host compiler ('Apple clang') is not supported
I guess installing the El Capitan beta changed clang, but they didn't bump the number until now?
I'm working through the discussion about this issue over on NVidia's forums. There's a version of the CUDA tools out now that claims to support 10.11, so we'll see.

This thread recommended running xcode-select --install — apparently that gets uninstalled while upgrading. That gets me much further, to an issue which is actually cutorch-related:
Scanning dependencies of target THC
[ 73%] Building C object lib/THC/CMakeFiles/THC.dir/THCAllocator.c.o
[ 76%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorage.c.o
[ 73%] Building C object lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o
[ 76%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensorCopy.c.o
[ 80%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorageCopy.c.o
[ 80%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensor.c.o
/tmp/luarocks_cutorch-scm-1-9945/cutorch/lib/THC/THCGeneral.c:527:22: warning: implicit declaration of function 'THAtomicAddLong' is invalid in C99 [-Wimplicit-function-declaration]
  long newHeapSize = THAtomicAddLong(&heapSize, state->heapDelta) + state->heapDelta;
                     ^
/tmp/luarocks_cutorch-scm-1-9945/cutorch/lib/THC/THCGeneral.c:552:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
  if (abs(state->heapDelta) < heapMaxDelta) {
      ^
/tmp/luarocks_cutorch-scm-1-9945/cutorch/lib/THC/THCGeneral.c:552:7: note: use function 'labs' instead
  if (abs(state->heapDelta) < heapMaxDelta) {
      ^~~
      labs
2 warnings generated.
[ 82%] Linking CXX shared library libTHC.dylib
Undefined symbols for architecture x86_64:
  "_THAtomicAddLong", referenced from:
      _THCHeapUpdate in THCGeneral.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/THC/libTHC.dylib] Error 1
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

@soumith I think this is actually Torch-related now. Any thoughts?

Finally got this working by blowing away my Torch installation and reinstalling from scratch. Seems like some dependencies of cutorch were added to Torch recently.
Torch desperately needs an actual versioned release process. This is far from the first time these issues have cropped up.

ok, i'll work on setting up versioning etc. I agree with you about how finicky it gets sometimes.

@soumith, perhaps we should include xcode-select --install into the installation script?

Thanks, xcode-select --install has worked for me

and cunn. The error you would see is this:
nvcc fatal   : The version ('70002') of the host compiler ('Apple clang') is not supported

Sometimes the error messages are garbled. Concurrency build, I presume. I downloaded Xcode 6.4, and replaced my Xcode 7:
cd /Applications
sudo mv Xcode.app/ Xcode7.app
sudo mv Xcode\ 2.app/ Xcode.app # this is Xcode 6.4 when you install it
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
clang -v
#Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
#Target: x86_64-apple-darwin15.3.0
#Thread model: posix

But now I get another fatal issue:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found
#include

Seems like this is an issue people have, cutorch issue 241. Can be resolved by doing
xcode-select --install

This gets me a little further, now the issue seems related to torch.
make[2]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Accelerate.framework', needed by `lib/THC/libTHC.dylib'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 64%] Building C object lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o
[ 69%] Building C object lib/THC/CMakeFiles/THC.dir/THCAllocator.c.o
[ 71%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorage.c.o
[ 76%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensorCopy.c.o
[ 76%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorageCopy.c.o
[ 76%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensor.c.o
/tmp/luarocks_cutorch-scm-1-3748/cutorch/lib/THC/THCGeneral.c:633:7: warning: absolute value function 'abs' given an
      argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
  if (abs(state->heapDelta) < heapMaxDelta) {
      ^
/tmp/luarocks_cutorch-scm-1-3748/cutorch/lib/THC/THCGeneral.c:633:7: note: use function 'labs' instead
  if (abs(state->heapDelta) < heapMaxDelta) {
      ^~~
      labs
1 warning generated.
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

Looks like I'm missing Accelerate.framework, but it's very similar to the issue @willwhitney had. Will post back when I jump this hurdle.

Since I just updated to OS X 10.11, I presume frameworks in 10.10 should be ok. So this hack should be ok as well, to make Accelerate.framework appear.
ln -s "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"

Finally I try to luarocks install cutorch (and cunn), with success.

Adding my own experience to this helpful thread:
OSX 10.11.6
Tried building Torch when my CUDA version was ... 7.4 or something not up to date.
Got
torch nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported
Updated CUDA to 7.5.30, which other threads suggested would fix the problem... but it did not.
Tried sunapi's solution above (downgrade to Xcode 6 and install command line tools)...
build ran perfectly.

xcode-select --install worked for me as well.

Anyone in success ? I am still facing the same issue. I have installed CUDA 8 (from nvidia) and with mac sierra. Following are the current version running on my mac.

clang -v
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

xcode-select -v
xcode-select version 2345.1.

Googled a lot but couldn't able to get it solved. Getting following error while installing torch (./install.sh):
nvcc fatal   : The version ('80000') of the host compiler ('Apple clang') is not supported

@navneet1083

Your clang is telling you it is from Xcode 8.
Above comments were about Xcode 7 not working, but Xcode 6 was.

So use xcode-select and point to your Xcode 6 Developer folder.
I keep a few variants around in the /Applications folder and switch them like this.
sudo xcode-select -s /Applications/Xcode8.app/Contents/Developer

@sunapi386
So, are you suggesting me to downgrade the Xcode (8-to-7) ? if yes, then do i need to install from Appstore (the lower version) and try ?

@navneet1083 Did you even read my comment?

Above comments were about Xcode 7 not working, but Xcode 6 was.

How you get that is up to you.


Adding wsfcsstudents.net

wsfcsstudents.net is the student email domain for Winston Salem Forsyth County Schools, as seen in this page from one of our elementary schools. As a K-12 school system, it offers a number of computer science focused courses, such as AP CSA and AP CSP, as seen on this teacher's page.

@JackVandergriff Thank you for the attention to details. Pull request merged.


⚠ Secret Website 3 has degraded performance

In fbabc67, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2598 ms

Resolved: Secret Website 3 performance has improved in 4c6fca8.


[Bug]: Not identifying unreachable code when there's a panic error after an infinite loop

Description
Consider the following scenario where the unreachable code diagnostic should be displayed for panic error("").

Steps to Reproduce
function foo(int a) returns int {
   int x = 1;
   while (true) {
      x+=1;
   }
   panic error("");
}

Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

Invalid because of https://github.com/ballerina-platform/ballerina-spec/issues/1016


Add basic properties & methods to SparseQArray

Adding the basic properties to SparseQArray:

shape
ndim
mT

From the RFC, I think this PR should add:

dtype
shape
ndim
conj
dag
norm
unit
reshape
broadcast_to
ptrace (this one is not easy, either we do it in a separate PR, or we convert to dense and call dq.ptrace in the appropriate way)


Printing instructions fails unless you sleep between function creation and printing

As seen in the image below, iterating and printing the instructions of a newly created function does not work, unless you sleep between creating the function and printing its instructions.

The code:
from binaryninja import BinaryView, Function, Platform
import time

# Create a binary view from a data buffer
new_bv: BinaryView = BinaryView.new("\x55\x55\x90\x90\xc3")
new_bv.platform = Platform["linux-x86_64"]

# Create a function at the start address
new_bv.create_user_function(0)
func: Function = new_bv.get_function_at(0)

time.sleep(0.1) # <--- remove me and the print below does not work

for instr in func.instructions:
    print(instr)

If this is in headless (no UI), try calling new_bv.update_analysis instead of sleep.

Thanks, new_bv.update_analysis_and_wait() works. I though that after calling create_user_function, the fields of that function (like func.instructions) would be ready to use.
If this is intended we can just close it

Ah yes, update_analysis_and_wait(), corrected above.
So for headless processing it make sense to batch multiple analysis actions before requesting the core to perform the analysis. This can yield better performance, especially on multi-core machines. Thanks!

Just to clarify this is slightly different than the scripting console in the full UI because in that case, we assume you want to see updated results immediately for any command you run as it violates the principal of least surprise. You can see that here:
https://github.com/Vector35/binaryninja-api/blob/dev/python/scriptingprovider.py#L676-L677
Headless however is much more likely to be building a set of actions and you may want more control over when analysis updates since you can queue up multiple actions without being able to see the results.


Very slow start and weird behaviour on macOS

Describe the bug
A clear and concise description of what the bug is.
I face weird behaviour last couple month: lens start veeeery slow ~1-2 minutes
When I connect to any cluster I can't see pod's logs and exec into any container ~1-2 minutes
Expected behavior
All works well as it was before (open lens works well)
Screenshots
Lens slow start:

Lens no logs and exec button, extensions not working properly:

How it works in Open Lens, as it was sometime before in Lens:

Environment (please complete the following information):

Lens Version:
Lens: 2024.4.230844-latest
Extension API: 6.10.36
Electron: 27.2.4
Chrome: 118.0.5993.159
Node: 18.17.1
OS: macOS Sonoma 14.5 (23F79)
Installation method (e.g. snap or AppImage in Linux): dmg from website

Kubeconfig:
I use admin kubeconfig so there are no issues with it due to it worked well before
Additional context
So as you can see I can't use some extensions that provides some features, Lens starts very slow and doesn't allow to see any logs and exec to containers as fast as I can when I connect to cluster
I tried to delete and reinstall Lens from the official website and from the Brew - no luck, still the same

Does it work ok if you remove (or disable) installed extensions?

@jakolehm Hi!
Tried this way. Also tried to remove .k8slens with installed extensions and reinstall Lens

Could you remove following folder and then try again: ~/Library/Application\ Support/Lens/node_modules/

unfortunately it not helped
Lens still start slow and ~/Library/Application\ Support/Lens/node_modules/ folder recreates on startup

Same here—the startup is incredibly slow. It's been like this for a while and frankly lost hope. It was much better before.

@jakolehm hi!
Do you have any thoughts?

Kicking this can down the road....I see the same issue as well

I'm facing the same issue, any steps to resolve?

Reporting in as well:

Start lens takes a really long time
No extensions installed
Running on linux

Is there anything that I could provide to help debug this?

I've renamed the directory ~/Library/Application Support/Lens and it does help. Now Lens starts in 10-15 seconds instead of 1 minute before.

I use lens on linux, installed using snap. Where might this folder be located?

Anyone any input on this regarding the linux snap installation?

I have latest Lens version on Ubuntu with 32GB of RAM and i7 processor. Horrible performance like for many here :(

Lens startup time ~3-4 sec., idle cpu < 0.0.2 (i5 12400f), ram ~10MB.
Ubuntu 22.04. The Lens was removed from snap and installed with apt.


feat: 0.64 release

Article for the 0.64 release.

Link to the article itself is here: https://deploy-preview-2538--react-native.netlify.app/blog/2021/03/11/version-0.64


featured_image is not showing in Netlify

I have featured_image in markdown files.
When I build this in local machine, the image is shown up fine.
But when I deploy it to Netlify, there is no image shown up.
Not sure I have any wrong setup.

Hi @mkz71 Can you share your repo, please?

@budparr please check it here, https://github.com/mkz71/quickstart

Oh, sorry. Can you also point me to the URL on Netlify?

https://jtk.netlify.app

Ah, I see now. You have example.org in your config file:
baseURL = "http://example.org/"
You should change that to your actual URL

Wow, it is working now.
I didn't know that we need to update the baseURL too.
Thank you!


cookie samesite

Can you please add samesite lax to cookie please or make is configurable defaulting to lax.
Cookie “f-Flash” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

Could you also lowercase the -Flash (cookie name) please?

looks like you change -Flash to lowercase now which is appreciated.
This package no longer works unless I change your cookie code to set/get SameSite=Lax
I am not sure if its because of a browser upgrade or not, could you please configure to lax?

Hi @mybigman
Let me check it today

@mybigman
Please check https://github.com/sujit-baniya/flash/releases/tag/v0.1.7

thanks mate... seems all good now.


Problem

[READ] Step 1: Are you in the right place?

For issues or feature requests related to the code in this repository
file a Github issue.

If this is a feature request make sure the issue title starts with "FR:".

For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.

[REQUIRED] Step 2: Describe your environment

Xcode version: _____
Firebase SDK version: _____
Firebase Component: _____ (Auth, Core, Database, Firestore, Messaging, Storage, etc)
Component version: _____

[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
Relevant Code:
// TODO(you): code here to reproduce the problem

It looks like you didn’t actually submit the details of your problem. We’ll reopen once you do :-).


Remove version: Diladele.WebProxy version <IP_ADDRESS>

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

For moderators or/and anyone else

[!Caution]
As a result of several personal problems I've had over the last few months + my final exams coming up very soon, I'm currently unable to look at my GitHub notifications every day and maintain my executions correctly.
If you detect a certain problem on a certain pul request:

Either you can close the pull request directly without mentioning me.
Or you can send me a message on X (Twitter): @Exorcism0666

Thank you for your understanding, and I'm sorry if some pull requests can't be approved due to the situation I'm in.

This account is automated by Github Actions and the source code was created by CoolPlayLin. If you have any questions about any pull request, don't hesitate to ping Exorcism0666.

[!warning]
With the new version of Komac, numerous Pull Requests may contain bugs or unwanted elements. If such issues arise, please tag russellbanks so that these bugs can be addressed in future updates.

[!important]
Please carefully review these Pull Request before merging. If it is a Pull Request for removing incorrect content and the URLs are issue, free upon manual checking, please close this Pull Request directly. (It is best to inform Exorcism0666 of the closure.)

良い一日をお過ごしください！

/azp run

URL: https://packages.diladele.com/webproxy/2.8.0.BC43/amd64/release/windows/webproxy-2.8.0.BC43_amd64.msi
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 912)


feat: bump realtime-js to v2.7.0

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 62.814%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
84

Relevant Lines:
111

💛  - Coveralls


test(e2e): group all transformers tests into one single place

Summary

Group all e2e tests for transformers into one single place.
Test plan

Green CI
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
N.A.

Pull Request Test Coverage Report for Build 5943

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 93.211%

Totals

Change from base Build 5941:
0.0%

Covered Lines:
1136

Relevant Lines:
1170

💛  - Coveralls


Change the shape of buttons and inputs.

@cecileboucheron, would you mind checking this branch out and reviewing it? I also reduced the border size on the reaction button because 2px felt too large.

@keybase/react-hackers, this is ready for review.


Add mpld3 support

Will make use of: http://stackoverflow.com/questions/25069898/display-mpld3-chart-in-html-with-django

Might have to use HTML instead of json: https://www.snip2code.com/Snippet/60519/Interactive-Matplotlib-(Bar)-Chart-with-

Closed by #44.


The compiled application.js does not work in some browsers

There is a try catch block in the compiled application.js, which causes problem in some browser (also in fully kiosk browser on my tablet). The problem is that the catch has no parameters how ever it is expected. So this line
line 1267:      catch
should be replaced with this:      catch (error)

This is not an add-on issue, but an issue with AppDaemon itself, please report this with the AppDaemon project: https://github.com/AppDaemon/appdaemon


Create 0151-reverse-words-in-a-string.cs

File(s) Modified: 0151-reverse-words-in-a-string.cs
Language(s) Used: python
Submission URL: https://leetcode.com/problems/reverse-words-in-a-string/submissions/983208622/?envType=study-plan-v2&envId=leetcode-75

@gil906 Thanks for your contribution 👍. Your file accidentally used the CSharp extension. I fixed it to reflect the python extension


Adding Things Stack integration to SD1001, LORIOT needs checking.

@dhakke please change the PR branch from main to feature

@yobiiq-fostin  you don't need to change the branch anymore, I did

@artem-barysh-dev there are conflicts between my last commits and your changes in the ChirpStack downlink.

@yobiiq-fostin Today, I made adjustments to the converter for the downlink along with the corresponding payload and result, as there were errors that caused validation to fail. We can resolve this issue as follows: since you have already made a PR, it would be great if you could handle these conflicts on your side, using your version of the changes.

@yobiiq-fostin Okay, I see the conflicts are already resolved, so I’m starting to review your integrations.

@artem-barysh-dev thanks, you can also check the Loriot downlink issue.


Versioner Value

Just as an opportunity to provide feedback based on my experience with your previous cmlCiscoSparkSDK package was that versioneer was an unnecessary hurdle. The versioneer version determination would fail (0_unknown) or die depending on how I tried to install the package and the Py/Pip version being used. To be honest I had more issues installing that package due to versioneer than I had using the package. The value of using versioneer for what I expect will be a low touch package doesn't seem warranted IMHO if you want users to experience an easy an simple intro to Spark.
The versioneer issues I am referring to are documented here (https://github.com/warner/python-versioneer) under the section known limitations.
My AU$0.02!

Thank you marksull for the feedback!
Question for you... Were you trying to build a package or just install the package?  Versioneer shouldn't be a requirement for installing / using the package.  I use it (being lazy) only to save me the trouble of having to manually update version numbers.  With Versioneer I can just set git tags and then use setup.py to create a new distribution file.
Let me know what you are running into here.  I haven't had any issues with it, but if it is causing problems, I can always remove it and do things manually.

It is simply an installation issue. This quote is taken from the Versioner git page:
"Versioneer will look for .git in parent directories, and most operations should get the right version string. **However pip and setuptools have bugs and implementation details which frequently cause pip install . from a subproject directory to fail to find a correct version string (so it usually defaults to 0+unknown).
pip install --editable . should work correctly. setup.py install might work too.**"
The point I was simply trying to make is; does the value that versioneer brings justify its inclusion? I would say yes if this was a high touch package with lots of contributors, but if you are only going to do a few updates a year I would suggest maybe just manually set the version ;-)
It's just a suggestion, not a requirement. Feel free to disregard if you want to continue to use versioneer. Maybe I have simple been unlucky.
FWIW, I tested ciscosparkapi on 3.5.2 and 2.7.12 with the default pip and found it installed fine without having to use the versioneer workaround (pip install --editable .).
Below is another example of an installation failure of the cmlCiscoSparkSDK package due to versioneer.
(play-3-5-2) MARKSULL-M-41T1:py3 marksull$ git clone
https://github.com/cmlccie/cmlCiscoSparkSDK.git
Cloning into 'cmlCiscoSparkSDK'...
remote: Counting objects: 111, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 111 (delta 4), reused 0 (delta 0), pack-reused 98
Receiving objects: 100% (111/111), 44.30 KiB | 0 bytes/s, done.
Resolving deltas: 100% (49/49), done.
Checking connectivity... done.

** Lets install as we normally would **

(play-3-5-2) MARKSULL-M-41T1:py3 marksull$ cd cmlCiscoSparkSDK/
(play-3-5-2) MARKSULL-M-41T1:cmlCiscoSparkSDK marksull$ pip install .

Processing /Users/marksull/Development/Python/py3/cmlCiscoSparkSDK
Requirement already satisfied (use --upgrade to upgrade): requests in /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/lib/python3.5/site-packages/requests-2.7.0-py3.5.egg (from cmlCiscoSparkSDK==1.1+6.g033d05a)
Requirement already satisfied (use --upgrade to upgrade): pytz in /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/lib/python3.5/site-packages (from cmlCiscoSparkSDK==1.1+6.g033d05a)
Requirement already satisfied (use --upgrade to upgrade): future in /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/lib/python3.5/site-packages (from cmlCiscoSparkSDK==1.1+6.g033d05a)
Installing collected packages: cmlCiscoSparkSDK
  Running setup.py install for cmlCiscoSparkSDK ... error
    Complete output from command /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/bin/python -u -c "import setuptools, tokenize;__file__='/var/folders/jg/355kf3c9219693tz5y0gr4sh0000gn/T/pip-siys42br-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jg/355kf3c9219693tz5y0gr4sh0000gn/T/pip-s68mzvai-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/include/site/python3.5/cmlCiscoSparkSDK:
    /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/lib/python3.5/site-packages/setuptools/dist.py:285: UserWarning: Normalizing 'v1.1+6.g033d05a' to '1.1+6.g033d05a'
      normalized_version,
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/cmlCiscoSparkSDK
    copying cmlCiscoSparkSDK/__init__.py -> build/lib/cmlCiscoSparkSDK
    copying cmlCiscoSparkSDK/_version.py -> build/lib/cmlCiscoSparkSDK
    copying cmlCiscoSparkSDK/jsondata.py -> build/lib/cmlCiscoSparkSDK
    copying cmlCiscoSparkSDK/restapi.py -> build/lib/cmlCiscoSparkSDK
    copying cmlCiscoSparkSDK/sparkapi.py -> build/lib/cmlCiscoSparkSDK
    UPDATING build/lib/None
    error: [Errno 2] No such file or directory: 'build/lib/None'

    ----------------------------------------
Command "/Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/bin/python -u -c "import setuptools, tokenize;__file__='/var/folders/jg/355kf3c9219693tz5y0gr4sh0000gn/T/pip-siys42br-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jg/355kf3c9219693tz5y0gr4sh0000gn/T/pip-s68mzvai-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/include/site/python3.5/cmlCiscoSparkSDK" failed with error code 1 in /var/folders/jg/355kf3c9219693tz5y0gr4sh0000gn/T/pip-siys42br-build/

** Lets install using the workaround suggested by versioneer **

(play-3-5-2) MARKSULL-M-41T1:cmlCiscoSparkSDK marksull$ pip install --editable .
Obtaining file:///Users/marksull/Development/Python/py3/cmlCiscoSparkSDK
Requirement already satisfied (use --upgrade to upgrade): requests in /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/lib/python3.5/site-packages/requests-2.7.0-py3.5.egg (from cmlCiscoSparkSDK==1.1+6.g033d05a)
Requirement already satisfied (use --upgrade to upgrade): pytz in /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/lib/python3.5/site-packages (from cmlCiscoSparkSDK==1.1+6.g033d05a)
Requirement already satisfied (use --upgrade to upgrade): future in /Users/marksull/.anyenv/envs/pyenv/versions/3.5.2/envs/play-3-5-2/lib/python3.5/site-packages (from cmlCiscoSparkSDK==1.1+6.g033d05a)
Installing collected packages: cmlCiscoSparkSDK
  Running setup.py develop for cmlCiscoSparkSDK
Successfully installed cmlCiscoSparkSDK

oops, sorry clicked close ;-)

Gotcha.  I see what you are saying.  I haven't had any issues with it, and it should only affect those packaging and posting the distributions (which is just me right now).
Please test installing it from pip, and if you experience any issues, please let me know.
With this automation, the build process is very easy for me:
$ git tag v0.1.1
$ python setup.py sdist
$ twine upload dist/*

...so it is worth it to me.  If it causes issues, I don't have any problem removing the automation and managing the version numbers manually.
One of the big benefits to me is how Versioneer automatically automatically generates version numbers for builds in-between releases.  I can generate test builds and they will always have unique and identifiable version numbers.


External Auth Examples not working

The check for client.IdentityProviderRestrictions only looks for null, but that List<String> seems to be initialized to an empty list.
Should you add...  && client.IdentityProviderRestrictions.Count > 0?
(This is in AccountController.cs in the BuildLoginViewModelAsync(string returnUrl, AuthorizationRequest context) method)

Yep, I fixed this earlier today. Grab the latest.


[TEST] Add automation test case for orphaned backup cleanup

What's the test to develop? Please describe
Add test case for https://github.com/longhorn/longhorn/issues/3898.
Describe the items of the test development (DoD, definition of done) you'd like

[x] Add test skeleton.
[x] Implement automation test case

Additional context
https://github.com/longhorn/longhorn/issues/3898#issuecomment-1226705441

cc @mantissahz @chrisc1981

@mantissahz Please help at least add the test skeleton to the longhorn-test repo? then QA can help with the implementation in the future.

@chriscchien Can you check if this is passing on our nightly run, you can close this?

Close this ticket because test case test_backup_failed_enable_auto_cleanup and test_backup_failed_disable_auto_cleanup had consistent test result on pipeline :

master-head
v1.3.x
v1.2.x


Bug when using function upload

Your project is great, it's helping me a lot. However, I'm having trouble with the upload function, specifically the website I'm working on has multiple upload buttons, all of them have the same element like this
''' < input _ngcontent-xri-c509 multiple id="file_upload" type="file" accept=".DOC,.DOCX,.PDF,.XLS,.XLSX,.TXT,.JPG,.JPEG,.PNG"> '''
As you can see, it's using multiple id. If I use the copy selector from the web, all of them will return #file_upload, with this value the upload function can upload the file successfully, but only to the first button position.
Then I tried using full_xpath, the result returned True but no file was uploaded successfully, similar to xpath, because these elements are in different tables, their xpaths are roughly in the form
//table/tr[3]/td[8]/mat-radio-group/div/div/div/div[2]/input[@id="file_upload"]
//table/tr[4]/td[8]/mat-radio-group/div/div/div/div[2]/input[@id="file_upload"]
//table/tr[5]/td[8]/mat-radio-group/div/div/div/div[2]/input[@id="file_upload"].
However, with both xpath and full_xpath, the click functions work, but the upload function reports True but no file is uploaded successfully like when I use #file_upload. Looking forward to hearing from you and your help, thanks.

Hi @phatberstromgg there is technical limitation that upload() can only work with CSS selectors (see https://github.com/tebelorg/RPA-Python?tab=readme-ov-file#pro-functions)
Another problem is this website is badly designed with duplicated IDs which should be unique.
I can think of 2 ways you can try.
First way is your use dom() to change the ID to something unique before using upload(). But you need to be familiar with JavaScript code to query and make modifications.
Second way is use visual automation or keyboard step to visually automate clicking and uploading.


Factor out data import and fetch taxon children

Split the lib directory into ruby and js subdirectories
Extract data import code into a new module
Add children of each taxon to the JSON data
Change broken links on index page (we'll redo this later)
Link GOV.UK logo to index page
Hide sidebar if its empty (it shouldn't be empty, but at the moment we're reusing the template for errors and it was bugging me)

Next step is to expose more information to the taxon template.

cc @markhurrell

Looks good 👍


Hello, is this project still working

Is this project running normally

Yes, built the project via Docker today!

Builds following README for Docker


Devtools tab not showing in Firefox Nightly

Version
4.1.5
Browser and OS info
Firefox Nightly 64.0a1 (2018-09-27) / macOS 10.13.4
Steps to reproduce
Access development Vue project on localhost:8080, open Firefox Dev Tools after the toolbar button confirms that Vue was detected.
What is expected?
vuejs-devtools should be injected into the Firefox developer tools
What is actually happening?
No vuejs-devtools tab is to be found

Addon debugging console reports this error:
10:25:45.439 Unchecked lastError value: Error: An unexpected error occurred 11 devtools-background.js:1
i moz-extension://cddcbf0c-11b9-9d48-9f6e-f9c2b200d64c/build/devtools-background.js:1:620

Had this problem as well, looks like it's fixed in 64.0a1 2018-10-04, can this be closed?

Yep, I can report it as fixed as well. Closing.


FTV Channels

Addon Manifest URL
https://ftv-stremio.surge.sh/manifest.json
Addon Description
Live streams of various ftv channels in various qualities.

Does not work. Not working.


Use keycloak for invitations backend.

As keycloak already supports everything needed for the required invitation flow, it's ideal to use as the first backend to create users and to send them invitation mails.
This PR implements that as the first and (for now) only backend.

:boom: Acceptance test wopiValidatorTests-ocis failed. Further test are cancelled...

Note the following:
Beside adding a proper readme.md, it is necessary to follow the checklist for new services, see: #5710 (Missing ToDo list available in owncloud.dev when creating a new service).
This checklist is by purpose and should NOT be skipped - else our doc processes and other stuff does not work properly. Creating a readme should be done with this PR and only be postponed in  exceptional cases.
@kobergj fyi


Control names

Rather than Button1 and Button2 e.g. StartButton or ButtonStart or btnStart. I see developers on various forums using default control names and when they get stuck with tons of controls, well its hard to figure out and I think promoting good naming of controls will go along way in the devs future.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 543b0ddd-a641-0cb9-6285-81399497d237
Version Independent ID: 11c815f5-7fd2-8a4f-f2f9-02848a2e3d8d
Content: Declaring and Raising Events - Visual Basic
Content Source: docs/visual-basic/programming-guide/language-features/events/walkthrough-declaring-and-raising-events.md
Product: dotnet-visualbasic
GitHub Login: @KathleenDollard
Microsoft Alias: kdollard

Good idea!


Make it possible to load state from both *.yml and *.yaml files

It's already done somehow, no need to fix anything.


Fix Kubernetes annotation to match all kube cluster imlementation

Type of change

Bugfix

Description

Allow to match all kubernetes implementation not only minikube
Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[ ] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

@lulf @obabec I tested it with ocp and microk8s and it works, so from now tests marked with @Kubernetes annotation will run on all kube implemnetations except ocp, @Kubernetes(type = ClusterType.Minikube) will enable tests only on minikube for example.

@lulf im not sure if this failed test in pr ever worked because it has never beed triggered in pr because of wrong kubrnetes detection

@kornys Yeah, thats what I'm thinking to. I'm looking into it.

@lulf so do you agree with merging this PR?

@lulf @obabec job passed so can I merge it?

@kornys Looks to me like this causes OpenShift to run tests annotated with Kubernetes as well. Should we have a way to specify Kubernetes-only?


Discovery API fails silently after high traffic (200 req / second)

Describe the bug
When stress testing discovery-api, if it becomes overwhelmed, it's presto connection will break and not automatically restore. The API will become non-functional, and doesn't know to restart itself.
To Reproduce
Steps to reproduce the behavior:

Download JMeter for stress testing
GET Query the dev discovery-api /api/v1/organization/parkmobile/dataset/parking_meter_transactions_2020/query with 200 users. (May take multiple attempts / a slight bump to the 200 number)
Notice that dev discovery ui will fail to load any SQL terminals and report that it failed to reach the API
Confirm that the discovery-api pod errors when attempting to connect to presto, as described with the below error and shown in pod logs.

[error] POST http://kdp-kubernetes-data-platform-presto.kdp:8080/v1/statement -> error: :checkout_timeout (80
[error] #PID<0.23441.1> running DiscoveryApiWeb.Endpoint (connection #PID<0.4612.0>, stream id 11) terminated

Expected behavior
If the API Reaches the broken presto checkout_timeout state, that's fine, but it should at least be detected somehow, possibly in the health endpoint. This way the pod can restore itself to a functional state again.
Additional context
Originally discovered by @bmitchinson and @christinepoydence

As per @LtChae, this error is likely caused by the worker pool in Prestige not being large enough to accommodate the number of requests.

After several further attempts to reproduce this, we were unable to crash the API as described.
It would crash, but not silently. It would start up a new API pod within seconds with minimal down time.
@christinepoydence are you alright with me closing this until this is ever reproduced. Can reopen at that time.

When making 50 requests to the API, after scaling it's deployment to 4 instances, we received the same error (shown below and originally mentioned above) on one of the four pods. The pod was not reported as unhealthy, so we had to find which one it was, restart it, and attempt the test again. After 2nd attempt of the test, the same thing occured, so it seems to be more consistently reproducible now.
Is this a problem like Tim said, where we need to scale the Prestige workers? And the API Pods are actually fine?
16:06:48.899 [error] POST http://kdp-kubernetes-data-platform-presto.kdp:8080/v1/statement -> error: :timeout (8009.072 ms)
16:06:48.899 [error] Error explaining statement: SELECT * FROM parkmobile__parking_meter_transactions_2020
ORDER BY paymentdate DESC
LIMIT 1
16:06:48.899 [error] %FunctionClauseError{args: nil, arity: 2, clauses: nil, function: :validate, kind: nil, module: Prestige.Client.RequestStream}

From that error, it looks like it may be timing out trying to get access to presto. Try running the test with the presto console up and watch to see if presto struggles with the load.

@LtChae - we did this and didn't see any issues in the preto console. It seemed to only receive 45 out of the 50 requests that we sent, but it handled those just fin.


Use current head in editor test

#351 was too simple; it always uses main in Open-Reaction-Database/ord-schema.

& this will get the right version even though GITHUB_REF is set to refs/heads/main?

Yes, the --build-arg flags in the GitHub Action YAML override the default values in the Dockerfile.


Validation accuracy is not changing

Hi....
I am using Ktrain for text classification task.  I observed that validation accuracy is not changing ....its the same..please advise what could be the reason?
Piece of code:
MODEL_NAME = 'albert-large-v2' t = text.Transformer(MODEL_NAME, maxlen=500, class_names=train_df.tweet_label_int.unique()) trn = t.preprocess_train(x_train, y_train) val = t.preprocess_test(x_test, y_test) model = t.get_classifier() learner = ktrain.get_learner(model, train_data=trn, val_data=val, batch_size=6)
`# learner.fit_onecycle(8e-5, 20)
Below is the image showing same validation accuracy for all epochs

I feel I have to change something in optimizer or activation function? but don't have any idea from where I can and how? appreciate if you can guide considering me a newbie
PS: Running on google colab- using (!pip3 install ktrain)

It is probably something related to your data and/or labels, rather than the code.  If you post the data or a Google Colab reproducing the problem, I can take a look.

Thanks alot for your quick reply.
test_sample-x.xlsx
train_sample-x.xlsx
Sample of Train and Test data is attached. Could you please advise? I use batch size= 6, lr=8e-5

It is probably something related to your data and/or labels, rather than the code. If you post the data or a Google Colab reproducing the problem, I can take a look.

Thanks alot for your quick reply.
test_sample-x.xlsx
train_sample-x.xlsx
Sample of Train and Test data is attached. Could you please advise? I use batch size= 6, lr=8e-5

What are the labels supposed to represent?

What are the labels supposed to represent?

text is critical of vaccines then the label is 1; otherwise the tweet is vaccine promoting or neutral then the label is 0

I think the problem is that the applied labels are inconsistent and don't always make sense.  For instance, this tweet is labeled as 1 (critical of vaccines):

In encouraging sign, Ebola vaccine appears to provide long-lasting protection https://t.co/sa5V7ppB43 via @statnews

Used same data when I used Keras for same transformer model... it is working fine...so what could be reason? seems no issue with data?

I tried your dataset with DistilBert  in addition to other models (e.g., BERT, XLNet) and every model I selected trained just fine and yielded a low loss (despite aforementioned issues with your data), which suggests the problem isn't with ktrain but with the model (see below).  It is only when you use albert-large-v2  that the loss doesn't improve with the hyperparameters you used.   Also, ktrain is just a lightweight wrapper around tf.keras, so it is very unlikely that something would work in tf.keras and not in ktrain.
When you used keras and albert-large-v2 did you use the transformers library? From your Colab, it looks like you were using TF HUB, so perhaps this is a bug in transformers library with the Albert model?  You might also try different hyperparameters lke increasing the batch size.  In any case, things do work with other models like DistilBERT (which is fast and light like Albert should you choose to use it).
import pandas as pd
df = pd.read_csv('data/example.csv')
y_train = df['tweet_label_int'].values
x_train = df['Tweets'].values

# build, train, and validate model (Transformer is wrapper around transformers library)
import ktrain
from ktrain import text
MODEL_NAME = 'distilbert-base-uncased'
#MODEL_NAME = 'albert-large-v2'
t = text.Transformer(MODEL_NAME, maxlen=128, class_names=['not critical', 'critical'])
trn = t.preprocess_train(x_train, y_train)
val = None
model = t.get_classifier()
learner = ktrain.get_learner(model, train_data=trn, val_data=val, batch_size=8)
learner.fit_onecycle(5e-5, 6)

Begin training using onecycle policy with max lr of 5e-05...
Epoch 1/6
13/13 [==============================] - 1s 60ms/step - loss: 0.6623 - accuracy: 0.6364
Epoch 2/6
13/13 [==============================] - 1s 58ms/step - loss: 0.5182 - accuracy: 0.8182
Epoch 3/6
13/13 [==============================] - 1s 57ms/step - loss: 0.4607 - accuracy: 0.8182
Epoch 4/6
13/13 [==============================] - 1s 59ms/step - loss: 0.3797 - accuracy: 0.8182
Epoch 5/6
13/13 [==============================] - 1s 58ms/step - loss: 0.2312 - accuracy: 0.8586
Epoch 6/6
13/13 [==============================] - 1s 58ms/step - loss: 0.1579 - accuracy: 0.9293

albert-large-v2

Thank you very much ... Could you please how to handle highly imbalanced text data and use transformers via ktrains? any tutorial/ notebook? Appreciate that.

Imbalanced data is handled in the same way as in tf.keras:  all *fit* methods accept a class_weight parameter.  See this post.

Imbalanced data is handled in the same way as in tf.keras: all *fit* methods accept a class_weight parameter. See this post.

Thanks for your quick response (Appreciate that).
in my training data:  Class ''0'' = 7377 samples  and Class"1"= 974 samples. (Class '0' is almost 7.5 (8) times more than class '1')
now as you mentioned ...What iI should be doing from below mentioned examples?

class_weight = {0: 1,                 1: 8}  # not sure if I am doing right or not...Pls advise
learner = ktrain.get_learner(model, train_data=trn, val_data=val, batch_size=6, class_weight=class_weights)
or
class_weight = {0: 1,                 1: 8}   # not sure if I am doing right or not...Pls advise
learner.autofit(5e-5)

Hi....
In case we want to use ALBERT models do we have to use any special "preprocess_mode" or default standard will work? Also what if we want to use other variant of BERT? in below it downloads only one variant what if we want to use another one?
Appeciate if you could clear this query too. Thanks


pull_request_target avoid clarification

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
What part(s) of the article would you like to see updated?
Clarify pull_request_target avoid:

Avoid using this event if you need to build or run code from the pull request.

Additional information
No response

@kevingentile thanks for opening an issue and submitting a PR! ✨

I am so amused how you responded so breavlly and helpfully to me while I number one making enough troble to all
I am rally so speechless

When the doc was speeded out so wiled didn’t deal sorry or shamed of my self
However helping me back after all I did to all it  really got me deep
I oow you all my life
Thanks


Watch partials

Hi,
I'm currently using the plugin to generate my css from an scss file imported in the main js file as such:
import './../styles/main.scss'
Running the rollup command with the watch flag, when i save the main.scss files it recompiles fine, however if I change any of the partials, its not detected.
Is there a way for the rollup watch to extend to those partials?

Hi @mwerezi , I think --watch flag only helps recompile automatically. so u have to refresh browser manually. Maybe u need live reload during development.Checkout quick start docs from rollup wiki.
I use below configuration file and auto recompile worked for me:
// package.json
{
  "devDependencies": {
    "rollup": "^0.41.4",
    "rollup-plugin-babel": "^2.7.1",
    "rollup-plugin-sass": "^0.4.9",
    "rollup-watch": "^3.2.2"
  }
}

// rollup.config.js
import babel from 'rollup-plugin-babel'
import sass from 'rollup-plugin-sass'

export default {
    entry: './src/index.js',
    dest: './dist/index.js',
    format: 'cjs',
    plugins: [
        sass({
            insert: true
        }),
        babel({
            runtimeHelpers: true
        })
    ]
}

./node_modules/.bin/rollup -c --watch

I think what @mwerezi is saying is that rollup is not aware of the sass dependency tree and does not recompile sass dependencies but only the entry file (i.e. main.scss).
Let's say my main.scss imports (with sass imports) a file some/partial.scss:
@import 'some/partial.scss';

If I modify main.scss it will be detected by rollup as it's in the dependency tree via an es6 import. But if I modify some/partial.scss, it won't as rollup has no idea of the sass dependency tree.
@mwerezi One workaround is to import everything with es6 imports and not use sass @import at all.
@differui  Still it feels we are losing something here. I don't really know what facilities rollup offers to plugin authors, but do you think there would be a way to make rollup aware of those sass @imports?

@mwerezi Oops, sorry for misunderstood.
We use node-sass compile .scss and .sass in this plugin.So it's not possible that rollup can track dependency tree of stylesheets for us.
rollup-watch looks like using modules entry to track dependencies.As we can see this plugin leave this entry empty.
// ./src/index.scss
@import './partial.scss';

body {
    font-size: 12px;
    color: green;
}

// ./src/index.js
import css from './index.scss';

console.log(css);

// build.js
const rollup = require('rollup');
const sass = require('rollup-plugin-sass');
const babel = require('rollup-plugin-babel');

rollup.rollup({
    entry: './src/index.js',
    dest: './dist/index.js',
    format: 'cjs',
    plugins: [
        sass({
            insert: true
        }),
        babel({
            runtimeHelpers: true
        })
    ]
}).then(bundle => {
    console.log(bundle.modules);
}).catch(e => {
    console.log(e);
});

And here is the output:
[
  {
    id: ~/src/index.scss',

    // rollup-watch track nothing
    dependencies: [],
    code: 'export default ___$insertStyle("body {\\n  font-size: 12px; }\\n\\nbody {\\n  color: green; }\\n");;',
    originalCode: '@import \'./partial.scss\';\n\nbody {\n    color: green;\n}\n',
    ast:
     { type: 'Program',
       start: 0,
       end: 95,
       body: [Object],
       sourceType: 'module' },
    sourceMapChain: [ [Object], [Object] ],
    resolvedIds: {}
  },
  {
    id: '~/src/index.js',

    // rollup-watch track index.scss
    dependencies: [ '/Users/differui/Sandbox/rollup-watch/src/index.scss' ],
    code: 'import css from \'./index.scss\';\n\nconsole.log(css);',
    originalCode: 'import css from \'./index.scss\';\n\nconsole.log(css);\n',
    ast:
     { type: 'Program',
       start: 0,
       end: 50,
       body: [Object],
       sourceType: 'module' },
    sourceMapChain: [ [Object] ],
    resolvedIds: { './index.scss': '~/src/index.scss' }
  }
]

I don't know how plugins put those stuff in modules (maybe include resolvedIds) for now. But as the workaround that @mwerezi talked.But let plugin do the dirty stuff.Plugin can transpile @import ./path/to/style.scss to import ./path/to/style.scss as part of output.As so the track maybe works.

@differui I think it's potentially possible to inject sass dependencies into rollup as others plugins do it in some way. commonjs would be the most famous of this. It parses the ast and search for require and then somehow (transpilation?) make rollup aware of it.
So theoretically I guess, it would be possible to transpile or grab every @import in the sass source and make rollup aware of those dependencies. How to do that, I don't know 🤓

@Rich-Harris sempai, do you think it would be something achievable?

This is something that we'd like to implement: https://github.com/rollup/rollup/issues/1203
Does the proposal in that issue (returning a { code, map, dependencies } object, or a promise that resolves to one) seem like it would work? I'm not familiar with how the SASS compiler works, but presumably it has a way of reporting which files were imported?

@Rich-Harris Thanks for your quick feedback 🎉
Given my limited knowledge of rollup plugin API I feel that https://github.com/rollup/rollup/issues/1203 would allow to resolve this issue.
@differui What do you think?

@Rich-Harris  It's fine to have the mechanism that plugin tells rollup dependencies information.
@mwerezi I did little doc research.node-sass flatten dependency tree into a plain array which stored as  includedFiles  in result-object.

@ngryman If I remember well, I tried that but then I had a problem with rollup-plugin-hash although i've now switched to doing my own hashing. I might give es6import a go again

@ngryman You've propose workaround:

One workaround is to import everything with es6 imports and not use sass @import at all.
I've tried it but sass is loosing context when files are setup in js file.

For example if I have Styles.js with:
import 'scss/variables.scss; import 'scss/components.scss
Variables defined in variables.scss are not visible in components.scss. Do you have idea how to workaround this?

@pawel-kontakt I think you may try to import scss/variables.scss  both Styles.js and scss/components.scss. One for deps tracking in rollupjs and another one for keeping context in sass.

@pawel-kontakt You have to use sass @import for sass related stuff (variables, mixins, ...). You only use JavaScript import for outputed CSS.

@ngryman If scss/variables.scss not imported in JavaScript realm, rollup.js can not trace it and not rebuild after scss/variables.scss changed.Cause we lack the mechanism that plugin tells rollup.js dependencies information.

I was afraid that including same file in js and scsss will cause it content to be duplicated in output - but it is not - I've tested it in simple config.
For me this solution is good enough, thank you.

@pawel-kontakt It's OK.rollup.js will eliminate unused variables.

@differui Yes true forgot about that.

I solved it for the less plugin by declaring the less imports as ES module dependencies (as @differui
suggested). Now rollup considers these files as dependencies and watches them too.

I solved @pawel-kontakt's issue in a new Sass plugin: http://github.com/nathancahill/rollup-plugin-collect-sass
It does a first pass to collect all of the imports, then compiles all of the imported Sass in a single context, so variables are available across JS imports, without risking CSS duplication (Rollup handles JS duplication but not CSS).

Is there any solution to this issue? Looks like the MR #30 would fix it, but it needs an update

https://github.com/es128/progeny could be integrated to recursively find all dependencies

Any updates on the issue?

I have a similar problem with rollup-plugin-scss. I was considering switching to this project, but defining SCSS partials in an .js file is not an acceptable solution to me. Will look into this more.

@kazzkiq, rollup-plugin-postcss support partials

As @sidati said, the PostCSS plugin works with partials. And PostCSS supports SASS as a plugin.
So perhaps using PostCSS may be a fit substitute for this project:

Remove this plugin from your project;
Add rollup-plugin-postcss instead;
Add SASS plugin in your rollup.config.js;

I don’t get it. Isn’t partials the most important thing about sass? What is a sass plugin without partials?

This is what works for me if that helps
const mySass = ({ minimize = false }) => ({
	name: 'my-sass',
	async load(id) {
		if (!id.endsWith('.sass')) {
			return
		}

		const sassResult = sass.renderSync({ file: id, indentedSyntax: true, outputStyle: 'expanded' })
		sassResult.stats.includedFiles.forEach(it => this.addWatchFile(it))

		const referenceId = this.emitFile({
			type: 'asset',
			name: path.basename(id, '.sass') + '.css',
			source: sassResult.css,
		})

		return `export default import.meta.ROLLUP_FILE_URL_${referenceId}`;
	},
})

Tests written (#129 ) - This is currently fixed in library versions 1.12.22+.


Add explicit enumerations

Refering to #114 and replacing #83
This allows to specify on the header the values available in the enumeration, without querying the sparql endpoint. Header should have the following format:
#+ enumerate:
#+   - var:
#+     - value1
#+     - value2
#+     - value3

Thanks for this @c-martinez , awesome!
I see you preserved the old enumeration behaviour under get_enumeration_sparql, which is very cool. Is there also compatibility with this in the metadata? So if you use the new format, the enums will be filled with the user-supplied options; if you don't, the old, slow endpoint querying will be used?

Yes, the idea is for it to be backwards compatible.
test_get_enumeration tests for the endpoint option, which doesn't break, so I am assuming it is still working fine.

Thanks a bunch! :)

Thank you for the merge!


fixfix hive keberos principal usage

Proposed changes
Hive just offer its principal for ssl transport to check, do not use for UGI, so we should remove it

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Bottom table border sometimes missing in settings

As reported on CZO, the table's bottom border is sometimes missing in settings.

It would be good to fix this. See linked CZO discussion for reproducer details.

CZO thread

@zulipbot claim


CSP Quiz:  Confirm 'reset score' before resetting

Since resetting the score is not reversible, we should confirm that the user wants to reset it to avoid accidental resets.

Added confirm box on reset scores.


Bug fix/internal issue 2764

fixed https://github.com/arangodb/planning/issues/2764

@Simran-B : setting the replicationFactor higher than the number of DB servers is possible also via ArangoShell. If we want to disallow this, the server should respond with an error, and the web interface does not need to do anything special here.

@jsteemann My understanding is that you can set a number higher than the DB servers only if enforceReplicationFactor is explicitly turned off, which you can't in the web UI (also see https://github.com/arangodb/planning/issues/3059).
If I set a factor of 5 in the web UI with only 3 DB servers in the cluster, then I get the following toast messages:

Collection: Collection "test" will be created.
Error: the number of current dbservers is lower than the requested replicationFactor

If I create a collection with e.g. factor 2, everything goes well. If I then go to the collection settings and change it to 5, Save, I only get:

Collection: Successfully changed.

Does it accept any number at this point (i.e. change is in fact applied, waiting for more DB servers)? Does it only check the replication factor on initial collection creation if enforceReplicationFactor is on?
There is no mention of replicationFactor and enforceReplicationFactor in the docs for the endpoint to modify collection properties:
https://docs.arangodb.com/3.3/HTTP/Collection/Modifying.html#change-properties-of-a-collection

It's only enforced on collection creation, not when updating a collection later.

I don't know if this is intentional or not.
Feel free to open an issue for this if you think it makes sense from the user perspective. But we should not couple it with this issue (6812)


strict decoding error: unknown field "spec.FailsafeInboundHostPorts"

FelixConfiguration fails to apply using calico-operator. Setting FailsafeInboundHostPorts gets rejected.
calico.yaml
apiVersion: projectcalico.org/v3
kind: FelixConfiguration
metadata:
  name: default
spec:
  bpfLogLevel: ""
  ipipEnabled: true
  logSeverityScreen: Info
  reportingInterval: 0s
  FailsafeInboundHostPorts: []

kubectl apply -f calico.yaml

globalnetworkpolicy.projectcalico.org/allow-outbound-external configured
The request is invalid: patch: Invalid value: "map[metadata:map[annotations:map[kubectl.kubernetes.io/last-applied-configuration:{\"apiVersion\":\"projectcalico.org/v3\",\"kind\":\"FelixConfiguration\",\"metadata\":{\"annotations\":{},\"name\":\"default\"},\"spec\":{\"FailsafeInboundHostPorts\":[],\"bpfLogLevel\":\"\",\"ipipEnabled\":true,\"logSeverityScreen\":\"Info\",\"reportingInterval\":\"0s\"}}\n]] spec:map[FailsafeInboundHostPorts:[]]]": strict decoding error: unknown field "spec.FailsafeInboundHostPorts"

Using the same configuration with the calicoctl applies without an error and works as expected.
./calicoctl apply -f calico.yaml

Using Calico v3.27.3 on self hosted Kubernetes v1.28.8, Debian 11

If I use calicoctl everything works as expected. I guess operator is responsible for the scheme validation when configuration is passed from kubectl, I am not an expert in that so I can be wrong.

Related issue: https://github.com/projectcalico/calico/issues/8782

The operator should have no role in that validation, I think it would the the calico-apiserver that would be doing that validation.

The issue was in FailsafeInboundHostPorts first capital letter. Must be failsafeInboundHostPorts


Create Session Feedback page

Overview (Required)
Maybe it's good to use GoogleForm API.
https://github.com/konifar/droidkaigi2016/blob/master/app/src/main/java/io/github/droidkaigi/confsched/api/DroidKaigiClient.java#L48
Links

https://github.com/konifar/droidkaigi2016/blob/master/app/src/main/java/io/github/droidkaigi/confsched/activity/SessionFeedbackActivity.java

Still opened?

Session feedback URL :muscle:
https://docs.google.com/a/mercari.com/forms/d/e/1FAIpQLSf5NydpYm48GXqlKqbG3e0dna3bw5HJ4GUg8W1Yfe4znTWH_g/viewform

Will do!!!


Incorrect Payload parsing

While the Addition list is populating properly, the progress circle is not being set properly.

Turns out this was a server side issue. Resolved with SirSeim/bakus-service#51


There is no error message when inputting a Cosmos DB account with name "elsa-"

OS: All
Build Version: 20200711.5
Repro Steps:

F1 --> Azure Databases: Create Server... --> Select Core(SQL) --> Input a Cosmos BD account name with "elsa-".
Check the result.

Expect:
There is an error message, such as:

Actual:
There is no error message.

More info:

This issue also reproduces when selecting Azure Cosmos DB for MongoDB API/Azure Table/Gremlin.
This issue doesn't reproduce when selecting PostgreSQL.

Output Logs:
1:49:58 PM: Creating Cosmos DB account "elsa-" with the "Gremlin" API... It should be ready in several minutes.
1:50:02 PM: Error: The character '-' at index 4 is not allowed in the DatabaseAccount name
ActivityId: 683cb76b-c2f2-4b31-960e-c6b9b50fedfd, Microsoft.Azure.Documents.Common/2.11.0

PostgreSQL has different validation rules for username and password compared to Core(SQL)/Gremlin/Mongo/Table. However, "test-" is an invalid input on Azure portal for the all four accounts. We will get to fixing this.

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!


Add finite conjectures

I add finite conjectures for two implications that Terence proved on Zulip and a set that I have been able to verify using Duper but not yet been able to convert the Vampire proofs for.
See https://leanprover.zulipchat.com/#narrow/channel/458659-Equational/topic/Austin.20pairs/near/481257624

Also just wanted to note that while the list looks a bit long, this is due to not having the Facts syntax and the conjectures have been transitively reduced.


evidence item summary should show extended attribute descriptions in tooltips

The tooltip would show the same description we show on the add evidence form for each field value, e.g. 'variant is found only in tumor cells' for variant origin.

yeah this is a great idea.

Done.


Org Refactor

:construction_worker: Purpose
Pull in organization refactor, and some cleanup. Closes https://github.com/RTradeLtd/Temporal/issues/425
:rocket: Changes

Add helper function to invoke post-account creation handler
Pull in database update to include refactored billing report
Enable returning a paginated response of org user(s) uploads, or return org user(s) uploads as a CSV file
Implements staticcheck in ci
Fixes staticcheck issues

:warning: Breaking Changes
Technically the billing report response is different, but its an experimental feature so :woman_shrugging:

~There's a bug when requesting a non-csv user upload, the response contains nothing, but if using a single user it works.~
Going to scrap returning multiple users at once, and give two options:

Paginated individual user uploads
Complete uploads for a single user returned as a CSV file


Template Sensor causes ERROR due to uninitialized object at set-up stage

Home Assistant release (hass --version):
0.38.3
Python release (python3 --version):
included in docker image
Component/platform:
Template sensors
Description of problem:
This is a duplicate of https://github.com/home-assistant/home-assistant/issues/6012.
While I do understand the cause and the harmlessness of this error, it is my strong opinion that the  correct (syntactically and otherwise) use of a template sensor should under no circumstances throw an ERROR.
I therefore suggest that this is accepted as a bug.
Expected:
No error message.
Problem-relevant configuration.yaml entries and steps to reproduce:
platform: template
sensors:
  bat_fgms:
    value_template: '{% if states.binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_17_0 %}
      {{ states.binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_17_0.attributes.battery_level | int }}
    {% else %}
      n/a
    {% endif %}'
    friendly_name: 'Fibaro Motion Sensor'
    unit_of_measurement: '%'
    entity_id: binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_17_0

Traceback (if applicable):
ERROR (MainThread) [homeassistant.components.sensor.template] Could not render template Fibaro Motion Sensor: UndefinedError: 'mappingproxy object' has no attribute 'battery_level'

I agree.  This kind of log file spamming makes it hard to see real issues.

On Feb 18, 2017, at 9:45 AM, Sebastian<EMAIL_ADDRESS>wrote:
Home Assistant release (hass --version):
0.38.3
Python release (python3 --version):
included in docker image
Component/platform:
Template sensors
Description of problem:
This is a duplicate of #6012 https://github.com/home-assistant/home-assistant/issues/6012.
While I do understand the cause and the harmlessness of this error, it is my strong opinion that the correct (syntactically and otherwise) use of a template sensor should under no circumstances throw an ERROR.
I therefore suggest that this is accepted as a bug.
Expected:
No error message.
Problem-relevant configuration.yaml entries and steps to reproduce:
platform: template
sensors:
bat_fgms:
value_template: '{% if states.binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_17_0 %}
{{ states.binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_17_0.attributes.battery_level | int }}
{% else %}
n/a
{% endif %}'
friendly_name: 'Fibaro Motion Sensor'
unit_of_measurement: '%'
entity_id: binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_17_0
Traceback (if applicable):
ERROR (MainThread) [homeassistant.components.sensor.template] Could not render template Fibaro Motion Sensor: UndefinedError: 'mappingproxy object' has no attribute 'battery_level'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/6085, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1W1O8D5kQqpvqICJQkkYckgUXWrFV2ks5rdyAQgaJpZM4MFLF_.


Move things that dockstore-support uses to dockstore-common

Description
Companion dockstore-support PR https://github.com/dockstore/dockstore-support/pull/470
This PR moves the classes and functions that dockstore-support (primarily the metrics aggregator) from dockstore-webservice to dockstore-common.
Review Instructions
Describe if this ticket needs review and if so, how one may go about it in qa and/or staging environments.
For example, a ticket based on Security Hub, Snyk, or Dependabot may not need review since those services
will generate new warnings if the issue has not been resolved properly. On the other hand, an infrastructure
ticket that results in visible changes to the end-user will definitely require review.
Many tickets will likely be between these two extremes, so some judgement may be required.
Issue
#5528
Security
If there are any concerns that require extra attention from the security team, highlight them here.
Please make sure that you've checked the following before submitting your pull request. Thanks!

[x] Check that you pass the basic style checks and unit tests by running mvn clean install
[x] Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
[x] Follow the existing JPA patterns for queries, using named parameters, to avoid SQL injection
[x] If you are changing dependencies, check the Snyk status check or the dashboard to ensure you are not introducing new high/critical vulnerabilities
[x] Assume that inputs to the API can be malicious, and sanitize and/or check for Denial of Service type values, e.g., massive sizes
[x] Do not serve user-uploaded binary images through the Dockstore API
[x] Ensure that endpoints that only allow privileged access enforce that with the @RolesAllowed annotation
[x] Do not create cookies, although this may change in the future
[x] If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

Patch coverage: 45.45% and project coverage change: -29.07 warning

That's a little odd


修复一个导致 TPROXY 下 v2ray 断流的问题

代码来自 #1530 ，这对我有用

这么久都没有回复吗，行还是不行。代码我是抄的，原理不懂，可以和原作者交流。 @kslr @lucifer9 @vcptr

https://github.com/v2ray/v2ray-core/pull/1530#issuecomment-458140858

tested this patch on my openwrt router running tproxy mode.
solved my problem of being unable to use zoom or lark (feishu) video meeting.

We are not going to rely on something "tested work". It should be correct.

我将临时合并这个解决方案

问题得到解决，而且感觉quic速度明显稍微有所提升。

UDP断流有所缓解， 表现为原先断流就连不上， 这个提交达到断流卡死过一会还是能连上。

Apparently this patch is NOT "tested work". If fails several test cases in windows.

Apparently this patch is NOT "tested work". If fails several test cases on windows.

Apparently this patch is NOT "tested work". If fails several test cases on windows.

As far as I know, tproxy only works on linux. Do you mean after applying this patch, v2ray will not work on windows as before?

Apparently this patch is NOT "tested work". If fails several test cases on windows.

As far as I know, tproxy only works on linux. Do you mean after applying this patch, v2ray will not work on windows as before?

Yes

Apparently this patch is NOT "tested work". If fails several test cases on windows.

As far as I know, tproxy only works on linux. Do you mean after applying this patch, v2ray will not work on windows as before?

Yes

I'm sorry for that. But I am not a coder. It will be solved by others.


Change the CI setup to something other than Azure Pipelines

Everything about my Azure Pipelines feels a little creaky:

It's not as neatly integrated with GitHub pull requests
I forget how to get to it, so I end up clicking in the wrong place whenever there's a build failure
I don't use it for anything except this project, so I make mistakes, e.g. the conditional syntax is a bit of a footgun. The other CI setups I use implicitly fail a build if a previous step fails, but I have to specify that explicitly in Azure.

The obvious choice is Netlify (then I'd get nice deploy previews too); GitHub Actions might be a good choice too.

If I do end up going down the Netlify route, it'd be worth setting up some rules to skip unnecessary builds: https://www.netlify.com/blog/2020/04/27/ignore-unnecessary-builds-to-optimize-your-build-times/

It also feels like Netlify uploads from within Azure are very slow; possibly moving inside Netlify would fix that.

I'm now all-in on GitHub Actions; Azure Pipelines is gone.


missing output from the example

Missing the third 1 from the output
Description:
The doc for switchMap() states that the output for the first example is:

const switched = of(1, 2, 3).pipe(switchMap((x: number) => of(x, x ** 2, x ** 3)));
switched.subscribe(x => console.log(x));
// outputs
// 1
// 1
// 2
// 4
// 8
// ... and so on

The example when ran is giving:
1
1
1
2
4
8
...

Pull Request Test Coverage Report for Build 8458

0 of 0   changed or added relevant lines in 0 files are covered.
5 unchanged lines in 3 files lost coverage.
Overall coverage increased (+0.2%) to 96.842%

Files with Coverage Reduction
New Missed Lines
%

src/internal/scheduled/scheduleObservable.ts
1
92.31%

src/internal/scheduled/scheduled.ts
1
79.41%

src/internal/scheduled/scheduleIterable.ts
3
89.19%

Totals

Change from base Build 8457:
0.2%

Covered Lines:
5796

Relevant Lines:
5985

💛  - Coveralls


Adding a French-language translation for Mutiny

After having seen the German version, I put together a French translation of Mutiny Wallet, sourced from the en.json file.
For syntax, I chose to keep the conjugations and commands informal to honor the style, flow, and general debauchery of the Mutiny Wallet project. This may be outputting for some (tu and ton instead of vous and votre), but I believe the more casual style will be more appealing and familial to users.
Future edits from French grammar nerds will correct me if I've erred in this assumption.
I toned down my own Canadian French in favor of international French diction for broader adoption.
Most direct French translations of key Bitcoin terms are sourced from established project translations. Otherwise, I kept the original phrasing from the code base (ie. on-chain, Lightning). In French, most Bitcoin literature has not adopted the translation of "éclair" in favor of the English "Lightning," so I kept that in the original language.
I didn't do anything with keys (sorry guys that's beyond my comprehension), and I used the latest en.json file as my base for this file.

great, thank you! Should just be one last little thing to do and that's to add french to the drop down list. Instructions here: https://github.com/MutinyWallet/mutiny-web?tab=readme-ov-file#translating

Okay, should be completed.

looks like something is wrong with the formatting, if you run pnpm format it will fix

Seems it was a problem with the languages file. pnpm format was run and apparently fixed.

Thank you!


Add workflow step to create BigQuery tables from parsed files

Take outputs from parse step and create bigquery tables from them
Output example:
{
  "body": {
    "parsed_files": {
      "clinical_assertion": "gs://clinvar-ingest/wf-outputs/2023-10-07/clinical_assertion/clinical_assertion.ndjson",
      "gene": "gs://clinvar-ingest/wf-outputs/2023-10-07/gene/gene.ndjson",
      "gene_association": "gs://clinvar-ingest/wf-outputs/2023-10-07/gene_association/gene_association.ndjson",
      "trait": "gs://clinvar-ingest/wf-outputs/2023-10-07/trait/trait.ndjson",
      "trait_set": "gs://clinvar-ingest/wf-outputs/2023-10-07/trait_set/trait_set.ndjson",
      "variation": "gs://clinvar-ingest/wf-outputs/2023-10-07/variation/variation.ndjson",
      "variation_archive": "gs://clinvar-ingest/wf-outputs/2023-10-07/variation_archive/variation_archive.ndjson"
    }
  },
  "code": 201,
  "headers": {
    "Alt-Svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
    "Content-Length": "644",
    "Content-Type": "application/json",
    "Date": "Thu, 14 Dec 2023 20:15:11 GMT",
    "Server": "Google Frontend",
    "X-Cloud-Trace-Context": "56cb6e4c3b79f09240877070f28fad7a"
  }
}

The current way it creates the tables is it uses a templated SQL file that has the CREATE TABLE statements for each type, with each column and column type hardcoded. It would be nice for the Pydantic model classes to carry through their types. So each parsed_file gets a table created automatically, with the columns and types specified automatically, instead of every time we add to or modify the Pydantic classes we serialize to JSON and write out to files, having to also go update the SQL CREATE TABLE statements.

Going to make changes to accept the output entity_type + file listing from /parse as input, and create the tables programmatically using scraped JSON schemas from bigquery (https://github.com/clingen-data-model/clinvar-ingest/pull/68/commits/82a169e9a9b53a547851f2618a92d258dcacc1ab)
https://cloud.google.com/bigquery/docs/external-data-cloud-storage#create-external-table

Initial code changes merged in #68
Will add to workflow + cloud run now

Temporarily granting the cloudrun service account the ability to create things in bigquery

Need to include non-python files in docker image. Building the venv and copying only the venv will by default only include the python files.
[Errno 2] No such file or directory:
'clinvar_ingest/cloud/bigquery/bq_json_schemas/clinical_assertion.bq.json'"}

It is quite annoying that pip requires the data file directory to be added to pyproject.toml and also to a MANIFEST.in file.
Added to pyproject.toml:
[tool.setuptools.package-data]
"clinvar_ingest" = ["clinvar_ingest/cloud/bigquery/bq_json_schemas/*.json"]

Added to MANIFEST.in:
include clinvar_ingest/cloud/bigquery/bq_json_schemas/*.json