Bugfix/duplicate tags

What does this PR do?
This PR demonstrates one possible solution to an issue we've observed in production, where env tags can be merged with the official deployment.environment resource-level "tag," resulting in confusing behavior if that attribute is not also overridden (or otherwise does not match the env tag).
Motivation
This PR is inspired by a particularly nasty bug we have encountered recently with OTLP metrics being sent to DataDog. When setting env attributes via the attributeprocessor, we were inadvertently creating situations where the Resource level tags did not match the metric series level tags. This caused double entries in the JSON being sent to datadog, and very confusing results in dashboards.

Possible Drawbacks / Trade-offs
The current solution is not configurable and may result in tag values that don't make sense, depending on the tag source that created the original tag.
Describe how to test/QA your changes
go test
You could also set up an otel-contrib-collector pipeline with a DD exporter, and different upsert for env in resourceprocessor and attributeprocessor like so:
  exporters:
    datadog:
      api:
        key: SET_VIA_ENV
  processors:
    resource:
      attributes:
        - key: deployment.environment # technically we override this and env on both processors, now, just to be safe, but IIRC this should replicate
          action: upsert
          value: prod
    attributes:
      actions:
        - key: env
          action: upsert
          value: dev
  service:
    pipelines:
      metrics:
        exporters:
          - datadog
        processors:
          - resource
          - attributes
        receivers:
          - prometheus # or whatever

Reviewer's Checklist

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

I wanted to get this out there to discuss the solution, and whether or not it is viable or if you'd like some more changes or design to happen before proceeding, but we've been bitten by this and have a workaround currently, but it seems ideal that others would not have to figure out the underlying conversions in play, quite to the same level that we've had to debug.
Please let me know if there's anything you'd like to change here, or discuss better alternatives that I may have missed, not knowing the codebase quite as well as I'm sure the team does.

@andrewstuart Thanks for finding & fixing this bug. This might an issue with traces or even logs. I will get back to you we want to fix in all places or there is some central place we can do it .

Any update to this? we are affected by this issue and i'm sure other people as well


RJD-1336/fix_request_speed_change_throws

Abstract
Please refer to this issue.
Details

Inversion of order in if statements

 if (!continuous && isTargetSpeedReached(target_speed))  --->
 if (isTargetSpeedReached(target_speed) && !continuous)
this forces calculation of relative_target_speed, which throws immediately, if invalid.
2. Numerous const qualifiers added.
3. A single cpp_mock_scenario has been modified in order to update other_status variable.
References
issue
jira ticket

Regression results: OK


Landmarks without aria-label not shown in Voiceover rotor

Description of the issue
On gov.uk, only the landmarks that have aria-labelledby are recognised by Voiceover and listed in the landmarks section of the Rotor.
Landmarks that don't have the attribute eg <main id="content" role="main />, are ignored.
Steps to reproduce the issue
See screen recording here - https://ukgovernmentdigital.slack.com/archives/C0647LW4R/p1618226743059000?thread_ts=1618217541.053300&cid=C0647LW4R

Navigate to gov.uk home page
Open Voiceover then the Rotor
Switch to Landmarks tab

Actual vs expected behaviour
Expected - every landmark element with a role should be listed
Actual - only landmarks with aria-labelledby set, are listed.
Environment (where applicable)

Operating system: Mac OS Catalina 10.15.6
Browser: Safari
Browser version: 14.0 (156<IP_ADDRESS>.9, 15610), no extensions loaded
GOV.UK Frontend Version: seen on gov.uk live home page

@36degrees correctly pointed out that this is due to the Verbosity setting in Voiceover - I had it set to low, but if you change it to medium then all landmarks are reported.

@jonnywyatt thanks for reporting, now we have it documented if something like this comes up again


Add a matcher that supports Office document types

Thank you very much for your Logseq plugin, it’s quite helpful for me.
I would suggest that we incorporate support for scanning various types of Office documents.
Thanks,
Hai Chang

LGTM


Fix flaky tests

