Static labels for scape jobs

We do discovery of our scrape jobs by using dns_sd_configs, however whats really awkward is we have some static labels that we want to apply to all the machines in the group. We end up having to do relabeling with some strange regexes when all we wanted was just labels. Would you guys be open to taking a pull request in the future that introduces labels at the job level? Or is the are reason you don't do it?

The domain expert here is @fabxc (currently on vacation).
However, why do you have to do "strange" regexps? .* against a label that is always there (e.g. __name__) should just work. Sure, it's a bit of syntactic noise, but it avoids introducing yet another layer of labeling (there are so many already, and the labels statement in the target_group is arguably historically grown...).
But definitely something to discuss with @fabxc and @juliusv once they are back.

For example I want 2 static labels one is region: "new york", other is service: "abc service", however there is no way for me to put that in each scrape group. Either I have to do it at the global level or I have to do relabeling. Global won't work, I have many different service groups and regions. Target groups aren't useful if your using DNS or other discovery methods. Not sure what your getting at name, not sure its going to do anything in my usecase, I tried it with no effect. Let me show you the config section
scrape_configs:
  - job_name: clusterxyx-apiname1
    labels:
    target_groups:
    dns_sd_configs:
    - names:
      - _clusterxyz._tcp.apiname1
    scrape_interval:
    scrape_timeout:
    metrics_path: /metrics
    relabel_configs:
    - source_labels:
      - __address__
      target_label: region
      regex: .*\.(\w+)\.test\.somewebsite\.com.*
      replacement: $1
      action: replace
    - source_labels:
      - job
      target_label: service
      regex: (.*)
      replacement: $2
      action: replace

What would be nice is a labels section under the -job_name section instead of relabeling

@beorn7 I think this makes sense from a usage perspective. If you have an SD mechanism that can discover everything and knows what is what (e.g. location, other tags) you should be able to transport this through. The "old school" way we currently do is having long lists of jobs, but I'd consider that a workaround.

@mattkanwisher Just for my understanding: Is your problem that something in your config doesn't work as expected, or are you just dissatisfied with the syntactic noise?
What I meant, there is no need to extract your new label from the regexp. replacement could be static. You could do:
scrape_configs:
  - job_name: clusterxyx-apiname1
    labels:
    target_groups:
    dns_sd_configs:
    - names:
      - _clusterxyz._tcp.apiname1
    scrape_interval:
    scrape_timeout:
    metrics_path: /metrics
    relabel_configs:
    - source_labels:
      - __address__ # always exists
      target_label: region
      regex: .* # always matches
      replacement: new york
      action: replace
    - source_labels:
      - __address__ # always exists
      target_label: service
      regex: .* # always matches
      replacement: abc service
      action: replace

Nice that cleaned up my config a whole lot. I can live this you just posted. It seems strange to me that their are different options in the hierarchy but it doesn't seem worth much more investment at this point. Thanks!

@mattkanwisher Yeah, I see your point. The problem is that there are too many levels of granularity where we already allow setting labels (global labels, per-target and per-metric relabeling labels, labels that come from the target, labels that get automatically dervived), and adding more will gradually drive us insane :)

After discussion with @fabxc , reopening this. We'll rethink if static labels should be possible in SD configs.

I don't think there's any need for additional syntax here, you can already do it with 3 lines of relabel config and in general we don't add configuration for something that's already possible.

@brian-brazil yeah but prometheus is really unfriendly to configure, like stuffing everything into a relabeling is going to make the system very unusable long term. Things like sharding is now in relabeling also.

stuffing everything into a relabeling is going to make the system very unusable long term.

Our assumption is that anyone who has a system of that scale has configuration management and will use that to manage complexity of their configuration, rather than making prometheus itself hard to configure by offering N different ways to do something that may interact in surprising ways.
Sharding is an advanced use case needed by very few users (3 so far), optimising for it isn't a good investment.

What gives me an itch is that we have static labels with file-based SD and with static target config, but not with the other SDs. I want it to be a feature consistently there or consistently absent.

I don't think that's inconsistent, it's a feature of the SD rather than the scrape config. Other SDs are free to add in whatever labels they like too based on the SD (thus far the SD methods aren't use consistently enough to be able to pick out useful labels for everyone - this won't be the case with EC2 say where region and availability zone labels could be applied)

But if you are fine with 3 lines of relabel config, why do we have static labels in static target config? The same method (3 lines of relabel config) could be used there to attach static labels.

Ah now I see what you're saying, the Labels in TargetGroup indeed doesn't fit.

Yup. We could declare it legacy (with the intention to deprecate and remove it eventually), or we could offer the same everywhere (which might be one level of labeling too many...).

Then again TargetGroup is how SD hands around labels. Arguably static targets have no chance to receive labels via SD so it might even be justified to have them in static target groups in the config file.

With replacement and regex defaulted for relabelling, it's now much simpler to do static labels so I'd say this is good enough.


update ndarray stack Doc for #11925

Description
Update Doc for ndarray stack.
https://github.com/apache/incubator-mxnet/issues/11925
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] API doc for ndarray.stack

Thanks for your contribution, The documentation in C code is intended to be used by all language bindings(C++, Scala, Java, Julia, Python, etc.,)
To write a specific Python doc with example, please follow this
https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/ndarray_doc.py#L68

Get error: *** Error in `python3.6': double free or corruption (fasttop): 0x00007f58cc000950 ***
I think there is a problem with CI. Same problem: https://github.com/tensorflow/tensorflow/issues/6968

@szha
Get error: *** Error in `python3.6': double free or corruption (fasttop): 0x00007f58cc000950 ***
I think there is a problem with CI. Same problem: tensorflow/tensorflow#6968

@liyujiel can you do a rebase on the current master?


removing then adding causing an item error

I have the following code:
    if(handEnt.hasComponent(SVGExtrudedObj)) {
        handEnt.removeComponent(SVGExtrudedObj)
    }
    handEnt.addComponent(SVGExtrudedObj,settings)

and it's throwing the following error:
TypeError: item is undefinedecsy.module.js:446:5
    release http://localhost/webxr-simgame/node_modules/ecsy/build/ecsy.module.js:446
    processDeferredRemoval http://localhost/webxr-simgame/node_modules/ecsy/build/ecsy.module.js:781
    execute http://localhost/webxr-simgame/node_modules/ecsy/build/ecsy.module.js:948
    startWorldLoop http://localhost/webxr-simgame/src/threesystem.js:117
    onAnimationFrame http://localhost/webxr-simgame/node_modules/three/build/three.module.js:23309
    onAnimationFrame http://localhost/webxr-simgame/node_modules/three/build/three.module.js:14868
    requestAnimationFrame http://localhost/webxr-simgame/3dgame.html:1021

Strangely this only happens if SVGExtrudedObj implements reset(). If there is no reset() method then it doesn't crash, though it still doesn't actually remove the component and add a new one.

Can you provide an example to replicate it?

Closing it now as it was using also component definition before the new schemas. Please feel free to open again if you feel it's still an issue when upgrading to the latest version


Scrolling sooooo slowly

VSCode Version: Code 1.12.2 (19222cdc84ce72202478ba1cec5cb557b71163de, 2017-05-10T13:13:11.413Z)
OS Version: Darwin x64 16.3.0
Extensions:

Extension
Author
Version

theme-monokai-dark-soda
AdamCaviness
0.0.5

sqf
Armitxes
0.5.6

vscode-github
KnisterPeter
0.8.0

go
TwentyChung
0.0.1

jsx
TwentyChung
0.0.1

theme-toothpaste
aalaap
0.0.1

vscode-snazzy-operator
aaronthomas
1.1.3

vscode-css-formatter
aeschli
0.0.2

vscode-theme-onelight
akamud
1.3.2

monokai-one-dark-vivid
ashpowell
0.6.0

theme-onedark
azemoh
0.4.3

vscode-simpler-icons
davidbabel
1.3.0

vscode-html-css
ecmel
0.0.30

vscode-great-icons
emmanuelbeziat
1.1.29

auto-rename-tag
formulahendry
0.0.12

Theme-monokai-best
gerane
0.0.2

Theme-TwoStones
gerane
0.0.2

crystal-ide
goldenpointllc
0.0.2

theme-github-bold
gustavo
0.0.4

theme-material-theme
jprestidge
1.0.1

intellij-idea-keybindings
k--kato
0.2.10

markdown-shortcuts
mdickin
0.5.0

code-beautifier
michelemelluso
1.6.2

Theme-MarkdownKit
ms-vscode
0.1.1

debugger-for-chrome
msjsdiag
0.5.2

debugger-for-ios-web
msjsdiag
0.1.2

auto-format-imports
pitermarx
0.2.1

view-in-browser
qinjia
0.0.3

css-auto-prefix
sporiley
0.1.4

guides
spywhere
0.7.0

gitblame
waderyan
1.10.0

ReactSnippets
xabikos
1.2.0

maple
yjt
1.1.6

Material-theme
zhuangtongfa
2.8.0

Steps to Reproduce:

This bug appears in scrolling fairly long code !  it makes the page scroll very slow, i believe that my Microsoft VSC team will make it better !

@webCoderJ Thanks for filing the issue. We will definitely help you in fixing this. Before that can you please provide us following

create a CPU profile using developer tools in VS Code:

select Help > Toggle Developer Tools
click on Profiles
click the start button
do whatever you need to do to get the CPU spin high
wait for some time (10-20 seconds should be enough)
stop the profiling
click the save button and attach the output file to this issue

Also provide the file you have the issue and a video showing the issue.
Thanks

Thank you very much sandy, but i cant't provide the issue video because the bug dose not
appear after i tried so many times. So i attach the profile file only, I feel the reason is that I opened too many tabs in the same time.
CPU-20170607T164043.cpuprofile.zip

@webCoderJ If you can no longer repro this issue, then we will go ahead and close it.


TypeError: init() got an unexpected keyword argument 'rfp'  for mmdet v2.0 branch

I getting such error  TypeError: init() got an unexpected keyword argument 'rfp' after adding rfp.py from master branch of mmdet
Checklist
I have searched related issues but cannot get the expected help.
Describe the bug
There is no support for DetectorRS in mmdet2.0 branch
Reproduction

This is my command
python demo/webcam_demo.py configs/DetectoRS/DetectoRS_mstrain_400_1200_r50_40e.py ../DetectoRS-master/DetectoRS_R50-0f1c8080.pth

2. I performed changes in detectors directories, I have tried to add rfp.py to detector list, so I have merged htc.py and cascade_rcnn.py to can add rfp.py as there is no rfp support  in mmdet2.0 branch

**Environment**

