v1.1.15 - Turning OFF Volume Normalization prevents playback

I have an error if I turn OFF Volume Normalization from the queue and then add/play music. The song won't play and I get the following 2 x log errors. Turning Volume Normalization back ON will fix the issue.
Logger: aiohttp.server
Source: /usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py:405
First occurred: 7:54:14 PM (31 occurrences)
Last logged: 8:21:54 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/stream.py", line 145, in serve_queue_stream
start_streamdetails = await queue.queue_stream_prepare()
File "/usr/local/lib/python3.9/site-packages/music_assistant/models/player_queue.py", line 732, in queue_stream_prepare
return await get_stream_details(self.mass, next_item, self.queue_id)
File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/audio.py", line 242, in get_stream_details
loudness, gain_correct = await get_gain_correct(
TypeError: cannot unpack non-iterable int object
Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:388
Integration: Google Cast (documentation, issues)
First occurred: 7:59:22 PM (27 occurrences)
Last logged: 8:21:54 PM
Failed to cast media http://<IP_ADDRESS>:8095/media_player.shield.flac. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

this should be fixed with 1.1.7

Confirmed fixed - playback is faster with normalization off so thats a bonus - thanks

That shouldn't be noticeable because volume normalization barely causes any overhead and is lossless.


Always on top이 종종 작동하지 않음

.

alspotron은 항상 모든 창 위에 표시되도록 되어있습니다.

아 디폴트되어있군요...
쓰다가 항상위가 풀리는경우가 종종 있더라구요...

Ref: https://github.com/electron/electron/issues/2097#issuecomment-253420136

setInterval(() => {
  mainWindow.setAlwaysOnTop(true);
}, 10000);

this code makes app window blink because i think its not fix the issue .
also i found this :
every time you open the youtube or similar apps and makes them fullscreen , the alwaysOnTop property changes and makes the window alwaysOnTop(false)
this code:
mainWindow.setAlwaysOnTop(true)

works fine until you change the onTop property of any app or window from OS point of view , it changes it to false again

setInterval(() => {
  mainWindow.setAlwaysOnTop(true);
}, 10000);

this code makes app window blink because i think its not fix the issue . also i found this : every time you open the youtube or similar apps and makes them fullscreen , the alwaysOnTop property changes and makes the window alwaysOnTop(false) this code:
mainWindow.setAlwaysOnTop(true)

works fine until you change the onTop property of any app or window from OS point of view , it changes it to false again

What is the difference between this code and alwaysOnTop: true?

exactly i am saying this : there is no difference between two codes . because none of them didn't fix the issue. i told before it makes the window blink because every interval window gets alwaysontop and then goes down and makes the window blink. because from OS side the other app also gets alwaysontop and makes this window not be ontop again.
i think it must be fixed from OS side , because like GlobalShortcuts apps fights to be on top of others and this changes the ontop properties for all apps


[Event Request] codeunit 7002 "Price Calculation - V16" - OnAfterCalcBestAmount

Please include sender in the Event OnAfterCalcBestAmount
[IntegrationEvent(true, false)]
local procedure OnAfterCalcBestAmount(AmountType: Enum "Price Amount Type"; var PriceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt."; var PriceListLine: Record "Price List Line")
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 47651.


runAlways should run regardless of checksum validation

Impact

[ ] Bug fix (non-breaking change which fixes expected existing functionality)
[ ] Enhancement/New feature (adds functionality without impacting existing logic)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Description
Currently, runAlways still fails with checksum related errors when the changeset definition changes.
This can sometimes lead to confusion (please, consider read this thread in the Liquibase forum, for instance).
The change allows runAlways to be executed in any situation, regardless of whether the changeset has been modified or not.
Fixes #4125.
Things to be aware of
Nothing.
Things to worry about
Change existing functionallity.
Additional Context
N/A

Initial/Pre-Review Thoughts
The "breaking change" checkbox is technically right since it changes behavior, but I'd see it more as a bugfix in general. The people broke by it are people with runAlways="true" and are for some reason relying on the fact that it shouldn't re-run if they change the content of the changeset. That seems like something nobody would do? But, it would be good to make sure we call it out a bit in the release notes, so I'm OK with leaving it as that.
Code change looks good, but probably good to add a test case to ValidatingVisitorTest?
Questions I have:

None

Potential risks:

None

What could make the full review difficult:

Nothing

Yes, of course, I will try to create the test case to ValidatingVisitorTest @nvoxland.

Sorry @filipelautert, no, honestly I forgot it!! I will try implementing it as soon as possible.
Please, sorry again.

@filipelautert I provided a possible test case for describing the implemented functionality.
Please, don't hesitate to contact me again if necessary.
And again, sorry...

Thanks for this fix @jccampanero and for adding tests to it, much appreciated.

You are welcome @filipelautert, thank you for your support.

 Thank you for everything you've done for the Liquibase Community. Please don't worry about apologizing for taking a little time to get back to us or add tests because everything you do is helpful & truly appreciated!

 Thank you for everything you've done for the Liquibase Community. Please don't worry about apologizing for taking a little time to get back to us or add tests because everything you do is helpful & truly appreciated!

Thank you very much for your kindness and your words @XDelphiGrl, I appreciate them very much; on the contrary, thank you very much for all your support and for this excellent library, it is a pleasure to be able to contribute to this excellent project.


[manuf] export/import certs as a single blog during perso

This updates the personalization flow to export/import certificates as continuous blobs to enable easily adding additional certificates in extensions for various SKUs.
This partially addresses #23426.
Note: this depends on #24165, only review the last commit.

how has this patches been tested?  In particular, were the certs saved in flash retrieved and ran through openssl chain validation?
Otherwise just nits and suggestions.

how has this patches been tested? In particular, were the certs saved in flash retrieved and ran through openssl chain validation?
Otherwise just nits and suggestions.

This is tested in CI when the ft_provision test runs, it runs the certs through OpenSSL chain validation, same as before.


Interrupt level of vector table read operation

In Section 3.4:

For permissions-checking purposes, the memory access to retrieve the function pointer for vectoring is treated as a load with the privilege mode of the interrupt handler.

The specification does not specify what the "interrupt level" of this load should be. I think this is important to determine the interrupt level at which access exceptions and page faults for this vector table read should be serviced. Section 5.3:

Horizontal synchronous exception traps, which stay within a privilege mode, are serviced with the same interrupt level as the instruction that raised the exception.

If we treat the load as the zeroth instruction in the interrupt handler, it makes sense to execute it at the level of the interrupt, but some clarification from the spec would be nice.

Yes, same as interrupt handler.  Updating text to make clear.

Namely:
For permissions-checking purposes, the memory access to retrieve the function pointer for
vectoring is treated as a load with the privilege mode and interrupt level of the interrupt handler.


To Staging: Change to multiple Guides (Manually triggered)

Updated by github actions, triggered Manually.

close

this pr for review only


Routerlink document is missing the outlets part

When reading https://angular.io/docs/ts/latest/api/router/index/RouterLink-directive.html, I see that the part about navigating to an outlet from a routerlink in a template, from a relative link (navigate) or from an absolute link (navigateToUrl) is missing.

API issues goes to the angular repo.
Thanks.


How to set up SSH tunnel using docker-machine

Using boot2docker, I could set up an ssh tunnel to allow me to access running containers on localhost using the following command:
boot2docker ssh -L 5432:localhost:5432

However, if I try a similar command using docker-machine (with the machine name added) I get an error complaining about incorrect usage. What should I be doing? This is what I see:
docker-machine ssh dev -L 5432:localhost:5432
Incorrect Usage.

Usage: docker-machine ssh [arg...]

Log into or run a command on a machine with SSH.

Description:
   Arguments are [machine-name] [command]

same here :(

i'm on a mac, so take it for what it's worth...
install the docker cli for mac and use the docker command directly from your terminal
# curl -L https://get.docker.com/builds/Darwin/x86_64/docker-latest > /usr/local/bin/docker
# chmod +x /usr/local/bin/docker
# curl -L https://github.com/docker/machine/releases/download/v0.4.0/docker-machine_darwin-amd64 > /usr/local/bin/docker-machine
# chmod +x /usr/local/bin/docker-machine

then you can create a new docker-machine
# docker-machine create --provider virtualbox dev
# docker-machine env dev
# eval "$(docker-machine env dev)"
# docker run -ti busybox

then you will be in the shell. or you can run docker exec just like normal from the docker cli.

You can at least still reach the containers that have been run with -p/-P by using the docker-machine ip for that particular host. (postgresql://postgres:@<docker-machine ip docker-vm>:5432)
I wonder if there is another way we could refer to them as running on localhost, as it seems to be how my tests have been set up (expecting everything locally). Maybe I just have to specify the internal IP of the vm host every time I want to test, but it would be useful for it to work like boot2docker did in this respect.

As @rsslldnphy I also used the boot2docker ssh -L 5432:localhost:5432 syntax before upgrading to docker-machine. It is annoying that this feature does not work anymore, but as a workaround the following should work:
machine=default #replace default if you use another name for the docker machine
ssh -i ~/.docker/machine/machines/$machine/id_rsa \
docker@$(docker-machine ip $machine) \
-L 5432:localhost:5432

or in the shorter version:
machine=default; ssh -i ~/.docker/machine/machines/$machine/id_rsa docker@$(docker-machine ip $machine) -L 5432:localhost:5432

Hope this helps somebody and really hope this could be reimplemented into docker-machine ssh

Thank you, @emilingerslev, that's really helpful.

Glad I could help @rsslldnphy !

FYI all, https://github.com/docker/machine/pull/1791 will fix this when merged

Closing as #1791 is merged.  Look for it in the next release!

This is actually not enough, since there is no reliable way to get the SSH port number. I filed #1981.


[FEATURE REQUEST] Rename text overrides

It'd be awesome to be able to rename text overrides as well.

Are you talking about symbol text overrides?

Yes, symbol overrides.

I would like that too!

I have a symbol with a text label
I inserted the symbol 20 times in my art board
I filled the text label name based on custom added data
Now I would like to rename those layers based on the generated name


Failed building wheel for gmpy2

Failed building wheel for gmpy2
Running setup.py clean for gmpy2
Failed to build gmpy2
Installing collected packages: gmpy2, robot-detect
Running setup.py install for gmpy2 ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-kh5vvxll/gmpy2/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-5kh81p28/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'gmpy2' extension
creating build
creating build/temp.linux-i686-3.7
creating build/temp.linux-i686-3.7/src
i686-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITHMPFR -DWITHMPC -I/usr/include/python3.7m -c src/gmpy2.c -o build/temp.linux-i686-3.7/src/gmpy2.o
In file included from src/gmpy2.c:426:
src/gmpy.h:252:12: fatal error: mpfr.h: No such file or directory
252 | #  include "mpfr.h"
|            ^~~~~~~~
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-kh5vvxll/gmpy2/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-5kh81p28/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-kh5vvxll/gmpy2/

Please see if the solution from this thread works for you: https://stackoverflow.com/a/50554366

I had the same error on an aarch64 based system.
sudo apt install libmpc-dev
Fixed it for me.


Added boilerplate automation

TL;DR
Added boilerplate automation
Type

[ ] Bug Fix
[x] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/lyft/flyte/issues/
Follow-up issue
NA
OR
https://github.com/lyft/flyte/issues/

@evalsocket should the file itself live in the boilerplate repo?  or is it already there?

These files are present in the boilerplate repo...I am just doing one time boilerplate migration manually


[Question] Add "Name" as a Sort By option

One of our business teams would like to have the option to sort search results alphabetically by name within their Asset Share, and I noticed that this attribute is not available for configuration as a "sort by" option in the OOTB Asset Share search template.
Is this something that might be of value within the core Asset Share Commons code?

@artdirk Are you trying to sort by node name or asset title? I expect you should be able to do this, however you’d need to update the damAssetLucene index to make the appropriate property ordered so it’s available in the sort component.
Sorting is just driven by the order by query builder predicate so whatever that can handle, ASC can handle.

@davidjgonzalez, that's a good question. I think the business would like to sort alphabetically by the asset name that's displayed on the cards, but it looks like the asset name might be derived differently based on the asset type?

Correct - if the asset title label is using a computed property that “selects” different values to display, the.  For this you’d want to overlay the card/list (or title computed property) so the title is always pulling from the same property, and the. Make sure that property index use is marked as orderable in damAssetLucene index.


Down with the tyranny

We need to talk about @Porthorian. There has been a blatant misuse of power happening in this repo.
Changes requested? nah, he don't care. merges anyway.
PR outlining the controls needed to be put in place to prevent this? nah, yolo merge.
Pizza at 21?? Lying to the people.
When will this end? If we don't do something now, we will forever live under an unjust rule. I ask of you my fellow vinnie's food fanatics to take a stand against this oppressor and bring the freedom to the contributors of this repo. TAKE A STAND BEFORE IT IS TOO LATE.

I agree. He has already demonstrated his tyrannically rule with #4. There was no pull request review and he copied and pasted the governance that is 90% boilerplate
cc @aanthonyrizzo

This should be a P0 incident

@aanthonyrizzo @zamerendino WHAT DO WE WANT!?

lunch? im hung-ry.io

@zamerendino @ddymko @aanthonyrizzo
We doing this.

https://www.youtube.com/watch?v=gXBJRz_33Y8


V1.13.3

Combine the v1.13.3 release with the foxy branch. The meaningless latest commit from foxy branch is ignored when I was doing the rebase of v1.13.3 release and foxy branch.

Remove the outdated offboard example inside px4_ros_com in order to make the "colcon build" successful on Jetson.

@JohnnyLiu2886 Seems like the conflict can be fixed. Let me take a shot at it.


no longer re-encodes audio stream with ffmpeg when using AAC

Checklist

[x ] I'm reporting a broken site support issue
[x ] I've verified that I'm running youtube-dl version 2019.05.11
[x ] I've checked that all provided URLs are alive and playable in a browser
[x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x ] I've searched the bugtracker for similar bug reports including closed ones
[x ] I've read bugs section in FAQ

Verbose log

C:\Users\Matthew\Desktop\America First Podcast>youtube-dl --extract-audio --audi
o-format aac --audio-quality 32 --postprocessor-args "-ac 1 -ar 32000" https://w
ww.youtube.com/watch?v=y49YAp-bPmA --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--extract-audio', '--audio-format', 'aac', '--audio
-quality', '32', '--postprocessor-args', '-ac 1 -ar 32000', 'https://www.youtube
.com/watch?v=y49YAp-bPmA', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.05.11
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 4.1.3
[debug] Proxy map: {}
[youtube] y49YAp-bPmA: Downloading webpage
[youtube] y49YAp-bPmA: Downloading video info webpage
[debug] Invoking downloader on 'https://r16---sn-bvvbax-hjpl.googlevideo.com/vid
eoplayback?id=o-ACsFLvPQ2dP_oJEFVGkEalMJGeCkq86IkpFl8hUaorXm&itag=140&source=you
tube&requiressl=yes&mm=31%2C26&mn=sn-bvvbax-hjpl%2Csn-vgqskn76&ms=au%2Conr&mv=m&
nh=EAE%2C&pl=24&ei=m-PaXPX1MsXODMGrs_gP&gcr=us&initcwndbps=1677500&mime=audio%2F
mp4&gir=yes&clen=136665045&dur=8444.470&lmt=1557802850202263&mt=1557848865&fvip=
5&keepalive=yes&c=WEB&txp=7311222&ip=<IP_ADDRESS>&ipbits=0&expire=1557870588&s
params=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cm
v%2Cnh%2Cpl%2Cei%2Cgcr%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&signature=D
93C2B9E78E9123C71831818992C5E5321601AE7.78F6B342C607579D54BDCE79C401F36AF6CDDDCF
&key=yt8&ratebypass=yes'
[download] Destination: The Trump-Orban Summit _ America First Ep. 386-y49YAp-bP
mA.m4a
[download] 100% of 130.33MiB in 00:21
[ffmpeg] Correcting container in "The Trump-Orban Summit _ America First Ep. 386
-y49YAp-bPmA.m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:The Trum
p-Orban Summit _ America First Ep. 386-y49YAp-bPmA.m4a" -c copy -f mp4 -ac 1 -ar
 32000 "file:The Trump-Orban Summit _ America First Ep. 386-y49YAp-bPmA.temp.m4a
"
[debug] ffmpeg command line: ffmpeg -i "file:The Trump-Orban Summit _ America Fi
rst Ep. 386-y49YAp-bPmA.m4a"
[ffmpeg] Destination: The Trump-Orban Summit _ America First Ep. 386-y49YAp-bPmA
.aac
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:The Trum
p-Orban Summit _ America First Ep. 386-y49YAp-bPmA.m4a" -vn -acodec copy -f adts
 -ac 1 -ar 32000 "file:The Trump-Orban Summit _ America First Ep. 386-y49YAp-bPm
A.aac"
Deleting original file The Trump-Orban Summit _ America First Ep. 386-y49YAp-bPm
A.m4a (pass -k to keep)

Description

I've been using this command for a few months now and it always has worked:
youtube-dl --extract-audio --audio-format aac --audio-quality 32 --postprocessor-args "-ac 1 -ar 32000"
about 2 weeks ago I had been using mp3 but switched to aac so I could lower the bitrate.
Interestingly, if you run youtube-dl --extract-audio --audio-format mp3 --audio-quality 32 --postprocessor-args "-ac 1 -ar 32000"
it works, but AAC is broken for some reason.  Tried getting the latest ffmpeg and it still does it.  FFMPEG acts like it's encoding something but the aac file is the exact same as the one pulled from the m4a stream on the video.  Plus ffmpeg only takes 3 seconds when it normally runs for about 30 seconds.

No reencoding takes places if the original format is already in requested audio format.

But it's not in the requested format, youtube videos are 128kbps AAC and I was transcoding them to 32kbps AAC or MP3

Wow must have just been that particular video, it worked on another this morning


remove unneeded slave term

hey I think you can remove the "slave" to describe pouch-mirror altogether. Or if you want to keep a term expressing that it’s replicating from a primary database, user "replica" instead? see also https://www.drupal.org/node/2275877, lots of other projects try to remove master/slave and other terms with negative annotation from their project to make your community more inclusive.
Thanks for your consideration. Let me know if you have questions, happy to provide more resources on that topic

Hi @gr2m thank you very much for the suggestion and PR. I understand your point.
However I do not resonate with the insanity that political correctness has become. It is a slippery slide where we soon won't be able to communicate any meaningful ideas because all language will be offensive.
The people who are going to find offense in a technical term are of very low emotional and intellectual maturity. The "master slave" paradigm has been in use for a long time to describe data replication algorithms.
In my opinion the best thing we can do to make our communities more inclusive is to stop encouraging people to pretend they are offended, especially when there was obviously no intention.
That's my rant. I'll happily accept any pull requests that technically improve my projects.

You're using the term "replica" already. I don't see why you would mix old ("master/slave") with current terminology ("primary/replica") in the same document. I also think it's bad style to introduce different terms than the underlying technology and neither Couch nor Pouch mention master/slave anywhere.
There's plenty of reasons to merge this one-word-change other than political correctness. I also don't see how improving documentation is not an overall improvement?

From the official CouchDB website:
"Seamless multi-master sync, that
scales from Big Data to Mobile,
with an Intuitive HTTP/JSON API
and designed for Reliability."
CouchDB's model is "multi-master", which means there is no primary source of truth. pouch-mirror forces the PouchDB instance to act as a slave subservient to the other server. The above PR does not communicate this important technical fact which is the purpose the library was built for.

So I had a talk with Nolan Lawson and agree that this helps the image of our community, even though the likelihood of a rational person being offended is very low.

Thanks you two, much appreciated.


Ubuntu 19.10 apt-update fails with vscode repository

I recently updated my laptop to the latest version of Ubuntu Desktop (19.10 (eoan)) and when I do an apt-get update command now there are failures for the vscode repository.
Repository URI: http://packages.microsoft.com/repos/vscode
Distribution:  stable
Components:  main
VSCode is installed and still runs.  About info:
Version: 1.39.2
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:33:40.634Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.3.0-19-generic
If I check for updates from within the app it says no updates available.  Not sure if this is a really issue or not.  I'm not a Linux expert so I could be barking up the wrong tree here.
Console log:
root@Tangles-Ubuntu:/home/chris# apt update
Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu eoan InRelease
Hit:3 http://archive.canonical.com/ubuntu eoan InRelease
Get:4 http://security.ubuntu.com/ubuntu eoan-security InRelease [88.4 kB]
Get:5 http://packages.microsoft.com/repos/vscode stable InRelease [3,938 B]
Hit:6 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease
Get:8 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages [148 kB]
Fetched 240 kB in 1s (167 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://packages.microsoft.com/repos/vscode stable InRelease' doesn't support architecture 'i386'

You seem to still have the 32-bit repo installed. Let's fix that by reinstalling VS Code:
# uninstall code
sudo apt remove code
sudo rm /etc/apt/sources.list.d/vscode.list
sudo apt update # should succeed now

# download code and reinstall it
wget -O ~/Downloads/code.deb https://update.code.visualstudio.com/latest/linux-deb-x64/stable
sudo dpkg -i ~/Downloads/code.deb
sudo apt update # should keep succeeding from now on

This worked.  Thanks a million.  Marking this as Closed.


Macauff pipeline boilerplate

Change Description

creates the basic boilerplate for the macauff import pipeline.
part 1 of #147

creates the MacauffArguments dataclass
creates a runner for the macauff import
creates a full test suite for MacauffArguments
creates some placeholder tests for the import runner
[x] My PR includes a link to the issue that I am addressing

Solution Description

implementation partially based on #126 .
Code Quality

[x] I have read the Contribution Guide
[x] My code follows the code style of this project
[x] My code builds (or compiles) cleanly without any errors or warnings
[ ] My code contains relevant comments and necessary documentation

Project-Specific Pull Request Checklists

New Feature Checklist

[x] I have added or updated the docstrings associated with my feature using the NumPy docstring format
[ ] I have updated the tutorial to highlight my new feature (if appropriate)
[x] I have added unit/End-to-End (E2E) test cases to cover my new feature
[ ] My change includes a breaking change

[ ] My change includes backwards compatibility and deprecation warnings (if possible)

One more! Can you run black on all the changed files before merging?


Add AuditSink object support to explain command

When I issued command like following :
k explain auditsink
it says that server does not have a resource type "auditsink".

I want do develop this feature but I don’t find where to add necessary files for AuditSink

Does auditsink show in the output of kubectl api-resources?

nope, I think I need to enable first right I remember it


Report full info for BoringSSL errors

Implement the utility function to get full BoringSSL error codes and messages, from the error stack, and report them in IOExceptions returned from SecureSocket functions.
This is ThrowIOException() in runtime/bin/secure_socket.cc

Fixed by https://codereview.chromium.org/1386023003/


Code blocks don't have dark theming

Describe the bug
Code blocks don't have dark theming making them fairly illegible.
To Reproduce
When in dark theme, view any embedded code block.
Expected behavior
Code blocks should be themed.
Screenshots

Desktop (please complete the following information):

OS: Android
Browser Firefox
Version 121

Fixed in https://github.com/OctoNezd/oldlander/commit/cffb32ad02eb2deafc1cbc5db70c5abafe5c6e84


How to use custom scalars

I have a schema with this custom scalar:
scalar DateTime

When I run the tests, I get this error: "No mock defined for type "DateTime".
My current workaround is converting that to strings like this:
cy.mockNetwork({
  schema: schema.replace('DateTime', 'String'),
});

ping @warrenday

Hey, I should include this on the main readme. To use custom scalars you need to load them into mock network so the mock GraphQL server running on the client is aware of how to handle them.
What I usually do is create a custom command which applies any "setup" in one place. So here in a recent project, I have the following inside support/commands.ts
import { mocks as scalarMocks } from 'graphql-scalars';

// Maybe you have some sensible default mocks you always want in every test
export const globalDefaultMocks = {
  Query: () => ({
    getAccount: () => ({
      id: 'a4c49b77-aaba-499b-81aa-eb230f2a73c6',
    }),
  }),
};

const setupMockNetwork = () => {
  cy.readFile('./graphql.schema.json').then(schema => {
    cy.mockNetwork({
      schema,
      mocks: {
        ...scalarMocks,
        ...globalMocks,
      },
    });
  });
};
Cypress.Commands.add('setupMockNetwork', setupMockNetwork);

Then later in tests, you can just do
describe('Account - Billing', function() {
  beforeEach(() => {
    cy.setupMockNetwork();
    cy.mockNetworkAdd({
      Mutation: () => ({
        createSubscription: () => ({
          planId: '23234',
          status: 'active',
        }),
      }),
    });
  });

  it('', () => {
    cy.visit('http://localhost:3000/account/billing');

    // Add more mocks or run some tests here
  })
});

@warrenday thanks for the answer. The issue with that approach is that all my mocked types (dates or JSONs) will be the same, right? I won't be able to load them from my fixture. For example, I have a fixture like this:
{
  "product": {
    "id": "83183027-1f1b-4ff2-98b1-85439c8f1edd",
    "created": "2020-11-05T16:27:41.589000+00:00",
    "jsonThing": "{\"test\": true}"
  }
}

When I add a DateTime or JSONString mock, it basically forces me to use a single value, not being able to check if I'm loading from the correct property, right?
cy.mockNetwork({
  schema,
  mocks: {
    DateTime: () => '2021-01-01',
    JSONString: () => JSON.stringify({ fromTest: true }),
  },
});

That means that all my DateTime types will be the same and all my JSONString types will be the same as well. When I console.log the root and args, I get undefined, so I can't use that to figure out where to pull the data from either.

Those mocks just need to exist to prevent GraphQL from complaining that they are missing. Then you can apply dynamic mocks through the mocking of specific queries/mutations. These resolvers should then take precedent.
Here for example args will be populated inside the getProduct resolver, so you can provide different responses given different input.
cy.mockNetwork({
  schema,
  mocks: {
    DateTime: () => '2021-01-01',
    JSONString: () => JSON.stringify({ fromTest: true }),
    Query: () => ({
      getProduct: (root, args) => ({
        "id": "83183027-1f1b-4ff2-98b1-85439c8f1edd",
        "created": "2020-11-05T16:27:41.589000+00:00",
        "jsonThing": "{\"test\": true}"
      })
    })
  },
});

I confused things above by including the root, arg parameters in the scalar resolvers. (sorry about that).

something feels off here, maybe I'm missing something, but I'm getting lots of random values instead of my mocked values. For example:
beforeEach(() => {
  cy.readFile('src/graphql/__schema.graphql').then((schema: string) => {
    cy.mockNetwork({
      schema,
      mocks: {
        DateTime: () => '2021-01-01',
        JSONString: () => JSON.stringify({ fromTest: true }),
        Query: () => ({
          products: (_: unknown, p: QueryProductsArgs) => {
            expect(p.limit).to.be.eq(10);
            expect(p.offset).to.be.eq(0);
            return listResult;
          },
          product: (_: unknown, p: QueryProductArgs) => {
            expect(p.id).to.be.be.eq(singleResult.data.product.id);
            return singleResult;
          },
        }),
      },
    });
  });
});

When I console.log my component, it shows me lots of random 'Hello World' strings:

But this has nothing to do with my fixture files:

Ah, that makes perfect sense. Thanks!


CLOUDP-210137: Fix major upgrade test & release

The new file major-version marks our intent to release a  new version of such major version. This specially important when the previous version was on an older major version. Using this explicit versioning we can:

Skip tests that cannot work across major versions, like helm update.
Avoid us from releasing by mistake an old major version using code intended for the newer major version.

✅ e2e test helm update
All Submissions:

[X] Have you signed our CLA?

While I don't see any problem merging this, I think this requires further discussion on how to approach new releases vs a master branch ahead of it.
For example, the 1.9.1 release was done from a different branch that never returned to the master. With that, the release of 2.0 was showing changes that were already released 1.9.1 and generating wrong data on the Openshift CSV

While I don't see any problem merging this, I think this requires further discussion on how to approach new releases vs a master branch ahead of it. For example, the 1.9.1 release was done from a different branch that never returned to the master. With that, the release of 2.0 was showing changes that were already released 1.9.1 and generating wrong data on the Openshift CSV

I agree. We should not have to rely on a branch to re-release an older patch version. But I do not have a good solution yet.
This is a fail safe we can use until we get a better approach IMHO.


Your project is good example of learning LWM2M. Can you give webpack.config.js of this project?

Hi, @simonjhy !
This project dependencies are out of date. Now, coap-shepherd and coap-node come to v0.2.7.
If you want to reference webpack.config.js. You can refer to these project:

webpack v1.x: quick-demo-boilerplate
webpack v3.x: freebird-demo

Thanks Perter.
Did you have the source js codes for index.js? I want to learn how the web and coap sever communicate with websocket. I am beginner of nodejs and coap.:)


feat: tailwind border-radius code

Added tailwind code generator for border radius property
Fixes Issue
My PR closes #issue_number_here
👨💻 Changes proposed(What did you do ?)
✔ Check List (Check all the applicable boxes)

[] My code follows the code style of this project.
[] This PR does not contain plagiarized content.
[] The title and description of the PR is clear and explains the approach.

Note to reviewers

📷 Screenshots

PR Compliance Checks
Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project.  The results are listed in the  following section.
Issue Reference In order to be considered for merging, the pull request description must refer to a specific issue number. This is described in our Contributing Guide. This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue number that this PR is meant to address.

@aqsaaqeel

https://github.com/Dun-sin/Code-Magic/pull/419/commits/491d9c589ca44254ec22e14accb7d5ab24968a92
This is the latest commit that tackles the issue of hard-coded values and now can take any arbitrary value. I have tested the code that is generated when clicking on "copy tailwind code" button on this sandbox and it works.
This layout 👇

produced this 👇 border-radius style

Note: The issue that I faced initially was that Tailwind versions below 2.1 did not support arbitrary values. They had to be hard-coded. Only Tailwind version3.0 and above allow arbitrary values to be used on the go. otherwise in versions 2.0-2.9 have to include a JIT mode in config file to allow arbitrary values.
I have a simple suggestion of adding a note for the user on the website to show that the code that is generated is supported by Tailwind version 3.0.

I have made the changes but I am facing some issues with the commit not being on the branch that I created. @Dun-sin can you help out?

https://github.com/Dun-sin/Code-Magic/pull/419/commits
This is the latest commit that tackles the issue of hard-coded values and now can take any arbitrary value. I have tested the code that is generated when clicking on "copy tailwind code" button on this sandbox and it works.
This layout 👇

produced this 👇 border-radius style

Note: The issue that I faced initially was that Tailwind versions below 2.1 did not support arbitrary values. They had to be hard-coded. Only Tailwind version3.0 and above allow arbitrary values to be used on the go. otherwise in versions 2.0-2.9 have to include a JIT mode in config file to allow arbitrary values.
I have a simple suggestion of adding a note for the user on the website to show that the code that is generated is supported by Tailwind version 3.0.

Most people will use the latest anyway. So not a problem

I have made the changes but I am facing some issues with the commit not being on the branch that I created. @Dun-sin can you help out?

I don't understand what you mean, I see the commit in this PR, the only problem is the vercel build error

I have made the changes but I am facing some issues with the commit not being on the branch that I created. @Dun-sin can you help out?

I don't understand what you mean, I see the commit in this PR, the only problem is the vercel build error
I am unable to view the vercel build details, how do i check why my build is failing?

I have made the changes but I am facing some issues with the commit not being on the branch that I created. @Dun-sin can you help out?

I don't understand what you mean, I see the commit in this PR, the only problem is the vercel build error
I am unable to view the vercel build details, how do i check why my build is failing?

You can run npm run build will be the same error that you get

I have made the changes but I am facing some issues with the commit not being on the branch that I created. @Dun-sin can you help out?

I don't understand what you mean, I see the commit in this PR, the only problem is the vercel build error
I am unable to view the vercel build details, how do i check why my build is failing?

You can run npm run build will be the same error that you get

So I looked into this. The reason my build is failing is that I am adding another parameter to this function copyTailwindCodeToClipboard(attribute, outputElement); so now I need to add the second parameter in all the files which are calling this function.
This worked for all other files but when I go to input-range.ts file, this does not work because We are not returning a similar getOutput function here. So I need to make a few more changes in this file. Should I go ahead and make those changes?

I have made the changes but I am facing some issues with the commit not being on the branch that I created. @Dun-sin can you help out?

I don't understand what you mean, I see the commit in this PR, the only problem is the vercel build error
I am unable to view the vercel build details, how do i check why my build is failing?

You can run npm run build will be the same error that you get

So I looked into this. The reason my build is failing is that I am adding another parameter to this function copyTailwindCodeToClipboard(attribute, outputElement); so now I need to add the second parameter in all the files which are calling this function.
This worked for all other files but when I go to input-range.ts file, this does not work because We are not returning a similar getOutput function here. So I need to make a few more changes in this file. Should I go ahead and make those changes?

You can make the second argument optional

@Dun-sin I've made the second parameter optional as you advised and the build is not breaking. Can you review?

It works🔥

:tada: This PR is included in version 2.58.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

It works🔥

Thank you @Dun-sin for helping out!


Mouse Without Borders - Content "Shared" between machines

Provide a description of requested docs changes
I have a doubt that the documentation didn't clarified!
In my house I have two computers, my personal one and one from my company.
I have them side by side and synced with Mouse Without Borders.
But I have concerns in all the information this "link" between them may be really sharing.
It is only the keyboard/mouse/usb's + the clipboard. Or it has a full view between them?
Plus, it has some Master/Slave system, or they both are connected on the "same way"?

we're fully open source, check out https://github.com/microsoft/PowerToys/blob/main/src/modules/MouseWithoutBorders/App/Class/Common.Package.cs
It is basic data so on remote machines we can determine how to move the mouse and what keystroke needs to be sent over.
/helped


Updated visibility of reflected trait

Objective
The #[reflect_trait] macro did not maintain the visibility of its trait. It also did not make its accessor methods public, which made them inaccessible outside the current module.
Solution
Made the Reflect*** struct match the visibility of its trait and made both the get and get_mut methods always public.

bors r+


add support for arguments in secrets_tester.ps1

What does this PR do?
add support for arguments in secrets_tester powershell script
Motivation
Needed to test passing arguments using ths script before
Additional Notes
Since this isn't part of a release, not sure if I need release notes
Describe your test plan

https://docs.datadoghq.com/agent/guide/secrets-management/?tab=windows#testing-your-executable

(no release note needed since this is a documentation script that's not shipped with the agent. The script is linked from this section of our secrets docs on the public docs website, for reference)

(no release note needed since this is a documentation script that's not shipped with the agent. The script is linked from this section of our secrets docs on the public docs website, for reference)

(this isn't really a docs update so I'll go ahead and merge without a review from the docs team)

(this isn't really a docs update so I'll go ahead and merge without a review from the docs team)


How disable htmlEncode in add a tag?

How disable htmlEncode in add a tag in itemText?
line 127:      var $tag = $('' + htmlEncode(itemText) + '');

What's the reason behind wanting to disable this?


Dispute text for GMC operations is not totally clear

There are 3 bullets like this

Anyone MAY file an RPIP disputing a grant, bounty, or retrospective award within two weeks of the announcement of recipients. Such an RPIP SHALL be subject to a snapshot vote.
If a majority of the GMC agrees that a grant recipient is failing to provide the specified services to the protocol in a timely manner (as documented in the original application and in subsequent monthly updates), the GMC SHALL publicly announce such a decision and cease any future payments. This decision MAY be disputed by anyone through the creation of an RPIP within two weeks of the GMC’s announcement. The RPIP SHALL be subject to a snapshot vote.
Any group or individual MAY submit a publicly-available document to the GMC claiming successful completion of the bounty. The GMC SHALL discuss all such applications. If a majority of the GMC agrees then the GMC SHALL announce the award of the bounty. Anyone MAY dispute the awarding of the bounty through the creation of an RPIP within two weeks of the GMC’s announcement. The RPIP SHALL be subject to a snapshot vote.

The term "creation an RPIP", is not as clear as it should be.
In discussion, https://discord.com/channels/405159462932971535/1143603646592987237/1143616540600717332, we thought it should be a merged Draft that was actively being pursued. This could be measured by having a Draft RPIP and an open sentiment poll.

Niche


Add drawable and judgement pooling

Also renames note sheet to star sheet.

The DHO pools for a HitObject will only be used if CreateDrawableRepresentation(HO) returns null for that particular HitObject. The HitObject will then be Add()ed to the Playfield. That alone will get the pools utilized, but there are further problems such as the StarSheet body being invisible, along with some others.

Going to hold off on this for now until ScrollingHitObjectContainer officially supports pooling.

@swoolcock Is this ready for review or does it depend on something osu!lazer-side?

@swoolcock Is this ready for review or does it depend on something osu!lazer-side?

Apparently this needs to be reworked since ScrollingHitObjectContainer pooling has a new, official implementation in lazer now.  I'll get it on it when I have a chance.

Closing in favour of upcoming work by @LumpBloom7


colored usernames

it'd be good to have this. afaik there is a chrome plugin that ads this in the browser.

Nimbus (irccloudapp) does not aim to be anything other than an good environment for irccloud.com to run in.
That said, you can load scripts. Any javascript file you put in ~/Library/Application\ Support/nimbus/Scripts will be loaded and injected when the app starts. And the javascript console output is written to ~/Library/Logs/nimbus.log if you need to debug.
You should be able to port that chrome plugin to nimbus pretty easily.


Adding Strings with AssemblyScript

let a = "b" + "c";

in AS code leads to following error when executed in the soroban-cli:
error: HostError
Value: Status(VmError(Validation))

Debug events (newest first):
   0: "Validation"

The easiest way to reproduce, is to use the files that I attached to this issue.
They are compiled from the example that I prepared here:
https://github.com/Soneso/as-soroban-examples/tree/main/some_issues
Code of the function add_str from the example:
export function add_str(): RawVal {
  // let a = "b" + "c";
  return fromU32(1);
}

I have compiled the example and attached following files in this issue:

noadd.wasm and noadd.wat (line is commented in the AS code above before compilation)
addstr.wasm and addstr.wat (line is uncommented in the AS code above before compilation)

One can call their add_str function as follows:
soroban invoke --wasm noadd.wasm --id 1 --fn add_str

and
soroban invoke --wasm addstr.wasm --id 2 --fn add_str

issue_addstr_files.zip
see also:
https://github.com/stellar/sorobanathon/discussions/25

I'm not familiar with the AssemblyScript SDK and in any event I think this is an issue to take up with that SDK, not the soroban environment crate.

Apologies, I misunderstood -- this bug is a request to change the env to provide missing hooks that the AS SDK needs, I guess?

Hello @graydon,
Thank you for looking into this.
I'm not sure if we need the missing hooks, because I am unable to find out why the validation fails. Info about the runtime is described here. I am using stub:
... stub runtime does not provide a garbage collector at all and never frees (simple bump allocation, extremely small)....
And the hooks, described in the docs as interface are not needed, as least not in this case.
I created a very simple contract to reduce as much overhead as possible:
export function testStr(): val.RawVal {
  return 21 as val.RawVal;
}

This gives me a wasm as follows: nostr-stub.wat. Which is perfectly working.
But if I add the string op:
export function testStr(): val.RawVal {
  let a = "a" + "b"
  return 21 as val.RawVal;
}

It gives me str-stub.wat. Which looks fine for me, but fails with VM Validation error.
As you can see no hooks are used. Therefore I am not sure if we need the hooks. Unfortunately I can not find out why the validation fails.
I also tried with the option --exportRuntime. In this case it wants to use the env hooks. See: export.wat. But the wasm is huge ... and I would like to avoid that.
Wasm files attached: as-wasm.zip


API cleanup: turn DataSource, Table and Query into interfaces

Also make implementation less obscure by dropping the use of package-private constructors.


pennylane-lightning-core is broken on osx-arm64

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
>>> import pennylane_lightning
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/leof/miniforge3/envs/pny/lib/python3.10/site-packages/pennylane_lightning/__init__.py", line 17, in <module>
    from .lightning_qubit import LightningQubit
  File "/Users/leof/miniforge3/envs/pny/lib/python3.10/site-packages/pennylane_lightning/lightning_qubit.py", line 47, in <module>
    from .lightning_qubit_ops import (
ImportError: dlopen(/Users/leof/miniforge3/envs/pny/lib/python3.10/site-packages/pennylane_lightning/lightning_qubit_ops.cpython-310-darwin.so, 2): no suitable image found.  Did find:
	/Users/leof/miniforge3/envs/pny/lib/python3.10/site-packages/pennylane_lightning/lightning_qubit_ops.cpython-310-darwin.so: mach-o, but wrong architecture
	/Users/leof/miniforge3/envs/pny/lib/python3.10/site-packages/pennylane_lightning/lightning_qubit_ops.cpython-310-darwin.so: mach-o, but wrong architecture

I guess there might be some CMake flags that I didn't set up right in #20 for cross compilation... 😞
Installed packages
n/a

Environment info
n/a

Submitted https://github.com/conda-forge/admin-requests/pull/703 to mark the osx-arm64 packages as broken.


can't install on macOS 14.5: "zsh: command not found: brew"

OS/Platform
macOS
Installed
OS/Platform's package manager
Version
idk cuz i cant install it
Have you tested that this is not an upstream issue or an issue with your configuration?

[ ] I have tried reproducing this issue in Chrome and it could not be reproduced there
[ ] I have tried reproducing this issue in vanilla Chromium and it could not be reproduced there
[ ] I have tried reproducing this issue in ungoogled-chromium with a new and empty profile using --user-data-dir command line argument and it could not be reproduced there

Description
can't install on macOS 14.5: "zsh: command not found: brew"
How to Reproduce?

install homebrew on mac
paste brew install --cask eloston-chromium into terminal

Actual behaviour
terminal says "zsh: command not found: brew"
Expected behaviour
installs the browser
Relevant log output
No response
Additional context

update: i am an idiot and did not do the next steps after installing homebrew lol. it now worked


separation of resource handle and database table name along with adding dot notated namespaces

implement with v0.14


No -O option

please support -O, -o, -p vim option

Mhh, these are actually difficult to implement with a normal arguments parser.
Vim allows consider as equivalent the following:
eovim -p a b
eovim -p0 a b

From the efl getopt perspective, in the first case, a will be the short option for -p.
The good solution would be to use -- to separate the arguments from the options:
eovim -p -- a b

But I concede this is a cumbersome notation. Would it be okay if -p (and the whole family) would be split into short options without argument (-p) that are equivalent to -p0 and long options --tabs that would require to explicitely provide the number of tabs/splits?

I'll go with something like this, if this does not suit you, please let me know and feel free to re-open the issue.


Add icon for Gandi

Hello again! This one addresses #437

[x] New file which is under 1,024 bytes
[x] Edit Readme
[x] Add reference image
[x] Edit reference page
[x] Android Image

Woo! Nice one.


AttributeError: 'NoneType' object has no attribute 'keys'

Hi. I have run a coding. And I got this error.
AttributeError: 'NoneType' object has no attribute 'keys'
I am new in this. Can someone help me?

Hi @sofeah98 , there might be many reasons why you get this error and it is hard to narrow down the root cause without a minimal code sample that reproduces the error.
I think asking on stackoverflow.com might be the best place to start. Of course, it's possible that this error is caused by an issue in TF Hub, in which case feel free to reopen this issue.


feat: Add Native Spot Termination Handling

Fixes #702
Description

Adds native handling for spot termination by introducing two new controllers to the AWS cloud provider: aws/controllers/nodetemplate and aws/controllers/interruption
aws/controllers/nodetemplate is responsible for reconciling the desired state of Karpenter AWS infrastructure with the current state
aws/controllers/nodetemplate is also responsible for cleaning up the infrastructure when all AWSNodeTemplates are removed
aws/controllers/interruption is responsible for polling the SQS queue and cordoning and draining instances that it receives notifications for from the SQS queue

How was this change tested?

make test
FOCUS=Interruption make e2etests

Does this change impact docs?

[ ] Yes, PR includes docs updates
[x] Yes, issue opened: #
[ ] No

Release Note

Add Native Spot Termination Handling

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Discussed offline. Thoughts on a vendor neutral AwaitDisruption() cloudprovider API to guarantee behavior conformance between providers. This should help us if we ever want to deal with voluntary disruptions, integrate with consolidation, or change how kubectl delete nodes works under the hood.

Any thoughts on how to break up this PR into individually reviewable chunks?

🎉

here's the 1st part for IAM policies https://github.com/aws-ia/terraform-aws-eks-blueprints/pull/1145
once 0.19 comes out , I can test the ConfigMap and the renamed SETs

Hi ! Does this PR mean that it is no longer recommended (or necessary) to install the aws/aws-node-termination-handler resource ?
Thanks!

Hi ! Does this PR mean that it is no longer recommended (or necessary) to install the aws/aws-node-termination-handler resource ?

Yep. You can continue to use it, if you prefer.

Is there any new setup for this , I do not see any docs about the new interruption controller, any help if be awesome.

https://karpenter.sh/v0.21.1/concepts/deprovisioning/#interruption

are there updated docs on how to implement this? The above link goes to a page not found. Also, what is the minimum supported version of karpenter that this was introduced in?

https://karpenter.sh/v0.30/concepts/deprovisioning/#consolidation
I think its under here

@sap147

https://karpenter.sh/v0.30/concepts/deprovisioning/#consolidation I think its under here


Question on api_swagger_cors example

After replacing <> and <>, I successfully created a stack for this example along with lambda invoke permissions, but when I test the api methods, it fails with a permission error even if I specify the lambda function name in 'Stage Variables -LambdaFunctionName'.
So I changed the target lambda function name from '${stageVariables.LambdaFunctionName}' to the real function name in the 'Integration Request' section and it works ok, but I don't think it is necessary.
So I'm wondering if I'm missing something.

I am seeing the same problem in the example as well. The SAM template is giving a missing parameter exception saying the StageName was not specified, but when I do specify it, still get the same error.

On API Gateway console, can you look under StageVariables tab for the value of LambdaFunctionName stage variable? This should be name of the Lambda function you created. This link will roughly tell you where the StageVariables tab is.

Yes, it has it.
I think the issue is because the API doesn't have a permission to run the Lambda function, which is NOT in the swagger.yaml file.
Don't we need to add the permission in 'x-amazon-apigateway-integration' - 'credentials' in the swagger.yaml file?

I found the issue. It works well when I run it, but the problem is when you try to test it in the API Gateway console. You'll receive "internal error" because of no permission when you test the method.
I usually test it first before running it after deployment, so I didn't know it works when it runs. So maybe it will be better for you guys to fix this.


Unable to cast object of type 'Glimpse.Ado.AlternateType.GlimpseDbConnection' to type 'System.Data.SqlClient.SqlConnection'.

I know this has been tackled before, but I have tried the solution of upgrading Glimpse.EF6.
I am wondering if the problem is that I have not uninstalled a previous version of Glimpse properly. I use Nuget to do that.
My situation is that I upgraded my application to use the new features in .Net framework 4.5. The intention is to use MVC 5 and EF 6.
However I am getting this error both times; when i upgrade to Glimpse.EF6 AND when I uninstall Glimpse altogether. I am wondering if the uninstall did not work properly, but I cannot see any trace of Glimpse in my application now.
The details from the event viewer are;
An unhandled exception occurred and the process was terminated.
Application ID: 87ce89ef

Process ID: 15788

Exception: System.InvalidCastException

Message: Unable to cast object of type 'Glimpse.Ado.AlternateType.GlimpseDbConnection' to type 'System.Data.SqlClient.SqlConnection'.

StackTrace:    at System.Data.SqlClient.SqlCommand.set_DbConnection(DbConnection value)
   at System.Data.Common.DbCommand.set_Connection(DbConnection value)
   at System.Data.Entity.Internal.InterceptableDbCommand.set_DbConnection(DbConnection value)
   at System.Data.Common.DbCommand.set_Connection(DbConnection value)
   at System.Data.Entity.Core.Common.Utils.CommandHelper.SetStoreProviderCommandState(EntityCommand entityCommand, EntityTransaction entityTransaction, DbCommand storeProviderCommand)
   at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.PrepareEntityCommandBeforeExecution(EntityCommand entityCommand)
   at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.<ExecuteStoreCommandsAsync>d__c.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.<ExecuteAsync>d__0`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Data.Entity.Core.Objects.ObjectContext.<ExecuteInTransactionAsync>d__3b`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Data.Entity.Core.Objects.ObjectQuery`1.<GetResultsAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Data.Entity.Core.Objects.ObjectQuery`1.<<System.Data.Entity.Infrastructure.IDbAsyncEnumerable<T>.GetAsyncEnumerator>b__1>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Data.Entity.Internal.LazyAsyncEnumerator`1.<MoveNextAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.<ForEachAsync>d__5`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at SCD4.Repository.CompanyRepository.<GetCompaniesAsync>d__13.MoveNext() in c:\Users\geoffreypayne\Documents\Visual Studio 2010\Projects\MVC4\SCD4\SCD4.Repository\CompanyRepository.cs:line 149
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at SCD4.MvcApplication.<GetCompaniesAsync>d__5.MoveNext() in c:\Users\geoffreypayne\Documents\Visual Studio 2010\Projects\MVC4\SCD4\SCD4\Global.asax.cs:line 98
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at SCD4.MvcApplication.<CacheDbAsync>d__1.MoveNext() in c:\Users\geoffreypayne\Documents\Visual Studio 2010\Projects\MVC4\SCD4\SCD4\Global.asax.cs:line 92
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(Object state)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

I have this exception with the latest glimpse:
Glimpse.Core 1.8.6
Glimpse.Ado 1.7.3
and
EntityFramework 6.1.2

Same issue with Glimpse.Ado 1.7.3

I found a weird problem here. When I tried to add the Glimpse, Glimpse.Mvc5 and Glimpse.EF6, it appeared that these references got added into the solution but in actual Glimpse.EF6 was not added. So I added this one manually from the downloaded package for Glimpse.EF6 and it worked for me.


Duplicate elements in

The output of prerender appears fine on disk, e.g.:
<!DOCTYPE html>
<html lang="he" dir="rtl">

<head>
    <meta charset="UTF-8">
    <style type="text/css">
       ...
    </style>
    <link rel="icon" href="/assets/logo-189b1cf6.svg">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="module" crossorigin="" src="/assets/index-5bd76bc5.js"></script>
    <link rel="stylesheet" href="/assets/index-de5a37e2.css">
</head>

...

But when loading the prerendered page in a browser, some elements in <head> get duplicated, e.g. the <style>, and some <meta> (omitted for clarity).
Is this because the javascript in the page is essentially executed twice? Once by prerenderer, second time by the browser when loading the prerendered page? If so, how does the rest of the page look OK?
Thanks.

I disabled javascript and the duplication stopped.

Is this because the javascript in the page is essentially executed twice? Once by prerenderer, second time by the browser when loading the prerendered page? If so, how does the rest of the page look OK?

Yes exactly, if you are using vue, the page looks ok because it's rerender on top of the existing elements
The issue is that your scripts are adding script , head or other tags outside of your application that are not checked for uniqueness by id or other systems
To prevent this you can check for if (window.__PRERENDER_INJECTED || process.env.node_env !== 'production') before adding your scripts and styles (or the opposite if (!window.__PRERENDER_INJECTED)) to only output execute the part that edits the markup when prerendering or not prerendering based on your preference (the first option is a bit harder to handle because you might still want to execute the code in dev mode when the plugin doesn't exists which is why I added process.env.node_env which might not be defined in your bundler)


Possible issue with FIRQ pending interrupt clearing

Describe the bug
I am working on some changes to add support for the NEORV32 XIRQ interrupt controller to Zephyr, and have a setup that is mostly working. (I am planning to submit it upstream once it's debugged.) However, I'm running into an issue where XIRQ interrupts seem to stop being processed, and have narrowed it down what I think is an issue with how the CSRC instruction is being handled. I added some debug probes into the synthesized design in Vivado to try to see what is going on, and I suspect the CPU is not handling the FIRQ pending interrupt clearing properly.
The PC value shown corresponds to the following instructions which are part of the XIRQ interrupt handler:
35774:       010007b7                lui     a5,0x1000
35778:       3447b073                csrc    mip,a5
which should be clearing bit 24 in the MIP register, corresponding to FIRQ 8 for XIRQ, as far as I can tell. However, the logic capture seems to be showing that this results in ALL pending FIRQs being cleared out. So I suspect what is happening is that when another FIRQ handler runs, such as for the UART, it can sometimes end up clearing an XIRQ interrupt before it has a chance to be processed, resulting in an XIRQ interrupt hang.

In the Vivado ILA capture above, the neorv32_SystemTop_ax_0/U0/neorv32_top_inst/core_complex.neorv32_cpu_inst/neorv32_cpu_control_inst/csr[mip_firq_nclr][8]_i_1_n_0 signal corresponds (I think) to the state of the mip_firq_nclr value for FIRQ 8 which this instruction should be clearing, and it does, but you can see that mip_firq_nclr is also being pulsed low for the other used FIRQs (0, 2, 3, 12, 15) as well, and presumably shouldn't be.
Environment:

Zephyr RTOS (main branch with extra patches)
Zephyr SDK 0.16.5 with RISC-V GCC 12.2.0

Hardware:

NEORV32 version: Git commit beab81e6b96589b7922470a6db49136ad4afb676 from Feb. 16
Using top-level AXI Lite instantiation
Extensions A, B, C, M, Zicntr enabled, fast multiply, fast shift
GPTMR, MTIME, TRNG, UART0, WDT, on-chip debug enabled
XIRQ enabled with 8 channels
Building with AMD Vivado 2023.2 for a Kintex-7 FPGA

I suspect this code, in neorv32_cpu_control.vhd inside csr_write_data, may not be doing what was intended:

    -- tiny ALU to compute CSR write data --
    case execute_engine.ir(instr_funct3_msb_c-1 downto instr_funct3_lsb_c) is
      when "10"   => csr.wdata <= csr.rdata or tmp_v; -- set
      when "11"   => csr.wdata <= csr.rdata and (not tmp_v); -- clear
      when others => csr.wdata <= tmp_v; -- write
    end case;

It seems csr.rdata is set to 0 on cycles when no CSR read operation is in progress, so it's possible that it does not have the right data when this is executing. The symptoms would match a value of 0 being used rather than the actual MIP register content, causing the entire register to be zeroed.

It looks like doing a csr_write for the MIP register with the bit for the FIRQ being cleared as 0 and all other bits 1, rather than using csr_clear, can work around the problem in software, since writing 1 to bits in MIP has no effect. With this change I am only seeing the mip_firq_nclr bit for the desired interrupt going to 0 rather than all of them.

This issue should be fixed now.
Thanks again for finding this bug!

@stnolting It looks like the problem is not solved unfortunately - if I remove my previous workaround to use csr_write rather than csr_clear, and update the core, the same XIRQ hang eventually occurred, whereas with the workaround the system survived a test run for a significant period of time. And the change would actually break the workaround I was using as well, since writing 1 bits into MIP would now actually trigger those interrupts..

The code was using the csr_clear function in Zephyr which generates the assembly:
35774: 010007b7 lui a5,0x1000
35778: 3447b073 csrc mip,a5
which should be correct in terms of using an atomic clear instruction. It seems like the problem might be fairly timing dependent however, so a basic sequential test might not pick up whatever is happening?

35778: 3447b073 csrc mip,a5

This seems fine as this is an atomic CSR access.
Even if the according FIRQ source is firing right in that moment where mip is updated by software the FIRQ request should still be registered:
https://github.com/stnolting/neorv32/blob/4155b728f2b4cfcd4dfc2bc1dbf8f0b5cc7e68d6/rtl/core/neorv32_cpu_control.vhd#L1455-L1457
What is the actual "symptom" of your use case? Does the CPU miss an incoming FIRQ trigger?

I made some more tests and now I can confirm that a FIRQ trigger gets lost when it arrives exactly 1 or 2 cycles right before doing any mip write/set/clear access. This is because a CSR clear/set instruction has 2 cycles latency (read CSR -> modify the data -> write back CSR).
I'll try to come up with another (better) fix 😅
I'll also check all further CSRw that have implicit updates (by the hardware).

@stnolting Basically yes, it appears that an XIRQ interrupt gets raised very close to the moment that a CSR clear to clear a different interrupt is happening, and that write incorrectly clears the XIRQ interrupt as well. That means the XIRQ ISR never runs, and so because the first interrupt source is never cleared in XIRQ, it never raises any more interrupts. I think the latest issue you discovered likely explains what is going on there.

This was harder to fix then I have expected... 🙈 But I think mip works now as expected.
-> #829

My stress test ran over the weekend with no errors without the software workaround in place, so I think it's safe to say this is now resolved.


Cell click opening event editor with editable = false

Hi,
It looks like after the last updates, cell click is firing the "New Event" dialog, even when editable prop is set to false.

@alantygel double check if you are using an older version
The editable feature added in version https://github.com/aldabil21/react-scheduler/releases/tag/2.7.21
If you think this still is an issue, feel free to re-open


License for the benchmarks and this repo

Hello. I saw your post on HN and wanted to maybe add your Ruby benchmark to YJIT's benchmark suite so that we can track and improve performance over time :)
However, I didn't see a license in this repo. Could you add an open source license to this repo in a LICENSE file? Would you be willing to use a CC-0 (Creative Commons Public Domain) license, just to make it as easy as possible for people to reuse the benchmarks?

Just added CC0. With contributions from many developers, this is not my own work. Happy to make it public domain.


Errors Thrown from here are not handled

I'm trying to use DDMathParser in its simplest form of the copy and pasting the code provided in the Wiki and i get the error that is in the title of this issue for this code.
let value = try "1 + 2".evaluate()
Im using Xcode 7 with Swift 2 and installed DDMathParser with CocoaPods.

As mentioned on the [[Errors]] wiki page, you need to perform this within a do ... catch block.
I'll leave this open as a request to expand the wiki article on how to effectively deal with errors.

but where the right way example? i create a new blank project anh write the first example code is
let value = try "1 + 2".evaluate()
and get this error? please help for begining useer! Thank you so much!

@kanjizu Im not sure why he is not putting fully working code in the Documentation but here is what you need to do.
do {
    let value = try "1 + 2".evaluate()
} catch {
    print(error)
}


Pipeline YAML does not work for us

Hi,
I'm far from a coder, but I've been tasked with resolving MTA-STS for our systems.
I'm hoping to resolve using this page. It's easy to follow except the YAML code instructed to be copied to the pipeline.
It simply doesn't work. I've done my best as a none YAMl user to understand what is wrong, but I can't the best I can get is that the submodules: true line is where the problem is.
Hoping to resolve internally but it may be helpful to explain the code on this page, so other people and myself can understand what's being implemented.
Kind regards,
Paul
[Enter feedback here]

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

ID: 7d79cb8a-81c1-1edb-c13c-cb7f14225149
Version Independent ID: 7d79cb8a-81c1-1edb-c13c-cb7f14225149
Content: Enhancing mail flow with MTA-STS  - Microsoft Purview (compliance)
Content Source: microsoft-365/compliance/enhancing-mail-flow-with-mta-sts.md
Service: o365-seccomp
GitHub Login: @Benny-54
Microsoft Alias: v-bshilpa

@Benny-54 Please help us in resolving this issue. Thanks


Use multi stage build to optimize image size

This will give you an image with very low size (25 MB on my machine)
I only tested it by running docker run <image> and make sure it's not throwing errors out of the box

Thanks Ahmed, it's working fine with me.
i am very busy and i just check my repo today, sorry for delay.


Track/bulk api

Please read: Spec
I will be shipping a series of updates to this PR and updating its description for ease of code reviews.
Part 1

Update .track() endpoint to use the Bulk Event API.
Implement locking logic for redis storage and lookup
Write tests

@tsholmes

into master? i wonder if it makes more sense to keep the bulk version on a separate branch while we run the two in parallel

@sperand-io agreed -- will make it easier for us to manage both versions.
@tsholmes how would this affect the cutting of releases for this integration? Since if we update the versioned integration branch in the future, we wouldn't want to cut the release like we normally do...not that it really matters to do this for versioned integration since we just point to a commit sha but I still like the idea of keeping a nice clean changelog/release notes for the versioned branch. I'm thinking we could simply ignore the versioned branch and just manually keep track of HISTORY.md and package.json and then in the future when we migrate 100%, we could just push the release diffs in order for master?

I think "cutting a release" for versioned integrations isn't really necessary, as the major.minor.patch version tags themselves have no meaning in the versioning system. We probably shouldn't really be tagging them. If we do, each dated version should have a matching major version, and then the minor and patch version will change on that branch.
In terms of branches, right now it seems like we have 2 processes for versioned integrations.

Put the new version on master
Intended to be the default version
All updates go to newest version
Difficult/impossible to ship updates to older version
Put the new version on  v2/2.x branch
Intended to be experimental
Updates can be made to both versions
Difficult to find/reason where the running code is
Only really scales to 2 versions

I'd like to see a slightly different process

latest version is always on master
when new version is cut, the previous version is made into a branch with the version name (2016-06-05)
circle.yml modified to deploy on any branch that looks like a version date and master

@tsholmes sgtm -- just made the 2016-10-26 branch as the original master


Federated cognito-at-edge

I have a lamnda@edge function that is configured to call cognito user pool with relevant parameters. Cognito is using SAML provider. When cloudfront is configured to use the lambda@edge (viewer request) the application is giving a CORS error. Any help is appreciated!
Is there a way to set identity_provider and scope with in the code?

Hi @nagendrakumar02 ,
There's is currently no way to configure a specific value for identity_provider and `scope when using cognito-at-edge. However, as detailed in the docs, these parameters are optional and Cognito uses sensible default values. My knowledge of SAML is limited (I've only used OIDC providers with Cognito), but unless I am mistaken it does not have auth scopes anyway.
Are you sure that the issue occurs when the /authorize endpoint is called? You should be able to view the Lambda@Edge logs if you find the region the function executions happened.

Hi @jeandek,
I was able to get it working by forking the code and added 2 optional parameters (idprovider and scope). If the 2 parameters are set, it is appended to the redirect url. This has fixed my issue.

Hum, that's probably something we should make configurable then, if it's required for SAML provider.
Can you shared any more specific details about the SAML providers you've been using? Are they MIcrosoft AD or something else? I'll try to add a SAML provider to my test setup.

Sure, I can submit a PR for the change. SAML IdP is from a 3rd party, I don’t know what they are using. The good thing is as long as the IdP supports SAML, we can just set these parameters and cognito will work seamlessly.
So, I can do this in my @.*** and works very well
const { Authenticator } = @.***/cognito.at.edge');
const authenticator = new Authenticator({
// Replace these parameter values with those of your own environment
region: 'us-west-2', // user pool region
userPoolId: 'us-west-2_dddF', // user pool ID
userPoolAppId: '444feerr7', // user pool app client ID
userPoolDomain: 'cognito.amazon.com, // user pool domain
idpIdentifier: 'hgebf', //idprovider name
scope: 'openid', //scope, openid for saml
});
exports.handler = async (request) => authenticator.handle(request);
From: Jean de Kernier @.>
Date: Wednesday, January 11, 2023 at 11:58 AM
To: awslabs/cognito-at-edge @.>
Cc: nagendrakumar02 @.>, State change @.>
Subject: Re: [awslabs/cognito-at-edge] Federated cognito-at-edge (Issue #55)
Hum, that's probably something we should make configurable then, if it's required for SAML provider.
Can you shared any more specific details about the SAML providers you've been using? Are they MIcrosoft AD or something else? I'll try to add a SAML provider to my test setup.
—
Reply to this email directly, view it on GitHubhttps://www.google.com/url?q=https://github.com/awslabs/cognito-at-edge/issues/55%23issuecomment-1379165452&source=gmail-imap&ust=1674061090000000&usg=AOvVaw3GRjhgr4IgI_ip02gseDJR, or unsubscribehttps://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/AY4N7ZJOQPRIPI7VODC274TWR3RCDANCNFSM6AAAAAATUE4IZI&source=gmail-imap&ust=1674061090000000&usg=AOvVaw2XM7zgAmBo7gjIDLfUG-cy.
You are receiving this because you modified the open/close state.Message ID: @.***>


Allow easy accepting/rejecting changes from both versions on save conflict

This is the same as #47250 which is closed and locked, but I will try to explain in more detail.
Normally when there is an SCM merge conflict I can do a side by side comparison, can navigate conflicts one by one and can choose which version to keep (or to keep both) by using commands or buttons on the UI in addition to manual editing.
However, when there is a save conflict (the file I am trying to save has been modified elsewhere since I opened it) I get an error. I can then click "Compare" and get a side-by-side comparison. I can navigate differences with the arrows on top of the editor but crucially I have to manually copy and paste wanted changes from the on-disk version onto the VS Code version if I want to keep them.  There are buttons that allow accepting my changes and discarding my changes, which are both all-or-nothing operations; there is no easy way to merge a bit of both.
Instead, it would be nice to have buttons/commands that allow accepting changes one at a time, from either source in the same way as a merge conflict.

cc @bpasero

Hello,
I have the same problem. I am new to VSC and VSC is so unbelievably great! I love it. But what I can not understand at all, that this absolutely basic feature is not present!
What we want is a  <= and => Icon on each changed line that allows me to copy the changes to the other side/document, which actually  means "accept the change" or "discard the change"
Please see example mock below with the blue icons below.

@joaomoreno : Please note. As you added the git-merge Flag/Label. What ezk84 and I mean is  not only for git merges but for general file merges!
You can have a look at the open source software "Win Merge" which has a great interface for doing that kind of merges. https://winmerge.org/?lang=en
Thanks very much.

@bpasero This is about non-scm save conflicts.


⚠ Bofrost.at has degraded performance

In 6c6dd7f, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1504 ms

Resolved: Bofrost.at performance has improved in 206d403.


Fix occure the NPE when SpringMVC and hystrix work together

Please answer these questions before submitting pull request

Why submit this pull request?

[x] Bug fix

[ ] New feature provided

[ ] Improve performance

Related issues
#1238

Coverage remained the same at 23.499% when pulling 4a1846d98fb77e93a1b51bc7757e425d5fba4c5f on ascrutae:fix/hystrix-springmvc into d55640454ee63b151272f043697f8779bb6cdd50 on apache:master.

ok,I will test in last case

I had fix this. maybe you can try

Here is the test report

Here is the test report

Thanks. Continue to wait for @candyleer feedback. :)

test passed.

Thanks.


improve user id issues

One possibility is to root and chmod 666 everything that is mounted or shared

With Podman, we won’t need root privileges.

Yes, I would love to completely move to podman, however, there are people that want to build in OSX..

We can use podman if it is available, and fall back to docker otherwise.

We added all three normal users to bolos 1000, 1001, 501. That covers the typical development environment and does not force people to install podman


Handle manual acknowledgement in the ListenerContainer

This is addressed through https://github.com/spring-projects-experimental/spring-pulsar/issues/23


Clarify documentation by updating the path to kits

Fixes #1328

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

#sign-off


Getting error while running terraformer on google provider

Getting below error:
2023-04-26T05:11:12.776Z [ERROR] plugin.terraform-provider-google_v4.63.0_x5: Response contains error diagnostic: @caller=github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_attribute="" diagnostic_severity=ERROR diagnostic_summary="Value Conversion Error" tf_req_id=8f4a4a53-80a0-9b9a-5d77-c095be339355 @module=sdk.proto
diagnostic_detail=
| An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
|
| Received null value, however the target type cannot handle null values. Use the corresponding types package type, a pointer type or a custom type that handles null values.
|
| Path:
| Target Type: google.ProviderModel
| Suggested types Type: basetypes.ObjectValue
| Suggested Pointer Type: *google.ProviderModel
tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/hashicorp/google tf_rpc=Configure timestamp=2023-04-26T05:11:12.776Z

I have the same issue and even tried to change the versions for Terraformer (v0.8.19, v08.17)

Same for me, it was working fine but all of sudden has broken with the above error.

Terraformer: v0.8.22
Terraform: v1.4.2
GCP provider v4.36.1

I tried downgrading the GCP provider but get the same issue. I've tried using a different Service account and running a docker container too

@nicklinnell , I fixed my case by downgrading the GCP provider to v4.60.0. It works well for me.

@musyaf11 Unfortunately that didn't fix it for me I I still get the same error:
2023-05-05T10:04:52.501Z [ERROR] plugin.terraform-provider-google_v4.60.0_x5: Response contains error diagnostic: @caller=github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/diag/diagnostics.go:55 @module=sdk.proto diagnostic_summary="Value Conversion Error" tf_provider_addr=registry.terraform.io/hashicorp/google diagnostic_attribute=""
  diagnostic_detail=
  | An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
  |
  | Received null value, however the target type cannot handle null values. Use the corresponding `types` package type, a pointer type or a custom type that handles null values.
  |
  | Path:
  | Target Type: google.ProviderModel
  | Suggested `types` Type: basetypes.ObjectValue
  | Suggested Pointer Type: *google.ProviderModel
   diagnostic_severity=ERROR tf_proto_version=5.3 tf_req_id=443f128a-5d0a-02cf-e1f4-cb4d82478ddd tf_rpc=Configure timestamp=2023-05-05T10:04:52.500Z

@nicklinnell , want to ensure that you have done the following steps as follows:

delete .terraform folder
delete generated folder
delete .lock files
re-initialize the provider

Following along as well, just started looking at terraformer for use with our google cloud DNS setup. Looks like I picked a good time to start ! :D
Followed the steps above to wipe env. Have successfully pinned the provider to 4.60.0 as shown below but error still occuring
C:\Users\steved\Documents\dns\******>terraform init

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/google versions matching "4.60.0"...
- Installing hashicorp/google v4.60.0...
- Installed hashicorp/google v4.60.0 (signed by HashiCorp)

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

C:\Users\steved\Documents\dns\******>terraformer plan google --resources=dns --projects=******* --regions=europe-west2
2023/05/05 11:18:19 google importing project ******* region europe-west2
2023-05-05T11:18:21.009+0100 [ERROR] plugin.terraform-provider-google_v4.60.0_x5.exe: Response contains error diagnostic: @caller=github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_attribute=""
  diagnostic_detail=
  | An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
  |
  | Received null value, however the target type cannot handle null values. Use the corresponding `types` package type, a pointer type or a custom type that handles null values.
  |
  | Path:
  | Target Type: google.ProviderModel
  | Suggested `types` Type: basetypes.ObjectValue
  | Suggested Pointer Type: *google.ProviderModel
   tf_proto_version=5.3 tf_req_id=8abde5cc-24c6-3298-769e-ea5181d05d53 @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="Value Conversion Error" tf_provider_addr=registry.terraform.io/hashicorp/google tf_rpc=Configure timestamp="2023-05-05T11:18:21.008+0100"```

@musyaf11 yes, I'm actually running this in a "clean" docker container the reinitialises terraform new each time it runs so there are no files other than a main.tf containing:
terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
      version = "4.60.0"
    }
  }
  required_version = ">= 0.13"
}
provider "google" {
  credentials = file("/mycreds.json")
}

@nicklinnell, not sure what the cause of this error, is since I even tried to change the GCP provider to 4.0.0. and it works well for me. My colleague at work also tried this and it works as well for him as well.
btw, here are the versions on my end and colleagues:

Terraform v1.4.6
Terraformer v.0.8.22
GCP v.4.0.0/4.6.0

FYI, stepping back again to GCP 4.0.0 after wiping the environment worked for me !

Thanks @musyaf11 and @stephen-dunne I can confirm switching to GCP v4.0.0 fixes the issue for me

@nicklinnell
what is GCP v4.0.0?
The same error occurs to me.
How do you solve it?
my version

Google Cloud SDK 422.0.0
bq 2.0.88
bundled-python3-unix 3.9.16
core 2023.03.10
gcloud-crc32c 1.0.0
gsutil 5.21
Updates are available for some Google Cloud CLI components.  To install them,
please run:

@somaz94 :
Provider as below in the tf configuration (modify after export from terraformer):
terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
      version = "4.0.0"
    }
  }
  required_version = ">= 0.13"
}

WOW! thank you for @samveen
I solve the problem

Just adding my 2 cents here. I had the same problem and then changed to 4.0.0 and it worked, but what exactly is breaking in the provider?

Came here with the same question and wanted to config downgrading to 4.0.0 solved the issue. Will be good to see if it gets resolved but thanks for the solution!

I can confirm too that downgrading to 4.0.0 is a workaround for now.

4.60 didn't wor for me, but 4.0 did.  But that means the imports probably are missing new things that the current provider has that 4.00 didn't.

I found that 4.59.0 is the highest "hashicorp/google" provider version that works with Terraformer as of 7/11/23.

I can give my two cents. needed version = "4.59.0" as cloudFunctions did not work otherwise.

@sergeylanzman issue stands and is being worked on. Can anyone please remove the stale label to avoid keep alives' noise?

Thanks @musyaf11 and @stephen-dunne I can confirm switching to GCP v4.0.0 fixes the issue for me

Hi, Community,
I Have an issue with importing Google Cloud Function into Terraform Format. There is 1 gen2 function in the project, but it was not imported:
MacBook-Pro dwh-objects % terraformer import google --resources=cloudFunctions --projects=dev-project --regions=us-central1
2023/10/10 17:43:36 google importing project bizz-dwh-dev region us-central1
2023/10/10 17:43:39 google importing... cloudFunctions
2023/10/10 17:43:39 google done importing cloudFunctions
2023/10/10 17:43:39 Number of resources for service cloudFunctions: 0
2023/10/10 17:43:39 google Connecting....
2023/10/10 17:43:39 google save cloudFunctions
2023/10/10 17:43:39 google save tfstate for cloudFunctions
Could someone help, please?

Hi, Community,
I Have an issue with importing Google Cloud Function into Terraform Format. There is 1 gen2 function in the project, but it was not imported:
MacBook-Pro dwh-objects % terraformer import google --resources=cloudFunctions --projects=dev-project --regions=us-central1
2023/10/10 17:43:36 google importing project dev-project region us-central1
2023/10/10 17:43:39 google importing... cloudFunctions
2023/10/10 17:43:39 google done importing cloudFunctions
2023/10/10 17:43:39 Number of resources for service cloudFunctions: 0
2023/10/10 17:43:39 google Connecting....
2023/10/10 17:43:39 google save cloudFunctions
2023/10/10 17:43:39 google save tfstate for cloudFunctions
Could someone help, please?

MacBook-Pro terraform-repo % terraformer import google --resources=cloudFunctions --projects=dev-project --regions=us-central1
2023/10/10 17:43:36 google importing project dev-project region us-central1
2023/10/10 17:43:39 google importing... cloudFunctions
2023/10/10 17:43:39 google done importing cloudFunctions
2023/10/10 17:43:39 Number of resources for service cloudFunctions: 0
2023/10/10 17:43:39 google Connecting....
2023/10/10 17:43:39 google save cloudFunctions
2023/10/10 17:43:39 google save tfstate for cloudFunctions
Google Cloud SDK 449.0.0
beta 2023.10.02
bq 2.0.98
config-connector 1.93.0
core 2023.10.02
gcloud-crc32c 1.0.0
gsutil 5.26
terraform-tools 0.11.1
Could someone help, please?

MacBook-Pro terraform-repo % terraformer import google --resources=cloudFunctions --projects=dev-project --regions=us-central1

2023/10/10 17:43:36 google importing project dev-project region us-central1

2023/10/10 17:43:39 google importing... cloudFunctions

2023/10/10 17:43:39 google done importing cloudFunctions

2023/10/10 17:43:39 Number of resources for service cloudFunctions: 0

2023/10/10 17:43:39 google Connecting....

2023/10/10 17:43:39 google save cloudFunctions

2023/10/10 17:43:39 google save tfstate for cloudFunctions
Google Cloud SDK 449.0.0
beta 2023.10.02
bq 2.0.98
config-connector 1.93.0
core 2023.10.02
gcloud-crc32c 1.0.0
gsutil 5.26
terraform-tools 0.11.1
Could someone help, please?

Problem exists with the 5.x providers as well

The issue originally described remains.
In my case, I cannot downgrade provider versions as I am dealing with production environments (regardless, downgrading a major version of a software component is not a resolution to a bug).
I have reported the issue on the registry side (read, on hashicorp/terraform-provider-google but got told "it is not their problem").
For reference, the bug I opened: https://github.com/hashicorp/terraform-provider-google/issues/16920 a similar one opened by someone else here: https://github.com/hashicorp/terraform-provider-google/issues/15059
Is this project being actively supported? @jpatokal @nckslvrmn @vgavro

Is this project being actively supported? @jpatokal @nckslvrmn @vgavro

I am not a regular maintainer of this project so I cannot speak to its active support, I just enjoy it and needed to fix something for my own use with the tool which got recently merged :)

Are there any updates? It's still failing on the recent version

Google has a preview feature for exporting a project as terraform as described at https://cloud.google.com/docs/terraform/resource-management/export

I found that 4.59.0 is the highest "hashicorp/google" provider version that works with Terraformer as of 7/11/23.

Where is the official documentation that mention this?

This is still an issue as of now.

I had to downgrade to @musyaf11 recommendation version and I finally worked.

@thalesgibbon did you happen to try gcloud beta resource-config commands from https://cloud.google.com/docs/terraform/resource-management/export to export your resources as well? A comparative export would hopefully give great data about accuracy between these 2 options.

If you see this error, decrement your google provider version to 4.x.x. For me, I am using terraform 1.8.2 and the latest google provider version that works is 4.59.0. Any version above that fails with [ERROR] plugin: plugin process exited: path=~.terraform.d/plugins/darwin_amd64/terraform-provider-google_vX.X.X_x5

@somaz94 :

what is GCP v4.0.0?

That is provider version, as below in the tf configuration (modify after export from terraformer):
terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
      version = "4.0.0"
    }
  }
  required_version = ">= 0.13"
}

Don't go beyond 4 version. I only got errors last working one was 4.85.0. Additionally: Always give the permissions for execution to the file: chmod +x as it will give you errors

Still an issue. Rollbacking to google provider version 4.59.0 did work for me.


Idea for API improvement

I did a little exploration in jerryscript and IoT.js and noticed that IoT.js uses jerry_api_value_t structure defined in JerryScript API by accessing its members directly to do type checking and value retrieval activities. It is done through fuction-like macros defined in iotjs_binding.cpp: JVAL_IS_NULL, JVAL_IS_STRING, JVAL_TO_NUMBER, etc.
What is your opinion about this solution?
Maybe, it would be worthwhile to refine the JerryScript API by providing type checker and value retrieval functions to struct jerry_api_value_t in order to avoid the direct access of its internal structure in IoT.js. This can result clearer and more maintainable code that facilitates the future developments.

by @ktorpi

+1, https://github.com/Samsung/jerryscript/issues/711

+1

Related PRs: #788, #810