Identified a bug where we were uploading a chunk to the bytes api. Because when generating the chunk, the span is appended to the random generated bytes, the hash which was returned from the bytes API was different than the hash generated in the beekeeper tests, since bmt hash is calculated without the span in the actual data being hashed, and the bytes api treated the span data that was appended to the data as actual data, not span data, resulting in a different hash. So actually the data chunk that was uploaded had a different hash, but the checks inside the actual tests use chunk.ClosestNode, which correlates to the correct hash (which wasn't in fact uploaded correctly), resulting in incorrect assumptions, and chunks which are never found where they are supposed to be.

I do not see that this PR fixed the problem about addresses that is described

I would kindly ask you to read the tests again.
The address coming from the chunk is used, but it is not correct, since the data that was actually uploaded results in a different content address hash.
Example:
https://github.com/ethersphere/beekeeper/blob/master/pkg/check/pullsync/pullsync.go#L94
https://github.com/ethersphere/beekeeper/blob/master/pkg/check/pushsync/pushsync.go#L70
in both cases the actual chunk that was uploaded is the address which is returned from UploadBytes, but the ClosestNode compares the original chunk address (which is correct, but it is not the real content addressed chunk that was uploaded to the cluster)

I do not see that this PR fixed the problem about addresses that is described

I would kindly ask you to read the tests again.
The address coming from the chunk is used, but it is not correct, since the data that was actually uploaded results in a different content address hash.
Example:
https://github.com/ethersphere/beekeeper/blob/master/pkg/check/pullsync/pullsync.go#L94
https://github.com/ethersphere/beekeeper/blob/master/pkg/check/pushsync/pushsync.go#L70
in both cases the actual chunk that was uploaded is the address which is returned from UploadBytes, but the ClosestNode compares the original chunk address (which is correct, but it is not the real content addressed chunk that was uploaded to the cluster)

Yes, you are right.


Alternatives to empty a table?

I understand that DELETE and TRUNCATE are not implemented so I'd like to know if there's any way to empty a table.
I could do a DROP and then a CREATE but it's not very elegant.
Thanks

thats pretty much only way to empty a table at the moment.
we will consider this when evaluating next set of improvements over cstore_fdw.

@gabitoju truncate support is released with 1.4


update requirements with ansible.network collection entry

Signed-off-by: Rohit Thakur<EMAIL_ADDRESS>Depends-On: https://github.com/ansible/project-config/pull/808

recheck

recheck

recheck

you need to run
tox -ebuild

locally, to generate the _build folder changes.

you need to run
tox -ebuild

locally, to generate the _build folder changes.

I have updated the _build changes. Thank you

Looks like the tests have passed now. Can this be merged now? @rohitthakur2590 @pabelanger @GomathiselviS

Looks like the tests have passed now. Can this be merged now? @rohitthakur2590 @pabelanger @GomathiselviS

Let's wait on @pabelanger  approval and access to Merge.


Initializing the model by connecting to the directory selected in the UI

What problem or use case are you trying to solve?
OpenDevin must set the workspace to the directory selected by the user in the UI

Resolved in https://github.com/OpenDevin/OpenDevin/pull/325


Mixed 4-D Domain prediction

Hi,
I am currently trying to run optimization on Gpyopt in a 4-D mixed domain with bound definition:
mixed_domain = [{'name': 'Defect type', 'type': 'categorical', 'domain': range(len(unique_plane)),'dimensionality': 1},
                    {'name': 'Defect Row', 'type': 'discrete', 'domain': (1,2,3),'dimensionality': 1},
                    {'name': 'thickness', 'type': 'continuous', 'domain': (0.4,0.6),'dimensionality': 2}]

I would like to make prediction. Is there some special way I have to treat the x for making prediction? I have tried passing into model.model.predict(np.array([0,1,0.4,0.4])). However I obtain an error message:
During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "<ipython-input-73-374d44b3f491>", line 1, in <module>
    yh = myBopt.model.model.predict(np.array([0,1,0.4,0.4]).reshape(1,4))

  File "D:\Pythonwd\lib\site-packages\GPy\core\gp.py", line 335, in predict
    mean, var = self._raw_predict(Xnew, full_cov=full_cov, kern=kern)

  File "D:\Pythonwd\lib\site-packages\GPy\core\gp.py", line 292, in _raw_predict
    mu, var = self.posterior._raw_predict(kern=self.kern if kern is None else kern, Xnew=Xnew, pred_var=self._predictive_variable, full_cov=full_cov)

  File "D:\Pythonwd\lib\site-packages\GPy\inference\latent_function_inference\posterior.py", line 276, in _raw_predict
    Kx = kern.K(pred_var, Xnew)

  File "D:\Pythonwd\lib\site-packages\GPy\kern\src\kernel_slice_operations.py", line 109, in wrap
    with _Slice_wrap(self, X, X2) as s:

  File "D:\Pythonwd\lib\site-packages\GPy\kern\src\kernel_slice_operations.py", line 65, in __init__
    self.X2 = self.k._slice_X(X2) if X2 is not None else X2

  File "<D:\Pythonwd\lib\site-packages\decorator.py:decorator-gen-140>", line 2, in _slice_X

  File "D:\Pythonwd\lib\site-packages\paramz\caching.py", line 283, in g
    return cacher(*args, **kw)

  File "D:\Pythonwd\lib\site-packages\paramz\caching.py", line 172, in __call__
    return self.operation(*args, **kw)

  File "D:\Pythonwd\lib\site-packages\GPy\kern\src\kern.py", line 117, in _slice_X
    return X[:, self._all_dims_active]

IndexError: index 4 is out of bounds for axis 1 with size 4

Thank you for your help.

I just realize in prediction of categorical domain, I would have to extend the dimension for the categorical data. i.e. my categorical dimension has 21 values. Hence the actual X required for input has dimension of 21+3. So the prediction worked if I input:
yh = myBopt.model.model.predict(np.array([1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0.4,0.4]).reshape(1,24))
Is there a better way to make prediction with some tranformation?

If I'm not mistaken, usually, you'll want to use myBopt.model.predict() because it does the munging for you via the design_space.


Annoying Tooltips that cant be disabled

I am currently facing an issue that was most probably  introduced with one of the latest updates to the lazyvim distro.
I constantly see these (MDN references) when writing my code (screenshot showing when writing "console.log("), and i also cant remove or toggle the signature helpers, they simply always show up (on the completion menu/dropdown). is there a way to fix this because having so many popups is driving me nuts.

I have no idea what you're talking about. Nothing changed in Lazyvim that might be related

I can't find your dot files repo so can't see what config you have. Also this is the wrong repo to open an issue like that. You could have changed the config for https://github.com/folke/noice.nvim or https://github.com/hrsh7th/nvim-cmp and that could be causing an issue. Have you tried disabling them?


Not working on RSS 1.0

Trying to use it on craigslist for example https://seattle.craigslist.org/search/act?format=rss
Got error
events.js:142
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'channel' of undefined
at /Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/rss-parser/index.js:26:29
at Parser. (/Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/xml2js/lib/xml2js.js:483:18)
at emitOne (events.js:78:13)
at Parser.emit (events.js:170:7)
at Object.onclosetag (/Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/xml2js/lib/xml2js.js:444:26)
at emit (/Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/sax/lib/sax.js:639:35)
at emitNode (/Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/sax/lib/sax.js:644:5)
at closeTag (/Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/sax/lib/sax.js:903:7)
at Object.write (/Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/Users/gordon/workspace/NoLostDog/nld-crawler/node_modules/xml2js/lib/xml2js.js:502:31)

[Error: Status code 301]

Thanks for the report. I started passing back an error for 1.0.  Feel free to send a PR that implements it, I'm sure it'd only take a few minutes.
Also opened #3 for the 301 error

Implemented in v2.10.0

Hey thanks for the parser, works great. Just wanted to let you know, I just started getting this on some feeds after updating to 2.10.0:
Cannot read property 'channel' of undefined
Went back to 2.9 and it stopped happening.

Hi Keith,
Do you have an example feed that's causes this error? If so I'll fix and add a test case.

I managed to trigger this error for malformed feeds (e.g. if the URL returns HTML instead of an RSS feed), but not for a legit RSS feed. Formerly malformed feeds would have passed an error to the callback, but in 2.10.0 it tries to parse them as RSS 1 and ends up throwing.
I added a check in 2.10.1 that will detect malformed feeds and pass an error to the callback rather than throwing.


feat(config): added yale fingerprint series

Feat(config): Added YRD410-F-ZW3, YRD420-F-ZW3, YRD430-F-ZW3 & YRD450-F-ZW3
YRD410-F-ZW3 Assure 2 Lock Touch SL Keyed Pushbutton Deadbolt ID 0x4936
YRD420-F-ZW3 Assure 2 Lock Touch SL Keyed Touchscreen Deadbolt ID(s) 0x4929
YRD430-F-ZW3 Assure 2 Lock Touch SL Key Free Pushbutton Deadbolt  ID 0x4934
YRD450-F-ZW3 Assure 2 Lock Touch SL Key Free Touchscreen Deadbolt  ID(s) 0x4913, 0x4928

No comment as to content, but I believe your title should be feat(config): added ... if you want to clear the error.

No comment as to content, but I believe your title should be feat(config): added ... if you want to clear the error.

thanks, think i got it now

Did I get the title right or do I need to do anything else?

I'm not the reviewer/approver.  I just thought clearing the error would get more attention from the reviewer.  My observation is he/they are pretty busy.  Have you added these files to the store/config folder and reinterview ?  I think will get them working locally (but not entirely sure).

You are right. I know they are. I also have discovered a missing device id. Im gonna close and look. It works locally.

Again a tip, but no review. Take a quick look at the details of the failing tests for clues.  There is an extra ], on line 11 of one file.  There may be more, but that's one.  I don't know how you code, but I use VSC and there is some checking built into the node-js repository.  (still make mistakes though..)