sys.platform: linux
Python: 3.6.8 (default, Oct  7 2019, 12:59:55) [GCC 8.3.0]
CUDA available: True
CUDA_HOME: /usr/local/cuda-10.1
NVCC: Cuda compilation tools, release 10.1, V10.1.168
GPU 0: GeForce GTX 1060 6GB
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.6.0a0+0ecea2d
PyTorch compiling details: PyTorch built with:
  - GCC 7.5
  - C++ Version: 201402
  - Intel(R) Math Kernel Library Version 2020.0.1 Product Build 20200208 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v1.5.0 (Git Hash e2ac1fac44c5078ca927cb9b90e1b3066a0b2ed0)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 10.1
  - NVCC architecture flags: -gencode;arch=compute_61,code=sm_61
  - CuDNN 7.5.1
  - Magma 2.5.2
  - Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=1, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.7.0a0+e92b515
OpenCV: 4.2.0
MMCV: 0.6.2
MMDetection: 2.0.0+e32f6d5
MMDetection Compiler: GCC 7.5
MMDetection CUDA Compiler: 10.1
I have installed PyTorch from source

**Error traceback**
Traceback (most recent call last):
  File "demo/webcam_demo.py", line 46, in <module>
    main()
  File "demo/webcam_demo.py", line 28, in main
    model = init_detector(args.config, args.checkpoint, device=device)
  File "DetectoRS/mmdet/apis/inference.py", line 33, in init_detector
    model = build_detector(config.model, test_cfg=config.test_cfg)
  File "DetectoRS/mmdet/models/builder.py", line 48, in build_detector
    return build(cfg, DETECTORS, dict(train_cfg=train_cfg, test_cfg=test_cfg))
  File "DetectoRS/mmdet/models/builder.py", line 20, in build
    return build_from_cfg(cfg, registry, default_args)
  File "py_env/venv/lib/python3.6/site-packages/mmcv/utils/registry.py", line 167, in build_from_cfg
    return obj_cls(**args)
  File "DetectoRS/mmdet/models/detectors/rfp.py", line 78, in __init__
    **kwargs)
  File "DetectoRS/mmdet/models/detectors/htc.py", line 24, in __init__
    super(HybridTaskCascade, self).__init__(num_stages, backbone, **kwargs)
  File "DetectoRS/mmdet/models/detectors/cascade_rcnn.py", line 36, in __init__
    self.backbone = builder.build_backbone(backbone)
  File "DetectoRS/mmdet/models/builder.py", line 24, in build_backbone
    return build(cfg, BACKBONES)
  File "DetectoRS/mmdet/models/builder.py", line 20, in build
    return build_from_cfg(cfg, registry, default_args)
  File "py_env/venv/lib/python3.6/site-packages/mmcv/utils/registry.py", line 167, in build_from_cfg
    return obj_cls(**args)

**Bug fix**
I have tried to rebuild mmdet after adding rfp, but it did not six an issue. So if there is add support for DetectorRS I would much appreciate this, and I would like to propose my help to add it for latest pytorch and mmdet.

Thank you very much

MMdetection v1 and v2 are not compatible. The mmdetv2 branch has the implementation of DetectoRS, which is similar to the implementation of the official mmdetection repo. If you need to use the pre-trained large models in the master branch, you probably need to retrain them using mmdetv2 branch or mmdetection official repo; or you can try to manually convert the pre-trained checkpoint if there's any mismatch. However, converting models may not work due to the compatibility issue.

Hi,
Thank you very much for your replay. Yes, converting models produced to many issues, so I decided to build mmdet for pytorch 1.7 and I managed to do it, but it produced very poor results, so I am going to invasigate it, but it is another issue in any way, so I am closing this one.
Thank you very much again, Ivan


Major bug in _read_local_fileheader

It looks like a major bug in in _read_local_fileheader.
The macro READ_VARIABLE_LEN_FIELD actually call strncpy on uninitialized fields. This is actually UB!! It causes a crash in some cases.

OK! I unfortunately type #8 instead of #7... closing.


Module not found: Can't resolve 'util'

Description
I create a app with create-react-app with --typescript, and add some lib to it. But when I execute start script, a compilation error has occurred:
Failed to compile.

./node_modules/browserify-zlib/lib/index.js
Module not found: Can't resolve 'util' in 'E:\sourcecode\frontend\AppDev-web\node_modules\browserify-zlib\lib'

I'm not explicit import browserify-zlib, so I search it in project, in yarn.lock file, I found this:
<EMAIL_ADDRESS>  version "2.2.0"
  resolved "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.0.tgz#c72f60d9d46de08a940dedbb25f3ffa2f9bbaa77"
  integrity sha512-5MQunG/oyOaBdttrL40dA7bUfPORLRWMUJLQtMg7nluxUvk5XwnLdL9twQHFAjRx/y7mIMkLKT9++qPbbk6BZA==
  dependencies:
    assert "^1.1.1"
    browserify-zlib "^0.2.0"
    buffer "^4.3.0"
    console-browserify "^1.1.0"
    constants-browserify "^1.0.0"
    crypto-browserify "^3.11.0"
    domain-browser "^1.1.1"
    events "^3.0.0"
    https-browserify "^1.0.0"
    os-browserify "^0.3.0"
    path-browserify "0.0.0"
    process "^0.11.10"
    punycode "^1.2.4"
    querystring-es3 "^0.2.0"
    readable-stream "^2.3.3"
    stream-browserify "^2.0.1"
    stream-http "^2.7.2"
    string_decoder "^1.0.0"
    timers-browserify "^2.0.4"
    tty-browserify "0.0.0"
    url "^0.11.0"
    util "^0.11.0"
    vm-browserify "0.0.4"

[x] I tried add util package, still not work
[x] I tried add util in webpack.config.js like this:

    node: {
      util: 'empty',
      module: 'empty',
      dgram: 'empty',
      dns: 'mock',
      fs: 'empty',
      net: 'empty',
      tls: 'empty',
      child_process: 'empty',
    },

still not work
Info
create-react-app:  version: 2.1.8
webpack.config.js
package.json
tsconfig.json
Anybody know anything about this?

I'm also having this error with Angular, was there any solution?

it's too long after I commit this issue, and totally foget how to resolve this error.


Added support for skipping children

This is particularly useful for avoiding greedy visiting when only a shallow parse is needed, e.g. to obtain method signatures, while skipping the methods' bodies.
I chose to pass a skip_children: &mut bool (with default value false), rather than adding an enum Children { Skip, Visit } and having fn visit_* return -> Children (or whatever a better name would be), as the former allows for ignoring (for non-skipping semantics), while the latter would require a Default::default() as the last line of every overridden method regardless.
With _semantics: &Semantics removed the method signatures should be fairly clean again.
(Marking this as "draft" for now as it will result in a merge conflict. I'll do a manual rebase when it's time.)

Do you think we can use some kind of DI and make SkipChildren trait or something like that? I am trying to see if we can support both visit_method_expr(self, node) and visit_method_expr(self, node, any_arg) while also allowing the user to customise the behaviour.
I might just be rambling.

On second thought, let's go ahead with your PR. I thought about returning bool, but as you said, it wouldn't look good when we want to ignore.
But I would much rather create Options { skip_children: bool } and use options: &mut Options as the third param. This way it is more flexible for future improvement.

Options is definitely more flexible, yes!

I did this since I had some time today, hope you don't mind. I released 0.2.0 on crates.io. Hopefully, your refactor is working well. Ping me if you need anything else.


Fix site deployment workflow to the ASF

Recently @kywe665 did some changes to have a first version of the site that is compliant with ASF (#352).
However, the preexisting workflow to publish the website, which can be found here, is not working anymore.
Following the ASF proposed guidelines, I have created a repository at https://github.com/apache/incubator-xtable-site . I have set it up and pushed the contents generated for the current site in gh-pages branch manually.
We should fix the workflow though. I hope that with minor changes to the following block in the site-deploy action, we might be able to push the changes to the new repo:
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        if: github.ref == 'refs/heads/main'
        with:
          deploy_key: ${{ secrets.DEPLOY_KEY }}
          publish_dir: ./website/build

@zabetak , @jbonofre , @vinothchandar , any insights based on your engagement in other ASF projects? This is an area I have not checked for some time and things have changed a bit.
@zabetak , I was checking the Calcite deployment file, do you recall where CALCITE_WEBSITE_BUILD secret is coming from?

@jcamachor The CALCITE_WEBSITE_BUILD token was requested in https://issues.apache.org/jira/browse/INFRA-23044 we have to file a similar request if we want to push changes to incubator-xtable-site repo.

Fixed in #398.

Related: I have opened a ticket to disable the 'pages-build-deployment' GH action.
https://issues.apache.org/jira/browse/INFRA-25652


Memory leaked as all network endpoints were not shut down

I got an interesting scenario when using google-cloud-pubsub.
I would like to get all the topics in the pubsub, and my code is,
from google.cloud import pubsub
def list_topics(pubsub_client):
  """Lists all Pub/Sub topics in the current project."""
  topics= pubsub_client.list_topics()
  for topic in topics:
    print topic.name

pubsub_client=pubsub.Client()
list_topics(pubsub_client)

I keep getting message E1121 09:40:01.036257519 10741 network_status_tracker.c:48] Memory leaked as all network endpoints were not shut down.
However, if I use pubsub_client=pubsub.Client() inside the function,
from google.cloud import pubsub
def list_topics():
   """Lists all Pub/Sub topics in the current project."""
  pubsub_client=pubsub.Client()
  topics= pubsub_client.list_topics()
  for topic in topics:
     print topic.name

list_topics()

Then, the message disappeared.
I noticed that there are similar questions before, but couldn't figure it out.
Python Version --2.7.12   Google-cloud Version --0.21.0
Thank you.

Thanks @HaipengSu for reporting!
I believe this issue is actually being tracked in https://github.com/grpc/grpc/issues/7849.
That is interesting that the message goes away when in the function. This probably has something to do with the scope and how the logging message is configured.

@daspecster
thx, hopefully this will help to find the issue.

I ran into this as well. I'm working around it until the grpc bug is fixed by adding an atexit deletion of any client/subscription/topics that I've created. Something like this:
import atexit
from google.cloud import pubsub

client = pubsub.Client()
for topic in client.list_topics():
    print topic.name

def cleanup():
    global client, topic
    del client, topic
atexit.register(cleanup)

@samskillman Thank you, I will try this out.

@samskillman @HaipengSu grpcio==1.0.2 has fixed the problem


Add ioctl. Only supports the TIOCGWINSZ request right now.

