Add conditionals to literalExpressionEvaluator pass

Currently conditional expressions (ternary operation) are not being evaluated in literalExpressionEvaluator pass.
Conditionals have the form: condition ? thenBranch : elseBranch.
If the value of condition can be known during this pass, then the whole conditional expression can be replaced with the corresponding branch expression. In other words, if condition is evaluated to be true then :
condition ? thenBranch : elseBranch can be replaced by thenBranch
Similar thing happens in case it is evaluated to be false

In which file can I find this?

Passes are stored in src/passes so you can find that in src/passes/literalExpressionEvaluator/literalExpressionEvaluator.ts

actually the changes have been made by someone else already. can close this issue.

Actually no, the issue hasn't been addressed yet.
This task requires the pass to visit Conditional nodes (which are the ones that represent ternary operations) and evaluate the condition expression. Since the condition expression should be a boolean value, its evaluation should return true, false or null (in case it wasn't possible to determine the value of the expression at this point). So, when the evaluation is different from null it is possible to replace the conditional node by the corresponding branch expression node.
I just updated the description to make it clearer


Obtaining the aggregated result when a session window closes when using .suppress()

Hello, I have a strange behaviour when using KStreams to aggregate results and SessionWindows with suppress() method to avoid getting partial aggregations.
I use:
SpringBoot 2.1.5
Spring Cloud Greenwich.SR1
Spring Cloud Stream Germantown.RELEASE
Apache Kafka 2.2.0

I have created a sample project in github, which includes the aggregation process as well as a test to be able to send a message to a topic.
return input
      .groupBy((k, v) -> "explicitKey")
      .windowedBy(SessionWindows.with(window).grace(window))
      .aggregate(
        () -> "",
        (aggKey, newValue, valueAggregate) -> String.join(" ", valueAggregate, newValue),
        (aggKey, leftList, rightList) -> String.join("", leftList, rightList),
        Materialized.<String, String, SessionStore<Bytes, byte[]>>as("InfoStore")
          .withKeySerde(Serdes.String())
          .withValueSerde(Serdes.String()))
      .suppress(Suppressed.untilWindowCloses(unbounded()))
      .toStream()
      .map((key, value) -> pair(key.key() + "--" + key.window().toString(), value));

I want to get the last aggregated result when the window closes, which seems what Suppressed.untilWindowCloses(unbounded()) does. Instead, when the window expires nothing happens, and I have to send another message for the same key to the topic in order to get the aggregated result.
I assume this is not the expected behaviour, as it seems the only way to force the aggregated result to be sent when the window closes, to no avail.
Thanks for your help.

@hparkerfly I don't think that anything that the binder does is causing this issue. It looks like a core Kafka Streams concern. Do you mind copying the code in the method (which you posted above) and ask on Stack Overflow? I hope someone from the Kafka Streams team can answer this. When I get a chance, I will try to run your code and see whats going on, but you may get a faster answer from SO. Please update here, if you find a solution. Thanks!

@sobychacko A colleage of mine already posted on Stack Overflow about this.
https://stackoverflow.com/questions/56364606/kafka-kstreams-issue-in-aggregation-with-time-window
I will update here with the solution when we have it.
Thanks!

I answered the question on SO

@lukaszkrawiec: Thanks for taking the time to answer the question!
Hi, @hparkerfly. I hope the answer helps. There's nothing in our control in SCSt to do anything more to get around the core design premise in Kafka Streams.
If you see any other anomalies in the Spring's integration with Kafka Streams, please feel free to open a new issue.

@hparkerfly Did you get a chance to review the answer provided at the SO thread? Sounds like, in your particular use case, you need to send that extra message to close the window. As indicated in the answer, when you deal with large volumes of data, this is really unnoticeable. Please advice, if we can close this issue.

@sobychacko thanks for your help, but in our case we can't send an extra message to close the window because of an important side effect. That message would be a 'dummy' one and we don't care about it; the problem is the time window would be extended for a given key (the one from the dummy one) and we can't afford that to happen.
Anyway I will continue researching on how to get to a solution without sending an extra message, maybe with a kTable holding all the intermediate values and then querying it for the most recent value, or some idea like that.
Thanks again!

One possible option if you can identify the dummy messages would be to handle that in the aggregator code, and simply not add them to the aggregate that you are generating.
Another would be to create a state store on top of a KTable, and query it using an InteractiveQueryService. You can find an example on how to do that here: https://github.com/spring-cloud/spring-cloud-stream-samples/tree/master/kafka-streams-samples/kafka-streams-interactive-query-advanced


Rename "Running sessions" to "Running notebooks"

From idea discussion: https://github.com/livebook-dev/livebook/discussions/2871
José suggests along with this change to also rename the "Disconnect runtime" and "Close sessions" actions to "Disconnect" and "Close", respectively.

Whoop, we want the opposite. Rename the list of sessions to "notebooks". Changing up this issue and PR.

Homepage, no running notebooks

Homepage, one running notebook

Thanks for the suggestions, we are going to keep as is for now, since it's intentional :)

No problem! Thanks for checking.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/61324

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/61974

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/64422

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/65852

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/65902

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/67403

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/100555

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/120850


Sort friends a to z

What this PR does 📖
1. Sort friend list by first char from username
https://user-images.githubusercontent.com/63157656/202223373-43a1c397-3a8b-4523-9697-4a81333faf43.mov
2. Friend component receive already the username now, instead of search for it

3. Receive friend did list as before, but get all username, re order alphabetically and return it to render
a. The struct now used on render is FriendListAlpha

b. All the time to update list alpha, we use a struct to save friend did and username, called UsernameAndDID

c. Main part of the function that order friends list

d. The friend list is rebuilt if occurs some change on each 300 miliseconds

e. To render friends list separated per char now, we use to maps on rsx

4. Alpha list to navigate

a. Used ul with li and a elements
b. Prevent default parameter avoid a common problem : "Some javascript code is sending an AJAX request (post or get) that is preventing the link from functioning as expected".
c. Used rel parameter on anchor tags to avoid security problems

Which issue(s) this PR fixes 🔨

Resolve #246

Resolve #280

Special notes for reviewers 🗒
Additional comments 🎤

Hi Lucas! Found a small weird issue on this pr, whenever I try to add a user with the letter Z in the beginning of the name they wont appear after I accept request. I tried replicating this on dev branch but could not
Dev branch
https://user-images.githubusercontent.com/93608357/202235676-18a17503-e6a4-45c8-928f-37561675e0c0.mov
This branch
https://user-images.githubusercontent.com/93608357/202235701-dfc59ab8-de9a-42a5-8cf2-072c9a83ea3f.mov

This looks good but I wonder if we can build the list items in a easier to read way, something like
let alpha: Vec<_> = "abcdefghijklmnopqrstuvwxyz".chars().collect();
for char in &alpha {
  rsx! { li { a { href: "#{char.to_string()}", prevent_default: "onclick", rel: "noopener noreferrer", char.to_string() } }
}

@lgmarchi  I pushed some changes that I hope simplify the logic a little


Optimizer: TargetEvaluation outputs available in preconditioner

Issue Description
What did you expect to see happen?
@AaronEpiney would like to see outputs stored in the TargetEvaluation made available to the preconditioners in multilevel optimization.
What did you see instead?
Right now only the input space (including constants) are made available.

For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.

[ ] 1. Is it tagged with a type: defect or improvement?
[ ] 2. Is it tagged with a priority: critical, normal or minor?
[ ] 3. If it will impact requirements or requirements tests, is it tagged with requirements?
[ ] 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
[ ] 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.

[ ] 1. If the issue is a defect, is the defect fixed?
[ ] 2. If the issue is a defect, is the defect tested for in the regression test system?  (If not explain why not.)
[ ] 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
[ ] 4. If the issue is a defect, does it impact the latest stable branch? If yes, is there any issue tagged with stable (create if needed)?
[ ] 5. If the issue is being closed without a merge request, has an explanation of why it is being closed been provided?

Preconditioner no longer exists. Closing.


Drop support for EOL Python 3.3

As suggested in https://github.com/pypa/setuptools/issues/1339, as it's EOL and Tox no longer supports it.
Also remove redundant code and update other code.

I think the diff coverage that is failing is not a problem. The changes seem sane in the uncovered portions, and it's just that it's changing things that aren't changed in the first place.
Per #1339, this should be deferred until the next breaking release.

It looks like the wheel package has dropped support for it too.

@jaraco @benoit-pierre Now that wheel is starting to break the Travis build, it's probably time to land this.
Do we have any breaking changes already in master? If not, should we cut a minor release now and then land this PR?

It's been a few days since the last release, so I think we can merge this now.
CC: @jmbowman


hyperscan + dpdk performance

Hello,
Congrats for useful code. Do you know how many pps your code can reach? I'm using E5-2420 v2 and I just can achieve ~5mpps.

hi Victor,
I had wrote sample application on top of XEOn 4 core 4 threads model. There are a lot of things which can be optimized, like

per core-thread hyperscan packet process
work distributor model
Event-dev (17.05) driven worker core (hyperscan)

Please do let me know your use case and choice. I will try to suggest and share.

Were you able to increase Mpps by distributing and optimizing the run to completion logic. Do you require help?

Closing this issue, as this has been query. Shared suggestions and improvement ideas. Requested for updates too.

Thank you for your explanations. Actually, re-code my l3fwd sample with your hyperscan example and it worked fine. I need to adjust the code to perform with 2 or more core


ROX-12953: figure out last 4 versions of sensor automatically

Description
Script to automatically determine the latest releases of the last 4 sensor versions. Still needs to be integrated into the version compatibility tests, blocked by https://github.com/stackrox/stackrox/pull/3220
Checklist

[ ] ~Investigated and inspected CI test results~
[ ] ~Unit test and regression tests added~
[ ] ~Evaluated and added CHANGELOG entry if required~
[ ] ~Determined and documented upgrade steps~
[ ] ~Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

If any of these don't apply, please comment below.
Testing Performed
Manually ran this successfully. Still need to run it on Prow as API calls or git commands may behave differently there.

/test images
/test push-images
/test gke-version-compatibility-tests

/test images
/test push-images
/test gke-version-compatibility-tests

/test images
/test push-images
/test gke-version-compatibility-tests

/test gke-version-compatibility-tests

/test gke-version-compatibility-tests

The gke-version-compatibility-tests are passing and I've just double-checked the logs, it did automatically find the correct versions:
INFO: Tue Nov 15 10:08:02 UTC 2022: Starting test (sensor compatibility test 3.72.2)
INFO: Tue Nov 15 10:35:50 UTC 2022: Starting test (sensor compatibility test 3.71.2)
INFO: Tue Nov 15 11:02:11 UTC 2022: Starting test (sensor compatibility test 3.70.2)
INFO: Tue Nov 15 11:28:17 UTC 2022: Starting test (sensor compatibility test 3.69.2)

/test gke-version-compatibility-tests


Implement additional LLMs

I found https://litellm.ai/
it seems like an easy integration for even more open-source LLMs.
What do you think?

made a PR: https://github.com/grumpyp/aixplora/pull/129

@grumpyp , I would like to work on this issue, just give me an overview on what needs to be done.

@Aditi840 hi there, would you please take another open issue?

@grumpyp , ok will do that.


Uncaught TypeError: t.map is not a function

Codepen
https://codepen.io/btdev/pen/gOpKMKa
Explanation
My user is able to select the data the graph receives and update the graph with the new data. I use getjson to retreive this data and then the updateSeries method to update the series with the newly chosen data. Unfortunately it returns me the error 't.map is not a function'

What is the behavior you expect?
It should update the graph with the new series I provided.
What is happening instead?
It doesn't update the graph and gives me an error instead.
What error message are you getting?
t.map is not a function

This is the error I get on my localhost, the main error is the same, the errors underneath are slightly different.

Your provided codepen isn't enough to reproduce the issue.
My best guess is that the series is not in the format which ApexCharts expects.

Your provided codepen isn't enough to reproduce the issue.
My best guess is that the series is not in the format which ApexCharts expects.

I found the fix, the json needs to be sent as an array and not a string.

can you tell me how u have update series from json string in jquery

can you tell me how u have update series from json string in jquery

Please, I want to update a treemap by clicking a square, I got the same error t.map is not a function. Can you share your solution, please?
chart: {
events: {
dataPointSelection: (event, chartContext, config) => {
            chart.updateSeries({
                data: data1
            });
        }
    },

In my case all was fine, except in pie reports.
It was because labels was array of numbers [1, 2, 3, 4].
I had to convert to string for this to work. like so ['1', '2', '3', '4']

I'm having this issue


Update generate-series-transact-sql.md

Header says 100, example says 10

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

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

@kendalvandyke
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"

We've got an internal PR fixing this because there were enough duplicates. Thanks for bringing this to our attention.

Docs Build status updates of commit 4eef995:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/t-sql/functions/generate-series-transact-sql.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


docs(catalog-backend): update readme to be more accurate and helpful

Can you please also make sure it is linked up from the main docs? @freben

@stefanalund Added a getting started section according to the docs rfc :) let me know what you think


Showing login: User is not authenticated" for javascript Client

I am using Identity Server 4. I am getting " Showing login: User is not authenticated" I am trying to access my api using Javascript Client. If I understand correctly, I dont need a login to get token for my JavaScript Client application. I am following the exact steps in th documentation example
What am I missing.

If I understand correctly, I dont need a login to get token for my JavaScript Client application.

You need to login first.
What is the example that you follow?
Do you use a js library(e.g oidc-client-js, angular-jwt ,...)?
Please give more details and some code snippet of what you did?

I am following the Javascript Client sample application   and I could find anywhere a username and password being used. Where do I need to enter my username and password.

Any update on the issue? closing for now - feel free to re-open if it needs further discussion.


All Rapid Facebook Roads suggestions dissapeared

In the last few days all areas that I tryed to map there is NO faceboolk roads, just the microsoft buildings are suggested, I have tryed to toggle the features but not change

Hey @jjiglesiasg .. I just checked and I am still seeing the Facebook Road suggestions (at least in Northern New Jersey).
Can you share the location of where you are mapping that you're not seeing any suggestions?

Hi Bryan
Mostly of #Bolivia in South America
From: Bryan Housel @.***
Sent: Sunday, March 20, 2022 11:30 PM
To: facebookincubator/RapiD @.>
Cc: Juan Jose Iglesias @.>; Mention @.***>
Subject: Re: [facebookincubator/RapiD] All Rapid Facebook Roads suggestions dissapeared (Issue #434)
Hey @jjiglesiasg https://github.com/jjiglesiasg  .. I just checked and I am still seeing the Facebook Road suggestions (at least in Northern New Jersey).
Can you share the location of where you are mapping that you're not seeing any suggestions?
—
Reply to this email directly, view it on GitHub https://github.com/facebookincubator/RapiD/issues/434#issuecomment-1073449701 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOKQKXNU2WK3G4E7SXT62LVA7UMZANCNFSM5RGOJC2A .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675  or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AFOKQKURVIC4LKRUJWDCOU3VA7UMZA5CNFSM5RGOJC2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOH75YVZI.gif Message ID: @.*** @.***> >
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.  http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient www.avg.com

Thanks for raising the issue @jjiglesiasg ..
Just wanted to follow up - we found that the road data in Bolivia did not get added after a recent round of processing, and we're investigating the reason and will re-run the processing.

Thanks Bryan, all road data has been missing at least 3 weeks, just in the very west of the country there are buildings suggestions otherwise nothing...

Hi Brian, you menctioned that the missing data process for Bolivia will be re-run. When you expect that to happen? we have alredy more than a month without any data suggestion from Rapid. Thanks

Sorry for the delay @jjiglesiasg..
I checked with the team that runs these, and they have a fix for the issue that is under review now.  Hopefully the roads will be back soon!

Thanks Brian. The sooner the better

24-May-2022: Still no road data suggestions on RapID for #Bolivia, the problem arise around 15 or March, still no solution? Please!!!

Hi @jjiglesiasg - We have partially unblocked the road predictions in bolivia and you should start seeing roads appear there (like this area near La Paz: https://mapwith.ai/rapid#background=Maxar-Premium&datasets=fbRoads&disable_features=boundaries&map=16.17/-16.61685/-68.21693).
We'll continue to take a look to see if there are further gaps in coverage. Can you send me some URLs from RapiD of areas where you would expect to see road predictions? I can take a look specifically in those areas to see if there's something more going on.

Hi Ben
Thanks I reviewed the area in the link that you share, and is working ok. Will let you know if anything Arise
Thanks and Best Regards
JJ
From: Ben Clark @.***
Sent: Wednesday, May 25, 2022 11:16 AM
To: facebookincubator/RapiD @.>
Cc: Juan Jose Iglesias @.>; Mention @.***>
Subject: Re: [facebookincubator/RapiD] All Rapid Facebook Roads suggestions dissapeared (Issue #434)
Hi @jjiglesiasg https://github.com/jjiglesiasg  - We have partially unblocked the road predictions in bolivia and you should start seeing roads appear there (like this area near La Paz: https://mapwith.ai/rapid#background=Maxar-Premium https://mapwith.ai/rapid#background=Maxar-Premium&datasets=fbRoads&disable_features=boundaries&map=16.17/-16.61685/-68.21693 &datasets=fbRoads&disable_features=boundaries&map=16.17/-16.61685/-68.21693).
We'll continue to take a look to see if there are further gaps in coverage. Can you send me some URLs from RapiD of areas where you would expect to see road predictions? I can take a look specifically in those areas to see if there's something more going on.
—
Reply to this email directly, view it on GitHub https://github.com/facebookincubator/RapiD/issues/434#issuecomment-1137423589 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOKQKQ6AISWKAJ5RG4QZXLVLY72FANCNFSM5RGOJC2A .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AFOKQKRJZOITVGKU6WK5XRDVLY72FA5CNFSM5RGOJC2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIPF3JZI.gif Message ID: @.*** @.***> >
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.  http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient www.avg.com

Hi Ben and Bryan
The whole Center and East of #Bolivia seems to have no road suggestions at all.  Just in the West of the country nearby Peru

This area before this situation started,used to have Dozens of road suggestions. Now nothing
https://mapwith.ai/rapid#background=Maxar-Premium&datasets=fbRoads,msBuildings&map=16.25/-17.65303/-61.77664&photo_overlay=mapillary
However to the Very North of that area, miles away, yes there is some road  suggestions:
https://mapwith.ai/rapid#background=Maxar-Premium&datasets=fbRoads,msBuildings&map=16.50/-16.92910/-62.60418

To the east of that city, nothing again:
https://mapwith.ai/rapid#background=Maxar-Premium&datasets=fbRoads,msBuildings&id=w985870109&map=14.75/-17.4013/-60.6312

@jjiglesiasg how does it look by now to you? I see here many roads (using the alpha link) https://mapwith.ai/rapid-v2-alpha#background=Maxar-Premium&datasets=fbRoads,msBuildings&disable_features=boundaries,past_future,others&id=w985870109&map=16.15/-17.41720/-60.64346

closing here - we think this was fixed last year.


Exception in thread "main" java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment.  Please set a project ID using the builder.

Im sorry，I wrote the demo according to the documentation
https://cloud.google.com/bigquery/docs/quickstarts/quickstart-client-libraries#before-you-begin
Exception in thread "main" java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment.  Please set a project ID using the builder.
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
	at com.google.cloud.ServiceOptions.<init>(ServiceOptions.java:304)
	at com.google.cloud.bigquery.BigQueryOptions.<init>(BigQueryOptions.java:91)
	at com.google.cloud.bigquery.BigQueryOptions.<init>(BigQueryOptions.java:30)
	at com.google.cloud.bigquery.BigQueryOptions$Builder.build(BigQueryOptions.java:86)
	at com.google.cloud.bigquery.BigQueryOptions.getDefaultInstance(BigQueryOptions.java:161)
	at app.test.main(test.java:16)

But I get an error that I can't understand,how should i avoid
This is my 16 line content
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();

google云项目cloud cloud cloud cloud cloud的的cloud cloud cloud cloud可能未正确。。您您您是否是否GOOGLE_APPLICATION_CREDENTIALS使用使用使用使用或或或或或或变量变量变量变量变量变量变量变量变量变量变量变量变量变量变量变量cloud cloud cloud cloud为为为为为

Yes, thank you,it is my mistake，the reason is that I only configured system environment variables and did not configure user environment variables


iOS Phantom app wallet lose connection (does not auto connect) after reload

Describe the bug
iOS Phantom app wallet lose connected after reload
To Reproduce
Steps to reproduce the behavior:

Download iOS Phantom app and get wallet
Go to browser tab (the far right) and access https://g99lxl.csb.app/
Select wallet and choose Phantom
Reload browser and see the wallet is disconnected

Expected behavior
A wallet should be still connected (should auto connect) after reload
Screenshots
If applicable, add screenshots to help explain your problem.
// the issue does not happen in Desktop
Desktop (please complete the following information):

OS: Mac
Browser: Chrome
Version: 110.0.5481.77 (Official Build) (arm64)

Smartphone (please complete the following information):

Device: iPhone 11
OS: iOS 16.3.1
Browser: Phantom App
Version: 23.2.1

Additional context

this issue does not happen in desktop
the website in the reproduction steps is from this codesandbox

https://codesandbox.io/s/coinbase-wallet-demo-solana-wallet-adapter-g99lxl

the phantom provider seems fine

reload does not let connection lose in this site

https://1ssci.csb.app/
https://codesandbox.io/s/phantom-wallet-1ssci?file=/src/TestApp.tsx

Thanks for reporting @ghtea ! We will investigate this.

Closing this as it's likely not a Wallet Adapter issue and has been reported to Phantom. @bfriel any update?

This has been fixed in 23.3.0!


jps: Watch dumpsperiod.com

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

dumpsperiod\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Nick in Charcoal HQ


[Do not merge] Add new cluster

Trying out the cluster creation process as part of the work to make on-demand
clusters possible.
We'll probably want to change the values mechanism to not require a Git commit
to cluster-config to get values.

Just need the branch, doesn't need a PR.

Actually it does need to be a PR because of how our signature verification checks work in concourse

suspect with config-resource-type=git I no longer require a PR


ZHA component fails to load after adding device and restarting hass

Home Assistant release (hass --version): 0.49.0
Python release (python3 --version): Python 3.4.2
Component/platform: zha
Description of problem: After removing the zigbee.db to start with a clean database, pairing a SmartThings Motion Sensor (2015), then restarting hass, the zha service fails to start.  The following messages are shown in the error log:
    Traceback (most recent call last):
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/setup.py", line 187, in _async_setup_component
        result = yield from component.async_setup(hass, processed_config)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zha/__init__.py", line 87, in async_setup
        APPLICATION_CONTROLLER = ControllerApplication(ezsp_, database)
      File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/application.py", line 30, in __init__
        self._dblistener.load()
      File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/appdb.py", line 204, in load
        clus = ep.in_clusters[cluster]
    KeyError: 0

Expected:  Successful pairing and starting of the zha service.
Problem-relevant configuration.yaml entries and steps to reproduce:
zha:
  usb_path: /dev/zigbee
  database_path: /home/homeassistant/.homeassistant/zigbee.db

Process

sudo systemctl stop home-assistant.service
sudo rm /home/homeassistant/.homeassistant/zigbee.db
sudo systemctl start home-assistant.service
In web interface, issue zha.permit service call
Run through inclusion procedure on device
Log result:

2017-07-17 07:52:07 WARNING (MainThread) [bellows.zigbee.application] Unexpected message send notification
2017-07-17 07:52:09 WARNING (MainThread) [bellows.zigbee.util] Error calling listener.device_initialized: No such command name: cluster_id
2017-07-17 07:52:28 WARNING (MainThread) [bellows.zigbee.zcl] Data remains after deserializing ZCL frame
2017-07-17 07:52:28 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 1
2017-07-17 07:52:29 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:52:30 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:52:31 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:52:59 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:53:03 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0

Restart hass: sudo systemctl restart home-assistant.service
Log result:

2017-07-17 07:53:43 ERROR (MainThread) [homeassistant.setup] Error during setup of component zha
    Traceback (most recent call last):
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/setup.py", line 187, in _async_setup_component
        result = yield from component.async_setup(hass, processed_config)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zha/__init__.py", line 87, in async_setup
        APPLICATION_CONTROLLER = ControllerApplication(ezsp_, database)
      File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/application.py", line 30, in __init__
        self._dblistener.load()
      File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/appdb.py", line 204, in load
        clus = ep.in_clusters[cluster]
    KeyError: 0

Additional info:
Environment

Raspberry Pi 3
Raspbian GNU/Linux 8 (jessie)
Home Assistant 0.49.0 deployed via AIO installer
Python 3.4.2
Nortek HUSBZB-1

Zigbee Device details
Friendly Name: CentraLite 3325-S
Type of Device: Smartthings Motion Sensor (2015)
Database Values
Attributes
| endpoint_id | cluster | attrid | value      |
|-------------|---------|--------|------------|
| 1           | 0       | 4      | CentraLite |
| 1           | 0       | 5      | 3325-S     |
| 2           | 0       | 4      | CentraLite |
| 2           | 0       | 5      | 3325-S     |
| 1           | 1280    | 1      | 13         |

Clusters
| endpoint_id | cluster |
|-------------|---------|
| 1           | 0       |
| 1           | 1       |
| 1           | 1026    |
| 1           | 3       |
| 1           | 2821    |
| 1           | 32      |
| 1           | 1280    |

Devices
|  nwk      | status |
|-----------|--------|
| <network> | 1      |

Endpoints
| endpoint_id | profile_id | device_type | status |
|-------------|------------|-------------|--------|
|      1      |     260    |     1026    |    1   |
|      2      |     49887  |     263     |    1   |

I posted about this issue in the forums here and as of now one other user is reporting the same behavior in that thread  Another user is experiencing what appears to be the same issue on 0.49.0 in another thread here.

Same issue here as well.

I'm seeing the same issue as well.
System info:
hardware:
Odroid C2+
Nortek HUSBZB-1
Aeon Zstick Rev 5 (in the process of eliminating)
OS: Ubuntu 16.04.2 LTS
HASS version: 0.49.0
Python: 3.5.2
Bellows: 0.3.4
Error log on startup:
2017-08-01 23:39:57 ERROR (MainThread) [homeassistant.setup] Error during setup of component zha Traceback (most recent call last):   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 187, in _async_setup_component     result = yield from component.async_setup(hass, processed_config)   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/zha/__init__.py", line 87, in async_setup     APPLICATION_CONTROLLER = ControllerApplication(ezsp_, database)   File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/application.py", line 30, in __init__     self._dblistener.load()   File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/appdb.py", line 204, in load     clus = ep.in_clusters[cluster] KeyError: 0
Am I missing something?


[Type checker] Ensure we sort semantic members properly.

When evaluating the semantic members request, we would sort the members
before we return them to ensure a stable ordering for (e.g.) vtable
layout. However, when not in a source file, we would assume that the
resulting members were always sorted. However, they are not always
sorted, because we write the iterative decl contexts directly rather
than writing the semantic members.
Fixes rdar://72833032.

@swift-ci please smoke test

@swift-ci please smoke test


On quit console borked

After enabling the console plugin when quitting using Ctrl-\ the ODC console appeared to continue operation and broke Gnome Terminal 3.18.3.
andrew@Computer:~/opendatacon-0.3.4-Linux-x86_64-Release$` bin/opendatacon -c opendatacon-serialmaster.conf
This is opendatacon version 0.3.4 ge1a42ab
Loading configuration...
Initialising Interfaces
Initialising DataPorts
Initialising DataConnectors
Enabling DataConnectors...
Enabling DataPorts...
Enabling Interfaces...
Up and running.
odc> quit
Unknown command: quit
odc> Disabling user interfaces...
Disabling data connectors...
Disabling data ports...
Finishing asynchronous tasks...
Destoying Interfaces...
Destoying DataConnectors...
Destoying DataPorts...
Shutting down DNP3 manager...
opendatacon version 0.3.4 ge1a42ab  shutdown cleanly.
andrew@Computer:~/opendatacon-0.3.4-Linux-x86_64-Release$ PARSE ERROR: Argument: dssd
             Couldn't find match for argument

Brief USAGE:
   bin/opendatacon  [-r] [-d] [-i] [-p <string>] [-c <string>] [--]
                    [--version] [-h]

For complete USAGE and HELP type:
   bin/opendatacon --help

The output shows that opendatacon shutdown completely. I'm guessing an extra SIGQUIT probably went to gnome-terminal (key repeat?), and then it looks like you've executed opendatacon again (bash history) while you weren't getting terminal feedback.
Let me know if you can narrow it down a bit further (if you still think it's an opendatacon issue).
Cheers,
Neil.


Multilayer folder files are generated

Issue Type: Feature Request
When open a folder that contains multiple folders, execute the generated file on the secondary task, the file will not generate secondary folder, folder will be generated in level, set up as if there is no such option can be changed
VS Code version: Code 1.31.1 (1b8e8302e405050205e69b59abb3559592bb9e60, 2019-02-12T02:16:38.656Z)
OS version: Darwin x64 18.2.0

It sounds like you're having problems with a script that created folders in the wrong level? This doesn't sound like a vscode problem?

When writing a c + +, open one level, may contain multiple secondary directory, when compiling c + + in the secondary directory file, compile the file will be generated in the directory, I mean, can you change in the set

Report against https://github.com/Microsoft/vscode-cpptools if you have an issue with C++ support


use event.pointing correctly

Since there is no event pointing info, only per-telescope, we should remove event.pointing from the standard container structure. see #806

event.pointing is a map of telescope_id -> TelescopePointingCointainer, we discussed in dortmund that we want to move the pointing information there.
Maybe it should also be a container with a subfield tel?

Ah yes, I think I was confusing it with the old pointing container that only contained a single position. It seems now it is closer to correct. Yes, for consistency, the Map should probably be event.pointing.tel[tel_id]

I updated the title and now the task should be:

update this to contain the pointing info for all telescopes
fix EventIOEventSource (and HESSIOEventSource) to fill it correctly
use it wherever pointing is needed (get rid of anywhere that uses event.mcheader.run_array_direction)

Sounds rather machanical work, i.e. pretty doable. Anybody working on this?

This is implemented now, I think through #1163


typo: Double word "by"

@normesta  : PR passed checklist review. Please review for technical accuracy, etc., and approve/merge if appropriate.


discoverfinancial/a11y-theme-builder#123: documented the designer int…

…roduction and the how to generate a design system page

Please review this PR conceptually, at least.  Per discussion with @brycecurtis, we decided that as far as specific theme generation instructions, this should be outlined under the Guides tab.  We are assuming that Guides are meant for the Theme Builder end users.  We decided that a more general introduction into generating a theme should be put under the Designers section, capturing the idea behind what theme generation is.  So this second one is the one that this PR addresses.  It also includes an introduction for the Designer section.


Error while BUILD cuKeyfinder

Hi Guys ,
Facing this error when trying to build - CU version
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB4019	The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 10.1.props" was not found.
Confirm that the expression in the Import declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 10.1.props" is correct, and that the file exists on disk.	cuKeyFinder	C:\BitCrack-master\CudaKeySearchDevice\CudaKeySearchDevice.vcxproj	59
Thanks in Advance

Don't you have CUDA 10.2?

Just copy all files from this path (depends on the path you installed CUDA in)
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\visual_studio_integration\MSBuildExtensions
to this path:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations

https://forums.developer.nvidia.com/t/cannot-run-samples-on-ms-visual-studi-2019/72472


Release 0.2.0 - Multiple Issues

@SuperQ
@roidelapluie
@sysadmind
I think the latest release broke, most things.
Steps to reproduce:

Deploy 0.2.0 into ECS fargate. image : "quay.io/prometheuscommunity/ecs-exporter:v0.2.0"
Curl the endpoint. curl <IP_ADDRESS>:9779/metrics > metrics.txt

What we are seeing.

Memory metrics all return 0 now.

# HELP ecs_memory_bytes Memory usage in bytes.
# TYPE ecs_memory_bytes gauge
ecs_memory_bytes{container="console"} 0
ecs_memory_bytes{container="log_router"} 0
ecs_memory_bytes{container="nginx"} 0
ecs_memory_bytes{container="prom_exporter"} 0
# HELP ecs_memory_cache_usage Memory cache usage in bytes.
# TYPE ecs_memory_cache_usage gauge
ecs_memory_cache_usage{container="console"} 0
ecs_memory_cache_usage{container="log_router"} 0
ecs_memory_cache_usage{container="nginx"} 0
ecs_memory_cache_usage{container="prom_exporter"} 0
# HELP ecs_memory_limit_bytes Memory limit in bytes.
# TYPE ecs_memory_limit_bytes gauge
ecs_memory_limit_bytes{container="console"} 0
ecs_memory_limit_bytes{container="log_router"} 0
ecs_memory_limit_bytes{container="nginx"} 0
ecs_memory_limit_bytes{container="prom_exporter"} 0
# HELP ecs_memory_max_bytes Maximum memory usage in bytes.
# TYPE ecs_memory_max_bytes gauge
ecs_memory_max_bytes{container="console"} 0
ecs_memory_max_bytes{container="log_router"} 0
ecs_memory_max_bytes{container="nginx"} 0
ecs_memory_max_bytes{container="prom_exporter"} 0

The CPU metrics do not even show up.

[automation@ip-10-1-118-213 ecs-service-discovery]$ grep cpu metrics.txt
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.14

Same image with the main image.

The only log generated
{
    "container_id": "50ab69a6813f4ceca8b38402f74d86ae-33489729",
    "container_name": "prom_exporter",
    "deployment_id": "JLS",
    "ecs_cluster": "TREx-Foundation_DEV_JLS",
    "ecs_task_arn": "arn:aws-us-gov:ecs:us-gov-west-1:053166900151:task/TREx-Foundation_DEV_JLS/50ab69a6813f4ceca8b38402f74d86ae",
    "ecs_task_definition": "Foundation-DEV-JLS-Console:27",
    "environment": "DEV",
    "layer": "console",
    "log": "2022/08/08 19:56:34 Starting server at \":9779\"",
    "source": "stderr"
}

Hmm. It would help to have a debug log and an example ECS  API request so we can try and reproduce it.

Hmm. It would help to have a debug log and an example ECS API request so we can try and reproduce it.

@SuperQ
If you can tell me how to generate what you want, I can get it.

@SuperQ
While waiting for further instruction, I did revert to the older 0.1.1 image, and can confirm the metrics return, the CPU ones are just incorrect as we know.
[automation@ip-10-1-118-213 ecs-service-discovery]$ curl <IP_ADDRESS>:9779/metrics > metrics.txt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11530    0 11530    0     0  2251k      0 --:--:-- --:--:-- --:--:-- 2251k
[automation@ip-10-1-118-213 ecs-service-discovery]$ grep cpu metrics.txt
# HELP ecs_cpu_seconds_total Total CPU usage in seconds.
# TYPE ecs_cpu_seconds_total counter
ecs_cpu_seconds_total{container="console",cpu="0"} 5.834025195e+07
ecs_cpu_seconds_total{container="console",cpu="1"} 5.421806216e+07
ecs_cpu_seconds_total{container="log_router",cpu="0"} 6.18522212e+06
ecs_cpu_seconds_total{container="log_router",cpu="1"} 5.15301504e+06
ecs_cpu_seconds_total{container="nginx",cpu="0"} 7.73859699e+06
ecs_cpu_seconds_total{container="nginx",cpu="1"} 1.002344517e+07
ecs_cpu_seconds_total{container="prom_exporter",cpu="0"} 2.51195986e+06
ecs_cpu_seconds_total{container="prom_exporter",cpu="1"} 4.74037571e+06

[automation@ip-10-1-118-213 ecs-service-discovery]$ grep ecs_mem metrics.txt
# HELP ecs_memory_bytes Memory usage in bytes.
# TYPE ecs_memory_bytes gauge
ecs_memory_bytes{container="console"} 1.63786752e+08
ecs_memory_bytes{container="log_router"} 6.3922176e+07
ecs_memory_bytes{container="nginx"} 2.8196864e+07
ecs_memory_bytes{container="prom_exporter"} 2.6288128e+07

There should be an env var, ECS_CONTAINER_METADATA_URI_V4
curl -o stats.json "${ECS_CONTAINER_METADATA_URI_V4}/task/stats
curl -o task.json "${ECS_CONTAINER_METADATA_URI_V4}/task

@SuperQ
stats.txt
task.txt
metrics.txt
This is with the NEW 0.2.0 image running. Notice I did have to scrub out some data, like account #'s etc.  Also, made them .txt since github wont allow you to upload .json  I also uploaded a metrics.  Ill revert to an older release, and post that so you can see the difference.

The important part is to have real json values from the API so we can write tests.

The important part is to have real json values from the API so we can write tests.

Are you asking me to provide something else?  If so im not understanding what?
The JSON provided in those text files are from the calls you requested.

@SuperQ
Let me know if there is anything I can provide for you on this.  I have env's in place I can use to test images with, I dont know Go well enough to provide much technical assistance.
Thank you.

Sorry to be a bother, I understand this exporter doesn't appear to get much use, but any chance you can provide documentation on how to test this, so I can maybe try and poke at it?
All of our ECS tasks now have broken memory and CPU metrics, where before we just had broken CPU metrics.
Thank you.

Just wanted to check in and see if there was anything we can do to provide assistance.
Thanks,

Hey, I have been on vacation, so haven't had time to look into this. For now, running the old version and dividing the CPU results by 10000000 should work.

@SuperQ
Thanks for the update, and I hope your vacation went well.
I will revert to 1.1 and see if we can get the CPU stuff working.
I would like to again offer that if we could get a bit more info on the building/testing we could attempt to provide fixes from our side.  We have no go specific dev's, but we def. have dev's.
Thanks

If you can figure out where the parsing is going wrong, that'd be helpful.
I think the fixtures you provided should be sufficient to test with, I just haven't had a chance to make them into a unit test.

@SuperQ
I guess im asking more for how you guys do the testing, and building.  There is no documentation on it that I can find.  We have a stable of python dev's, and I have a bit of golang experience, so I imagine we could potentially cobble together some eyes on this.

Everything is done via our CI pipelines.
The testing in this exporter is pretty minimal, since it doesn't have access to a real AWS API.
We can add a simulated http response to the unit tests. That should prevent future issues.

@SuperQ
Any information on how we can build/test this locally would help.  Otherwise we are really just stuck here waiting/bugging you and I know you guys are busy.  We have dev's, just not Golang specific devs.

Hey, I have been on vacation, so haven't had time to look into this. For now, running the old version and dividing the CPU results by 10000000 should work.

Im not sure what is correct here.
Like Cadvisor looks like
sum by (name) (irate(container_cpu_user_seconds_total{instance=~"$node",job=~"$job",image!="", name=~"$name"}[$__rate_interval]) / scalar(machine_cpu_cores{instance=~"$node",job=~"$job"}) ) * 100

Python Prometheus Exporter looks like
rate(ecs_cpu_seconds_total{ecs_task_id="a94a0debf2c14362a6b4f22108d1ef12"}[30s])

Im not sure which model would work here, and which number should be divided?

Do we have any news here?

@SuperQ
Just wanted to check in on this one and see if there was anything additional we could provide?

Sorry, I've not had time to look into this recently. Someone needs to write some unit tests with data provided above so we can reproduce the issue.

@SuperQ
I just wanted to touch base on this one again, its still not working properly.
You posted above about working around the issue, but I wasn't really sure on how you were saying to do it.  This was on on Aug 24, 2022.  Any chance you can clarify what you meant?
As for writing the additional tests, if someone could provide more context I could probably get one of our dev's to take a stab at it.  Outside of knowing it runs in your CI pipelines, i didnt see much more than a large make file and it wasnt clear to me where to start investigating.
Also, Im not sure if this is volunteer work for you or not, if it is, is there anything we can do privately to push this one over the line?
Thanks,

Ok, fix is released, please give it a try.

I've tested it on several our ECS clusters, it looks good.
I see few another issues: CPU metrics require normalisation and memory limit returns 1^64 for Fargate tasks, where container memory limit isn't set explicitly. But the initial issue definitely solved.

*There are tasks on common graph that were terminated due to scale down

Any chance you can post the working queries? About to deploy this to our
ecs/far hate environments
Thanks
On Thu, Jan 26, 2023, 11:20 AM Roman Kulayev @.***>
wrote:

I've tested it on several our ECS clusters, it looks good.
I see few another issues: CPU metrics require normalisation and memory
limit returns 1^64 for Fargate tasks, where container memory limit isn't
set explicitly. But the initial issue definitely solved.
[image: Screenshot 2023-01-26 at 19 37 06]
https://user-images.githubusercontent.com/5493637/214884104-0371d321-2f9e-4983-8803-3fefc9cea481.png
[image: Screenshot 2023-01-26 at 19 40 09]
https://user-images.githubusercontent.com/5493637/214884139-cb866566-b577-452d-8975-6c23772bd812.png
*There are tasks on common graph that were terminated due to scale down
—
Reply to this email directly, view it on GitHub
https://github.com/prometheus-community/ecs_exporter/issues/40#issuecomment-1405258240,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFBNZ5UIHDYXYHAAVMUTGTWUKP5BANCNFSM556JK73Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

I did a bit of research and figured out that AWS updates Task Metadata with Docker stats every 10s, so rate is okay for that if you set interval like 1m. Also, CPU utilization is in percents of one single core. So if you allocated something like .25vCPU for task/container, then 25% means full utilization.
sum by (ecs_task_arn)(rate(ecs_cpu_seconds_total{ecs_task_name="$app"}[$interval])) * 100
sum by (container,ecs_task_arn)(rate(ecs_cpu_seconds_total{ecs_task_arn="$task"}[$interval])) * 100
sum by (ecs_task_arn)(ecs_memory_bytes{ecs_task_name="$app"})/1024/1024
sum by (container,ecs_task_arn)(ecs_memory_bytes{ecs_task_arn="$task"})/1024/1024

@rkul
Do you know have any issues with the CPU not matching what is shown in Cloudwatch ?

FYI, you want to use $__rate_interval in Grafana.


More careful handling of the output in regards to what should be unicode

Ensure the prompt string is always unicode.
Fixes #32 and fixes #33

Coverage remained the same at 100.0% when pulling 8c5dde8ca9e07475768ff0fa6a81319d1b998444 on issue33 into e1356000373804dc9be1f4ae01c7def8c83511fe on master.

Coverage remained the same at 100.0% when pulling 8c5dde8ca9e07475768ff0fa6a81319d1b998444 on issue33 into e1356000373804dc9be1f4ae01c7def8c83511fe on master.

Coverage remained the same at 100.0% when pulling 8c5dde8ca9e07475768ff0fa6a81319d1b998444 on issue33 into e1356000373804dc9be1f4ae01c7def8c83511fe on master.


add labeler GitHub action + configuration

Signed-off-by: Jeff Mesnil<EMAIL_ADDRESS>

@jfdenise  When we write the documentation for the different DB providers, we should update the labels to make sure that the doc is also taken into account

I tested the labeler in my fork and it properly added the `microsoft  label to https://github.com/jmesnil/eap-datasources-galleon-pack/pull/2


Provide a mechanism for interpreting Literal

Currently the master branch doesn't interpret the Literal tokens which it is passed, leaving that up to the consumer. syn 0.11 provides a mechanism for interpreting these values. We (or proc-macro2) should provide methods for interpreting these Literal objects into actual values. If this impacts build times, we may want to put it behind a feature (which may or may not be on-by-default), as not all procedural macros, but at least some, will need it.

This should be in by default; a super common use case is interpreting string literals. Right now, the best way to get at this is to call to_string and then un-escape the inside of the string, which is quite hacky.

I just threw together https://github.com/mystor/literalext which is an extension trait which adds methods to Literal for extracting values. It should be usable with master syn right now.
I think an API like this should probably be added to the real Literal type in proc-macro (and by extension proc-macro2), but I figure that a external crate with an extension trait will be a good tool to start with.
@alexcrichton, @dtolnay and @clarcharr, I'm curious what you think about the API which I put together. I tried to keep it extensible and non-exhaustive, while still doing the things you would want it to.

Looks great to me! I might recommend to_* as a prefix as these will often require a lot of work (not free conversions) but otherwise the API looks good.

Looks great to me! I might recommend to_* as a prefix as these will often require a lot of work (not free conversions) but otherwise the API looks good.

Good point. I think I originally called them as_* because I was thinking of the API as being part of rustc, which would have most of the work which I would need to do already done (although not all of it. IIRC we store interned strings inside of float and int literals until we need to use their value).
Calling them to_* is certainly better for the purposes of this crate.


suggestion: more keyboard shortcuts

For example it would be nice to have a keyboard shortcut for Add Test Case

agree, I havent reviewed keyboard mappings in awhile.


Add gu to performance measure names

What are you changing?
Add the prefix 'gu' to performance measures recorded by libs.
Why?
It will make it easier to group all of the metrics we care about without having to know the individual team names.

I wonder if instead we should create a method to retrieve performance measures for given teams, e.g. with the following signature:
type GetMeasures = (teams: TeamName[]) => PerformanceMeasure

Having a method to pull by team name is fine but I think it would also be convenient to pull all the 'gu' metrics in one go rather than having to query (and remember) by team name.
I think we've lacked a higher level platform view of the metrics and how each teams affect each other. Making it easier to query across teams would would help.
Is there a reason why gu might be a problem?

I think we've lacked a higher level platform view of the metrics and how each teams affect each other. Making it easier to query across teams would would help.
Is there a reason why gu might be a problem?

Different teams could be recording performance information that may contain personal data. Any team that does cross-team aggregation then becomes liable to understanding the type of data that is being recorded and its privacy implications.

I think we've lacked a higher level platform view of the metrics and how each teams affect each other. Making it easier to query across teams would would help.
Is there a reason why gu might be a problem?

Different teams could be recording performance information that may contain personal data. Any team that does cross-team aggregation then becomes liable to understanding the type of data that is being recorded and its privacy implications.

I was hoping that in any data aggregation pipeline we should always be aware of privacy concerns. You could still aggregate by a single or multiple team names and not be aware of the underlying data.
I'll close this PR for now though.


{Pywin32} Remove win32 search path patch

Description

Resolve #11613
pywin32.pth is now honored by the embeddable Python in MSI and the patch is no longer needed.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

Pywin32


Only call 3dslink if a runner is not configured

Follow-up to #60 which I believe broke cargo test and cargo run when a custom runner is configured...
#49 would probably have caught this if we ran some tests in CI — I will see if it's not too hard to add some kind of dummy crate to test against for those cases (integration tests, examples etc.)

LGTM, though I find all of the pub(crate) diffs a bit funny 😆.

Yeah, I couldn't think of a better way to try and catch more dead code (like the fn I deleted). See https://stackoverflow.com/a/51636336/14436105 and https://github.com/rust-lang/rust/issues/74970, https://github.com/rust-lang/rust/issues/120079
pub(crate) seemed easiest to make sure everything still compiled, but some of those could also be probably be made private. An alternative as mentioned in some of those issues would be to move lib.rs to a submodule of main instead, which but that feels a bit awkward and I'm not sure if it would really help that much anyway.


Possible issue in LaneletMapPtr Route::getDebugLaneletMap()

I've been trying to write .osm file of laneletMap that comes from getDebugLaneletMap().
Here is my code as follows.
ConstLanelet lanelet = map_->laneletLayer.get(startLanelet[0].second.id());
ConstLanelet toLanelet = map_->laneletLayer.get(goalLanelet[0].second.id());
Optional <routing::Route> optRoute = routingGraph_->getRoute(lanelet, toLanelet, 0);
write("/debug_path.osm", *(optRoute->getDebugLaneletMap()),Origin(origin_));
Actually, I did the same thing in 0.8.0 version of lanelet2 and it worked fine with it.
But In the latest version of lanelet2, the output of osm file keep crash with no 'way' component in it.
I think it's because LaneletMap() is deprecated and replaced by LaneletSubmap().
So is there any solution to write debugLaneletMap?

Sorry, with this little information it's hard to find the cause of your issue. getDebugLaneletMap is working fine. Are you sure the route object returned by getRoute is valid?
That LaneletMap is deprecated is probably a misunderstanding. Not the whole LaneletMap is deprecated, just the method laneletMap as part of the Route is deprecated. But this is not related to your problem.


Reduce WebSocket connection memory footprint

Measure memory footprint for WebSocket and secure WebSocket connections. Then, reduce it.
Also see: https://github.com/bbangert/ssl-ram-testing/

Also relevant (with TLS): https://twistedmatrix.com/trac/ticket/8247

https://groups.google.com/forum/#!topic/autobahnws/dtsheq8unFY


tr7: overhaul

Use symbolic links for scheme-banner and scheme-r7rs.

Use upstream make tr7i.

Omit ldconfig. It is not needed for most containers.

Omit TR7_LIB_PATH. The upstream head Makefile takes care of it.

The version 1 container currently does not install tr7libs. Upstream support for installation is underdeveloped in 1.0.14. It is easier to wait for the next 1.x release than to provide a workaround.

@Retropikzel I made a bunch of changes to tr7 in an effort to more closely follow our existing contentions as well as upstream conventions.
I built both cotainers and they seem to work as well as the old ones. Please check that I didn't make any obvious mistakes.

NB: make test currently fails due to upstream problems

tr7 has "make install" support now https://gitlab.com/jobol/tr7/-/issues/38
There is no release out with it yet but it should work in the head.

The PR is using make install for head.

Sorry, I should have looked more carefully. Then it's good for me.

No problem. Thank you for the swift review.


Including boundary lines and details from Natural earth

Hi Mathause,
I was wondering if you would consider extending regionmask to allow it to also select details and boundary lines  (naval 200 mile zone) as current GCM's are now able to resolve the naval boundary region.
kind regards,
Laurens

Hej Laureens,
can you explain what you mean with details?
Do you want to select all points along a line?
As for the naval 200 mile zone - if there is a freely available dataset I am happy to include it.

Hi Mathause,
The naval 200 miles zone is not availabe at Natural Earth due  to licensing issues. But you can find it available for free on http://www.marineregions.org/sources.php#unioneezcountry.
The details is a subgroup of the Natural Earth country data. I misread the information it would give and I don't think anymore it would provide additional information/use to this package.

Hi Mathause,
Thank you very much for the example!


scenario app build flaked on gradle network flake

https://ci.chromium.org/ui/p/flutter/builders/prod/Linux Engine Drone/42054/overview
I believe we do some caching on framework CI to avoid gradle hitting the network
/cc @blasten @godofredoc

@blasten how do we get the gradle cache on the engine?

Per Zach, Emmanuel is already on the case.

I will add the lockfiles to the scenario app, and cache the  global.gradle directory.

@blasten I don't see this issue anymore. But, were you able to cache the .gradle directory as well? Is so, we should close this issue and move on. In fact, since this issue relates to the flake, maybe we can close this and track caching the directory separately? Your call.

Closing the issue as we are not seeing the problem anymore and flutter/engine#27852 seems related.


cargo install just version 1.37.0

First of all, thank you for making this tool. I have been using Makefiles for ages for non-compilation-y stuff and just is the perfect replacement that solves most, if not all, of the quirks of the previous tool (that really was intended for other things than my use cases).
Up until (and including) version 1.36.0 I have been able to install and update just by simply issuing
cargo install just
This no longer works, as I am getting a lot of error messages:
error: the -Z unstable-optionsflag must also be passed to enable the flagcheck-cfg``
I have tried installing nightly and adding the -Z unstable-options flag, but that seems to open another can of worms.
Is this intentional (leading me to explore alternate installation options for just)?
Regardless, love your work <3

@laniakea64 Thanks for your question.
I had initially issued a rustup update prior to attempting to upgrade just.
However, it turns out I had some stale versions of cargo and rustc that I guess has been installed using a package manager.
Removing said packages fixed everything.

Phew! Glad it worked :)


cargo: error[E0463]: can't find crate for std ( I was installed the thumbv7m-none-eabi)

Problem
I follow way of The Embedded Rust book. When I install cargo-binutils, that always show error
error[E0463]: can't find crate for `std`
  |
  = note: the `thumbv7m-none-eabi` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `semver-parser`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-binutils v0.3.3`, intermediate artifacts can be found at `/tmp/cargo-installTEhY12`

Caused by:
  build failed

I used Windows and WSL2(Linux) to tried, result not different.
Notes
cargo 1.49.0 (d00d64df9 2020-12-05)
>>rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /root/.rustup

installed targets for active toolchain
--------------------------------------

thumbv7m-none-eabi
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.49.0 (e1884a8e3 2020-12-29)

What exactly is the command you are running?  It looks like it is picking thumbv7m-none-eabi as the target.  Do you have any settings in ~/.cargo/config (or ~/.cargo/config.toml), or any environment variables set?

@ehuss
This is my config.
# ~/.cargo/config settings
[target.thumbv7em-none-eabihf]
runner = "arm-none-eabi-gdb -q -x openocd.gdb" # <-
rustflags = [
  "-C", "link-arg=-Tlink.x",
]

There are a few other questions above you may have missed.  What is the exact command you are running?  Can you show the whole output?  Do you have any environment variables set?

@ehuss I try to uninstall rustc and install again, that was ran


No payload when using the nuxt-auth module

When using the nuxt auth module (https://auth.nuxtjs.org/) to preserve the preview stage, all payload.json are empty after static build.
After disabling the auth module everything works as expected.

@deepsoul Sorry, I wasn't able to reproduce your issue. Maybe if you have simple reproduction on codesandbox, I'll be able to investigate more.


Update rpn.py

Added variables num1 and num2 to enable a swap before execution. i.e. old: 5 7 - = 2. Revised to -2.

New pull request #2 supersedes this one.


Help: converting nginx ingress to istio

I have some onprem setup.. where some backend service is using https and some are using http..
right now we were using nginx ingress, but we are trying to replace with istio..
in nginx ingress ,separate ingress configuration  has annotation to define the backup protocol
nginx.ingress.kubernetes.io/backend-protocol:HTTPS
nginx.ingress.kubernetes.io/backend-protocol:HTTP
in istio in virtual service, can we define anything like that.. so that depending on the protocol mentioned that particular service will be called in http or https mode...
is there any way to achieve the same functionality like nginx  backend-protocol annotation..

Try read this doc https://istio.io/latest/docs/reference/config/networking/destination-rule/#ClientTLSSettings.

Try read this doc https://istio.io/latest/docs/reference/config/networking/destination-rule/#ClientTLSSettings.

Yeah thanks @SpecialYang .. I have configured the destination rules ... but i right now i am stuck at converting nginx ingress to istio vs ..
https://github.com/istio/istio.io/issues/8874
how do I give /$2 in the istio vs rewrite rules ? or how to achieve the same functionality ..

I think you do not need to rewrite path, try to remove the following config for every route.
rewrite:
      uri: /

This works.. Thank you @SpecialYang ...
now it is working with http backend..
let me try the https backend now...

Https i am getting some errors...
for the ingress rule mentioned below
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx-control-plane
    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
    nginx.ingress.kubernetes.io/rewrite-target: /$2
    nginx.ingress.kubernetes.io/use-regex: "true"
  labels:
    app: metalk8s-ui
    app.kubernetes.io/name: metalk8s-ui
    app.kubernetes.io/part-of: metalk8s
    heritage: salt
    metalk8s.scality.com/version: 2.6.0-dev
  name: metalk8s-ui-proxies-https
  namespace: metalk8s-ui
spec:
  rules:
  - http:
      paths:
      - backend:
          serviceName: kubernetes-api
          servicePort: 443
        path: /api/kubernetes(/|$)(.*)
      - backend:
          serviceName: salt-api
          servicePort: 4507
        path: /api/salt(/|$)(.*)

I have following vs and destination rule...
  gateways:
  - istio-system/istio-gateway
  hosts:
  - '*'
  http:
  - match:
    - uri:
        prefix: /api/kubernetes/
    rewrite:
      uri: /
    route:
    - destination:
        host: kubernetes-api-ds
        port:
          number: 443
      weight: 100
  - match:
    - uri:
        prefix: /api/salt/
    rewrite:
      uri: /
    route:
    - destination:
        host: salt-api
        port:
          number: 4507
      weight: 100

metadata:
  name: kubernetes-api-ds
  namespace: metalk8s-ui
spec:
  host: kubernetes-api
  trafficPolicy:
    portLevelSettings:
    - loadBalancer:
        simple: ROUND_ROBIN
      port:
        number: 443
    tls:
      caCertificates: /etc/istio/ingressgateway-certs/tls.crt
      mode: SIMPLE
      privateKey: /etc/istio/ingressgateway-certs/tls.key

/api/kubernetes/ --> that is giving 503 in the ingressgate way log..
[2021-02-01T12:15:19.208Z] "GET /api/kubernetes/api/v1/namespaces?includeUninitialized=&pretty=&continue=&fieldSelector=metadata.name%3Dkube-system HTTP/2" 503 NR "-" 0 0 0 - "<IP_ADDRESS>" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36" "bf64c2f2-2e01-41e6-85b9-e6ac7fcd417b" "<IP_ADDRESS>:8443" "-" - - <IP_ADDRESS>:8443 <IP_ADDRESS>:28368
what could be the reason.. could you please help

Could you provide your gateway config?

gateway config::
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
  name: istio-gateway
  namespace: istio-system
spec:
  selector:
    istio: ingressgateway
  servers:
  - hosts:
    - '*'
    port:
      name: https
      number: 8443
      protocol: HTTPS
    tls:
      mode: SIMPLE
      privateKey: /etc/istio/ingressgateway-certs/tls.key
      serverCertificate: /etc/istio/ingressgateway-certs/tls.crt

Guess the host should be kubernetes-api.
route:
    - destination:
        host: kubernetes-api
        port:
          number: 443
      weight: 100

if i give kubernetes-api in the vs ...
    rewrite:
      uri: /
    route:
    - destination:
        host: kubernetes-api
        port:
          number: 443
      weight: 100
      ```
      then it is coming
      ```Client sent an HTTP request to an HTTPS server. ```

Curl localhost:15014/debug/configz or Curl localhost:8080/debug/configz in pilot container. I want to see all your configs.

configz.log
Please find the attached o/p of the debug/configz ...

Try to read these doc. You can obtain more information about host field.

https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPRouteDestination
https://istio.io/latest/docs/reference/config/networking/destination-rule/#DestinationRule

yeah i am going though that only...
Tried to change the host to kubernetes.default.svc.cluster.local ..
I tried to give the vs config, like..
spec:
  gateways:
  - istio-system/rainier-istio-gateway
  hosts:
  - '*'
  http:
  - match:
    - uri:
        prefix: /api/kubernetes/
    rewrite:
      uri: /
    route:
    - destination:
        host: kubernetes.default.svc.cluster.local
        port:
          number: 443
      weight: 100

but it says Client sent an HTTP request to an HTTPS server. ...
adding destination rule is not having any impact...
added destination rule..
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
  name: kubernetes-api-ds
  namespace: metalk8s-ui
spec:
  host: kubernetes.default.svc.cluster.local
  trafficPolicy:
    portLevelSettings:
    - port:
        number: 443
      loadBalancer:
        simple: ROUND_ROBIN
    tls:
      mode: SIMPLE
      privateKey: /etc/istio/ingressgateway-certs/tls.key
      caCertificates: /etc/istio/ingressgateway-certs/tls.crt

Without having destination rule and with having destination rule it is giving same error.
Client sent an HTTP request to an HTTPS server.

Does you service has multiple ports? If not, try remove
 - port:
        number: 443
      loadBalancer:
        simple: ROUND_ROBIN

Because portLevelSettings will override DestinationRule level setting.
If you really has more ports, then move tls under portLevelSettings.
trafficPolicy:
    portLevelSettings:
    - port:
        number: 443
      loadBalancer:
        simple: ROUND_ROBIN
      tls:
        mode: SIMPLE
        privateKey: /etc/istio/ingressgateway-certs/tls.key
        caCertificates: /etc/istio/ingressgateway-certs/tls.crt

I tried with both..
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"networking.istio.io/v1beta1","kind":"DestinationRule","metadata":{"annotations":{},"name":"kubernetes-api-dr","namespace":"metalk8s-ui"},"spec":{"host":"kubernetes.default.svc.cluster.local","trafficPolicy":{"portLevelSettings":[{"loadBalancer":{"simple":"ROUND_ROBIN"},"port":{"number":443},"tls":{"caCertificates":"/etc/istio/ingressgateway-certs/tls.crt","mode":"SIMPLE","privateKey":"/etc/istio/ingressgateway-certs/tls.key"}}]}}}
  creationTimestamp: "2021-02-01T15:12:17Z"
  generation: 5
  name: kubernetes-api-dr
  namespace: metalk8s-ui
  resourceVersion: "3184829"
  selfLink: /apis/networking.istio.io/v1beta1/namespaces/metalk8s-ui/destinationrules/kubernetes-api-dr
  uid: a3db91f2-9b23-4029-8f62-231578d78c33
spec:
  host: kubernetes.default.svc.cluster.local
  trafficPolicy:
    tls:
      caCertificates: /etc/istio/ingressgateway-certs/tls.crt
      mode: SIMPLE
      privateKey: /etc/istio/ingressgateway-certs/tls.key

and indenting the tls...
but result is same.. Client sent an HTTP request to an HTTPS server.

also one NOTE.. i dont have side car configured.. does destination rule works without side car proxy ?

@SpecialYang  .. Is it somehow possible to have a call and share screen maybe via skype..  may that way we will get to know the issue faster.. I really need this to work.. could we have one call please , if you don't mind, whenever you are available.
https://www.linkedin.com/in/baitanik-talukder-4a5b3bb6/

It is working now... after giving the proper cacert in destination rule... it is working..
thanks for all the help.