@catduckgnaf do you have a manual for the locks you added?
#6972 was just merged and contains some of the locks with product type 0x8107.
You have some others in here with different product type/id, but apparently the same name. Would be good to verify what's the difference there. There are usually manuals for the product family explaining the different product types and IDs:

"productType": "0x8104",
"productId": "0x4936"

"productType": "0x8107",
"productId": "0x4929"

"productType": "0x8107",
"productId": "0x4934"

"productType": "0x8107",
"productId": "0x4913"

"productType": "0x8107",
"productId": "0x4928"

@AlCalzone
This one covers it:
https://products.z-wavealliance.org/ProductManual/File?folder=&filename=cert_portal/certs/785/YaleAssureZWavePlusSystemIntegratorsGuidev2.3_YRC_D_200_400_600_ZW3.pdf
From https://github.com/zwave-js/node-zwave-js/discussions/5391


Change ladda css location

old location causes webpack error:
ERROR in multi vendor
Module not found: Error: Cannot resolve module 'react-ladda/node_modules/ladda/dist/ladda.min.css' in /home/***/starhackit/client
 @ multi vendor

Are you using npm 3.x ?

Thanks a lot, the ladda library has been added, so it should work with npm 2.x and 3.x.


Allow users to configure samplingRefreshInterval

The default is 1 minute and is not configurable. Need to make it configurable for integration tests

Coverage decreased (-0.004%) to 80.91% when pulling 3056cee2debbf3bc9bc78e21f2ecd78e8d14e72f on sampling_refresh_interval into 2651a1d0ed0d2ee0ca3d9f5b565cd8d108738ee9 on master.

I can test to see if the jaeger agent mock is called at least once after the configured samplingRefreshInterval but I've found these tests to be extremely flaky

Coverage decreased (-0.004%) to 80.91% when pulling aae8a522f85a8ae69b50ef843a3f30cd9524892b on sampling_refresh_interval into 2651a1d0ed0d2ee0ca3d9f5b565cd8d108738ee9 on master.

Coverage decreased (-0.004%) to 80.91% when pulling 903d4e2f8863c4f7288be6ba151ef5fbc45f95c5 on sampling_refresh_interval into 2651a1d0ed0d2ee0ca3d9f5b565cd8d108738ee9 on master.

Coverage decreased (-0.004%) to 80.91% when pulling 903d4e2f8863c4f7288be6ba151ef5fbc45f95c5 on sampling_refresh_interval into 2651a1d0ed0d2ee0ca3d9f5b565cd8d108738ee9 on master.

Coverage decreased (-0.004%) to 80.91% when pulling 903d4e2f8863c4f7288be6ba151ef5fbc45f95c5 on sampling_refresh_interval into 2651a1d0ed0d2ee0ca3d9f5b565cd8d108738ee9 on master.

Coverage increased (+0.004%) to 80.918% when pulling b85c60828aef844700bc7a28542bc96b5200ac39 on sampling_refresh_interval into 6e2c85a7e6c54657039945e81fb08778d3b73d8d on master.

Coverage increased (+0.004%) to 80.918% when pulling b85c60828aef844700bc7a28542bc96b5200ac39 on sampling_refresh_interval into 6e2c85a7e6c54657039945e81fb08778d3b73d8d on master.


Ambient: Race condition external network unreachable

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
Hi,
When I start a pod with a cluster external network request, the request fails and the pod is in an error state. Not using ambient mode works.
I've installed Ambient with Cilium CNI.
I've firstly notice the bug with Argo Workflows. I have a workflow with a Git input artifact. So when the pod starts, the first init container does a git clone and with Ambient mode I get "artifact failed to load: failed to clone "https://gitlab.com/xxxx.git": Get "https://gitlab.com/xxx.git/info/refs?service=git-upload-pack": EOF
I don't get any error if I run the workflow on a non Ambient namespace.
I've reproduced the bug with a simple pod. I create a namespace test with label istio.io/dataplane-mode=ambient
Then I create a pod which fails:
apiVersion: v1
kind: Pod
metadata:
  name: busybox
  namespace: test
spec:
  containers:
  - name: busybox
    image: busybox
    command:
    - /bin/sh
    - -c
    - wget https://google.com
  restartPolicy: Never

But this pod succeeds:
apiVersion: v1
kind: Pod
metadata:
  name: busybox
  namespace: test
spec:
  containers:
  - name: busybox
    image: busybox
    command:
    - /bin/sh
    - -c
    - sleep 1 && wget https://google.com
  restartPolicy: Never

Just doing a sleep of 1 second gives enough time for the pod to get the correct network settings.
Also just the first container is affected so this pod also works:
apiVersion: v1
kind: Pod
metadata:
  name: busybox
  namespace: test