I'm using the same approach as fcntl (which I found to be extremely interesting).
The following code prints the correct size when running on an interactive shell on Mac and Linux.
extern crate nix;
use nix::sys::ioctl;
fn main() {
    let mut ws = ioctl::Winsize { ws_row: 0, ws_col: 0, ws_xpixel: 0, ws_ypixel: 0 };
    ioctl::ioctl(0, ioctl::TIOCGWINSZ(&mut ws)).unwrap();
    println!("{:?}", ws);
}

The Travis failure seems to be unrelated to my additions...
Running `/home/travis/build/carllerche/nix-rust/target/unistd-f02c4263f55ced5e`

running 2 tests

test test::test_writev ... FAILED

test test::test_readv ... ok

failures:

---- test::test_writev stdout ----

thread 'test::test_writev' panicked at 'Rng.gen_range called with low >= high', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librand/lib.rs:230

failures:

test::test_writev

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured

thread '<main>' panicked at 'Some tests failed', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libtest/lib.rs:268

The command "cargo test --verbose" exited with 101.

Looks like it passes now. I will work on merging your PRs now :smile:


76 google oauth config mutator

This PR builds on the original work from https://github.com/zalando/gin-oauth2/pull/53 and addresses/closes https://github.com/zalando/gin-oauth2/issues/76

Provides a means to set client id and client secret without a file
Adds the ability to redirect to login upon failed auth
Adds tests

:+1:

👍

:+1:

:+1:

👍

:+1:


[CLOSED] Create patternFailure  axioms per occurrence

 Issue by nomeata
Wednesday Oct 04, 2017 at 19:05 GMT
Originally opened as https://github.com/antalsz/hs-to-coq/issues/18

with a helpful name so that Print Assumptions in the end tells the user how many and where axioms are used.

 Comment by nomeata
Friday Mar 23, 2018 at 01:27 GMT

I believe we now use GHC.Err.patternFailure, which is not an axiom. Closing this.


V1 workaround when loading from disk

Depends

[ ] #817

Problem
When the node stops the chain contain some properties that assume liveness, this leads to some bugs such as gossip always having a pending request.
Solution
I added Chain.clear, that clears some of the state on chain allowing it to always start again, this is not ideal but makes the behaviour more predictable.

Already merged via #821


Add functionality to display sub-tests in test case as a tree and display sub-test name

HtmlTestRunner version: Jinja2==2.9.5->html-testRunner
Python version: 3.5.2
Operating System: Ubuntu

Description
For now sub-tests displayed as a TC. So user see many reports of same TC and not understand which sub-test fails.
So add functionality to display sub-tests in its TC as a tree and display in sub-tests their names.

In this screenshot all TCs have sub-tests

I feel this package would be incomplete without supporting this. I've attempted to do so in #32.

Thanks to the work of @JamesMTSloan this is available now


Genre button

Describe the feature
button of genre is too big in size and its size should be reduced
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@JanitKumar already solved


datadir update

This is your dev branch with the data_update.diff patch, as a pull request.
I hope this is OK.
Sorry to talk again about Gwion again, but could you send me the make output?
nice to hear from you.

Your changes have broken my documentation generator, which is the main reason why these files exist in the first place. You can see these errors with "make docs". I'll have to look further into this...

PS: I made a github issue on your Gwion page. It would be best to continue that discussion there.


docs: add unity SDK manual

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
Summary
(describe what this merge request does)
Implementation highlights
(describe how the merge request does for feature changes, share the RFC link if it has)
Test checklist

[ ] add new test cases
[ ] all code changes are covered by unit tests
[ ] end-to-end tests

[ ] deploy web console with CloudFront + S3 + API gateway
[ ] deploy web console within VPC
[ ] deploy ingestion server

[ ] with MSK sink
[ ] with KDS sink
[ ] with S3 sink

[ ] deploy data processing
[ ] deploy data modeling

[ ] new Redshift Serverless
[ ] provisioned Redshift
[ ] Athena

[ ] deploy with reporting
[ ] streaming ingestion

[ ] with Redshift Serverless
[ ] with provisioned Redshift

Is it a breaking change

[ ] add parameters without default value in stack
[ ] introduce new service permission in stack
[ ] introduce new top level stack module

Miscellaneous

[ ] introduce new symbol link source file(s) to be shared among infra code, web console frontend, and web console backend

SonarQube Quality Gate Result

Result: :white_check_mark: OK
Triggered by @zhu-xiaowei on pull_request

Metric
Status
Value
Error Threshold

Reliability rating
:white_check_mark: OK
1
> 1

Security rating
:white_check_mark: OK
1
> 1

Sqale rating
:white_check_mark: OK
1
> 1

Coverage
:white_check_mark: OK
83.70
< 80

Duplicated lines density
:white_check_mark: OK
8.50
> 30

Blocker violations
:white_check_mark: OK
0
> 0

Bugs
:white_check_mark: OK
0
> 0

Code smells
:white_check_mark: OK
9
> 40

Critical violations
:white_check_mark: OK
0
> 0

Major violations
:white_check_mark: OK
0
> 0

Vulnerabilities
:white_check_mark: OK
0
> 0

View on SonarQube
updated: 7/3/2024, 08:39:21 (UTC+0)

SonarQube Code Analytics
Quality Gate passed

Additional information
The following metrics might not affect the Quality Gate status but improving them will improve your project code quality.
Issues
 0 Bugs
 0 Vulnerabilities
 0 Code Smells
Coverage and Duplications
No data Coverage
No data Duplication

SonarQube Quality Gate Result

Result: :white_check_mark: OK
Triggered by @zhu-xiaowei on pull_request

Metric
Status
Value
Error Threshold

Reliability rating
:white_check_mark: OK
1
> 1

Security rating
:white_check_mark: OK
1
> 1

Sqale rating
:white_check_mark: OK
1
> 1

Coverage
:white_check_mark: OK
83.70
< 80

Duplicated lines density
:white_check_mark: OK
8.50
> 30

Blocker violations
:white_check_mark: OK
0
> 0

Bugs
:white_check_mark: OK
0
> 0

Code smells
:white_check_mark: OK
9
> 40

Critical violations
:white_check_mark: OK
0
> 0

Major violations
:white_check_mark: OK
0
> 0

Vulnerabilities
:white_check_mark: OK
0
> 0

View on SonarQube
updated: 7/3/2024, 09:03:34 (UTC+0)

SonarQube Quality Gate Result

Result: :white_check_mark: OK
Triggered by @zhu-xiaowei on pull_request

Metric
Status
Value
Error Threshold

Reliability rating
:white_check_mark: OK
1
> 1

Security rating
:white_check_mark: OK
1
> 1

Sqale rating
:white_check_mark: OK
1
> 1

Coverage
:white_check_mark: OK
83.60
< 80

Duplicated lines density
:white_check_mark: OK
8.50
> 30

Blocker violations
:white_check_mark: OK
0
> 0

Bugs
:white_check_mark: OK
0
> 0

Code smells
:white_check_mark: OK
9
> 40

Critical violations
:white_check_mark: OK
0
> 0

Major violations
:white_check_mark: OK
0
> 0

Vulnerabilities
:white_check_mark: OK
0
> 0

View on SonarQube
updated: 7/3/2024, 09:12:33 (UTC+0)

SonarQube Quality Gate Result

Result: :white_check_mark: OK
Triggered by @zhu-xiaowei on pull_request

Metric
Status
Value
Error Threshold

Reliability rating
:white_check_mark: OK
1
> 1

Security rating
:white_check_mark: OK
1
> 1

Sqale rating
:white_check_mark: OK
1
> 1

Coverage
:white_check_mark: OK
83.60
< 80

Duplicated lines density
:white_check_mark: OK
8.50
> 30

Blocker violations
:white_check_mark: OK
0
> 0

Bugs
:white_check_mark: OK
0
> 0

Code smells
:white_check_mark: OK
9
> 40

Critical violations
:white_check_mark: OK
0
> 0

Major violations
:white_check_mark: OK
0
> 0

Vulnerabilities
:white_check_mark: OK
0
> 0

View on SonarQube
updated: 7/3/2024, 09:27:52 (UTC+0)

SonarQube Quality Gate Result

Result: :white_check_mark: OK
Triggered by @zhu-xiaowei on pull_request

Metric
Status
Value
Error Threshold

Reliability rating
:white_check_mark: OK
1
> 1

Security rating
:white_check_mark: OK
1
> 1

Sqale rating
:white_check_mark: OK
1
> 1

Coverage
:white_check_mark: OK
83.60
< 80

Duplicated lines density
:white_check_mark: OK
8.50
> 30

Blocker violations
:white_check_mark: OK
0
> 0

Bugs
:white_check_mark: OK
0
> 0

Code smells
:white_check_mark: OK
9
> 40

Critical violations
:white_check_mark: OK
0
> 0

Major violations
:white_check_mark: OK
0
> 0

Vulnerabilities
:white_check_mark: OK
0
> 0

View on SonarQube
updated: 7/3/2024, 09:32:38 (UTC+0)


Exhaust queue after build cancellation

Before this, we were bailing early and not running tasks anymore after cancellation. This can be very problematic, because it can mean llbuild would wait indefinitely for tasks to complete. This change ensures that the queue will be exhausted after cancellation.
Note: this also fixes an issue where calling cancelAllJobs() multiple times would crash.

@swift-ci please smoke test

Unfortunately, I'm still seeing some flakiness in this when running many iterations of the test, so this isn't quite ready to be merged, yet.

@swift-ci please smoke test

@swift-ci please smoke test

Flakiness is gone now with the latest changes 🎉


PHP Fatal error:  Uncaught TypeError: Return value of LizardMedia\ProductAttachment\Model\AttachmentRepository::getAttachments()

Hi,
We get this error, and now i'm wondering if this is correct
https://github.com/lizardmedia/product-attachments-magento2/blob/29b22677ca4fd4a0e41d0d56e50337b2f548475b/Model/AttachmentRepository.php#L228
Because the error log say this will return a array
return $product->getProductAttachments();

And here it is a array
https://github.com/lizardmedia/product-attachments-magento2/blob/29b22677ca4fd4a0e41d0d56e50337b2f548475b/Plugin/InitForSave.php#L81
PHP Fatal error:  Uncaught TypeError: Return value of LizardMedia\ProductAttachment\Model\AttachmentRepository::getAttachments() must be an instance of LizardMedia\ProductAttachment\Model\ResourceModel\Attachment\Collection or null, array returned in /...../vendor/lizardmedia/module-product-attachments/Model/AttachmentRepository.php:239
Stack trace:
#0 ...../vendor/lizardmedia/module-product-attachments/Model/AttachmentRepository.php(214): LizardMedia\ProductAttachment\Model\AttachmentRepository->getAttachments(Object(Magento\Catalog\Model\Product\Interceptor))
#1 /...../vendor/lizardmedia/module-product-attachments/Model/Attachment/UpdateHandler.php(49): LizardMedia\ProductAttachment\Model\AttachmentRepository->getAttachmentsByProduct(Object(Magento\Catalog\Model\Product\Interceptor))
#2 /var/domains/ in ...../vendor/lizardmedia/module-product-attachments/Model/AttachmentRepository.php on line 239

