Live image fails to load FFmpeg exited with code 1

Describe Your Problem:
Live image feed won't load in Apple Home (iOS 13.5) (HomeKit) served by Homebridge/HOOBS.
homebridge-camera-ffmpeg final error:
ERROR: FFmpeg exited with code 1
Have tried many configurations without success including multiple video codec options.
Loads fine with no problems in VLC using rtsp (H.264 video AAC audio).
Using old iZon View IP camera with HOOBS/homebridge.
Static image loads without problem.
Logs:
[Homebridge] ffmpeg -i<EMAIL_ADDRESS>-t 1 -vf hflip,vflip,scale=480:270 -f image2 -
[Homebridge] [5/29/2020, 3:10:29 PM] [Camera-ffmpeg] Start streaming video from GarageCam with 640:360@29fps (132kBit)
[Homebridge] /home/hoobs/.hoobs/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -re -i rtsp://admin:anotherpassword@<IP_ADDRESS>:554/test_VGA -map 1 -vcodec libx264 -pix_fmt yuv420p -r 29 -f rawvideo -x264-params "intra-refresh=1:bframes=0" -vf scale=640:360,hflip,vflip -b:v 132k -bufsize 132k -maxrate 132k -payload_type 99 -ssrc 11719052 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params WLdketZvJSvRA/E7oxLzIlgBWWGuju4hQdyYY1la srtp://<IP_ADDRESS>:55084?rtcpport=55084&localrtcpport=55084&pkt_size=1316 -map 0 -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -bufsize 24k -ac 1 -payload_type 110 -ssrc 280896 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params TUZV2J13hpKag6Pdaq2T+4p3DqE7zaZ6iWfQR6jb srtp://<IP_ADDRESS>:54252?rtcpport=54252&localrtcpport=54252&pkt_size=1316 -loglevel debug
[Homebridge] ffmpeg version 4.2.2-d1e8be3 Copyright (c) 2000-2019 the FFmpeg developers
[Homebridge] built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
[Homebridge] configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal --enable-indev=alsa --enable-outdev=alsa
[Homebridge] libavutil      56. 31.100 / 56. 31.100
[Homebridge] libavcodec     58. 54.100 / 58. 54.100
[Homebridge] libavformat    58. 29.100 / 58. 29.100
[Homebridge] libavdevice    58.  8.100 / 58.  8.100
[Homebridge] libavfilter     7. 57.100 /  7. 57.100
[Homebridge] libswscale      5.  5.100 /  5.  5.100
[Homebridge] libswresample   3.  5.100 /  3.  5.100
[Homebridge] libpostproc    55.  5.100 / 55.  5.100
[Homebridge] Splitting the commandline.
[Homebridge] Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
[Homebridge] Reading option '-i' ... matched as input url with argument 'rtsp://admin:anotherpassword@<IP_ADDRESS>:554/test_VGA'.
[Homebridge] Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '1'.
[Homebridge] Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
[Homebridge] Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
[Homebridge] Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '29'.
[Homebridge] Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
[Homebridge] Reading option '-x264-params' ...
[Homebridge] matched as AVOption 'x264-params' with argument '"intra-refresh=1:bframes=0"'.
[Homebridge] Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=640:360,hflip,vflip'.
[Homebridge] Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '132k'.
[Homebridge] Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument '132k'.
[Homebridge] Reading option '-maxrate' ... matched as AVOption 'maxrate' with argument '132k'.
[Homebridge] Reading option '-payload_type' ... matched as AVOption 'payload_type' with argument '99'.
[Homebridge] Reading option '-ssrc' ... matched as AVOption 'ssrc' with argument '11719052'.
[Homebridge] Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
[Homebridge] Reading option '-srtp_out_suite' ... matched as AVOption 'srtp_out_suite' with argument 'AES_CM_128_HMAC_SHA1_80'.
[Homebridge] Reading option '-srtp_out_params' ... matched as AVOption 'srtp_out_params' with argument 'WLdketZvJSvRA/E7oxLzIlgBWWGuju4hQdyYY1la'.
[Homebridge] Reading option 'srtp://<IP_ADDRESS>:55084?rtcpport=55084&localrtcpport=55084&pkt_size=1316' ... matched as output url.
[Homebridge] Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
[Homebridge] Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'libfdk_aac'.
[Homebridge] Reading option '-profile:a' ... matched as option 'profile' (set profile) with argument 'aac_eld'.
[Homebridge] Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
[Homebridge] Reading option '-f' ... matched as option 'f' (force format) with argument 'null'.
[Homebridge] Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '16k'.
[Homebridge] Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '24k'.
[Homebridge] Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument '24k'.
[Homebridge] Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '1'.
[Homebridge] Reading option '-payload_type' ... matched as AVOption 'payload_type' with argument '110'.
[Homebridge] Reading option '-ssrc' ... matched as AVOption 'ssrc' with argument '280896'.
[Homebridge] Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
[Homebridge] Reading option '-srtp_out_suite' ...
[Homebridge] matched as AVOption 'srtp_out_suite' with argument 'AES_CM_128_HMAC_SHA1_80'.
[Homebridge] Reading option '-srtp_out_params' ...
[Homebridge] matched as AVOption 'srtp_out_params' with argument 'TUZV2J13hpKag6Pdaq2T+4p3DqE7zaZ6iWfQR6jb'.
[Homebridge] Reading option 'srtp://<IP_ADDRESS>:54252?rtcpport=54252&localrtcpport=54252&pkt_size=1316' ... matched as output url.
[Homebridge] Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
[Homebridge] Finished splitting the commandline.
[Homebridge] Parsing a group of options: global .
[Homebridge] Applying option loglevel (set logging level) with argument debug.
[Homebridge] Successfully parsed a group of options.
[Homebridge] Parsing a group of options: input url rtsp://admin:anotherpassword@<IP_ADDRESS>:554/test_VGA.
[Homebridge] Applying option re (read input at native frame rate) with argument 1.
[Homebridge] Successfully parsed a group of options.
[Homebridge] Opening an input file: rtsp://admin:anotherpassword@<IP_ADDRESS>:554/test_VGA.
[Homebridge] [tcp @ 0x2d422a0] No default whitelist set
[Homebridge] [tcp @ 0x2d422a0] Original list of addresses:
[Homebridge] [tcp @ 0x2d422a0] Address <IP_ADDRESS> port 554
[Homebridge] [tcp @ 0x2d422a0] Interleaved list of addresses:
[Homebridge] [tcp @ 0x2d422a0] Address <IP_ADDRESS> port 554
[Homebridge] [tcp @ 0x2d422a0] Starting connection attempt to <IP_ADDRESS> port 554
[Homebridge] [tcp @ 0x2d422a0] Successfully connected to <IP_ADDRESS> port 554
[Homebridge] [rtsp @ 0x2d40270] SDP:
[Homebridge] v=0
[Homebridge] o=- -2126832873411811084 -2126832873410720162 IN IP4 <IP_ADDRESS>
[Homebridge] c=IN IP4 <IP_ADDRESS>
[Homebridge] a=tool: RtpRtspServer
[Homebridge] a=range:npt=0-
[Homebridge] m=audio 0 RTP/AVP 98
[Homebridge] a=rtpmap:98 mpeg4-generic/16000/1
[Homebridge] a=fmtp:98 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; SizeLength=13;IndexLength=3; IndexDeltaLength=3; Profile=1;
[Homebridge] a=control:rtsp://<IP_ADDRESS>:554/test_VGA/trackID=0
[Homebridge] m=video 0 RTP/AVP 96
[Homebridge] a=rtpmap:96 H264/90000
[Homebridge] a=fmtp:96 packetization-mode=1;profile-level-id=42001e;sprop-parameter-sets=Z0KgHucoFAe2AoEAAAu7AAK/IOAAAAmJaAAATEtD//4wAAAExLQAACYlof//Ag==,aN48gA==;
[Homebridge] a=control:rtsp://<IP_ADDRESS>:554/test_VGA/trackID=1
[Homebridge] Failed to parse interval end specification ''
[Homebridge] [rtsp @ 0x2d40270] audio codec set to: aac
[Homebridge] [rtsp @ 0x2d40270] audio samplerate set to: 16000
[Homebridge] [rtsp @ 0x2d40270] audio channels set to: 1
[Homebridge] [rtsp @ 0x2d40270] video codec set to: h264
[Homebridge] [rtsp @ 0x2d40270] RTP Packetization Mode: 1
[Homebridge] [rtsp @ 0x2d40270] RTP Profile IDC: 42 Profile IOP: 0 Level: 1e
[Homebridge] [rtsp @ 0x2d40270] Extradata set to 0x2d46e38 (size: 58)
[Homebridge] [rtp @ 0x2d42790] No default whitelist set
[Homebridge] [udp @ 0x2d47280] No default whitelist set
[Homebridge] [udp @ 0x2d47280] end receive buffer size reported is 131072
[Homebridge] [udp @ 0x2d57600] No default whitelist set
[Homebridge] [udp @ 0x2d57600] end receive buffer size reported is 131072
[Homebridge] [rtsp @ 0x2d40270] setting jitter buffer size to 500
[Homebridge] [rtp @ 0x2d67970] No default whitelist set
[Homebridge] [udp @ 0x2d68380] No default whitelist set
[Homebridge] [udp @ 0x2d68380] end receive buffer size reported is 131072
[Homebridge] [udp @ 0x2d786e0] No default whitelist set
[Homebridge] [udp @ 0x2d786e0] end receive buffer size reported is 131072
[Homebridge] [rtsp @ 0x2d40270] setting jitter buffer size to 500
[Homebridge] [rtsp @ 0x2d40270] hello state=0
[Homebridge] [h264 @ 0x2d469c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[Homebridge] [h264 @ 0x2d469c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[Homebridge] [h264 @ 0x2d469c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[Homebridge] [h264 @ 0x2d469c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[Homebridge] [h264 @ 0x2d469c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[Homebridge] [h264 @ 0x2d469c0] Format yuv420p chosen by get_format().

[Homebridge] Parsing a group of options: output url srtp://<IP_ADDRESS>:55084?rtcpport=55084&localrtcpport=55084&pkt_size=1316.
[Homebridge] Applying option map (set input stream mapping) with argument 1.
[Homebridge] Invalid input file index: 1.
[Homebridge] [5/29/2020, 3:10:30 PM] [Camera-ffmpeg] ERROR: FFmpeg exited with code 1

Homebridge Config:
            "cameras": [
                {
                    "uploader": false,
                    "videoConfig": {
                        "maxWidth": 640,
                        "audio": true,
                        "debug": true,
                        "mapaudio": "0",
                        "vflip": true,
                        "mapvideo": "1",
                        "maxHeight": 480,
                        "maxFPS": 29,
                        "source": "-re -i rtsp://admin:anotherpassword@<IP_ADDRESS>:554/test_VGA",
                        "additionalCommandline": "-x264-params \"intra-refresh=1:bframes=0\"",
                        "maxStreams": 2,
                        "hflip": true,
                        "maxBitrate": 500,
                        "stillImageSource": "-i<EMAIL_ADDRESS>                    },
                    "name": "GarageCam",
                }
            ],
            "plugin_map": {
                "plugin_name": "homebridge-camera-ffmpeg"
            },
            "name": "Camera-ffmpeg",
            "platform": "Camera-ffmpeg"
        }

Screenshots:
Environment:

Node.js Version: v12.14.1
NPM Version: 6.13.4
Homebridge Version: 0.4.50
Homebridge Camera FFmpeg Version: 1.22
Homebridge Config UI X Plugin Version:
Operating System: Raspbian

I've had this issue before, and most of the time is because the packet size is too high, try educing it to minimum 1316. I use Config UI X, but on HOOBS you should be able to modify it as well.


Linearized position plot: just use markers - don't connect points

This is because there are discontinuities in the plot.

Needs to be an option in the PositionPlotView drawing function--flag to connect dots vs. use scatterplot markers.

See SpikeSortingView PR #20.


Increase coverage for bottery/cli.py

Missing lines: 51-52
See Travis log to confirm the missing lines: https://travis-ci.org/rougeth/bottery

A good idea is to add codecov to the project. Each time someone sends a PR, the tool will generate a coverage report pointing if the coverage has increased or not. Also, you can see the coverage easily with a beautiful badge. :)

Hey @anapaulagomes!! Thanks for the comment! :D Codecov is already configured and it blocks each pull request that decrease the coverage. I disabled the report on pull request comments because I personally don't like it, but it's working!


Symlinked assets dir not working, allow dotenv var for assets path?

Hi! Thanks so much for this module.
We keep our assets directory (and dotenv) outside of the release directory, and symlink them in during a deployment. We're very keen to run ssbak at the start of our deploy script, in order to provide a reversion mechanism if something goes wrong mid-deploy or if the dev/build borks when the deploy script runs towards its end.
However I'm getting an error when running ssbak save which I believe is due to the symlink - if I put the actual assets dir inside /public and rerun ssbak, it works perfectly.
Compressing '..../releases/20220203130000/public/assets' (22 B) to '/tmp/ssbak-43659d4d7626/assets.tar.gz'
panic: runtime error: slice bounds out of range [62:45]

goroutine 1 [running]:
github.com/axllent/ssbak/utils.writeDirectory(0xc00019e190, 0x45, 0xc0001e8000, 0xc00019e190, 0x3e, 0x0, 0x0)
	/mnt/apache/sandpit/go/ssbak/utils/targz.go:205 +0x525
github.com/axllent/ssbak/utils.compress(0xc00019e190, 0x45, 0xc0001c8090, 0x25, 0xc00019e190, 0x3e, 0x0, 0x0)
	/mnt/apache/sandpit/go/ssbak/utils/targz.go:162 +0x239
github.com/axllent/ssbak/utils.TarGZCompress(0xc00019e190, 0x45, 0xc0001c8090, 0x25, 0x0, 0x0)
	/mnt/apache/sandpit/go/ssbak/utils/targz.go:39 +0x1d3
github.com/axllent/ssbak/utils.AssetsToTarGz(0xc00019e190, 0x45, 0xc0001c8090, 0x25, 0x3, 0xc0001d8000)
	/mnt/apache/sandpit/go/ssbak/utils/assets.go:27 +0x2be
github.com/axllent/ssbak/cmd.glob..func6(0xa81e80, 0xc00006a240, 0x2, 0x3, 0x0, 0x0)
	/mnt/apache/sandpit/go/ssbak/cmd/save.go:57 +0x357
github.com/spf13/cobra.(*Command).execute(0xa81e80, 0xc00006a210, 0x3, 0x3, 0xa81e80, 0xc00006a210)
	/home/ralph/.cache/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xa81be0, 0x6, 0x0, 0x0)
	/home/ralph/.cache/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/home/ralph/.cache/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895
github.com/axllent/ssbak/cmd.Execute()
	/mnt/apache/sandpit/go/ssbak/cmd/root.go:39 +0x6b
main.main()
	/mnt/apache/sandpit/go/ssbak/main.go:26 +0x25

If allowing ssbak to follow/use the symlink is an easy change, it'd be great if possible.
If it's not, then alternatively would it be possible to allow a path to the assets directory to be set in the dotenv file, as we do with the database name (for example)? Maintaining backwards compatibility by using existing assets path logic if the env variable isn't set?
Ideally I'd run ssbak save... in the root of /releases/{releaseTimestamp}, with <absPath>/project-dir/shared/assets as the value of a SSBAK_ASSETS_PATH var or similar in the dotenv. And ssbak load... would restore to the same path.
For clarity:
/project-dir
/project-dir/releases

/project-dir/releases/{timestampOfRelease}
/project-dir/releases/{timestampOfRelease}/.env  <-- symlink to shared/.env
/project-dir/releases/{timestampOfRelease}/public/assets  <-- symlink to shared/assets

/project-dir/current   <-- symlink to latest releases/release

/project-dir/shared
/project-dir/shared/.env
/project-dir/shared/assets

I'd happily submit a PR for it but unfort as it's Go I'm a bit out of my wheelhouse.

Hi @dizzystuff, thanks for the feedback. Ironically symlinks was something I considered right in the beginning, and, because we don't use symlinking here, forgot all about it! I have just made a few changes and released a beta version which you can download here.
Note that although ssbak should follow symbolic links for both the .env as well as the public/assets, it will not take these into consideration when restoring (ssbak load ...). This means that although public/assets may have been a link to elsewhere when backing up, when you restore then public/assets becomes a folder as the original symlink is initially renamed and then deleted (just link in this case, not the path it resolves to). This was handled in this way to remain compatible with the original sspak. You can of course manually extract just the assets with ssbak extract ..., so there is a workaround if you needed to restore. I could add some additional flags to specify a restore path, however at this stage I'd rather not (unless required) as it deviates from the original sspak functionality.
Please be so kind as to test it and confirm this works for you?

@axllent I really appreciate the quick response. Have tested the beta with both ssbak save and ssbak load, and it's working as described. Thanks a tonne!
While an extra flag to specify a restore path really would be perfect, I understand the hesitation re deviating from sspak. I'm fairly confident I can handle what I need to do with ssbak extract.
Cheers

@dizzystuff Awesome, you are very welcome, and thank you for the report & testing.
I have released a "stable" version with those changes (pretty much what you are running now). If you find yourself really requiring the restore path in your deployment process, then feel free to open another issue. As I said before, I'd rather not add functionality that isn't widely used when there is a potential workaround, however I have already deviated somewhat from the original by adding in save --ignore-resampled, so other features/flags are always an option too (provided the core commands continue to work as expected and there is an actual use-case requirement for additional features).


Add files via upload

Add a new school domain - Luksia, Western Uusimaa Municipal Training and Education Consortium (https://www.luksia.fi/in-english)

@sdmit93 First stage of verification passed, official domain is luksia.fi as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@sdmit93  Pull request merged. Thank you.


Amend USA marriage abroad outcome

PR #2223 introduced a duplicated piece of content on several of the outcome pages.
This PR removes this change.
Expected changes

URL on gov.uk
Removes duplicated callout ^You should get legal advice before making any plans.^

Before

After

LGTM.


ios 14.5 crash reports upgradeKnownHostsToHTTPS

[x] I have read the Get Started - Installation section
[x] I have read and done the Get Started - Setup Android section
[x] I have read and done the Get Started - Setup iOS section
[x] I have already searched for the same problem

Environment

Technology
Version

Flutter version
3.3.0

Plugin version
6.0.0-beta2

Android version
12

iOS version
15.7

Xcode version
14.0

Description
Many uses reported app crashed,  when my app creating a webview window,  but i can't reproduce it.

ios crash reports when create webview
2022-10-24_00-33-18.8309_+0800-c2bffc0a5095c9dd59487af39c5db938bdaac58b.crash.zip

Thanks for the report!
From the crash report, it is caused by the upgradeKnownHostsToHTTPS property on iOS 14.5, which should be already available from 14.5+ (official iOS docs here), but for some strange reason, it is not.
So I will bump the native version check for that property to 15.0+.

Released new version 6.0.0-beta.8 with the fix


Rewrite join cluster

This is a rewrite of join cluster. It continuously selects from a group of preferred and non-preferred bootstrap hosts until joinSize is satisfied or maxJoinDuration is exceeded. Joins occur in parallel and allow for an optional parallelismFactor which is a multiple of the joinSize in case you want more parallelism than joinSize.
Still TODO:

More test coverage
More efficient init() function

Since there's still some TODOs, I'm closing until really really ready so as not to confuse people.


Missing secret key variable in ct.js client - shipping to a production env impossible

Nakama has a server key variable. Currently it is defaultkey which is bad and should not be used for production!
Task:

Add a field in ct.js for you to be able to change the secret key

I added the update here (i was unable to create a branch): https://github.com/ronlievens/ct.nakama

Hi @ronlievens, thank you for this!
If you go to pull requests, you should be able to open a PR from your repo. If not, you might need to fork this repo, make the changes there, then open a PR from that fork. Let me know if there's a problem, happy to merge this in :)


Add db_instance_type and db_engine_version to main variables

Adding the ability to change db_instance_type and db_engine_version from the main metaflow terraform module.
Testing Screenshots
RDS micro instance with engine version 14

@oavdeev Do you have time to take a look at this please?

@oavdeev Have you had a chance to look at this? This change would be very helpful for us too. Thank you.


Supabase Edge Functions - Error importing local files after upgrading to CLI v1.187.0+

Describe the bug
On Windows 11 using Docker and Supabase CLI to deploy a Supabase Edge Function, it fails to correctly import local files that are inside of the function directory (like a libs.ts file). I searched CLI versions to determine where this started, and I found that it works fine on CLI v1.186.3 - but when upgrading the CLI to version 1.187.0 or beyond, it is unable to import the local module, and can't boot the worker on Supabase.
It is perfectly reproducible on my machine, with only the CLI version upgrade to 1.187.0 and beyond causing the problem.
To Reproduce
Steps to reproduce the behavior:

Under supabase/functions/test, create index.ts file

// supabase/functions/test/index.ts
import { processParams } from "./libs.ts";

Deno.serve(async (req) => {
    try {
        const { foo } = await req.json();

        const processedParams = processParams({ foo });

        return new Response(
            JSON.stringify({
                success: true,
                processedParams,
            }),
            {
                headers: {
                    "Content-Type": "application/json",
                    "Access-Control-Allow-Origin": "*",
                },
            },
        );
    } catch (error) {
        return new Response(
            JSON.stringify({
                success: false,
            }),
            {
                status: 400,
                headers: {
                    "Content-Type": "application/json",
                    "Access-Control-Allow-Origin": "*",
                },
            },
        );
    }
});

Under supabase/functions/test, create libs.ts file

// supabase/functions/test/libs.ts
type Params = {
    foo: string;
};

export const processParams = (params: Params) => {
    if (!params.foo) {
        throw new Error("Missing foo parameter");
    }

    return {
        foo: params.foo.toUpperCase(),
        timestamp: new Date().toISOString(),
    };
};

Use scoop to install supabase v1.187.0
scoop uninstall supabase && scoop install<EMAIL_ADDRESS>

Deploy the Supabase Edge Function
supabase functions deploy test

Make a POST request with the "foo" parameter included in the body. This will be the error response:
{"code":"BOOT_ERROR","message":"Function failed to start (please check logs)"}

Inside of the function logs, it says this:
worker boot error: Module not found: file:///Users/danie/<redacted>/supabase/functions/test/libs.ts

To fix, downgrade Supabase CLI to 1.186.3
scoop uninstall<EMAIL_ADDRESS>&& scoop install<EMAIL_ADDRESS>

Deploy Supabase Edge Function again
supabase functions deploy test

Make a POST request with the "foo" parameter again. Now we see the correct response, and it has run successfully:
{"success":true,"processedParams":{"foo":"BAR","timestamp":"2024-11-10T08:41:26.403Z"}}

Expected behavior
The Supabase Edge Function should be able to import local modules in the specific function's directory, using relative import syntax. E.g. import { processParams } from "./libs.ts"; should be valid and work, not causing errors. Or there should be clear guidelines on how to do it otherwise.
Screenshots
N/A
System information
Rerun the failing command with --create-ticket flag.

Ticket ID: [N/A (couldn't retrieve)]
Version of OS: [Windows 11 Pro]
Version of CLI: [v1.187.0 or above]
Version of Docker: [v25.0.3]
Versions of services:

        SERVICE IMAGE      │      LOCAL       │ LINKED
  ─────────────────────────┼──────────────────┼─────────
    supabase/postgres      │ <IP_ADDRESS>        │ -
    supabase/gotrue        │ v2.151.0         │ -
    postgrest/postgrest    │ v12.2.0          │ -
    supabase/realtime      │ v2.29.15         │ -
    supabase/storage-api   │ v1.0.6           │ -
    supabase/edge-runtime  │ v1.55.0          │ -
    supabase/studio        │ 20240701-05dfbec │ -
    supabase/postgres-meta │ v0.83.2          │ -
    supabase/logflare      │ 1.4.0            │ -
    supabase/supavisor     │ 1.1.56           │ -

Additional context
I suspect this is the code where the issue was introduced:
https://github.com/supabase/cli/commit/d8761b5620cb99f98c178918df3ebd8180cf5560
In the latest version, it is here:
https://github.com/supabase/cli/blob/develop/internal/functions/deploy/bundle.go
From my understanding, it seems to work for people on MacOS or Linux. Perhaps it incorrectly maps the imports to the absolute paths in Windows, where it works fine on other OS?
Maybe this is intentional? If so, is there an explanation on how we can import local files correctly? I tried using import_maps.json and deno.json, and both of these lead to the exact same issue as described above.
Thanks!

Hey there !
I've just tried this out with the latest 1.223.10 of the cli on a Windows11 machine and wasn't able to reproduce. So this might have been fixed by one of the edge-runtime update.
Could you please try again with latest version @danablend and report back ?

Without feedback I'm closing the issue, feel free to reopen.


Add support for local ArcGIS API for JavaScript

Unless I missed it, the cookbook has no support for the following:

[ ] Installing and hosting the ArcGIS API for JavaScript locally

This might not matter, since Portal for ArcGIS includes the API for JavaScript.

[ ] Configuring ArcGIS Server to use an instance of the ArcGIS API for JavaScript other than the one on js.arcgis.com

This could be the instance of the API for JavaScript that Portal for ArcGIS provides.
It could be another instance that Chef installs and hosts.
Or it could be another instance running at an arbitrary URL.

This capability is important for those who want to view services through the Services Directory while not connected to the internet.

@garys-esri  Could you provide a reference to ArcGIS documentation that describes the manual installation procedure for " ArcGIS API for JavaScript" that needs to be automated?

@pbobov See the Download section at the bottom of this page:
https://developers.arcgis.com/javascript/jshelp/intro_accessapi.html#download-api
The step-by-step instructions are in the API download package. I don't think they're published online.


Error loading syntax file "Packages/./syntax/Git Commit Message.tmLanguage": Error parsing plist xml: Failed to open file In file "Packages/./syntax/Git Commit Message.tmLanguage"

https://github.com/kemayo/sublime-text-git v1.0.5 on Sublime Text 2 Version 2.0.2, Build 2221 on Windows 7.
After opening ST, the first time I launch the command "Git Commit" I get the error:

Error loading syntax file "Packages/./syntax/Git Commit
Message.tmLanguage": Error parsing plist xml: Failed to open file In file
"Packages/./syntax/Git Commit Message.tmLanguage"

The subsequent launches of command "Git Commit" run fine.
Maybe related to https://github.com/kemayo/sublime-text-git/issues/457 ?

https://github.com/kemayo/sublime-text-git v1.0.8 on Sublime Text 2 Version 2.0.2, Build 2221 on Windows 7 now works fine!
Thank you!


Nmap not working on WSL kali

Environment
Windows build number: [run `cmd.exe /c ver`]
Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL]
Whether the issue is on WSL 2 and/or WSL 1: [run `cat /proc/version` in WSL]

Steps to reproduce

WSL logs:
Expected behavior

Actual behavior

You didn't fill out the template. Please fill it out.

/dupe #1349 for lack


Reset analysis payload once it has been used

Fixes #7826
Navigating between the tabs caused the payload from the creation to be reused (due to the lifecycle closure of the parent render), causing the analysis view to create a new form model for the payload, instead of creating it from the persisted node of the layer as expected.
cc @xavijam not much to review, but oh well

package and ready to go

Frontend tests passed so merging


fix: Check if annotation type is supported by the given chart type

SUMMARY
This PR checks if annotation type, that user wants to use, is supported by this kind of chart.
For example, time-line bar chart does not support FORMULA annotation. As specified in superset-ui, time-line bar chart should support only interval or event annotations. The problem was that the default annotation type was set to FORMULA for all of the charts.
In my PR, we first check, which annotation types are supported - if Formula is one of them, we set it as a default one, showing when we open the Annotation Modal. If not, we take the first annotation from Supported Annotations array.
It also impacts issue #11790.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before:

after:

TEST PLAN
Verify manually.
Create time-series bar chart and try to add annotation layer.
Try also with some chart, which Formula is a supported annotation type, for example line chart.
ADDITIONAL INFORMATION

[x] Has associated issue: #11790
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

@kgabryje or @adam-stasiak could you test?
cc @junlincc

Codecov Report

Merging #11876 (6591549) into master (44e80e0) will decrease coverage by 12.26%.
The diff coverage is 66.66%.

@@             Coverage Diff             @@
##           master   #11876       +/-   ##
===========================================
- Coverage   66.79%   54.53%   -12.27%
===========================================
  Files         924      417      -507
  Lines       44837    14677    -30160
  Branches     4253     3766      -487
===========================================
- Hits        29951     8004    -21947
+ Misses      14777     6673     -8104
+ Partials      109        0      -109

Flag
Coverage Δ

cypress
54.53% <66.66%> (+4.96%)
:arrow_up:

javascript
?

python
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...rc/explore/components/controls/AnnotationLayer.jsx
51.65% <66.66%> (+10.11%)
:arrow_up:

...uperset-frontend/src/dashboard/util/dnd-reorder.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...rset-frontend/src/dashboard/util/getEmptyLayout.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...dashboard/components/resizable/ResizableHandle.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

.../src/dashboard/util/getFilterScopeFromNodesTree.js
0.00% <0.00%> (-93.48%)
:arrow_down:

...src/dashboard/components/gridComponents/Header.jsx
10.52% <0.00%> (-86.85%)
:arrow_down:

...rc/dashboard/components/gridComponents/Divider.jsx
13.33% <0.00%> (-86.67%)
:arrow_down:

...ontend/src/dashboard/util/getDashboardFilterKey.ts
14.28% <0.00%> (-85.72%)
:arrow_down:

...nd/src/views/CRUD/data/query/QueryPreviewModal.tsx
14.70% <0.00%> (-82.97%)
:arrow_down:

...set-frontend/src/views/CRUD/welcome/EmptyState.tsx
5.71% <0.00%> (-82.10%)
:arrow_down:

... and 795 more

Continue to review full report at Codecov.

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

I had an error while testing this - please verify if it is connected - I would check on my side as well.
Build with docker-compose up
Go to http://localhost:8088/superset/explore/?form_data={"slice_id"%3A 1432}
Click on

and then white screen with console error:
    at AnnotationLayer.getSupportedSourceTypes (AnnotationLayer.jsx?584b:200)
    at AnnotationLayer.render (AnnotationLayer.jsx?584b:689)
    at finishClassComponent (VM78358 react-dom.development.js:17185)
    at updateClassComponent (VM78358 react-dom.development.js:17135)
    at beginWork (VM78358 react-dom.development.js:18654)
    at HTMLUnknownElement.callCallback (VM78358 react-dom.development.js:189)
    at Object.invokeGuardedCallbackDev (VM78358 react-dom.development.js:238)
    at invokeGuardedCallback (VM78358 react-dom.development.js:293)
    at beginWork$1 (VM78358 react-dom.development.js:23235)
    at performUnitOfWork (VM78358 react-dom.development.js:22186)
getSupportedSourceTypes @ AnnotationLayer.jsx?584b:200
render @ AnnotationLayer.jsx?584b:689
finishClassComponent @ react-dom.development.js?7f13:17185
updateClassComponent @ react-dom.development.js?7f13:17135
beginWork @ react-dom.development.js?7f13:18654
callCallback @ react-dom.development.js?7f13:189
invokeGuardedCallbackDev @ react-dom.development.js?7f13:238
invokeGuardedCallback @ react-dom.development.js?7f13:293
beginWork$1 @ react-dom.development.js?7f13:23235
performUnitOfWork @ react-dom.development.js?7f13:22186
workLoopSync @ react-dom.development.js?7f13:22162
performSyncWorkOnRoot @ react-dom.development.js?7f13:21788
eval @ react-dom.development.js?7f13:11112
unstable_runWithPriority @ scheduler.development.js?b589:653
runWithPriority$1 @ react-dom.development.js?7f13:11062
flushSyncCallbackQueueImpl @ react-dom.development.js?7f13:11107
flushSyncCallbackQueue @ react-dom.development.js?7f13:11095
flushPassiveEffectsImpl @ react-dom.development.js?7f13:22915
unstable_runWithPriority @ scheduler.development.js?b589:653
runWithPriority$1 @ react-dom.development.js?7f13:11062
flushPassiveEffects @ react-dom.development.js?7f13:22852
eval @ react-dom.development.js?7f13:22731
workLoop @ scheduler.development.js?b589:597
flushWork @ scheduler.development.js?b589:552
performWorkUntilDeadline @ scheduler.development.js?b589:164
react_devtools_backend.js:2430 The above error occurred in the <AnnotationLayer> component:
    in AnnotationLayer (created by ForwardRef(AsyncComponent))
    in ForwardRef(AsyncComponent) (created by AnnotationLayerControl)
    in div (created by AnnotationLayerControl)
    in div (created by Popover)
    in div (created by Content)
    in Content (created by Trigger)
    in div (created by PopupInner)
    in div (created by Align)
    in Align (created by CSSMotion)
    in DomWrapper (created by CSSMotion)
    in CSSMotion (created by PopupInner)
    in PopupInner (created by Popup)
    in div (created by Popup)
    in Popup (created by Trigger)
    in ForwardRef (created by Trigger)
    in Trigger (created by ForwardRef(Tooltip))
    in ForwardRef(Tooltip) (created by Tooltip)
    in Tooltip (created by Popover)
    in Popover (created by AnnotationLayerControl)
    in div (created by ListGroup)
    in ListGroup (created by AnnotationLayerControl)
    in div (created by AnnotationLayerControl)
    in AnnotationLayerControl (created by Context.Consumer)
    in WithTheme(AnnotationLayerControl) (created by Connect(WithTheme(AnnotationLayerControl)))
    in Connect(WithTheme(AnnotationLayerControl)) (created by Control)
    in div (created by Control)
    in Control (created by ControlPanelsContainer)
    in div (created by ControlSetRow)
    in div (created by ControlSetRow)
    in ControlSetRow (created by ControlPanelsContainer)
    in div (created by PanelBody)
    in PanelBody (created by ControlPanelSection)
    in div (created by PanelCollapse)
    in Transition (created by Collapse)
    in Collapse (created by PanelCollapse)
    in PanelCollapse (created by ControlPanelSection)
    in div (created by Panel)
    in Panel (created by Uncontrolled(Panel))
    in Uncontrolled(Panel) (created by ForwardRef)
    in ForwardRef (created by ControlPanelSection)
    in ControlPanelSection (created by ControlPanelsContainer)
    in div (created by TabPane)
    in TabPane (created by Context.Consumer)
    in Styled(TabPane) (created by ControlPanelsContainer)
    in div (created by TabPanelList)
    in div (created by TabPanelList)
    in TabPanelList (created by ForwardRef(Tabs))
    in div (created by ForwardRef(Tabs))
    in ForwardRef(Tabs) (created by Tabs)
    in Tabs (created by Context.Consumer)
    in Styled(Tabs) (created by ControlPanelsContainer)
    in div (created by Context.Consumer)
    in Styled(div) (created by ControlPanelsContainer)
    in ControlPanelsContainer (created by Connect(ControlPanelsContainer))
    in Connect(ControlPanelsContainer) (created by ExploreViewContainer)
    in div (created by ExploreViewContainer)
    in div (created by Context.Consumer)
    in Styled(div) (created by ExploreViewContainer)
    in ExploreViewContainer (created by Connect(ExploreViewContainer))
    in Connect(ExploreViewContainer) (created by App)
    in ThemeProvider (created by App)
    in Provider (created by App)
    in App
    in AppContainer
    in Unknown

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
overrideMethod @ react_devtools_backend.js:2430
logCapturedError @ react-dom.development.js?7f13:19561
logError @ react-dom.development.js?7f13:19598
update.callback @ react-dom.development.js?7f13:20742
callCallback @ react-dom.development.js?7f13:12513
commitUpdateQueue @ react-dom.development.js?7f13:12534
commitLifeCycles @ react-dom.development.js?7f13:19917
commitLayoutEffects @ react-dom.development.js?7f13:22835
callCallback @ react-dom.development.js?7f13:189
invokeGuardedCallbackDev @ react-dom.development.js?7f13:238
invokeGuardedCallback @ react-dom.development.js?7f13:293
commitRootImpl @ react-dom.development.js?7f13:22573
unstable_runWithPriority @ scheduler.development.js?b589:653
runWithPriority$1 @ react-dom.development.js?7f13:11062
commitRoot @ react-dom.development.js?7f13:22413
finishSyncRender @ react-dom.development.js?7f13:21839
performSyncWorkOnRoot @ react-dom.development.js?7f13:21825
eval @ react-dom.development.js?7f13:11112
unstable_runWithPriority @ scheduler.development.js?b589:653
runWithPriority$1 @ react-dom.development.js?7f13:11062
flushSyncCallbackQueueImpl @ react-dom.development.js?7f13:11107
flushSyncCallbackQueue @ react-dom.development.js?7f13:11095
flushPassiveEffectsImpl @ react-dom.development.js?7f13:22915
unstable_runWithPriority @ scheduler.development.js?b589:653
runWithPriority$1 @ react-dom.development.js?7f13:11062
flushPassiveEffects @ react-dom.development.js?7f13:22852
eval @ react-dom.development.js?7f13:22731
workLoop @ scheduler.development.js?b589:597
flushWork @ scheduler.development.js?b589:552
performWorkUntilDeadline @ scheduler.development.js?b589:164
scheduler.development.js?b589:178 Uncaught TypeError: Cannot read property 'supportNativeSource' of undefined
    at AnnotationLayer.getSupportedSourceTypes (AnnotationLayer.jsx?584b:200)
    at AnnotationLayer.render (AnnotationLayer.jsx?584b:689)
    at finishClassComponent (VM78358 react-dom.development.js:17185)
    at updateClassComponent (VM78358 react-dom.development.js:17135)
    at beginWork (VM78358 react-dom.development.js:18654)
    at HTMLUnknownElement.callCallback (VM78358 react-dom.development.js:189)
    at Object.invokeGuardedCallbackDev (VM78358 react-dom.development.js:238)
    at invokeGuardedCallback (VM78358 react-dom.development.js:293)
    at beginWork$1 (VM78358 react-dom.development.js:23235)
    at performUnitOfWork (VM78358 react-dom.development.js:22186)```

@adam-stasiak thanks for your thorough test! 🙂 You are right, for dual line chart I can also see this error. However, it occurs also on the master branch. I have checked this problem and I think you had discovered another bug - which is indirectly connected with the bug described above.
In some charts, which according to superset-ui do not have any supported annotation types, it is possible to add one. For example dual line chart - in the left bar, Add Annotation Layer button should be hidden. Bar chart does not have any supported annotation types and this section is hidden - it works fine in that case. The problem may be that in some cases, it is not properly checked and the section is shown for incorrect charts.

@adam-stasiak thanks for your thorough test! 🙂 You are right, for dual line chart I can also see this error. However, it occurs also on the master branch. I have checked this problem and I think you had discovered another bug - which is indirectly connected with the bug described above.
In some charts, which according to superset-ui do not have any supported annotation types, it is possible to add one - at least try to do that, because it does not work. For example dual line chart - in the left bar, Add Annotation Layer button should be hidden. Bar chart does not have any supported annotation types and this section is hidden - it works fine in that case. I suppose the problem may be that in some cases, it is not properly checked and the section is shown for incorrect charts.

Considering @adam-stasiak test, to finish this PR, I suggest this fix to avoid crashing the chart:
adding annotations to dual line chart before:

after:

thanks for the fix! a temporary solution should be good for now, ideally we should specify the types of annotation that support any given chart type in control.
cc: @villebro

@agatapst tested and looks fine!


[BUG] The button doesn't respond after switching account/network

The button doesn't respond when clicked within the first 10 seconds after switching accounts/network

@Peppermint1020 which button is not responding?

@Peppermint1020 which button is not responding?

When I created this issue ticket, within 5 seconds of switching accounts, none of the buttons on the homepage were responsive. However, when I tested the current version, a loading effect was added to the homepage after switching accounts, and the issue no longer occurs.
@zhouxl Could you please confirm if you've already fixed this issue?

@jeden all button on first tab are not responding within the first 10 seconds after switching accounts/network,

@zhouxl
I tested on my phone and I can't reproduce this issue, unless I am tapping the wrong buttons :-)
I repeatedly swapped main <-> linked accounts, and networks as well, then immediately pressing random button on the first tap.
What do you mean by system version number? That I should try with older iOS versions?
https://github.com/user-attachments/assets/9923befd-dadb-48ad-8695-fba2056dec3c

Can't reproduce it for now, close it.
If it reproduce again, we will reopen it


feature - new relative component; use in Absolute story

resolves #318 -- separate relative component in addition to the absolute component

Updated Icon snapshot

Codecov Report

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

@@          Coverage Diff          @@
##           master   #337   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          41     42    +1
  Lines         475    484    +9
=====================================
+ Hits          475    484    +9

Impacted Files
Coverage Δ

src/Relative.js
100% <100%> (ø)

Continue to review full report at Codecov.

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

Thanks for putting this together! This looks great! I'm sure these new components will come in super handy


Add record field serialization

While doing work on LRU cache I realized it would be nice to have the record serializer for record size estimation. So took a crack at closing https://github.com/apollographql/apollo-android/issues/265.
Our current network parsing set-up follows this pattern BufferedSource -> Map<String, Object> -> T Data.  Where BufferedSource represents a json, and the transformation to Map<String, Object>. This transformation is performed by ResponseJsonStreamReader.
When reading from the cache, we want to go from Cache -> Map<String, Object> where this map must be in nearly the same form as the network response. The difference is that this map replaces objects with CacheReferences.
It seemed bad to duplicate all the code in ResponseJsonStreamReader so I opened ResponseJsonStreamReader for extension, and write a very light CacheJsonStreamReader which strongly types CacheReferences instead of parsing them as strings. I don't love relying on inheritance (although it is very lightweight) so @sav007 if you have any other ideas of how to share the code here, please let me know.
Currently, when reading from the SQL store we get a string. This might be bad for the memory concerns that @digitalbuddha had. So I added a fromBufferedSource to the FieldAdapter (which we use under the hood in fromJson.) But we might need to expand the SQLStore to having some sort of streaming byte array for reading records.

Decided to remove the record sizing stuff from this PR. I don't think calculating the size of the json string is the "right" way to do this, especially for the primary use case which is the memory lru cache.


[HUDI-2169] Remove keyby when write.operation is Insert

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contributing.html before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Overall looks good, can we add an ITCase in HoodieDataSourceITCase for insert mode ?

Overall looks good, can we add an ITCase in HoodieDataSourceITCase for insert mode ?

Ok, I will add a ITCase.

Codecov Report

Merging #3265 (13d4f34) into master (b0089b8) will increase coverage by 3.40%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #3265      +/-   ##
============================================
+ Coverage     47.72%   51.13%   +3.40%
+ Complexity     5529      417    -5112
============================================
  Files           934       67     -867
  Lines         41457     3049   -38408
  Branches       4167      330    -3837
============================================
- Hits          19787     1559   -18228
+ Misses        19908     1350   -18558
+ Partials       1762      140    -1622

Flag
Coverage Δ

hudicli
?

hudiclient
?

hudicommon
?

hudiflink
?

hudihadoopmr
?

hudisparkdatasource
?

hudisync
?

huditimelineservice
?

hudiutilities
51.13% <ø> (-8.14%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...ies/exception/HoodieSnapshotExporterException.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../apache/hudi/utilities/HoodieSnapshotExporter.java
5.17% <0.00%> (-83.63%)
:arrow_down:

...hudi/utilities/schema/JdbcbasedSchemaProvider.java
0.00% <0.00%> (-72.23%)
:arrow_down:

...org/apache/hudi/utilities/HDFSParquetImporter.java
0.00% <0.00%> (-71.82%)
:arrow_down:

...he/hudi/utilities/transform/AWSDmsTransformer.java
0.00% <0.00%> (-66.67%)
:arrow_down:

...in/java/org/apache/hudi/utilities/UtilHelpers.java
44.18% <0.00%> (-23.84%)
:arrow_down:

...rg/apache/hudi/utilities/HoodieSnapshotCopier.java
0.00% <0.00%> (-13.80%)
:arrow_down:

...oop/realtime/HoodieParquetRealtimeInputFormat.java

...meline/versioning/clean/CleanMetadataMigrator.java

...ava/org/apache/hudi/cli/commands/UtilsCommand.java

... and 860 more

Continue to review full report at Codecov.

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

Please wait for my confirm before merge.

The key by is a must to avoid conflicts that multiple write task write to the same buckets. So it is a must even though the write more is insert.

Yes, I will add another check.


[$500] Thread shows up as "Chat Report" in LHN

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.37-1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707241155686709
Action Performed:

Go to a room on a workspace in account A
Initiate a message
in the thread tag account B

Expected Result:
Thread title should show up in my LHN
Actual Result:
Chat Report shows up as the thread title in my LHN
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/38435837/7401794b-19a8-4d83-8f98-c3520d65fef7

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01ae85a8837bff1a48
Upwork Job ID:<PHONE_NUMBER>975108096
Last Price Increase: 2024-02-06

Since I could not reproduce this, is it still reproducible to anyone else?
Thank you.

Notes
I think the pusher did not include parentReportActionID in the report.
Hence, it could not be classified as a thread but as a Policy Chat Room.
This is because the isChatThread function needs parentActionID and parentReportActionID to return true.

Notice after opening the thread, parentReportActionID gets merged.
Then, the report is recognized as a thread.

Therefore, I believe the most reasonable solution is to inspect the pusher and parentReportActionID alongside parentActionID.

🎀 👀 🎀 possible internal issue

Investigating today...

I'm not sure if I'm getting this issue correctly, but this is what is see:

The user that was mentioned and invited into the room see the "whisper" as the LHN, but this whisper is not really for them so when they open the chat, it is not visible and shouldn't have been used as the "last message" in the LHN
Is this correct? or is there something else that is wrong?

The reproduction steps seem to be incomplete. For which user does the thread show up as "Chat Report"? that didn't happen to any user in my test.

From further testing it seems like the right steps are:

Create two accounts accountA and accountB
Login with both accounts in different sessions
With accountA create a workspace and a room
Send a message in the room and create a thread
In the thread send a message mentioning the accountB, something like Hello<EMAIL_ADDRESS>Click "Invite them"

See that the chat will show up in accountB's LHN as "Chat Report"

The command that is probably pushing an incomplete event to the invited user is ResolveActionableMentionWhisper. Will continue investigating that tomorrow.
The last message being incorrect in the LHN reported here seems to be an unrelated bug.

PR up https://github.com/Expensify/Auth/pull/9933
@Tony-MK 's assessment here was on point, the parentReportActionID was missing in some backend code producing the report structure for onyx.

PR https://github.com/Expensify/Auth/pull/9933 deployed

Tested well
https://github.com/Expensify/App/assets/87341702/62eab647-17fb-4259-975c-37ef5cb9b983


Remove Premium from bare metal KB

@bryanfriedman i can change this if you want? Don't want to edit a KB without checking with you though.
https://www.ctl.io/knowledge-base/servers/creating-a-new-bare-metal-server/

completed. see https://github.com/CenturyLinkCloud/PublicKB/pull/886


MBCord not working on linux

Describe the bug

deptap the .deb package (below codeblock)
run chmod +x on appimage (below codeblock)

[bittersweet@candyshop ~]$ mbcord --trace-warnings

(mbcord:761878): Gtk-WARNING **: 18:22:24.079: Unknown key GTK_THEME in /home/bittersweet/.config/gtk-3.0/settings.ini
(node:761878) UnhandledPromiseRejectionWarning: Error: Cannot create an item in a locked collection
(Use `mbcord --trace-warnings ...` to show where the warning was created)
(node:761878) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[761878:1118/182225.152886:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

install appimage from aur (below codeblock)

MBCord: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory

Expected behavior
A window to open or normal startup
Desktop (please complete the following information):

OS: Arch Linux x86_64
Server Type: Jellyfin
Version: 10.8.7

Extra Info
I seem to be missing a shared lib, but I couldn't find any missing :/
Theming issue is irrelevant, gtk ignores invalid and haven't had an issue with my lazi/bad theme file before. :3

Describe the bug
* deptap the .deb package (below codeblock)

* run chmod +x on appimage (below codeblock)

[bittersweet@candyshop ~]$ mbcord --trace-warnings

(mbcord:761878): Gtk-WARNING **: 18:22:24.079: Unknown key GTK_THEME in /home/bittersweet/.config/gtk-3.0/settings.ini
(node:761878) UnhandledPromiseRejectionWarning: Error: Cannot create an item in a locked collection
(Use `mbcord --trace-warnings ...` to show where the warning was created)
(node:761878) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[761878:1118/182225.152886:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

* install appimage from aur (below codeblock)

MBCord: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory

Expected behavior A window to open or normal startup
Desktop (please complete the following information):
* OS: Arch Linux x86_64

* Server Type: Jellyfin

* Version: 10.8.7

Extra Info I seem to be missing a shared lib, but I couldn't find any missing :/ Theming issue is irrelevant, gtk ignores invalid and haven't had an issue with my lazi/bad theme file before. :3

Hello, I am the AUR maintainer
Try to run MBcord with this command:
ls /opt/appimages/mbcord | grep libffmpeg.so
env APPDIR=/opt/appimages/mbcord /opt/appimages/mbcord/AppRun --no-sandbox %U
And send the output here


Mention the autoselect option in the documentation.

As mentioned in #32 there's a demand to mention autoselect in the documentation.

Definite +1 to this - autoselect is brilliant but I'd rather have found it an hour earlier!

This was removed in v0.11. It was half-baked and needed a better solution/implementation.


Optimization: label not needed

Hey, I'm using this version:
--version
Closure Compiler (http://github.com/google/closure-compiler)
Version: v20160517
Built on: 2016/05/18 16:21

and my example program is:
label: for(var i = 0; i < 10; i++) {
  if (i == 1) {
    continue label;
  }
  console.log(i);
}

which compiles to:
var i=0;a:for(;10>i;i++){if(1==i)continue a;console.log(i)};

Notice that continue label was translated to continue a. Since the target of a bare continue statement would be the same as continue label in this case, a could be omitted.
I know it might be silly to save two bytes on a case that doesn't happen very often, but I figured I'd document the behaviour in case it's a new observation.
I think the idea could be generalized to, "labels can be omitted from continue statements when the label is equal to the current loop" AND "labels can be omitted from break statements when the label is equal to the current loop, switch, or label"... Something like that.

I think @concavelenz was looking at this kind of thing recently.

There are two optimizations possible here (eliminating the label and eliminating the continue) but the existing minimize exit points could should handle the second if the first is taken care of.


Make shortcuts handle the case where no keys are pressed when handleKeypress is called.

Description
Prevents shortcuts attempting to handle a key down when no keys are pressed at the moment.
From what I can tell in the code, this could happen if it received a key down event, but no keys were actually down (as reported by RawKeyboard.instance.keysPressed). This might be possible if someone is simulating keys, and doing it badly (i.e. if the key down is a shift key, but the shift key modifier flag isn't set).
Related Issues

Fixes https://github.com/flutter/flutter/issues/63353

Tests

Added a test that checks this case.

Breaking Change

[X] No, no existing tests failed, so this is not a breaking change.

The code looks fine, but why would this happen in the first place? Patching it here seems dangerous to me, especially to a case that we don't know how to repro.

One repro is the one I mentioned above (I added a test for that), where something is setting incorrect modifier flags.
It can also happen with "unknown" keys that are modifier keys.  For instance, in this case the Gtk implementation doesn't set the caps lock modifier flag properly yet, so it removes the caps lock from the list of pressed keys when it synchronizes the modifiers, resulting in a key down where no keys are pressed.
I could go the route of making it an assert, but maybe it should be earlier, checking to see if no keys are pressed when a key down event is being propagated, and then dumping a bunch of info about that state when it asserts.

I guess this is the only approach available under  the current structure, but I'm worried all these will have to be rewritten into the respective engine once we move to the platform specific API, and all these tests will be invalidated.

One repro is the one I mentioned above (I added a test for that), where something is setting incorrect modifier flags.
It can also happen with "unknown" keys that are modifier keys. For instance, in this case the Gtk implementation doesn't set the caps lock modifier flag properly yet, so it removes the caps lock from the list of pressed keys when it synchronizes the modifiers, resulting in a key down where no keys are pressed.
I could go the route of making it an assert, but maybe it should be earlier, checking to see if no keys are pressed when a key down event is being propagated, and then dumping a bunch of info about that state when it asserts.

If there is indeed a use case where this is unavoidable, this approach looks good.

OK, how about this version: it will assert in debug, but not crash in release.
And I agree, this isn't ideal. The best thing would be to catch this much earlier in the engine and do something intelligent.  Doing the right thing should be easier once the platform side is the one deciding what to put into the (platform-independent) key down event.


Android: Fix AppComponent reconstructed on split screen

This commit fixes #5068
Switching between screen size or split screen causes Android AppComponent to be reconstructed and I'm initiate a restart.

Thanks, @Somena1! I see two commits:
c4a976060cb9f023727875783672368b7f752bf8 (Android) Fix AppComponent reconstructed on split screen #5068
20648f1310713b52c05945785d88f28bfb981947 Android config changes set to alphabetical
It looks like the second commit is fixing up a small problem that was introduced in the first commit. Please squash the two commits together, so there's just one commit that doesn't (knowingly) introduce any problems.
For that single commit, please make sure it follows our commit-message style.

The summary line shouldn't start with "(Android)". We have guidelines on how to write the prefix in the summary line: https://zulip.readthedocs.io/en/latest/contributing/version-control.html#good-summaries
The commit-message body should end with Fixes: #5068: https://zulip.readthedocs.io/en/latest/contributing/version-control.html#message-body

Thanks!

Hello @gnprice, I've resolved the squash and commit message.
Thanks for putting me through

Not sure if this is the right place to say this, my PR on RN addressing this issue was accepted
commit

Hello @gnprice please review my changes

@chrisbobbe please review changes in commit

Not sure if this is the right place to say this, my PR on RN addressing this issue was accepted commit

Cool! Thanks for getting that fixed upstream.
No need to @-mention maintainers pinging for a review. It can take a few business days before we review a change, but we do see them.
For cross-reference, this PR is the continuation of #5073.
This change looks good! Thanks for your work on it. Merging.

And done. I also revised the commit message -- take a look:
android: Fix restart on resizing or splitting screen

This fixes an issue where the app would restart on entering split
screen, or on resizing the app's side of a split screen.

Basically this line of the Android manifest is making an assurance to
the system that the app is prepared to handle these changes; docs here:
  https://developer.android.com/guide/topics/manifest/activity-element#config
When the system doesn't get that assurance, it just restarts the app
from scratch to be sure.

And empirically the app indeed does just fine when we add those
assurances and then go ahead and switch to split-screen mode, or
resize the app's portion of the split screen.  That layer of things is
basically all RN's job, so RN is handling this just fine -- we just
haven't been letting the system know that we're ready to do so.

Also got this fixed in the RN template app upstream:
  https://github.com/facebook/react-native/pull/32536
  https://github.com/facebook/react-native/commit/fc962c9b6

[greg: expanded commit message]

Fixes: #5068

Thanks again!


how to deal with "WARNING    Featuretools "

2020-09-15 08:00:54,276 featuretools - WARNING    Featuretools failed to load plugin nlp_primitives from library nlp_primitives. For a full stack trace, set logging to debug.
2020-09-15 08:00:54,301 featuretools - WARNING    Featuretools failed to load plugin tsfresh from library featuretools_tsfresh_primitives.init. For a full stack trace, set logging to debug.
2020-09-15 08:00:54,314 featuretools - WARNING    Featuretools failed to load plugin wrappers from library featuretools_sklearn_transformer. For a full stack trace, set logging to debug.
2020-09-15 08:00:54,323 featuretools - WARNING    Featuretools failed to load plugin autonormalize from library autonormalize. For a full stack trace, set logging to debug.

@Jie-Yuan that's a lot of failed plugins!
Try running this in terminal to get the debug log:
$ FEATURETOOLS_LOG_LEVEL=debug python -c "import featuretools as ft"

Usually these warnings are due to a dependency version problem, run pip check to check if everything is installed correctly

Closing this for now, feel free to re-open if you still have issues.


AMR Annotation Modules

AMR Annotation Modules (Option 2)
We will update the existing k-mer-based annotation software in PATRIC/RAST in order to propagate AMR-related annotations from ARDB, CARD, Resfams, and the manual annotations from AMR Curation (Option 1). We will build and deploy software that enables the direct propagation of AMR-related functions from a reference genome to a closely related strain. This will be deployed in the annotation application that is available on the PATRIC website. Propagation will be enabled for well-studied organisms at first (e.g., Escherichia coli and Mycobacterium tuberculosis), and will be expanded, as PATRIC annotations are reconciled with the reference genome annotations from the
community.

the same issue is created twice, I am closing one.


Complete MVC (content model) milestone 4

Complete internal content model (MVC) milestone 4: Create all articles for a release

Canceled.


Error while pushing artifacts to local CAS in bst1

ERROR:grpc._server:Exception calling application: [Errno 21] Is a directory: '/data/cas/objects/'
Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/grpc/_server.py", line 406, in _call_behavior
    return behavior(argument, context), True
  File "/usr/local/lib/python3.7/site-packages/buildstream/_artifactcache/casserver.py", line 381, in GetReference
    self.cas.update_tree_mtime(tree)
  File "/usr/local/lib/python3.7/site-packages/buildstream/_artifactcache/cascache.py", line 638, in update_tree_mtime
    self._reachable_refs_dir(reachable, tree, update_mtime=True)
  File "/usr/local/lib/python3.7/site-packages/buildstream/_artifactcache/cascache.py", line 792, in _reachable_refs_dir
    with open(self.objpath(tree), 'rb') as f:
IsADirectoryError: [Errno 21] Is a directory: '/data/cas/objects/'

I've debugged that this happens because https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L488 is invoked when relevant path is empty.

I've debugged that this happens because https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L488 is invoked when relevant path is empty.

When this faulty digest is passed to https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L392, then we get tree object which points to directory which results in the original error.

When this faulty digest is passed to https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L392, then we get tree object which points to directory which results in the original error.

This in turn seems possible if either

https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L466 this serialization results in empty bytestring
https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/utils.py#L498 this helper manages somehow storing data such that it doesn't properly hit filesystem

This in turn seems possible if either

https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L466 this serialization results in empty bytestring
https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/utils.py#L498 this helper manages somehow storing data such that it doesn't properly hit filesystem


[FEATURE] Print transpiled SQL query upon error

With 0.8.x, FugueSQL now transpiles SQL queries, which naturally breaks code written against 0.7.x.
However error messages due to problems with the query are still those from the SQL backend. However we cannot see by default what is the transpiled query that was sent to the backend that caused the error. So it can be very difficult to diagnose problems, as the error message does not correspond to the query that was passed to Fugue.
The obvious solution would be to print the transpiled query upon exception, perhaps optionally, specified as a parameter to .run().
Thanks for your consideration.

Great suggestion, I think we can log that as debug message, and you can enable debug messages to see the details?

Also do you think a configuration to specify the default dialect will be helpful. As of now we can't fully support other dialects, but at least whatever you have now can be supported.
fugue.sql.dialect

With fugue.sql.dialect do you mean specify the read parameter to sqlglot.transpile? This way I could specify I am using DuckDB dialect in queries passed to fsql(). It would be a simple way to migrate to 0.8.x with minimal code change which would be really great.
I would be very happy to have the transpiled SQL available as a debug message behind a flag as you suggest.
Thank you!

Ok will at least have the logging

@ttjoseph i forgot to let you know that we already can control the query dialect in fugue. We may not support all syntax of all queries, but as long as it can be parsed by our antlr parser, it's fine. Our sql syntax is relatively tolerant for different dialects.
Here is how to do it globally.
from fugue import register_global_conf

register_global_conf({"fugue.sql.compile.dialect":"duckdb"})

or you can just put that in your engine config.

Thank you!On Feb 16, 2023, at 2:53 AM, Han Wang @.***> wrote:
@ttjoseph i forgot to let you know that we already can control the query dialect in fugue. We may not support all syntax of all queries, but as long as it can be parsed by our antlr parser, it's fine. Our sql syntax is relatively tolerant for different dialects.
Here is how to do it globally.
from fugue import register_global_conf
register_global_conf({"fugue.sql.compile.dialect":"duckdb"})
or you can just put that in your engine config.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>


Fixed showing "developing" for shipped features

Fixed https://github.com/mozilla/platform-status/issues/484 by comparing to the beta version instead of the no-longer-exists Aurora version. Also removed references to the developer edition (since it is the same as beta) and made the nightly version accurate as it is now exposed in the JSON.

This is the mentioned JSON -
https://svn.mozilla.org/libs/product-details/json/firefox_versions.json
The Aurora version is empty, which caused the issue.

Thanks for the investigation and the PR!


Disallow persist to read incomplete file

Persisting a file only makes sense once the file is complete. When persist reads an incomplete file, it will treat the persist as successful even if the file wasn't completely written yet. Therefore, persist should not be able to read an incomplete file.

@aaudiber

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1908/
Test PASSed.


More tests and examples

Add: Basic example with message encryption
Modify: constant visibility
Removed: benchmarking feature, criterion now back in dev-deps
Add: multiple KEX tests in various failure modes
Update: docs and readme
closes #55, closes #53, closes #48

Criterion as a dev-dep is causing ASAN checks to fail in the test suite. Reverted back to it being behind the benchmarking features

AEAD as an dev-dependency for the example is failing on rust 1.47 because of its MSRV

Removed full hybrid PKE example.
Due to interactions with dev-deps, CI and MSRV it's simpler to move the example elsewhere.
The CI actions could be refactored to accommodate them but pulling in additional dev-deps just for an example are a cold-compile burden on maintainers, given the all the feature combinations in testing this adds up. A separate repo containing examples seems more prudent long-term.
The benchmarking feature should eventually go into RUSTFLAGS just like the KAT's did but I've left that for now.
No breaking changes made.


Error in<EMAIL_ADDRESS>Uncaught TypeError when assigning to read-only property '10'

Description:
I encountered an error when upgrading from version 3.2.2 to version 3.2.4 of the Uniswap/sdk-core library. The error occurs while trying to assign a value to a read-only property '10' in the string '0x1F98431c8aD98523631AE4a59f267346ea31F984'. Upon investigating, it appears that the issue originates from the following line of code:
var V3_CORE_FACTORY_ADDRESSES = _extends({}, SUPPORTED_CHAINS.reduce(function(memo, chainId) {     return memo[chainId] = CHAIN_TO_ADDRESSES_MAP[chainId].v3CoreFactoryAddress; }, {}));
Expected Behavior:
After upgrading to version 3.2.4, the code should execute without any errors, and the assignment to the read-only property should not occur.
Actual Behavior:
When executing the code with version 3.2.4, an Uncaught TypeError is thrown, indicating that it is not possible to assign a value to a read-only property '10' in the string '0x1F98431c8aD98523631AE4a59f267346ea31F984'.
Root Cause:
The error occurs in the reduce function during the second round, where the memo variable becomes a string. Attempting to define a property on a string is not allowed, causing the error.

Hello guys, I`m having the same issue!
Do you know how much time it takes to take effect on NPM ?
I`m running this version using npm, but it does not find the version 3.2.5
thankss

Hello guys, I`m having the same issue!
Do you know how much time it takes to take effect on NPM ? I`m running this version using npm, but it does not find the version 3.2.5 thankss

@Menniti 3.2.5 ended up having a build issue and has been deprecated. 3.2.6 corrects this and can be found here https://www.npmjs.com/package/@uniswap/sdk-core


[Node.js] Application is not restarting after node_modules deployment

When only changes are made within the root node_modules folder, files are deployed but the application is not restarted.
To force restart of the application I added a final step to my deploy.sh :
touch "$DEPLOYMENT_TARGET/host.json"

It's working but it looks kind of a hack.

Why is kudu not watching for changes within node_modules folder? Should kudu watch node_modules?
Is there a way to restart the application within my deploy script? (see this question)

Context :

Using Azure Function with Node.js
Building my application on my own CI machine : The builds already includes all dependencies in node_modules
The build is deployed on Azure with git
Default deploy strict is making an npm install --production and because I already have all my dependencies in ma build, I made a custom deploy script that skips the npm install

My structure looks like :
function1
    function.json
    index.js
function2
    function.json
    index.js
.deployment
deploy.sh
host.json
package.json

Why is kudu not watching for changes within node_modules folder? Should kudu watch node_modules?

I think it's important to distinguish between the deployment and the runtime of the app. Kudu's only involvement is to deploy the app, i.e. to get all the files where they belong. But it has no involvement at all in running the app. It's iisnode that runs the app, regardless of how it was deployed (e.g. you could use FTP).

Is there a way to restart the application within my deploy script?

Everything Kudu does is file based, so the only channel is has to restart a site is to modify a file that would trigger a restart. I believe that Kudu by default ends up touching web.config at the end, which should restart node. You can try manually touching it in Kudu console to check this.
Not a complete answer, but hopefully some helpful context :)

Oh, I just realized that your question relates to Azure Functions and not a plain Node site. The part about Kudu not being involved in the runtime is still true, but the iisnode part is not relevant.
So the issue is really about the behavior of the Function Runtime, and how it handles change notifications. Could you open an issue on https://github.com/Azure/azure-webjobs-sdk-script/ instead, so it's tracked in the right place? Thanks!

Allright thank you for your reply @davidebbo (I was actually hesitating between here and webjobs-sdk on where to open the issue :bowtie:).
I "moved" the issue here : https://github.com/Azure/azure-webjobs-sdk-script/issues/608


Code contained multiple issues that needed to be addressed

Describe the bug
The code provided earlier had a few issues in the users.dart file
Prerequisites
[-]  I am running the latest version
[-]  I checked the documentation and found no answer
[-]  I checked to make sure that this issue has not already been filed
[-]  I'm reporting the issue to the correct repository (for multi-repository projects)
To Reproduce
Steps to reproduce the behavior:

Go to Friday Repo
Click on 'lib\models\users.dart
See error

Expected behavior
users.dart file with no errors and clean code

hey @avinashkranjan please assign me this issue
Thank you


Add anonymous user flag

ref #1370

[ ] Add anonymous user flag in user model
[x] Add anonymous user flag header in session resolver
[ ] Update SDK user model

Since user API model creation is tightly coupled within Auth API handlers. I'll postpone the update of user model until we've decided whether to drop Auth API in #1434 .

Workarounds at the moment:

Detect signup of anonymous users: use after_user_create hook and check if any of the identities is of anonymous type.
Detect promotion of anonymous user to normal user: use after_identity_delete hook and check if any of the deleted identities is of anonymous type.


Possible typo in doc of constant_initializer

In the doc of constant_initializer, it says that the argument value should be:

value: A Python scalar. All elements of the initialized variable will be set to this value.

But in fact, it can take array-like argument and initialize variables properly with it. So I guess it's a mistake in the doc? It's kind of misleading for beginners.
Thanks!

The documentation is intentionally vague on this point. Currently, you can pass any array-like argument that is supported by tf.constant(), but this is an implementation detail, and it is unreliable since constant_initializer() can be used to create variables of different shapes. Only a scalar argument has a well-defined meaning (fill a tensor of the given shape with that scalar value) for all possible shapes.

Got it, thanks.
Best Regards,
Lifu Huang
2016-05-18 14:37 GMT+08:00 Derek Murray<EMAIL_ADDRESS>
Closed #2410 https://github.com/tensorflow/tensorflow/issues/2410.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/2410#event-663975886


Create trestle task that converts a CIS controls spreadsheet into an OSCAL catalog.

Today we (trestle team) have an existing script that can parse CIS spreadsheets to create a catalog.
Convert, and unit test, this capability into a trestle task that creates the catalog as an 'unofficial' CIS OSCAL catalog.
Add to the demonstration trestle repo articulated in #472

Closing completed as part of the trestle demo repo. Given we can't release the CIS spreadsheet to test I think that is the best we can do.


⚠ API - Lens has degraded performance

In 3b31d97, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 361 ms

Resolved: API - Lens performance has improved in 18a7d2f after 7 minutes.


[Feature] Add ClickHouse Dynamic Table Connector

Description
[Feature] Add ClickHouse Dynamic Table Connector
Use case
[Feature] Add ClickHouse Dynamic Table Connector
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I will provide code for this issue


Inanimate Tags

I have noticed an issue with these TagClouds. Whenever I add a number of tags, some of the tags are not visible (only when hovered over using a mouse). These tags are also not moving and stay in the same (central) position. Whether or not a tag has this issue appears to be random.
I'm sorry if this is a mistake on my side, but the randomness of the error is what makes me think it is not.

Could you post code to show me how you add the tags?

Absolutely! I push a list of strings gained from a SPARQL query to a myTags array and update the tagCloud after every tag.
<script src="./TagCloud.min.js"></script>
    <script>
      var myTags = [];

      var tagCloud = TagCloud('.content', myTags,{

        // radius in px
        radius: 425,

        // animation speed
        // slow, normal, fast
        maxSpeed: 'normal',
        initSpeed: 'normal',

        // 0 = top
        // 90 = left
        // 135 = right-bottom
        direction: 135,

        // interact with cursor move on mouse out
        keep: true

        });
    </script>

    <script>
      function filltags(){
        var url = "http://localhost:5820/Barbara/query?reasoning=true";
        var query = "PREFIX BarbaraNanning: <http://www.semanticweb.org/ontologies/Daan/2020/BarbaraNanning#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT DISTINCT ?label WHERE { ?x rdfs:label ?label. {?x rdf:type owl:Class.} UNION {?x rdf:type owl:NamedIndividual.} }";

        $.ajax({
          headers : {
              Accept: 'application/sparql-results+json'
          },
          url: url,
          data: {
              query: query
          },
          success: function(data) {
              var results = data.results.bindings;
              results.sort(function() { return .5 - Math.random();});
              var limit = 75;
              var limitresults = results.slice(0, limit);
          $.each(limitresults, function(key,data){
            var artworkLabel = data["label"]["value"];
            myTags.push(artworkLabel);
            tagCloud.update(myTags);
          });
          }
        });
      }
    </script>

An important note is that this goes right for over 90% of the tags. It often only fails for 2.

How many tags have you added? and what browser are you using?

I have added a total of 75 tags. However, at times I had the same problem with 10 or even 1 tag.
I have reproduced the issue both using Chrome and Safari.

Ok, thanks for your feedback. I will try to reproduce and solve this issue in the near future, and optimize some performance

Sorry to reply you so late, you can try v2.2.0, some optimizations have been made to the animation

Sorry to reply you so late, you can try v2.2.0, some optimizations have been made to the animation


Docs served without SSL, though SSL is set

Thank you for this thoughtfully-designed, helpful tool - I've had a great experience so far in migrating my org's research handbook to Read The Docs. I just encountered this small glitch when setting up a custom domain for testing.
Details

Read the Docs project URL: https://doccydoc.readthedocs.io/
Custom domain: https://newhelp.securityforcemonitor.org/

Expected Result
If the user visits https://newhelp.securityforcemonitor.org/en/latest/ the pages are correctly served with SSL. If the user visits http://newhelp.securityforcemonitor.org/en/latest/ it should redirect to the https://~ version.

Actual Result
The redirect does not occur, and the documentation is served as http://~.

Action taken
I've tested it on current Chrome, Firefox and Safari browsers, and the behaviour is the same.
I think I've set everything up correctly on the RtD admin pages:

I've also set up the CNAME record with our name server. Current DiG output is:
$ dig newhelp.securityforcemonitor.org
; <<>> DiG 9.10.6 <<>> newhelp.securityforcemonitor.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24934
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 2, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;newhelp.securityforcemonitor.org. IN	A

;; ANSWER SECTION:
newhelp.securityforcemonitor.org. 11371	IN CNAME readthedocs.io.
readthedocs.io.		257	IN	A	<IP_ADDRESS>
readthedocs.io.		257	IN	A	<IP_ADDRESS>
readthedocs.io.		257	IN	A	<IP_ADDRESS>
readthedocs.io.		257	IN	A	<IP_ADDRESS>
readthedocs.io.		257	IN	A	<IP_ADDRESS>

;; AUTHORITY SECTION:
readthedocs.io.		33757	IN	NS	ivan.ns.cloudflare.com.
readthedocs.io.		33757	IN	NS	tegan.ns.cloudflare.com.

;; Query time: 57 msec
;; SERVER: <IP_ADDRESS>#53(<IP_ADDRESS>)
;; WHEN: Wed May 22 10:39:12 BST 2019
;; MSG SIZE  rcvd: 225

Perhaps this is something that will just resolve with a bit more time, or have I missed something important? Thanks again for any guidance you can offer.

Okay, so time is the great healer: it fixed itself!

Actually no it didn't - sorry, reopening.

@tlongers thanks for your report.
We are already aware about this and we have this issue opened to track this issue at #4641. Please, subscribe there to be notified about any news.
I'm closing this one.

Thanks @humitos


Add ansatz parameter to the objective function

This seems reasonable, but I haven't developed a strong rationale for it yet.  Another candidate to add is simulation_settings, but in some places that is called settings.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

2 of 3 (66.67%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 95.253%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit_addon_aqc_tensor/objective.py
2
3
66.67%

Totals

Change from base Build<PHONE_NUMBER>8:
-0.1%

Covered Lines:
602

Relevant Lines:
632

💛  - Coveralls


Use same ffmpeg prompt

In Windows, DiscordStreamer re-opens a new command prompt after every song to run ffmpeg.exe. It should run in the same prompt like RethinkDB instead of creating a new prompt every time, anything you guys can do about this?

Don't think that is possible, as it is a ffmpeg/ytdl-core thing

Don't think that is possible, as it is a ffmpeg/ytdl-core thing

I was thinking maybe it could execute ffmpeg with the /k variable, but I'm still researching.

I was thinking maybe it could execute ffmpeg with the /k variable, but I'm still researching.

That's API library side issue, which we are not fixing.

That's API library side issue, which we are not fixing.


Suggestion: add an area for free text

I played around with some text-snippets, copy&paste, saving the value from the "xpath-copy" and so on - and I had to open my text editor to handle all my small-snippet-stuff.
So maybe you could add a small "text editor area / function" to XMLNotepad? Just a quick idea, not first priority ..

Nice idea, but out of scope for xml notepad.  How about you use "window/newwindow" and add a new root element named "clipboard", then copy paste snippets into this "clipboard" document as needed ?


Show invisible and occupied workspace for sway.

Is that possible ? If this have been asked before, feel free to close it. Thanks.

Does it because sway only show workspaces that contain windows? Then waybar has nothing to do with.

Well, other bar seems able to do it (e.g yambar), I tried tho. So, waybar doesn't have such configurations for it yet.

Have you tried the persistent_workspaces setting?

Have you tried the persistent_workspaces setting?

That's not what I want to achieve, I'll post a picture to describe it.

So, it's yambar, I want to achieve something like this, for example workspace one where some windows opened but unfocused and workspace 3 with window and focused and the rest is from persistent workspace. Waybar just have persistent workspace, visible, and focused for style, but waybar doesn't have something like unfocused.

So, it's yambar, I want to achieve something like this, for example workspace one where some windows opened but unfocused and workspace 3 with window and focused and the rest is from persistent workspace. Waybar just have persistent workspace, visible, and focused for style, but waybar doesn't have something like unfocused.

Sorry, It's my second GitHub account.

Try the following.  In your waybar config, use:
    "sway/workspaces": {
        "disable-scroll": true,
        "persistent_workspaces": {
            "1": [],
            "2": [],
            "3": [],
            "4": [],
        },
    },

and in your style.css, use:
#workspaces button {
    transition: none;
    color: white;
    background: transparent;
    padding: 5px;
    font-size: 18px;
}

#workspaces button.persistent {
    color: yellow;
    font-size: 12px;
}

#workspaces button.focused {
    color: lightgreen;
}

Large green number:  indicate focused workspace with or without opened window(s).  Note: being focused, it enables you to see if the workspace has opened windows.
Large white number: indicate unforcused workspace(s) with opened window(s).
Small yellow number: indicate unforcused workspace(s) without opened window.
Not exactly what you are looking for but does the trick for me. Simply adjust the styles as you see fit and add persistent workspaces for your requirement.


It's need to release directory lock. to avoid error: rmdir($directoru); Text file busy.

https://github.com/laravel/framework/blob/a9098eed14b79f570b84e4698b5b1f296758cd04/src/Illuminate/Filesystem/Filesystem.php#L703
        // need unset $items before remove am empty dir.
        unset($items); // here.
        if (! $preserve) {
            @rmdir($directory); // Text file busy
        }

Is there no repair plan for the time being? @driesvints

@mouyong please use a support channel

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

Or attempt a PR

When I use $this->app->files->deleteDriectory(); it cannot remove the directory. because $items = new FilesystemIterator($directory); take the resource lock, but not release the lock.


[android] Updated Elevation implementation so that it works with differents borders sizes

When using elevation while using the triangle css tricks, the shadow is not good.
before:

after:

@machard , thank you for catching this bug I missed. Do you think we can put some example code for this in UIExplorer? Maybe add a shadow to the example triangle? @mkonicek @dmmiller

cc @corbt

cc @kmagiera

What happens if you have a triangle that also sets a border radius on one or more borders?
I imagine that this PR doesn't make that situation worse, but is there a way we can extend the logic so it covers that as well?

@corbt If i'm not mistakien, border radius on android will make/need all borders to have the same width.

@machard ok. Agree that adding a triangle with a shadow somewhere to the UIExplorer sounds like a good idea. Otherwise LGTM!

Thanks for doing this! Please add the example in the UIExplrorer, maybe in the View example.

@machard do you have any updates for this pull request? It's been a while so we wanted to check in and see if you've looked at the requested changes.

@machard I'm going through all pull requests and noticed that this one hasn't been updated in a while and has some comments asking questions. I'll unfortunately close this for now (it's a useful fix!) to keep the number of open pull requests down; if you plan to continue working on it please send a new pull request linking to this one.


[DOC]: Ransomware Detection example, how to produce the input data?

How would you describe the priority of this documentation request
Medium.
Describe the future/missing documentation
I asked ChatGPT which said,
The intended workflow for Morpheus likely involves automated data collection from various system components, which is then processed and analyzed for anomalies or patterns indicative of ransomware or other malicious activities. The data collection could be done through specialized software that monitors system activities and generates these JSON files. This software could be running on each client machine or could be part of a centralized monitoring system.
If you're looking to replicate this on a Linux system like Ubuntu, you could indeed write a series of Python scripts to collect similar data. However, a more scalable approach might be to use system monitoring tools that can output data in a format that Morpheus can ingest.
For example, you could use:

ps for process listing
netstat for network connections
lsof for open files
env for environment variables

You could then schedule these commands to run at regular intervals using cron and output their results to JSON files. These JSON files could then be sent to a centralized location for analysis by Morpheus.
Here's a simplified example using Python to collect process list and environment variables, similar to pslist and envars:
import json
import os
import subprocess

def get_pslist():
    ps_output = subprocess.getoutput("ps aux")
    ps_list = ps_output.strip().split("\n")[1:]
    return [{"user": x.split()[0], "pid": x.split()[1], "cmd": " ".join(x.split()[10:])} for x in ps_list]

def get_envars():
    return dict(os.environ)

def main():
    pslist_data = {
        "plugin": "pslist",
        "data": get_pslist()
    }

    envars_data = {
        "plugin": "envars",
        "data": get_envars()
    }

    with open("pslist.json", "w") as f:
        json.dump(pslist_data, f, indent=4)

    with open("envars.json", "w") as f:
        json.dump(envars_data, f, indent=4)

if __name__ == "__main__":
    main()

You can then schedule this script to run every 30 minutes using cron:
# Open the crontab editor
crontab -e

# Add the following line to run the script every 30 minutes
*/30 * * * * /usr/bin/python3 /path/to/your_script.py

This is a simplified example and may not capture all the details you need, but it should give you a starting point.
Although the example given in the repo seems to be Windows?  Also, where can I learn more about the required inputs for this model?  Ie. can I use it with fewer kinds of .json files in each snaphsot-x folder or more?  I saw this: https://docs.nvidia.com/morpheus/models_and_datasets.html but there's no detailed explanations of the models.  Ideally I'd like to read up on each model available on Morpheus with links to source code even if that's possible (or like detailed model cards?  are they called like on Hugging Face that descrtibe what the model expects in terms of input and what it outputs (shape, types, etc.).   That's two questions in one issue here with priority for the first one.
Where have you looked?
https://github.com/nyck33/Morpheus_nkim_fork/tree/branch-23.11/examples/ransomware_detection
https://docs.nvidia.com/morpheus/models_and_datasets.html
https://github.com/nyck33/Morpheus_nkim_fork/blob/branch-23.11/models/ransomware-models/ransomw-model-short-rf-20220126.sav
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I have searched the open documentation issues and have found no duplicates for this bug report

I found some things like https://github.com/nv-morpheus/Morpheus/blob/branch-23.11/examples/ransomware_detection/common/feature_extractor.py


Use total_seconds() to get convert timedelta to seconds

timedelta is composed of 3 components (days, seconds and microseconds), so timedelta.seconds wraps every day.

👍


test: add debug message for cleanup function reset disk

test: add debug message for cleanup function reset disk
If wait_for_disk_status(key ="storageScheduled", value=0) failed, it means there is a volume replica scheduled to this disk and causes some storage being occupied, so the value is non-zero and fail the assertion.
But since we have deleted all volumes before, what causes this problem is still unknown. Add more debug messages to see if it
can provide more information.
For https://github.com/longhorn/longhorn/issues/5120
Signed-off-by: Yang Chiu<EMAIL_ADDRESS>

@mergify backport v1.5.x v1.4.x


CSV editing should occur in-place (copy)

Version?

vs code plugin

Feature
Copy of #79

Why not make this extension a VSCode Custom Editor
That would be a better user experience

Duplicate of #96


Private Endpoint Custom DNS Settings

There is a lack of documentation on adding custom DNS configurations to private endpoints. For example, when we click on "Add Configuration", we get a new dialog box for adding custom DNS records, but there is no explanation of those fields. This is especially true for "DNS zone group." You need to explain somewhere what this is for, examples and implications.

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

ID: d16533ae-5e19-5769-4c29-581152f8c30c
Version Independent ID: 3f1b2b47-0bfe-b65c-ad0a-cca3586f7ba7
Content: Quickstart - Create a Private Endpoint using the Azure portal
Content Source: articles/private-link/create-private-endpoint-portal.md
Service: private-link
GitHub Login: @asudbring
Microsoft Alias: allensu

@Vegas588 Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.

Sending to PM for review
#reassign:@ivapplyr

@Vegas588 Thank you for the feedback!  We have created a work item to investigate.
#please-close