spec:
  initContainers:
  - name: init
    image: busybox
    command:
    - /bin/sh
    - -c
    - sleep 1 && wget https://google.com
  containers:
  - name: busybox
    image: busybox
    command:
    - /bin/sh
    - -c
    - wget https://google.com
  restartPolicy: Never

And if I remove the sleep from init initContainer then it fails.
Version
Istio
client version: 1.22.0
control plane version: 1.22.0
data plane version: 1.22.0 (12 proxies)

K8s
Client Version: v1.30.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.1

Cilium
cilium-cli: v0.16.7 compiled with go1.22.2 on linux/amd64
cilium image (default): v1.15.4
cilium image (stable): v1.15.5
cilium image (running): 1.15.4

Additional Information
No response

cc @bleggett
I think we need to unify the inpod manager and WDS to only ACK when we get the local workload. Otherwise we get 'unknown source'

cc @bleggett
I think we need to unify the inpod manager and WDS to only ACK when we get the local workload. Otherwise we get 'unknown source'

Ah ok. Yeah. I'll take a look.

@jbmolle this should be fixed in latest 1.23 dev builds and once https://github.com/istio/ztunnel/pull/1111 merges the fix will go out in in the next 1.22 point release - apologies for the delay!

@bleggett Thank you very much for the quick fix!
I'm looking forward to using the next 1.22 release.
And thanks to all the istio contributors, Ambient is such a delight to use!


User dropdown improvements

Should look more clickable / like a menu when not interacting with it
A way to get to user home that is more intuitive than clicking on name ("Your Stuff" item)

Desktop version is here https://www.figma.com/file/YdjrVsNumbBsWVo82Wje2h6N/alonetone-white-theme?node-id=950%3A5382

Mobile version is here:

https://www.figma.com/file/YdjrVsNumbBsWVo82Wje2h6N/alonetone-white-theme?node-id=989%3A860


Update split_part to support negative indexes vs failing

Is your feature request related to a problem or challenge?
No response
Describe the solution you'd like
I'd like split_part('a-b', '-', -1) to return b. Right now it returns an execution error. This is different postgres for example, which does work...
postgres=# SELECT split_part('a-b', '-', -1);
 split_part
------------
 b
(1 row)

vs
DataFusion CLI v36.0.0
SELECT split_part('a-b', '-', -1);

Describe alternatives you've considered
No response
Additional context
No response

Actually this may've been fixed 🙃 I was on 36


lint to check correct encoding of OI

I'm not sure why this stalled out a few years ago, but now it merge conflicts. I'm trying to get ZLint back into shape and so will close this out.
If this lint is still relevant, please let me know and/or reopen rebased against main.


Create yup validation unit tests for registrySchema()

Right now, we need to cover the existing registrySchema() Yup validation with unit tests in this file: web/crux-ui/src/validation/registry.ts. You can find one unit test here: web/crux-ui/src/validation/registry.spec.ts. The task is to create more unit tests to cover all possible scenarios for the schema.
You can find the reference PR here: https://github.com/dyrector-io/dyrectorio/pull/850

Can you assign this to me, please?

Hey, I want to work on this issue. Can you please assign it to me?

Hi @Khalid-debugg, done.

Can i work on this???

Yes @sanket95droid 😊


Write Cypress tests for Editing and Copying Resource Template

Tests the following new functionality after PR #2326

Editing an existing resource template in the editor
Copying an existing resource template into a new resource template

@jermnelson Does this ticket mean to test editing/copying a resource or editing/copying a template? If the former, don't we already have tests for this? If the latter, I am actually not quite sure how to do this workflow in the editor..

@jgreben - this test is for editing/copying a template and not an RDF resource. Should be similar to editing/copying a resource in saveAndCopyResource.test.js, the difference is that it starts from the Resource Templates tab instead of the search tab. Happy to pair on this.

This test is currently failing due in part of the missing root template that is necessary for editing a template. We still should test this functionality so re-opening this ticket as a Cypress integration test that will have the root template available from the docker Sinopia API.


Fix player.gd script errors

Apparently enums were changed in 3.1, so the enum value has to be
prefixed with the enum's name.

Thanks!