@martijn-bigbridge Thank you for reporting an issue. Can you provide steps to reproduce this issue? In fact, there is possiblity for this to happen, basing on code snippets provided. However I can' reporduce it neither on frontend nor in adminhtml.

@bartoszkubicki
Sorry, I only have the error message inside the php error log. So I don't know the steps to reproduce it.

@martijn-bigbridge are you sure that this log is produced by current version of module?

@bartoszkubicki
Sorry I did forget to say that the version is 1.3.5, is it fixed in the latest version ?

Basing on https://github.com/lizardmedia/product-attachments-magento2/blob/master/CHANGELOG.md I don't fix so, because we didn't meet that error. I tried all paths in module, when this code is run and there was no error - saving product, creating product  with / without attachments, refreshing product page in admin, displayng list of att. on frontend

I did ask the client, and maybe it is during a REST api request at night.
I don't know what request it is, but I guess something like get product

Ok I will try to figure it out or just make sure it is impossible to have type erro

@martijn-bigbridge I am sorry but I can't reproduce it. I have tried with postman and webapi, getting products' list and individual products, but no sign of error. Make sure you have the newest version and if you have any more details don't hesitate to provide them and feel free to repopen this issue.

I get the same error when trying to update product with existing attachment.
To be more specific I set product's extension_attributes to have the existing product attachment (the array which I get from loading the product through Magento REST API) and when I post the data to Magento I get the same error mentioned above.
If you post the product's data without setting the existing attachment as it's extension attributes then the attachment gets deleted.
Please send me a solution ASAP.
Thank you.


Codecept Fails on Jenkins

@APshenkin
We are using CodeceptJS for automation on Jenkins and it worked fine until yesterday?
The build is failing on the server since yesterday. However it works fine on my local environment ?

Provide console output if related. Use --verbose mode for more details.

npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   'run',
npm verb cli   'codeceptjs',
npm verb cli   'fv_testPlanRepeatingSections_test.js',
npm verb cli   '--steps',
npm verb cli   '--verbose' ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm verb run-script [ 'precodeceptjs', 'codeceptjs', 'postcodeceptjs' ]
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>
><EMAIL_ADDRESS>codeceptjs C:\Qdabra\Qdabra Form Services
> codeceptjs run -R mocha-multi "fv_testPlanRepeatingSections_test.js"

null
CodeceptJS v1.0.3
Using test root "C:\Qdabra\Qdabra Form Services"

Controls that are not supported by formsviewer --
 Repeating section (45))

 Ã— "before each" hook: codeceptjs.before for "Repeating section (45))" in 4467ms
Error: unknown command: session/e73fecc73b0893c6199c41c656f9d56b/window/rect

We didn't change anything yesterday. So we couldn't probably break your setup.
From the stack trace you provided it's not clear what might go wrong.
I assume you may have problems with latest browser and selenium server or whatever you use.

Upgrade from chromedriver 2.32 to 2.33 fixed this for me.


Add Java 10 docker image

I'd like to see more experiments with optimization of JVM+docker, wrt memory limits and startup times.

Built as solsson/kafka-jre:10@sha256:53036ddc4f05fc7b601f6c4e98a0fa9f53b3e7c9b19e5fc75a4bd676aead002d though admittedly this would be very experimental as Kafka JRE.


[AERIE-1906] Resolve SerializedValue LGTM errors

Tickets addressed: AERIE-1906
Review: By commit
Merge strategy: Merge (no squash)

Description
From #220.
Resolves LGTM SerializedValue errors reported here.
Verification
All tests passing.
Documentation
None.
Future work
Resolve LGTM warnings (see https://lgtm.com/projects/g/NASA-AMMOS/aerie/alerts/?mode=tree).

Opened this PR prematurely. Am investigating the e2e-tests failure.

Should we create a separate ticket to capture the string escape work or were you planning on implementing that in this PR?

Good point! I'll check in with Adrien on this, the preexisting TODO notes about string escaping should probably be removed in place of a ticket.

Why are we doing sanitization for GQL instead of using variables? That's one of the great value propositions of the GraphQL standard - built in sanitization.

Sure! I'll change the wording of the ticket.

I don't think my comment is scoped to this ticket as the string formatting predates this ticket. Specifically looking at lines like https://github.com/NASA-AMMOS/aerie/blob/88d926a197c58db74d61676a430c73624ce96b2c/scheduler-server/src/main/java/gov/nasa/jpl/aerie/scheduler/server/services/GraphQLMerlinService.java#L137-L145 where we were already doing string templating instead of using variables

Yup! But your point 100% still stands, we should use variables. https://jira.jpl.nasa.gov/browse/AERIE-1949 should address this.


[cuda] Drop cuda1 HAL implementation code

Now cuda2 is the default; we can drop cuda1 to reduce maintenance.

I'll stage it here for some time and land likely end of the week. :)


[WIP] Add an option to print the intermediate representation

It's very useful to figure out what IR is generated to find out why things are not behaving the way they should.
The way this PR works is by going through the IR and flatten all the extra concat. Then, it prints them as a valid JavaScript string and uses prettier to actually properly indent it (which is extremely cool!).
Note: the integration with the command line is super hacky. I just wanted to put this out there so we can discuss before starting a refactor.
echo "
<
" | ./bin/prettier.js --stdin --debug-print-docs --single-quote
[
  [
    [
      [
        group(
          group([
            group([ '<', 'div', group([ indent(2, []), softline() ]), '>' ]),
            '<',
            [ '</', 'div', '>' ]
          ]),
          [
            group([
              group([ '<', 'div', group([ indent(2, []), softline() ]), '>' ]),
              '<',
              [ '</', 'div', '>' ]
            ]),
            group([
              group([ '<', 'div', group([ indent(2, []), softline() ]), '>' ]),
              indent(2, groupBreak([ hardline(), '<' ])),
              hardline(),
              [ '</', 'div', '>' ]
            ])
          ]
        ),
        ';'
      ]
    ],
    hardline()
  ]
];

This is suuuuper cool, I've always wanted something like this. Previously I dug through the structure manually but this is so much better.

#347 is a better version


chore: bdd-sbrp-import-1577626003 to 0.0.1

chore: Promote bdd-sbrp-import-1577626003 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


License

I love this template, it is simple and elegant. Would you mind adding a license to your repository to clarify the terms and conditions for usage? See: https://choosealicense.com/no-permission/#for-users

added https://github.com/greggman/better-unity-webgl-template/commit/774360270c145d6af7d32c310ee32ed468bfc121


Improve inline documentation for Timber\PathHelper

Issue
I found some work locally that I didn’t push yet :).
Solution
This pull request improves the inline documentation and coding standards for Timber\PathHelper.
Impact
Better looking documentation.
Usage Changes
None.
Considerations
None.
Testing
None needed.

This is better looking for sure — thanks for the add!


NullPointer on Instagram4j.login()

Hi, since I use Version 1.6 instead of 1.4 I receive an error when a user logs in:
Exception in thread "Timer-0" java.lang.NullPointerException
at org.brunocvcunha.instagram4j.Instagram4j.login(Instagram4j.java:191)
It works with 2 other accounts. But only this one throws an error. Maybe because of the endless checkout required loop?

I tried "Gramista" today and what the hell.. All accounts that I had trouble with at login (regardless of wheter with Python, Java or PHP API), Gramista has no problem to log in. I didnt even received an activation code via Email or a challenge warning.. nothing. How?

Yeah I get a null pointer exception too when the user has to authenticate before me being able to login. I just wait for their authentication and then the null isnt thrown

So the user has to authenticate first and after you start the script again, the NPE is gone?

@ChrisJSt  how do you make it wait?
am getting nullpointer exception for wrong pass and proxy/authentication how can i differntiate them so i can have correct output? i mean i want to show that the pass is correct or no


Adjust SPI1 pins

Use UART0_RTSN (E17) for SPI1_CS0, moving from pin C12.
Use pin A15 for SPI1_CS1, moving from pin C18.

What wasn't noted that I/O set had to have been followed. This will be deferred to Rev B.

To fix the SPI chip select IO set issue, we will change the location of SPI1 CS0 and CS1.  The final pin mapping will be:
spi1_sclk		A13 (mcasp0_aclkx – current pin)
spi1_d0		B13 (mcasp0_fsx – current pin)
spi1_d1		D12 (mcasp0_axr0 – current pin)
spi1_cs0		H18 (rmii1_refclk – currently unused on BB Blue)
spi1_cs1		C18 (eCAP0_in_PWM0_out – currently GPIO_0_3 on BB Blue)
GPIO_0_3		C12 (currently spi1_cs0)
WIFI_LED		A15 (currently spi1_cs1 - See Issue #29 )

There must be an error. How do you have 2 pins be GPIO0_3?

On Oct 13, 2016, at 2:25 AM, erikwelsh<EMAIL_ADDRESS>wrote:
To fix the SPI chip select IO set issue, we will change the location of SPI1 CS0 and CS1. The final pin mapping will be:
spi1_sclk A13 (mcasp0_aclkx – current pin)
spi1_d0 B13 (mcasp0_fsx – current pin)
spi1_d1 D12 (mcasp0_axr0 – current pin)
spi1_cs0 H18 (rmii1_refclk – currently unused on BB Blue)
spi1_cs1 C18 (eCAP0_in_PWM0_out – currently GPIO_0_3 on BB Blue)
GPIO_0_3 C12 (currently spi1_cs0)
WIFI_LED A15 (currently spi1_cs1 - See Issue #29 )
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sorry if I was not clear.  The items in quotes was what the function was on Rev A1a.  Basically, we are taking four pads:  H18, C18, C12 and A15 and swapping around the functionality.  The Rev A2 mapping is outside the quotes.  For example, on Rev A1a GPIO_0_3 (ie GPIO connector 0 pin 3, not AM335 GPIO0_3) was C18.  For Rev A2 it will be C12.

@erikwelsh @StrawsonDesign Objections to me changing the net names to reflect the processor GPIO number? I like to avoid people needing to refer to additional documentation in order to program the hardware.


codegenApolloMock with fragments in separate files

I have my project setup something like this:
src/.../fragment.graphql
fragment TestFragment {
   ...
}

src/../query.graphql
query TestQuery {
   test {
      ...TestFragment
   }
}

codegen.yml
overwrite: true
schema: "schema.graphql"
documents: "src/**/*.graphql"
generates:
  ./mocks.ts:
    plugins:
      - "apollo-typed-documents/lib/codegenApolloMock"

However, when I run codegen, it does not seem to recognize TestFragment, giving me the following error:
Error: Fragment "TestFragment" not defined

unless the fragment is in the same file as the query.

Hi, currently documents are isolated from each other (modules).
Note that graphql-tag supports importing other files within a .gql file, but that is not a functionality built into graphql or the graphql codegen library:
https://github.com/apollographql/graphql-tag/blob/master/test/graphql.js#L185
It would be a nice feature though for a next release to support the same imports as graphql-tag does.

Some problem here with Fragments

Bump. Running into the same issue here

Thanks for reporting this issue. I wasn't aware that graphql code generator already supports having fragments in different files out of the box.
I just created a PR #22 to also support it for this plugin.

@Pikachews @danieltrizzuto @chrisvalmonte Added support in Version 1.1.0


⚠ ClamAV has degraded performance

In 972ccf3, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 66 ms

Resolved: ClamAV performance has improved in 2c52d7e.


⚠ Bofrost.es has degraded performance

In 466722e, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1657 ms

Resolved: Bofrost.es performance has improved in 219eb9e after 6 minutes.


Decouple SB and SBR in coverage tests

Is your feature request related to a problem? Please describe.
Currently the SB coverage test is not like the others in that it links with the real SBR sub-module, rather than a stub version.  This becomes evident when generating the stubs as in #1417
Describe the solution you'd like

Make SBR unit tests follow the pattern of all other modules - Generate a set of stubs for SBR using the generator script and it should use the new cmake functions to add the coverage test.
Update the SB unit tests where it was depending on having a real SBR implementation (should be just a matter of setting the intended stub output where it was missing)

Additional context
Per the system architecture/design, Each sub-module should be individually coverage tested, using stubs for all other modules.  This is an exception to that general design because SBR does not have proper stub functions for testing dependencies in isolation (e.g. SB in this case) like all other modules do.
Requester Info
Joseph Hickey, Vantage Systems, Inc.

Note that the fact that SB and SBR are coupled together during coverage test means certain features of SB might not be reachable in the coverage test.  As noted in #1668, collisions are not possible when linked with the "direct" SBR implementation, so collision handling in SB cannot be covered:
https://github.com/nasa/cFE/blob/2afdbc16e360530a9b4bbe4e0dcc814f675c1acb/modules/sb/fsw/src/cfe_sb_api.c#L1125-L1130
Splitting SBR from SB for coverage test, and providing stubs for SBR functions (like other modules) would likely improve coverage test capability.


Added russian translation and moved hardcoded language strings into lang files

Hi Samuel!
I have made useful changes to the Google Analytics plugin:

Added russian translation
Moved hardcoded language string from report widgets to language files: english and russian as i don't know other languages.
A little fix in the english translation related to duplicated word.

@daftspunk ping.

Sorry, missed the ping :-\


Add bounding box input

Adds leaflet-based bounding box selection tool.

Coverage remained the same at 100.0% when pulling d8618a5ad279d677a74b31509e1166fb5377f55c on bbox-leaflet into 65a1fd500612dcb533166ed78c82971a919743d3 on master.


MSP-EXP430FR4133 Launchpad not working

MSP430FR4133 use SPI on eUSCI_A0 (pins 1.0 to 1.3 ) or eUSCI_B0 (pins 5.0 to 5.3)
MSP-EXP430FR4133 Launchpad doesn't have easily exposed P1.0 (LED) and P1.2 (SW1) - thus eUSCI_A0 is actually unusable here.
msprf24 lib needs change to setup for this device eUSCI_B0 with P5 ports (described on Launchpad as SPI pins)
This init function works OK for me. However I'm not sure how would you like to choose proper "#ifdef"
for this device/MCU , since for 'raw' 4133 eUSCI_A0 is normally available, and it should up to user which eUSCI will be using.
I don't know if there is a good way to detect Launchpad device itself ? Maybe best to use variable in nrf_userconfig.h ?
void spi_init()
{
/* Configure ports on MSP430 device for USCI_B0 /
P5SEL0  |= (BIT1 | BIT2 | BIT3);
/ USCI_B specific SPI setup */
UCB0CTLW0 |= UCSWRST;
UCB0CTLW0 = UCCKPH | UCMST | UCMSB | UCSYNC | UCSSEL_2 | UCSWRST;
UCB0BRW = 0x01;
UCB0CTLW0 &= ~UCSWRST;
}

Hi @voyo - Can you test the new update.  I don't have an FR4133 handy, but I added the necessary support for eUSCI_A0 and eUSCI_B0 including spi_transfer9() support for bitbanging the 9th bit.


Zero gutter break block(column) layout

When you set block(... $gut:0) it breaks columns
http://codepen.io/mhotovec/pen/dPLpar

Ah, thanks for pointing this out. Will fix today.

@hotovec Fixed https://github.com/corysimmons/lost/commit/83b01135df24f3d036828bab74c3a96123c4be32
Thank you for pointing these out!


Add LogToBagfile decorator to mission_control

Description
Connected to #142. This patch adds a LogToBagfile decorator that can be used record a configurable set of topics for the duration of its subtree (the entire mission if at the root). No separate process is spawned and thus it should be somewhat less resources hungry than mission_bag_recorder .
Depends on #153.
Type of change
Please mark options that are relevant.

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

Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] The code builds clean without any errors or warnings
[ ] Unit tests are passing
[x] Linter tests are passing

How To Test
Tests are yet to be added.

Rebased after #153 and #154. @patapufate PTAL!


Room 303 crash in door rando

Caused by some flag being set, awaiting details...

No other reports of this crash and no details received.


[stable/sematext-agent] Add option for priorityClassName

Signed-off-by: Ciprian Hacman<EMAIL_ADDRESS>What this PR does / why we need it:
Adds possibility to set pod priority class name.
Which issue this PR fixes
n/a
Special notes for your reviewer:
n/a
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/lgtm


Affjax example does not compile

This example:
import Prelude

import Affjax (get)
import Affjax.ResponseFormat (ResponseFormatError(..), string)
import Data.Bifunctor (lmap)
import Data.Either (Either(..))
import Data.List.NonEmpty (singleton)
import Effect.Aff (launchAff_)
import Effect.Class.Console (log)
import Simple.JSON (readJSON)

type MyRecordAlias = { userId :: Int }

main = void $ launchAff_ $ do
  res <- get string "https://jsonplaceholder.typicode.com/todos/1"
  case lmap transformError res.body >>= readJSON of
    Right (r :: MyRecordAlias) -> do
      log "all good"
    Left e -> do
      log "all bad"

transformError (ResponseFormatError e _) = singleton e

Produces this error at res.body:
  Could not match type

    Record

  with type

    Either Error

while trying to match type { body :: t0 ResponseFormatError t1
                           | t2
                           }
  with type Either Error
              { body :: String
              , headers :: Array ResponseHeader
              , status :: StatusCode
              , statusText :: String
              }
while checking that expression res
  has type { body :: t0 ResponseFormatError t1
           | t2
           }
while checking type of property accessor res.body
in value declaration main

This must be with a new version of Affjax. Did you manage to fix it already? Could you submit a PR?

Thanks for confirming. PR here #72


Execution failed for task ':agora_rtc_engine:generateDebugRFile'.

recently i got this problem:
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':agora_rtc_engine:generateDebugRFile'.

No non-density apk found

thanks for help.

have you tried our example or quickstart?

have you tried our example or quickstart?

yes，lot of times.

have you tried our example or quickstart?

it happened on some android devices.

https://developer.android.com/studio/build/configure-apk-splits

Seems like you enable splits.density?
https://developer.android.com/studio/build/configure-apk-splits

thanks for you reply,i will try it after vacation.

I will close this issue, you can reopen it if it still exists.

Experiencing the same issue.


Updating name for re-branding

Description
https://github.com/jenkinsci/securecn-scanner-plugin

Submitter checklist for adding or changing permissions

Always

[x] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[ ] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[ ] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[ ] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[ ] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

I'll merge this PR when I see, that https://github.com/jenkinsci/securecn-scanner-plugin/blob/92d5d33cf64086d5f6390ec980bef4afa2351f22/pom.xml#L11 points to portshift-scanner on the default branch.
Feel free to close my PR if you changed it yourself.

I'll merge this PR when I see that https://github.com/jenkinsci/securecn-scanner-plugin/blob/92d5d33cf64086d5f6390ec980bef4afa2351f22/pom.xml#L11 points to portshift-scanner on the default branch. Feel free to close my PR if you changed it yourself.

Oh ok, thank you so much 😄

@NotMyFault Done.


API to take back ownership of an ArrayRef

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
@crepererum  and I are using BooleanArray to work as a bitset but the api is slightly cumbersome as the compute kernels give back an ArrayRef so we have to do some clunky downcasting
Describe the solution you'd like
I would like some way to convert an ArrayRef to BooleanArray
I can go from ArrayRef to &BooleanArray with functions like https://docs.rs/arrow/25.0.0/arrow/array/fn.as_boolean_array.html but I can't get the owned version
Here is a specific example / reproducer:
use std::sync::Arc;

use arrow::{array::{BooleanArray, ArrayRef}, compute::concat};

fn main() {
    let b1: BooleanArray = [Some(true), Some(true), Some(false), Some(false), None].into_iter().collect();
    let b2: BooleanArray = [Some(true), Some(false), Some(true), Some(false), None].into_iter().collect();

    let output: ArrayRef = concat(&[&b1, &b2]).unwrap();

    // I want to get output as a BooleanArray (which it is) but I can't figure out how to downcast it

    // this almost works but gets an error:

//     --> src/main.rs:16:48
//     |
// 16  |     let output: BooleanArray = Arc::try_unwrap(output)
//     |                                --------------- ^^^^^^ doesn't have a size known at compile-time
//     |                                |
//     |                                required by a bound introduced by this call
//     |

    let output: BooleanArray = Arc::try_unwrap(output)
        .unwrap() // take ownership
        .as_any()
        .downcast::<BooleanArray>()
        .unwrap(); // verify it was actually BooleanArray
}

It doesn't compile
Describe alternatives you've considered
None yet
Additional context
You can see the context of what we are doing on https://github.com/influxdata/influxdb_iox/pull/5910 / https://github.com/influxdata/influxdb_iox/pull/5910#discussion_r1000479355

Or we could maybe add a Sized constraint to the Array  trait ? https://docs.rs/arrow/latest/arrow/array/trait.Array.html

Note that @crepererum  wrote https://github.com/apache/arrow-rs/pull/2902

Yeah, I was hoping to avoid leaking this into the public interface as that PR does... Perhaps it is unavoidable 😅

Would it be an option to remove impl Array for T for the two cases where T involves references? Looking at all the impls and how Array is usually used, these two look pretty special.

Would it be an option to remove impl Array for T for the two cases where T involves references

Yes, unfortunately ArrayAccessor relies on references as currently ArrayAccessor: Array. The main reason for this is because it avoided ambiguous method calls, as both need to provide fn data(&self). Not a good reason, but that is the way it currently is. I would support changing this though

I found a workaround in the DataFusion codebase -- namely create it from ArrayData:
BooleanArray::from(mask.data().clone())

https://github.com/apache/arrow-datafusion/blob/6e0097d35391fea0d57c1d2ecfdef18437f681f4/datafusion/core/src/physical_plan/file_format/row_filter.rs#L106-L114

Yeah, the downside is it isn't quite as cheap. But maybe that is fine


Remove update operator for compatibility, add tests

Codecov Report
Patch coverage has no change and project coverage change: +0.15 :tada:

Comparison is base (9b54ccb) 83.92% compared to head (0f5a235) 84.08%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #301      +/-   ##
==========================================
+ Coverage   83.92%   84.08%   +0.15%
==========================================
  Files          30       30
  Lines        1904     1904
  Branches      295      295
==========================================
+ Hits         1598     1601       +3
+ Misses        219      216       -3
  Partials       87       87

see 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@paddyroddy - I was expecting these new tests to fail on python 3.8 (before I implemented the fix). However they all pass. On closer inspection, it looks like tox is using 3.10 for everything?


fixed: [hi] Localize the training page (https://kubernetes.io/trainin…

…g/) to Hindi.

Hey @Sourav131313 sign the CLA for review .

already signed

/retitle [hi] Localize training page into Hindi

Hey @Sourav131313  Thank You for your contribution.
But as per your Contribution the page will not work perfectly the rendering of the pages will be disturbed and will redirect  to the incorrect link. Which will not look good.

Already one of the PR is raised which is in active state on the same issue.
As this PR is not attaining the requirement of the issue. So I am closing the issue.
Keep Contributing with new issue and new PR.
/close


Impossible to start SonarQube with rules having description longer than 32766 characters (UTF-8)

It's impossible to start Sonarqube 5.1+ (tested with 5.2) with this plugin.
The rules can't be indexed by Elastic Search because descriptions are too long.
[130]: index [rules], type [rule], id [jshint:W090], message [IllegalArgumentException[Document contains at least one immense term in field="htmlDesc" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.  Please correct the analyzer to not produce such terms.  The prefix of the first immense term is: '[60, 115, 116, 121, 108, 101, 62, 35, 99, 117, 115, 116, 111, 109, 45, 114, 117, 108, 101, 45, 100, 101, 115, 99, 114, 105, 112, 116, 105, 111]...', original message: bytes can be at most 32766 in length; got 32980]; nested: MaxBytesLengthExceededException[bytes can be at most 32766 in length; got 32980]; ]
	at org.sonar.server.search.IndexQueue.enqueue(IndexQueue.java:94) ~[sonar-server-5.2.jar:na]
	at org.sonar.db.DbSession.commit(DbSession.java:61) ~[sonar-db-5.2.jar:na]
	at org.sonar.server.rule.RegisterRules.start(RegisterRules.java:106) ~[sonar-server-5.2.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]
	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picocontainer-2.15.jar:na]
	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) ~[picocontainer-2.15.jar:na]
	at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:259) ~[sonar-core-5.2.jar:na]
	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) ~[picocontainer-2.15.jar:na]
	at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) ~[picocontainer-2.15.jar:na]
	at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) ~[picocontainer-2.15.jar:na]
	at org.picocontainer.behaviors.Stored.start(Stored.java:110) ~[picocontainer-2.15.jar:na]
	at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016) ~[picocontainer-2.15.jar:na]
	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009) ~[picocontainer-2.15.jar:na]
	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) ~[picocontainer-2.15.jar:na]
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:99) ~[sonar-core-5.2.jar:na]
	at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:84) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:45) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:82) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:78) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:197) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.platform.Platform.doStart(Platform.java:114) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.platform.Platform.doStart(Platform.java:99) ~[sonar-server-5.2.jar:na]
	at org.sonar.server.platform.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:43) ~[sonar-server-5.2.jar:na]
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720) [tomcat-embed-core-8.0.18.jar:8.0.18]
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [tomcat-embed-core-8.0.18.jar:8.0.18]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.18.jar:8.0.18]
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.0.18.jar:8.0.18]
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [tomcat-embed-core-8.0.18.jar:8.0.18]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_75]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75]
	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]