undefined method `download' for nil:NilClass (NoMethodError)

Running into this error trying to download a file from GCS:
bucket = storage.bucket "birthdays"
birthday = bucket.file "2000.json"
# Download the file to the local file system
birthday.download "/birthday-2000"

following this : https://cloud.google.com/storage/docs/downloading-objects

@Raghavan1993 Hi, thanks for opening this issue. Can you paste in the error backtrace? I don't see it.

I think the problem is this line:
birthday = bucket.file "2000.json"

If the file does not exist it will return nil. So trying to call #download on that nil object will raise the error you are reporting. I’d check to make sure you get a File object.

That was it  file naming automation script messed up Thanks !!


Sort block types by displayOrder in add panel

A better implementation of
https://github.com/concrete5/concrete5-5.7.0/pull/2256
Added a displayOrder method to Set class and used that in a usort within the Add panel

That's nice and clean.


chore: jsonfmt containerregistry

Ran jsonfmt -w "specification/containerregistry/**/*.json"

Automation for azure-sdk-for-js

Automation for azure-sdk-for-java

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Automation for azure-sdk-for-go

Can one of the admins verify this patch?


Healthcheck: Network load

Implement in node service monitor action
Check the bandwith consumption of the network
See https://github.com/0-complexity/selfhealing/blob/master/jumpscripts/healthchecks/network_load.py

software version
master : 4768508

Scenario

remove node form zerotier.
wait until the status of the node be halted
get node healthcheck

software version
master : 13e218d5c

software version
master : 2043f538


fix align nodes on locked tab

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes

An error occurs when performing align action on nodes on a locked tab.
This PR restores the workaround code that was commented out.
I don't understand why it's commented out, so maybe there's something else wrong.
Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Well spotted. Think I commented it out to check something then overlooked undoing before commit.

Coverage: 68.577% (+0.07%) from 68.51% when pulling 25b6e214dd6ae738187c5783c64c28bb47a8fa74 on node-red-hitachi:fix-align-nodes-on-locked-tab into 910f6134f6a93612967cc908c45dfb8c885b395f on node-red:dev.


Error when running request generate_until

Here is my config
group: open_llm_leaderboard
task:
  - task: arc_challenge
    task_alias: arc 25 shot
    num_fewshot: 25
    metric_list:
      - metric: acc_norm
  - task: hellaswag
    task_alias: hellaswag 10 shot
    process_docs: !function hellaswag_utils.process_docs
    num_fewshot: 10
    metric_list:
      - metric: acc_norm
  - task: hellaswag_id
    task_alias: hellaswag_id 10 shot
    process_docs: !function hellaswag_utils.process_docs
    num_fewshot: 10
    metric_list:
      - metric: acc_norm
  - task: truthfulqa_mc2
    task_alias: truthfulqa 0 shot
    dataset_path: truthful_qa
    dataset_name: multiple_choice
    output_type: multiple_choice
    process_results: !function truthfulqa_utils.process_results_mc2
    metric_list:
      - metric: acc
  - task: winogrande
    task_alias: winogrande 5 shot
    doc_to_text: !function preprocess_winogrande.doc_to_text
    doc_to_target: !function preprocess_winogrande.doc_to_target
    doc_to_choice: !function preprocess_winogrande.doc_to_choice
    num_fewshot: 5
    metric_list:
      - metric: acc
  - task: gsm8k
    task_alias: gsm8k 5 shot
    num_fewshot: 5
    metric_list:
      - metric: acc

And here is the error
2024-01-17:18:53:16,550 INFO     [evaluator.py:314] Running generate_until requests
  0%|                                                                                | 0/1319 [00:00<?, ?it/s]Passed argument batch_size = auto. Detecting largest batch size
Determined Largest batch size: 8
/home/fahadh/anaconda3/envs/merging/lib/python3.10/site-packages/transformers/generation/utils.py:1518: UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use and modify the model generation configuration (see https://huggingface.co/docs/transformers/generation_strategies#default-text-generation-configuration )
  warnings.warn(
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1319/1319 [1:10:00<00:00,  3.18s/it]Traceback (most recent call last):
  File "/home/fahadh/anaconda3/envs/merging/bin/lm_eval", line 8, in <module>
    sys.exit(cli_evaluate())
  File "/home/fahadh/lm-evaluation-harness/lm_eval/__main__.py", line 231, in cli_evaluate
    results = evaluator.simple_evaluate(
  File "/home/fahadh/lm-evaluation-harness/lm_eval/utils.py", line 415, in _wrapper
    return fn(*args, **kwargs)
  File "/home/fahadh/lm-evaluation-harness/lm_eval/evaluator.py", line 150, in simple_evaluate
    results = evaluate(
  File "/home/fahadh/lm-evaluation-harness/lm_eval/utils.py", line 415, in _wrapper
    return fn(*args, **kwargs)
  File "/home/fahadh/lm-evaluation-harness/lm_eval/evaluator.py", line 451, in evaluate
    results[task_name][metric_key] = agg_fn(items)
  File "/home/fahadh/lm-evaluation-harness/lm_eval/api/metrics.py", line 20, in mean
    return sum(arr) / len(arr)
TypeError: unsupported operand type(s) for +: 'int' and 'list'

EDIT: The problem is from gsm8k task. When I tried to do that task itself, I got the same error. Here is the config
group: open_llm_leaderboard
task:
  - task: gsm8k
    task_alias: gsm8k 5 shot
    num_fewshot: 5
    metric_list:
      - metric: acc

I have the same problem with polemo2_in task.

Also, is hellaswag_id a custom task you made? I don't think it's in lm-eval currently.

gsm8k is a generate_until task and needs to use exact_match instead of acc which is already set in it's original yaml.
That aside, I've made a fix in #1315 so that you don't have to copy utils functions so you can remove the lines with !function

But, from Open LLM Leaderboard, gsm8k is measured using acc. Or did I understand it wrongly?

Also, is hellaswag_id a custom task you made? I don't think it's in lm-eval currently.

it is not? But I got it from lm_eval --task list. Maybe because I install this repo including [multilingual] optional dependencies?

Yeah, nvm, I forgot where it was located.
Anyway, the Open LLM Leaderboard uses an older version of lm-eval before the big-refactor. Currently, for generate_until tasks, we are opting to use exact_match as it has some control over minor preprocessing stuff like where or not miss-capitalization should be penalized etc. You should check their implementation to make sure if acc is simply string matching or includes some postprocess and maybe adjust the exact_match param accordingly.

polemo2_in has accuracy which I think can also be used for gsm8k and is probably the same as acc. Lm-eval supports using metrics from Huggingface's evaluate library.

So, in short acc is not a supported metric for gsm8k?

accuracy is not found

@djstrong could you check if this patch works?
https://github.com/EleutherAI/lm-evaluation-harness/pull/1318
@fahadh4ilyas acc is just a code name for accuracy, gsm8k uses a variant that is used for string matching but works in a similar sense which is exact_match in the current version.

Perhaps to minimize confusion we should simply add a name argument for each metric in the config, that can be used to override what the name of the metric is reported as, so that GSM8k (and perhaps other tasks) can retain the name acc for its metric computation.


Changes for approval to create rc branch

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

The changes look clean & correct to me! If I were doing this, I'd probably clean up the git history with a rebase/squash, but I won't hold up your efforts unless you want to do this. Feel free to create the rc branch from this when you are ready.
I do recommend following up with it to ensure the files were published and have the appropriate label on https://anaconda.org/conda-forge/argo-workflows after that is done (so do it when you have time to watch this). If for whatever reason something went wrong, please create an issue so we can discuss / call for assistance there.

Closing as completed by rc branch and label appearing here: https://anaconda.org/conda-forge/argo-workflows/labels

Nice! Glad it all worked out. Good to learn about this process as well, while slightly cumbersome I can see how it can be useful. Looks like some pretty big changes coming in the next Argo workflows release.


com.sun.jersey.spi.container.servlet.WebComponent$Writer.write taking long time

com.sun.jersey.spi.container.servlet.WebComponent$Writer.write  process is taking more time  upto 4 mins. This is happening mostly when there is a lot of response in the service call.
com.sun.jersey.spi.container.servlet.WebComponent$Writer:write 199963
How to tune  the DW  to handle high response calls ?
Dropwizard version is 0.6.2

@SeshuHSC Please post to the dropwizard-user mailing list for general questions like this. Additionally, Dropwizard 0.6.x isn't maintained anymore and you should upgrade to a more recent version of Dropwizard.


Remote development and debugging use case

Having a high interest in a remote development and debugging use case (where collaboration actually is optional).
Example: I have a remote host with a hardware device connected to it, and I would like to develop a console app, which would interact with the device. I connect to the host as a guest using Visual Studio Live Share feature.
I had a quick test live share session within which I tried to develop such app. The following features are missing on a guest side:

Capability to launch live share session without connecting to host via RDP, TeamViewer, etc
Launch debugging session
Display Console App window with it's output
Inspect variables within debug session
Go to definition
...

In other words for remote development and debugging it would be great to have usual Visual Studio experience we are already used to.
I may guess that the initial goals of Live Share project were far from aforementioned case. But to me it seems that Live Share would nicely fit for that case in future.

This is great feedback @Deilan. You are correct to observe that we have slightly less functionality enabled on the guest side especially from the debugging context. There is work we are pursuing that is aimed at making the Visual Studio live share experience especially powerful.
We do have a new feature called App Casting which should solve your console app problems: https://devblogs.microsoft.com/visualstudio/re-imagining-collaboration-for-visual-studio-with-live-share-app-casting-and-contacts/
You can also follow our #2596 to see what we are upto in the space you mentioned.


Unable to authenticate to Microsoft ToDo

I was able to add the frame successfully but when I click the "sign in" icon (Microsoft 365) for ToDo nothing happens.

I thought I had hit the upgrade button for the plug-in at install, but
apparently had not. Once I did that the problem went away.
Thank you!
On April 4, 2022, Raymond Pulsipher @.***> wrote:

Hi! What version of the plugin and Obsidian are you on? As stated in
the README:

⚠⚠⚠ For header-heavy sites like Google Keep and Todoist to work,
this plugin requires Obsidian 0.14.3. ⚠⚠⚠

So in case you have 0.14.2 or lower of Obsidian, this plugin won't
work as expected.

—
Reply to this email directly, view it on GitHub
<https://github.com/Ellpeck/ObsidianCustomFrames/issues/18#issuecomment-
1087755736>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/APKBZOHPAISJBCUJBND4YM3VDMI4LANCNFSM5SP6JTVQ>.
You are receiving this because you authored the thread.Message ID:
@.***>


Nick: Watch bereketnakliyat.com

Nick requests the watch of the watch_keyword bereketnakliyat\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

bereketnakliyat\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Port part of fix to 2.0.x for: Returning a file, accept-ranges headers, and browser behaviors #6780

See https://github.com/aspnet/Mvc/issues/6780
In the patch we can't add new APIs, so we should change the default behavior to be the 1.x behavior (i.e. no new headers by default). But, we should add a quirks mode switch to use the 2.0.0 behavior in case someone really wants it.
TODO: Need to figure out exactly which result types to patch. Definitely want to fix FileContentResult. Definitely don't want to fix Physical/VirtualFileResult. But not sure whether we want to change FileStreamResult (@Eilon thinks we should fix this).
See https://github.com/Eilon/QuirksModeSwitchSample for how to do quirks in general. And here's a specific example: https://github.com/aspnet/Mvc/commit/eec16ff8b03c1b212076e31ea49c082a3c1d6850
cc @Tratcher

Tagging @jbagga to put in details of what we want to fix.

This patch bug is approved for the 2.0.x patch. Please send a PR to the feature/2.0.1 branch and get it reviewed and merged. When we have the rel/2.0.1 branches ready please port the commit to that branch.

FileStreamResult and FileContentResult will default to 1.x behavior and not add range headers. Adding a quirks mode switch to both in case range processing is desired
cc @Tratcher

FileStreamResult and FileContentResult will default to 1.x behavior and not add range headers.

This sounds good to me as the new default.
Does there need to be any way aside from quirks switches to get the range headers to show up? (Perhaps it's fine if not; I'm just not sure.)

Hi, we have a public test feed that you can use to try out the ASP.NET/EF Core 2.0.3 patch!
To try out the pre-release patch, please refer to the following guide:

https://github.com/aspnet/Announcements/issues/274 (info)
https://github.com/aspnet/Home/issues/2254 (discussions and questions)

We are looking for feedback on this patch. We'd like to know if you have any issues with this patch by updating your apps and libraries to the latest packages and seeing if it fixes the issues you've had, or if it introduces any new issues. If you have any issues or questions, please reply on this issue to let us know as soon as possible.
Thanks,
Eilon


ocamlPackages.elpi: 1.2.0 -> 1.4.0

Motivation for this change
Major update.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build ocamlPackages.elpi: 1.2.0 -> 1.4.0

The bot failed because my first request to it was wrong…

Closed by #63811.


Filter for folder view, .vsignore?

Code presents a directory tree on the left in the place where a project usually resides.
This is generally fine, but folders tend to become clogged with intermediate files, or ancillary files that are uninteresting, or unrelated to the project.
I would love to see a .vsignore feature - more or less like .gitignore, so that we can configure files and patterns that should be ignored in the directory/project listing.

There is an entry in the settings for this "files.exclude".

Yes, thats the one :+1:

Found it. Thanks!


[Machine Learning] Automated machine learning with AutoGluon

Proposal Submission
Proposed title of article
[Machine Learning] Automated machine learning with AutoGluon
Proposed article introduction
AutoGluon enables easy-to-use and easy-to-extend AutoML with a focus on automated stack ensembling, deep learning, and real-world applications spanning image, text, and tabular data.
AutoGluon offers the following benefits:

Quickly prototype deep learning and classical ML solutions for your raw data.
Automatically utilize state-of-the-art techniques to build sophisticated models.
Leverage automatic hyperparameter tuning, model selection/ensembling, architecture search, and data processing.
Easily improve/tune your models and data pipelines for your use-case.

AutoGluon can be used to create end-to-end supervised machine learning solutions which are more efficient. AutoGluon is used to determine the best-optimized machine learning algorithm in building the model.  It will automatically search through all the algorithms and find the best one that will provide the best solution.  It also automatically searches for the best parameters for the model.
By using the best algorithm, the model will have also the best performance and be able to make accurate predictions. This library also automates the processes of Feature Engineering, Feature Selection, Model Creation, And Tuning. This saves time and simplifies the machine learning development process.
Key takeaways

What is AutoGluon.
Key functionalities of using AutoGluon in model building.
Installing AutoGluon
Using AutoML to select the best algorithm.
Getting The Best Pipeline to produce an optimized model.
AutoGluon for Hyperparameter Optimization

Article quality
This article is unique because it explores AutoGluonin detail. We will first explore the key functions and methods that AutoGluon uses to automate the machine learning process and handle tabular data. After this, we will use these functions and methods to build a custom model. We will then use AutoGluon to select the best algorithm and perform hyperparameter optimization. This will provide a more accurate model, this tutorial will be beginner-friendly and the reader can easily follow the guided steps.
References
Please list links to any published content/research that you intend to use to support/guide this article.
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Good afternoon and thank you for submitting your topic to the EngEd program.
After some careful consideration, it struck us that this topic may be a bit over-saturated throughout other blog sites and official documentations.
We typically refrain from publishing content that is covered widely on the net or other blogs. We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
But in order to approve the topic, it has to serve value to the larger developer community at large.
An option and a great way to write this as an in-depth article and make it more add value to the greater developer community at large would be to walk the reader through the USE of methods and functions by building a unique, different, useful project.

We would love to learn your thought process behind the solution you arrived at using these concepts and topics.

That way a developer could see them in action.
As mentioned above - we believe this topic is widely covered on other blog sites.
The best way for students to build a great portfolio is by building what does not exist and what can provide the most value.


project

Error while creating release definition: Tasks with versions 'Replace tokens in terraform file:5.*' are not valid for deploy job 'Agent job' in stage Dev.

Please Install Replace tokens extension from marketplace and try again.
If you are running Demo Generator on a brand new organization, please enable the Third-party application access via OAuth under  Organization Setting >> Policies

#932


fix bug of opencv memory leak, remove logs

Two place used opencv, but not release the object.
And the FindBestCrop func outputs a log useless logs, so I cleaned them all.

Thanks for the PR! I feel like this should have been two separate pull requests, though. Any chance you can open one for the opencv fixes and one for the logging (see my extra comment on that).

Sorry, I'll resubmit two requests.


[Bug]: bottom to top button is not working

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The button is not visible when going down the website page
Expected behavior
The button should be visible when going down the website page
Add ScreenShots
https://github.com/HimanshuNarware/CareerZunction_Intern/assets/121508628/49b64c68-3fd3-428c-a278-8daf09529a59
I am GSSOC24 Contributor
Please assign me, I would like to work on it
What browsers are you seeing the problem on?
Chrome
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@SrinivasDevolper someone already working on the this issue


Can Packaging native distributions support Java 11?

My environment must use Java 11. Can AbstractCheckNativeDistributionRuntime support JDK 11?
Thanks!

When you say "My environment must use java 11", can you elaborate a little?  Are you talking about your development environment (where you do your builds) or your execution environment (where the app runs)?
If the former, the answer is no, you need jdk15 because NativeDistribution uses jpackage which is only available since jdk14 and realistically only really works properly after jdk15.
If the later, this comment doesn't really make sense, because the native bundles include the JVM so it really shouldn't matter what version is installed in your execution environment (you don't even need a JVM in the execution environment) because the bundled one is used.  Unless you have some really insane version requirement due to some binary dependency you are including in your package (if this is the case, you can just do the bundling yourself by manually invoking jpackage and passing in any runtime you desire).
Or am I totally missing something here?

Thanks for the quick reply! In fact, the key reason is that my code needs to rely on Java 11, so it must be able to bundle JRE11. Can this project allow developers to specify JRE to bundle?

JDK15 is required for jpackage to work. However, as JVM is packaged, it may be not really important which version it has. Do you rely on JDK11 feature dropped in later releases? Also note, that you could target JDK11 bytecode versions in later JDK by using -source and -target arguments.

Thanks for the quick reply! In fact, the key reason is that my code needs to rely on Java 11, so it must be able to bundle JRE11. Can this project allow developers to specify JRE to bundle?

Yes, I believe it is possible, although you would probably need to use jpackage and jlink yourself to create a runtime image and bundle the app, rather than relying on the built in NativeDistribution functionality we provide.  All of this is documented in the jpackage and jlink documentation and various tutorials on the internet.
As a side note: I am a bit skeptical as JVM versions are usually really good at preserving backwards compatibility, and you should probably try to find a way to update your dependencies anyway as Java11 is already almost four years old.  But if you really need to use Java11, Compose for Desktop can support that, but you will need to do the bundling yourself, it's should not be hard to achieve as I believe jpackage and jlink support this operation when invoked directly.

It seems to be possible to use jlink to build JDK 11 image, then use jpackage from JDK 15 just for packaging the final image, but both JDK 11 and JDK 15 will be needed. Removing build time dependency on JDK 15 requires reimplementing jpackage, which is doable, but unlikely.
@drakeet would you be interested in that? (i.e. using two JDKs for the build)

@AlexeyTsvetkov Yes, that's what I need. If this project plugin can provide a parameter for developers to configure JRE into the native destructions, then everything will be easy.

Why do you care which JDK version is exactly packaged in native distribution?

@olonho  One of the reasons is that I want to tailor and minify a JRE, the benefits of this are obvious, a default JRE size is so big...

A possible solution to the JRE size is GraalVM. Graal has a native-image tool to ahead of time compile the java code and create a single executable file. It also uses significantly less memory, and has much faster startup time.
Swing is supposed to be supported in the new Java 16 equivalent GraalVM builds, which isn't in the stable channel yet though.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


NetworkOnMainThread thrown when performing a clear from the MainThread

When performing a clear from the MainThread while Observing a getRefreshing Observable the NetworkOnMainThread exception is thrown while fetching from an Api.
Here is a broken down example:
favoriteShopsStore = StoreBuilder.<String, BufferedSource, List<Shop>>parsedWithKey()
             .fetcher(ignore -> api.getFavoriteShops())
             .memoryPolicy(MemoryPolicy.builder()
                      .setExpireAfterWrite(1)
                      .setExpireAfterTimeUnit(TimeUnit.HOURS)
                      .setMemorySize(1)
                      .build())
             .refreshOnStale()
             .open();

favoriteShopsStore.getRefreshing("favorite")
             .subscribeOn(io.reactivex.schedulers.Schedulers.io())
             .observeOn(io.reactivex.android.schedulers.AndroidSchedulers.mainThread())
             .subscribe(new Observer<List<Shop>>() {
                    @Override
                    public void onSubscribe(Disposable d) {

                    }

                    @Override
                    public void onNext(List<Shop> shops) {

                    }

                    @Override
                    public void onError(Throwable e) {
                        //Error on NetworkOnMainThread is thrown
                    }

                    @Override
                    public void onComplete() {

                    }
             });

favoriteShopsStore.clear("favorite");

This exception isn't thrown when you force the api call to always subscribe on the IO schedulers, however it seems to me that this isn't as intended.
.fetcher(ignore -> api.getFavoriteShops().subscribeOn(Schedulers.io()))

I traced it down to the RealInternalStore::response method
    @Nonnull
    Single<Parsed> response(@Nonnull final Key key) {
        return fetcher()
                .fetch(key)
                .flatMap(raw -> persister()
                        .write(key, raw)
                        .flatMap(aBoolean -> readDisk(key).toSingle()))
                .onErrorResumeNext(throwable -> {
                    if (stalePolicy == StalePolicy.NETWORK_BEFORE_STALE) {
                        return readDisk(key)
                                .switchIfEmpty(Maybe.<Parsed>error(throwable))
                                .toSingle();
                    }
                    return Single.error(throwable);
                })
                .doOnSuccess(data -> notifySubscribers(data, key))
                .doAfterTerminate(() -> inFlightRequests.invalidate(key))
                .cache();
    }

Here it seems the original exception is thrown inside the  onErrorResumeNext clause

Hmm. Wouldn't network on Main thread exception also be thrown if you call get from main thread?  Overall store performs all operations on whatever thread the api is called. I'll make a getRefreshing override that takes in a scheduler.


Facing Issues with Jasmine-reporters

Hi Larry
I am Facing some issues with Jasmine-reporters, I am unable to launch test if I placed the following code in conf.js
require('jasmine-reporters');
jasmine.getEnv().addReporter(
new jasmine.JUnitXmlReporter('D:\Protractor\TestResults',true, true)
);
I am getting error
[launcher] Error: Cannot find module 'jasmine-reporters'
As mentioned in your post, I tried to install the<EMAIL_ADDRESS>but still I am getting this error
Please look into the attached snapshots.
Thanks

No activity on this in months, last comments indicated things seem to be working with the latest releases. Closing the issue.

I'm still having this error. Steps:

npm install -g protractor
npm install --save-dev -g<EMAIL_ADDRESS>
Error: Cannot find module 'jasmine-reporters'
exports.config = {
    specs: ['specs/spec.js'],
    framework: 'jasmine2',

    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 30000
    },

    capabilities: {
        browserName: 'chrome'
    },

    onPrepare: function () {
        var jasmineReporters = require('jasmine-reporters');
        jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
            consolidateAll: true,
            filePrefix: 'xmloutput',
            savePath: 'testresults'
        }));
    }
}

C:\Users\user\AppData\Roaming\npm
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  ├── ...

I confirm @cscleison 's UPDATE comment works.

I am not able to featch the data from csv file..

@manjunathole I'm not sure what you're asking. Jasmine-reporters does nothing with CSV files. Can you explain your problem more?


strings in predicates failures

Works, amazing fix, thanks! :)
Minor detail: is that an extra space character in front of the CreateProbeRead()?


reflect release 0.21.0

Coverage increased (+43.2%) to 82.094% when pulling dd8e72d6693580509d8a177e17aa6085ea810298 on mt/reflect-release into 6d97711af7b49c4d777d65fbf2ac2ab06eb4c08c on master.

Codecov Report

Merging #194 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #194   +/-   ##
=======================================
  Coverage   81.98%   81.98%
=======================================
  Files          16       16
  Lines        1910     1910
=======================================
  Hits         1566     1566
  Misses        344      344

Impacted Files
Coverage Δ

src/crate/crash/__init__.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


What to do with non html formats (missing images)?

Hello, thanks indeed for the great gem!
Have been struggling to figure out how to handle 404 pages for missing images and other non html, json or xml requests.
Currently, if I request file.png, then the Exception App handles the request and I get
Processing by ExceptionHandler::ExceptionController#show as PNG
Completed 500 Internal Server Error in 81ms (ActiveRecord: 3.6ms)

Error during failsafe response: Missing template exception_handler/exception/show, alchemy/base/show, application/show with {:locale=>[:en], :formats=>[:png], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]}

Searched in:

If I use respond_with or respond_to :html in the controller, then I get
Processing by ExceptionHandler::ExceptionController#show as PNG

Completed 406 Not Acceptable in 16ms (ActiveRecord: 0.0ms)

Error during failsafe response: ActionController::UnknownFormat

.. and I get a 500 error in the browser instead of the 406 : (
Note, I'm using a slightly older version of the gem - 0.5.1, but I don't think going with a newer version of it will make a difference, as I already tested out the latest exception controller with the respond_with. Rails is 4.2.
I have a feeling I am missing something, as I couldn't find anyone else complain about something similar. Any ideas?
Thank you

Hi thanks for the post - sorry about the late response, for some reason I didn't get an email about this. Let me have a look for you

I've had this before, except with CSS files.
The problem is that Rails gets confused about the mime type.
What's happening is that whenever you send a .x file extension without having the correct file available, Rails is treating the erroneous request as being for the .x mime. Thus, it tries to search for the appropriate "view" for the mime... be it exception_handler/exception/show.css or exception_handler/exception/show.png in your case.
The way I "fixed" it was with a catch-all...
# exception_handler/controllers/exceptions_controller.rb

# => Response format (required for non-standard formats (.css / .gz etc))
# => request.format required until responders updates with wildcard / failsafe (:all)
before_action { |e| e.request.format = :html unless self.class.respond_to.include? e.request.format }

Do you still have this in your controller?

Ah, great one! Thanks a lot!
I've read the previous 2 before_action blocks, but failed to read the code for this one, and I've missed it.
Will put it in, and will confirm again that's working. Thanks a lot again for the clear answer!

No problem, please keep me updated as to whether it works or not!

Thanks again! I've upgraded to the latest version, and can confirm that it is indeed all working out correctly - with 404 page returned.
Thank you!