Workaround

Modify rule to fit description shorter than 32766 characters (I reduced jshint.css  with http://csscompressor.com/ and reduced W083.html & W098.html, not the right way)

Not tested, maybe disable index on 'description' column in elastic search for this plugin (I don't know if it could be a Sonarqube feature)

The plugin is not compatible since Sonar 5.0 for now as there are many internal changes in plugin development and bugs. Many new APIs are marked as beta and may change in next versions.
So we decided to wait before supporting Sonar 5+.
I will investigate the source of the issue and see if Sonar has a simple way to bypass elasticsearch indexing on description

I have made some researches. There is no way to easily exclude some fields. The problem has been introduced since 5.1: https://jira.sonarsource.com/browse/SONAR-6632.
Currently, there is no fix for this issue in Sonar. It seems to be planned for version 5.3.
I have reduced the size of the HTML description. I also had to fix some calls to Sonar to make it work. I have not tested completely the plugin on Sonar 5.2 but it seems to work.
@cpoisnel : Please let me know if it works for you

Thank you Aurélien, I will test it :+1:

Please what table/rules shall I clean from DB? I tested this plugin but this issue persists even if I deleted this plugin from my testing Sonar instance. Thanks.

Which version of Sonar are you using ?

Sonar 5.4

I have tested sonar-5.x branch on Sonar 5.4 and Sonar starts correctly.
Have you generated the plugin using branch sonar-5.x ?
The main branch works for sonar < 5.
Due to big changes into internal Sonarqube APIs, the plugin that works for sonar 4.5.x can't work in Sonar 5+. So we had to make different branches.
Can you try again generating the plugin with branch sonar-5.x and start with it ?

I used plugin from release 2.0.0 zip file. I will test plugin branch sonar-5.x with Sonar 5.4 and let you know. I must also say Sonara start correctly for the first time. But next start runs indexing on data added by plugin after first start. So second start failed due to Sonaer issue SONAR-6632 mentioned above. This issue should be fixed in Sonar 5.6 - there is already Sonar 5.6 RC1 available but as you say there is many more changes in plugin required for Sonar 5.x.
We also have clash with Sonar Web plugin. It uses the same source file filter and project build fails because it complains there are 2  plugins with the same source filter. So it was reason I had to remove web-frontend plugin. By default both plugins are enabled when installed and we cannot go through all projects and update their configuration. Is there any way how to enable web-frontend plugin only for some projects explicitly? ie. we would use either web or web-frontend plugin.

It is no more possible to have two plugins that are able to handle same language or same kind of files... I had the same issue when using both our plugin and Sonar javascript plugin.
I tried many things, I also ask Sonar how I could do this and their response is clear : there is no more way and they won't do anything to help us...
So I tried differently by including their plugin into ours. It partially works and you can have at the same time Sonar Way rules and our rules. But it is a really long work to make it fully working (including test results, code duplication, code structure...). So for now, we prefer to wait for the Sonar 5.6 release that will be a LTS (will be available soon). We will investiguate for a real working solution when available.
So for now, it is not possible to have both plugins at the same time on the same Sonarqube server isntance.

@aurelien-baudet hi!
Have you some news about usage of both javascript sonar plugin and your sonar-web-frontend?
Thanks
Francesca


Python3.12 support

Feature Request
Is your feature request related to a problem? Please describe:

I tried to use paddlespeech on my python 3.12, and it depend on paddlepaddle which support python 3.12. But the paddlespeech seems only support 3.9, it's too old. Could you update this package to work with addlepaddle on python 3.12.
https://github.com/PaddlePaddle/PaddleSpeech/blob/969f33999fd6116a69831d098c1ab6f1e125129a/setup.py#L317-L321
See also https://pypi.org/project/paddlespeech/, https://pypi.org/project/paddlepaddle/.
Describe the feature you'd like:

Support python 3.12 like paddlepaddle does.
Auto install paddlepaddle when install paddlespeech as a explict dependences.

Describe alternatives you've considered:

Hello developers, thank you for paying attention to PaddleSpeech open source project, sorry for bringing you a bad development experience, the current open source project maintenance manpower is limited, you can try to modify the PaddleSpeech source code by yourself, or ask other developers in the open source community to help. Communication channel:：飞桨AI Studio星河社区-人工智能学习与实训社区

How hard would it be to update PaddleSpeech to handle Python 3.12? Are there major issues or is this straightforward?


fix cycle in list ifd, fix #161

In some rare case (see #161), there can be a cycle in the ifd, resulting in an infinite loop when trying to extract the exif of an image
this fixes this problem

I published this as https://pypi.org/project/ExifRead-nocycle/ ; if anyone wants the fix sooner they can use it
But of course I would rather see this merged and published!

Thanks for merging!
Could you consider doing a new pypi release?


Close button of popup editor overlaps text during editing

Describe the Bug
Currently, the close button is overlapping some of the feel text when editing. This causes

Steps to Reproduce

Pop a feel expression out
Enter a bunch of text into it
See above picture

Expected Behavior

There should not be a conflict between this button and the text display. Move the Close button to the top bar of the FEEL Popup Editor. The area below will be reserved only for editing and previewing FEEL expressions.

To solve this issue and improve overall visual alignment, move the Close button to the top bar of the FEEL Popup Editor. This will reserve the area below only for editing and previewing FEEL expressions.
The button to close the popup should be an icon button, and hovering it should show the tooltip "Close."

Should we consider using a dock icon instead? It might better convey the idea that the change is not destructive, what do you think?

Agreed that a tooltip for the close button will indicate that changes are saved when closing, so this action is not destructive.


Add bnx2x-e2-<IP_ADDRESS>.fw to initrd

RancherOS Version: 0.9.0+
Where are you running RancherOS? baremetal, Dell PowerEdge FC430s
Hi there,
Is it possible to add the bnx2x-e2-<IP_ADDRESS>.fw file to the initrd image? I was trying to PXE boot rancheros 0.9.0 (also tried 0.9.1, all the way up to 1.0.1) but it kept failing with this error because the fw file isn't present.

[   53.286303] time="2017-05-08T23:40:31Z" level=info msg="Running DHCP on eth1"
[   53.447891] bnx2x 0000:01:00.0: Direct firmware load for bnx2x/bnx2x-e2-<IP_ADDRESS>.fw failed with error -2
[   53.561926] bnx2x: [bnx2x_init_firmware:13494(eth0)]Can't load firmware file bnx2x/bnx2x-e2-<IP_ADDRESS>.fw
[  53.674896] bnx2x: [bnx2x_func_hw_init:6003(eth0)]Error loading firmware
[  53.755407] bnx2x: [bnx2x_nic_load:2727(eth0)]HW init failed, aborting

cd usr/lib/firmware/bnx2x/
bnx2x # ls -alh
total 1.6M
drwxr-xr-x  2 root root 4.0K May  9 01:03 .
drwxr-xr-x 28 root root 4.0K May  9 01:00 ..
-rw-r--r--  1 root root 149K May  9 01:00 bnx2x-e1-<IP_ADDRESS>.fw
-rw-r--r--  1 root root 161K May  9 01:00 bnx2x-e1-<IP_ADDRESS>.fw
-rw-r--r--  1 root root 207K May  9 01:00 bnx2x-e1h-<IP_ADDRESS>.fw
-rw-r--r--  1 root root 169K May  9 01:00 bnx2x-e1h-<IP_ADDRESS>.fw
-rw-r--r--  1 root root 242K May  9 01:00 bnx2x-e2-<IP_ADDRESS>.fw
-rw-r--r--  1 root root 314K May  9 01:00 bnx2x-e2-<IP_ADDRESS>.fw

It eventually loads up to the login screen but there's no network.
I ended up having to modify the initrd image to include this fw file and it worked, but would be nicer if the default initrd image has this included already.
Let me know if there's more info I could provide? Thanks!

Would it be possible to get this fix in v1.0.2?

this should be relativly easy to do - but I really hope there's not a large number of different hardware out there >yeah right<

interesting - some of it's already in there?
scripts/firmware:bnx2/bnx2-rv2p-09ax-6.0.17.fw
scripts/firmware:bnx2/bnx2-mips-09-6.2.1b.fw
scripts/firmware:bnx2/bnx2-mips-06-6.2.3.fw
scripts/firmware:bnx2/bnx2-rv2p-09-6.0.17.fw
scripts/firmware:bnx2/bnx2-rv2p-06-6.0.15.fw
scripts/firmware:bnx2x/bnx2x-e1-<IP_ADDRESS>.fw
scripts/firmware:bnx2x/bnx2x-e2-<IP_ADDRESS>.fw
scripts/firmware:bnx2x/bnx2x-e1h-<IP_ADDRESS>.fw

and I presume the other files are in the kernel-extras service?

I think the problem is that the kernel module (bnx2x) is now referencing the firmware, but it's not found anywhere in the initrd?  At least, this git commit to the kernel source makes it appear it was due to a change in the kernel: (note the version changes at the top).  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/net/ethernet/broadcom/bnx2x?id=5e091e7ad0baa84a401b4dc3f859890990f0854f  the firmware we injected into the initrd which worked came from the bnx2x-e2-<IP_ADDRESS>.fw file located at  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/bnx2x but I don't know how many of those are actively referenced in the kernel.

https://github.com/rancher/os-kernel/pull/50

@visokoo can you check that  https://github.com/rancher/os/releases/tag/v1.0.2-rc1 resolves this for you? I don't have hardware to test this.

@SvenDowideit, I can confirm it's working for me on a range of Dell R630's - which need the firmware too - I'd guessing it's working fine for Dell PowerEdge FC430s. Thanks!

@SvenDowideit, Works for me too! Thanks!

@SvenDowideit When do you think v1.0.2 will be released?

awesome! 1.0.2 should be out within the next 7 days - there's a few more things I hope for work out, but  we'll see.


OpenCost failed to query metrics to VictoriaMetrics

Setup

Install victoria-metrics-k8s-stack helm chart, and enable vmcluster
Install opencost helm chart setting the image tag to 1.110
Follow the documentation for VictoriaMetrics cluster deployment adding the values for each chart
Create the VMServiceScrape like following:

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
  labels:
    app: opencost
  name: opencost
  namespace: opencost
spec:
  endpoints:
  - interval: 30s
    path: /metrics
    port: http
    scrapeTimeout: 30s
  namespaceSelector:
    matchNames:
    - opencost
  selector:
    matchLabels:
      app.kubernetes.io/instance: opencost-cen
      app.kubernetes.io/name: opencost

Configuration in OpenCost values:

opencost:
  exporter:
    image:
      tag: latest
    defaultClusterId: "k3d-1"
    extraEnv:
      KUBECOST_SCRAPE_INTERVAL: 1m
      PROM_CLUSTER_ID_LABEL: cluster
  prometheus:
    external:
      enabled: true
      url: http://vmselect-victoria-metrics-k8s-stack.victoria-metrics.svc:8481/select/0/prometheus
    internal:
      enabled: false

Configuration in VictoriaMetrics values:

victoria-metrics-k8s-stack:
  vmagent:
    spec:
      externalLabels:
        cluster: k3d-1
  vmsingle:
    enabled: false
  vmcluster:
    enabled: true

Issue
After deploying the VictoriaMetrics and OpenCost charts using ArgoCD I got the following error in the OpenCost pod:
2024-05-02T20:38:35.104153093Z ??? Log level set to info
2024-05-02T20:38:35.104649495Z INF Starting cost-model version 1.110 (a1dfd1c)
2024-05-02T20:38:35.104677595Z INF Kubernetes enabled: true
2024-05-02T20:38:35.104772296Z INF Prometheus/Thanos Client Max Concurrency set to 5
2024-05-02T20:38:35.118462666Z ERR Failed to query prometheus at http://vmselect-victoria-metrics-k8s-stack.victoria-metrics.svc:8481/select/0/prometheus. Error: no running jobs on Prometheus at /select/0/prometheus/api/v1/query . Troubleshooting help available at: https://www.opencost.io/docs/integrations/prometheus
2024-05-02T20:38:35.11913717Z INF Retrieved a prometheus config file from: http://vmselect-victoria-metrics-k8s-stack.victoria-metrics.svc:8481/select/0/prometheus
2024-05-02T20:38:35.11918957Z INF Using scrape interval of 60.000000
2024-05-02T20:38:35.120119675Z INF NAMESPACE: opencost
2024-05-02T20:38:35.221552597Z INF Done waiting
2024-05-02T20:38:35.221917699Z INF Starting *v1.Deployment controller
2024-05-02T20:38:35.2221153Z INF Starting *v1.PersistentVolumeClaim controller
2024-05-02T20:38:35.222155601Z INF Starting *v1.StatefulSet controller
2024-05-02T20:38:35.222175101Z INF Starting *v1.ReplicaSet controller
2024-05-02T20:38:35.222193301Z INF Starting *v1.PersistentVolume controller
2024-05-02T20:38:35.222211401Z INF Starting *v1.Job controller
2024-05-02T20:38:35.222229801Z INF Starting *v1.StorageClass controller
2024-05-02T20:38:35.222247301Z INF Starting *v1.PodDisruptionBudget controller
2024-05-02T20:38:35.222264901Z INF Starting *v1.Pod controller
2024-05-02T20:38:35.222283001Z INF Starting *v1.Namespace controller
2024-05-02T20:38:35.222300001Z INF Starting *v1.Node controller
2024-05-02T20:38:35.222316701Z INF Starting *v1.ConfigMap controller
2024-05-02T20:38:35.222333502Z INF Starting *v1.Service controller
2024-05-02T20:38:35.222350602Z INF Starting *v1.DaemonSet controller
2024-05-02T20:38:35.222549003Z INF Starting *v1.ReplicationController controller
2024-05-02T20:38:35.230480643Z INF Found ProviderID starting with "azure", using Azure Provider
2024-05-02T20:38:35.240538995Z INF No metrics-config configmap found at install time, using existing configs: configmaps "metrics-config" not found
2024-05-02T20:38:35.244698417Z INF No pricing-configs configmap found at install time, using existing configs: configmaps "pricing-configs" not found
2024-05-02T20:38:35.245232519Z WRN Controller: pullWatchers: failed to load config statuses from file: open /var/configs/cloud-configurations.json: no such file or directory. Proceeding to create the file
2024-05-02T20:38:35.24537692Z ERR Controller: pullWatchers: failed to save statuses failed to save config statuses to file: open /var/configs/cloud-configurations.json: no such file or directory
2024-05-02T20:38:35.245762322Z INF Using ratecard query OfferDurableId eq 'MS-AZR-0003p' and Currency eq 'USD' and Locale eq 'en-US' and RegionInfo eq 'US'
2024-05-02T20:38:45.246325936Z WRN Controller: pullWatchers: failed to load config statuses from file: open /var/configs/cloud-configurations.json: no such file or directory. Proceeding to create the file
2024-05-02T20:38:45.246477137Z ERR Controller: pullWatchers: failed to save statuses failed to save config statuses to file: open /var/configs/cloud-configurations.json: no such file or directory
2024-05-02T20:38:45.246670737Z ERR Controller: pullWatchers: failed to save statuses failed to save config statuses to file: open /var/configs/cloud-configurations.json: no such file or directory
2024-05-02T20:38:55.247012701Z WRN Controller: pullWatchers: failed to load config statuses from file: open /var/configs/cloud-configurations.json: no such file or directory. Proceeding to create the file

The OpenCost UI works but there is no info in it:

Same issue since here since upgrading to v1.110.0 (Chart 1.35.0).

By mounting a volume and set the env var CONFIG_PATH  to its mount path, the error in the logs disappeared.
However, the UI still shows no data.
Reverted to v1.109.0 (Chart 1.34.0) but the UI is still broken. It worked until the upgrade.
The Grafana dashboard is still working.

@PabloSebastian does it work when you downgrade to 1.109.0 (Chart 1.34.0)?

@asdfgugus By mounting a volume and setting en env var CONFIG_PATH the following error disappeared:
ERR Controller: pullWatchers: failed to save statuses failed to save config statuses to file: open /var/configs/cloud-configurations.json: no such file or directory

But I still have this issue on the top of the logs:
ERR Failed to query prometheus at http://vmselect-victoria-metrics-k8s-stack.victoria-metrics.svc:8481/select/0/prometheus. Error: no running jobs on Prometheus at /select/0/prometheus/api/v1/query . Troubleshooting help available at: https://www.opencost.io/docs/integrations/prometheus

As it can't retrieve any metrics from VictoriaMetrics, I'm having the UI empty.

Yes, I made a curl request to the vmcluster service:
~ $ curl http://vmselect-victoria-metrics-k8s-stack.victoria-metrics.svc:8481/select/0/prometheus/api/v1/query?query=up
{"status":"success","isPartial":false,"data":{"resultType":"vector","result":[]},"stats":{"seriesFetched": "0","executionTimeMsec":1}}

~ $ curl http://vmselect-victoria-metrics-k8s-stack.victoria-metrics.svc:8481/select/0/prometheus/api/v1/query?query=up
{"status":"success","isPartial":false,"data":{"resultType":"vector","result":[]},"stats":{"seriesFetched": "0","executionTimeMsec":1}}

This should return the up metrics in the result. But it is empty.

Does this need to be over in the opencost/opencost repo? Is it a Helm issue or how OpenCost works with VictoriaMetrics?

In my case, it is how Opencost works with VictoriaMetrics. I followed the documentation explaining how to configure both applications but couldn't get it to work.
Documentations:

Repost: Monitoring Kubernetes costs with OpenCost and VictoriaMetrics
Monitoring Kubernetes costs with OpenCost and VictoriaMetrics

@PabloSebastian this guide is outdated, use only this. Regarding your setup, have you checked VMAgent logs? if you cluster is empty means that VMAgent cannot for some reason ingest data there. Also among your scrape targets there's only opencost. VictoriaMetrics helm chart provides out of box set of scrape configs, and services, which Opencost relies on (node exporter, etc), so initial query should return bunch of metrics, if vmagent works properly

@AndrewChubatiuk should we create a VictoriaMetrics section in the docs? I think this would be pretty useful and we could position VM as a Prometheus alternative directly in the installation since I know it's picking up popularity with OpenCost users.


Remove or rename errored tables under nldi_data schema

Seems to be in both database instances.

Looks like it came from https://github.com/ACWI-SSWD/nldi-db/blob/master/nldi-liquibase/src/main/resources/liquibase/nldi_data/tables.sql

@EthanGrahn -- is this still an issue?

@dblodgett-usgs If this is referring to tables with _temp, then yes. They are supposed to be automatically created by the crawler and cleaned up after ingestion is complete. The feature; select * from pg_class; is intended to prevent a specific SQL injection, so that's intended.

OK -- We'll leave this open. It would make sense to have those temp tables get dropped if not needed anymore.


Housekeeping work

Use gradle wrapper instead
Ignore some useless files.

80 is for HTML , Please try the localhost in browser with port 80 statement


[Typescript learning] babel vs tsc

Description
Resources:

https://www.typescriptlang.org/docs/handbook/babel-with-typescript.html#babel-vs-tsc-for-typescript

Types of Changes

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Documentation update
[ ] Breaking change (could cause existing functionality to not work as expected)
[ ] Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

Removing a public function or component or prop
Adding a required argument to a function
Changing the data type of a function parameter or return value
Adding a new peer dependency to package.json

Changes

(change1)

How to Test-Drive This PR

(step1)

Checklists

General

[ ] Changes are covered by test cases
[ ] CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance
You must check off all items in one of the follow two lists:

[ ] There are no changes to UI

or...

[ ] Changes were tested with a Screen Reader (iOS VoiceOver or Android Talkback) and had no issues
[ ] Changes comply with WCAG 2.0 guidelines levels A and AA
[ ] Changes to common UI patterns and interactions comply with WAI-ARIA best practices

Localization

[ ] Changes include a UI text update in the Retail React App (which requires translation)

This is so cool!!!!!
Just drive by thoughts:

It'd be sweet to get the tsc commands packaged up in mrt as already mentioned in one of the comments.
Same goes for the .tsconfig - ideal for me would be a zero-config setup that I can override if I want to.
Question: Does it make sense to generate d.ts files for applications like the PWA? I thought the type defs are things that libraries need to ship, only, really.

I know you're using this as a place to learn and that (3) is probably just part of learning in this branch.
Still, very, very cool tho! 😎 👏 😎 👏

Closing this PR to help clean up the PR list.


Sherlock and Anagrams

Problem Link- https://www.hackerrank.com/challenges/sherlock-and-anagrams/problem
In Language:

[ ] C++
[ ] JAVA
[x] Python

assign me


Descriptions!

What?
Put all metadata into Description module.
Why?
Prepare for dynamical lookup. But stay with the defaults for the beginning.
Todo

api versions
sobjects
fields
urls
use defaults, don't try to connect
more tests, eg. for fields!

closes #12.


initial prototype of interactive javascript charts, with @bqpd

In progress -- todo:

[ ] make it work with multiple datasets on the same plot, as in the chartjs examples
[ ] general cleanup of Python code for extensibility
[ ] figure out y axis scaling
[ ] add more chart options, e.g.

[ ] Radar? :imp:
[ ] Pie
[ ] range/payload curves for aircraft

[ ] abstract to other js libraries

Example to run in ipython notebook:
from gpkit import Model, Variable
from gpkit.interactive.chartjs import BarChart

x = Variable("x", "-", "the variable called x")
y = Variable("y", "-", "the variable called y")
x_min = Variable("x_{min}", 2, "-", "min x val")
y_min = Variable("y_{min}", 2, "-", "min y val")

m = Model(x + y,
          [x >= x_min,
           y >= y_min])
sol = m.solve(verbosity=0)
bc = BarChart(["x", "y"])

@galbramc, this is now failing testing for a single pylint error, Unable to import 'IPython.display'. Is the right fix for you to install that on the testing machines?

test this please

test this please

Just wanted to make sure installing ipython fixed all the pylint warnings here, and it did.

test this please

test this please

test this please

Can one of the admins verify this patch?

test this please

retest this please

Not working on refactor right now.

what's the status on this? Can I rebase it onto the current post-refactor master and force push?

I think there was some bug, but once it's working I'm ready to pull.
On Mar 25, 2016 1:52 PM, "Warren Hoburg"<EMAIL_ADDRESS>wrote:

what's the status on this? Can I rebase it onto the current post-refactor
master and force push?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/hoburg/gpkit/pull/523#issuecomment-201385740

it was because we changed the items in sol["variables"] to be Quantities. rebased and fixed that. @bqpd, ready for review.

Looks good to me, merging.

Will make a new issue for the checklist above.

@pgkirsch, check this out for the xplane sizing stuff. It's now on master. the small example code snippet above should work (and you'll need the controlpanel call shown in the screenshot in a separate cell).


expose a getType method on the controller

@a-s-o
Sorry but I'm confused. Let's recap in this new issue:
I can add the method getType() to the model...
const Model = require('cerebral-tcomb');

const State = t.struct({
  ...
});

const initialState = State({
  ...
});

var model = Model(initialState);
model.getType(); // => State constructor

// getType could just be defined here
model.getType = function () {
  return State;
};

..or to the state:
controller.signal('test', function (input, state, output) {
  state.getType(): // => State constructor
});

Though in the first case I can't see how it could be useful since normally the model is swallowed by the controller:
var controller = Controller(Model(initialState));

Hi, the current syntax for cerebral models does make it hard to do. Here is how I am doing it
   function modelFactory (controller) {
      const Model = require('cerebral-tcomb')(State({ /*initial state*/ }));
      const model = Model(controller);

      model.get = _.wrap(model.get, function wrapped$get (next, path) {
         const value = next(path);
         if (!t.Nil.is(value)) return value;

         const type = model.getType(path);
         if (type.loader) {
            ...
         }
      });

      return model;
   }

   const controller = require('cerebral')(modelFactory, defaultInput);

Having said that, thanks so much for your help but if you don't find this method useful, you can skip this as well. I don't mind writing it myself since I have access to the original state Type. It seems like a very specific case to me and no point in increasing the api of this package

It seems like a very specific case to me and no point in increasing the api of this package

I think you are right, I'll leave it out for now. Thanks for the clarification.


Create custom transformers using pyspark

Hi,
Is it possible to create custom transformers in pyspark using mleap?  This doc states that the pyspark support is yet to come. On the other hand, the pyspark documentation states that the support is already present. If custom transformers are support, can someone direct me to a few examples?

Same issue here. Any word ?

There are quite a few duplicates on this question, I am going to close this issue and keep https://github.com/combust/mleap/issues/495 open as a reference ticket for this enhancement.


Migrate string refs to functional ones in brand_image_setting component

Fixes https://github.com/mattermost/mattermost-server/issues/15851
JIRA ticket: https://mattermost.atlassian.net/browse/MM-29412

Hello @sowmiyamuthuraman,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @jfrerich

/update-branch

@mkraft kind reminder to help with review :)

/update-branch


Corrected typos

na its graw here,  its the reddit package i used a while ago although i use another one now.


pull request for e2e test at 01/02/2017 12:56:13

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Docker image build updated to allow systemctl command failure

Fix the docker image build by allowing systemctl daemon-reload to fail.
With this fix the image build will complete but the resulting image is not functional.

Demo is that a manual docker build works when modified to use this branch:
# Get the bootstrap script, and then run it.
RUN cd /root && \
    curl -o bootstrap.sh -Ls https://raw.githubusercontent.com/AppScale/appscale/master/bootstrap.sh && \
    bash ./bootstrap.sh --repo git://github.com/sjones4/appscale.git --branch issue-docker-build-systemd


feat: add Harmony Testnet

Description

Add Harmony testnet
Found the information on the Harmony explorer, the docs and chainList.
Backward compatibility

No
Testing

Yes

I hope I fixed everything now


Add brew sponsors command

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

Adds a new hidden developer command, brew sponsors, that queries the GitHub API to get a list of our supporters on GitHub Sponsors.
Ideally this would be automatically updated via continuous integration, but this API requires a personal access token with scopes admin:org and user, which are some pretty big scopes and makes me a bit worried about security. Instead, someone with Owner permissions on the Homebrew org should run this every so often and update the README with its output. Suggestions for automation are welcome.

Instead, someone with Owner permissions on the Homebrew org should run this every so often and update the README with its output.

Maybe someone on the PLC could have this be a recurring reminder?

Yeah, on the first of each month or thereabouts would be ideal.

Added a test to please codecov.

Dunno what codecov wants but I'm just gonna merge this. Thanks for the review!