Change back to version 2 of docker-compose file

Solved Issue: #5
Because I consider using Kubernetes for the production environment.
So version 2 is enough for me, and also because in version 2,
I can use depends_on with conditions.

Codecov Report

Merging #6 (2bd112b) into master (786beef) will increase coverage by 20.60%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master       #6       +/-   ##
===========================================
+ Coverage        0   20.60%   +20.60%
===========================================
  Files           0       30       +30
  Lines           0     1364     +1364
===========================================
+ Hits            0      281      +281
- Misses          0     1072     +1072
- Partials        0       11       +11

Impacted Files
Coverage Δ

...ternal/healthcheck/delivery/api/healthcheck_api.go
100.00% <0.00%> (ø)

internal/token/repository/postgres/token_repo.go
0.00% <0.00%> (ø)

internal/token/usecase/token_usecase.go
100.00% <0.00%> (ø)

cmd/server/config.go
0.00% <0.00%> (ø)

internal/domain/password.go
0.00% <0.00%> (ø)

internal/reactor/reactor.go
100.00% <0.00%> (ø)

internal/domain/filters.go
84.61% <0.00%> (ø)

internal/user/repository/postgres/postgres_repo.go
0.00% <0.00%> (ø)

internal/user/usecase/user_usecase.go
32.65% <0.00%> (ø)

internal/logger/zerolog/zerolog.go
73.33% <0.00%> (ø)

... and 20 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 786beef...2bd112b. Read the comment docs.


[Retention Policy] Stop run once limit is hit

Summary
Problem
The RP JQ does not stop running when the limit of records is hit. It continues on to the next table. Whenever the limit is hit, a new JQ will be created.
Solution
Set EndCurrentRun to true when the limit is hit. That stops the entire RP from proceeding further until the next JQ run.
Work Item(s)
Fixes AB#497286

no test? it's kinda where this went wrong the first time... :-P

Yeah, I need to add a new test library and all. Testing first before I push that. :)


unable to edit scan job

Describe the bug
Unable to edit scheduled scan job.
To Reproduce
Steps to reproduce the behavior:

create a scan job with a recurrence schedule
try to edit it, blank screen

Expected behavior
Able to edit scan job.
Screenshots

Versions (please complete the following information):

Browser: chrome
Automate Build Number:<PHONE_NUMBER>3830

Additional context
Add any other context about the problem here.

this may have been caused by some other testing that was happening on the instance. i am unable to repro reliably

so i'm able to reliably reproduce in one environment (a2-local-inplace-upgrade-acceptance.cd.chef.co) but not any other.

ah ok, unable to repro. must have been due to the testing. closing.


Update the README.md to match new state of the world

I want to do this so that users will be able to quickly get started by reading the README.md.

This has been merged into master and therefore I am closing this issue.


Download button is down

Clicking it will just append a # to the url
http://postitall.txusko.com/plugin.html

Thanks for the warning.
https://github.com/txusko/PostItAll/commit/f29c06129f98ef9f4e5e9e319f001ebccee192a6
Regards
Javi Filella


[HOLD] [MEDIUM] Frontend: Remove Group DMs from the App code

Group Chats Design Doc
Once we completely migrate all Group DMs in the db we can stop supporting them in the App code. This is largely a clean up task and whoever picks it up will need to check for outdated code related to or mentioning group DMs.

Moving to weekly just so Melvin doesn't keep closing.


Http_health_check still doesn't work in STRICT_DNS type

Hello! ^_^
I have changed the type from LOGICAL_DNS to STRICT_DNS,but http_health_check still doesn't work.
The image version: envoy-alpine:v1.9.0
Config:
clusters:
  - connect_timeout: 1s
    lb_policy: LEAST_REQUEST
    hosts:
      socket_address: {address: <service_name>, port_value: <port>}
    health_checks:
    #- unhealthy_interval: 180s
    - healthy_threshold: 3
      unhealthy_threshold: 3
      #interval_jitter: 1s
      interval: 60s
      http_health_check: {path: "/health"}
      timeout: 1s
      reuse_connection: true
      event_log_path: /healthcheck.log
      always_log_health_check_failures: true
    name: <service_rest>
    type: STRICT_DNS
  - http2_protocol_options: {}
    connect_timeout: 1s
    lb_policy: LEAST_REQUEST
    hosts:
      socket_address: {address: <service_name>, port_value: <port>}
    name: <service_grpc>
    type: STRICT_DNS

Log contents:
{"health_checker_type":"HTTP","host":{"socket_address":{"protocol":"TCP","address":"<IP_ADDRESS>","resolver_name":"","ipv4_compat":false,"port_value":"<port>"}},"cluster_name":"<service_rest>","health_check_failure_event":{"failure_type":"ACTIVE","first_check":false},"timestamp":"2019-11-01T05:35:30.584Z"}

Enter the envoy container and execute the curl command:
/ # curl -I <service_name>:/health
HTTP/1.1 200
Content-Type: <>
Transfer-Encoding: chunked
Date: Fri, 01 Nov 2019 06:14:30 GMT
Grafana graph:

From the graph,  the health check seemed to work only for a split second after I deployed the service.
Metrics:
envoy_cluster_health_check_healthy{instance="ip:port"}
Prometheus graph:

envoy_cluster_health_check_network_failure

envoy_cluster_health_check_passive_failure

So, I wonder if this is due to configuration or something else.I had looked at the envoy's official profile of the health check configuration and tried the Google, but couldn't find a solution.
Now, this may be my last hope.Thank you very much！

Hard to say what is happening here without more complete logs and stats. Please provide them.

There are many other services with similar configurations.So I only pasted two of the route configurations.
Config:
static_resources:
  listeners:
  - address:
      socket_address: {address: <IP_ADDRESS>, port_value: 9191}
    name: rest_listener
    filter_chains:
    - filters:
      - name: envoy.http_connection_manager
        config:
          http_filters:
          - {name: envoy.router}
          stat_prefix: ingress_http
          route_config:
            virtual_hosts:
            - routes:
              - route:
                  cluster: configserver_rest
                  prefix_rewrite: /
                  retry_policy: {retry_on: 5xx, num_retries: 3}
                match: {prefix: /configserver/}
              - route:
                  cluster: uidgenerator_rest
                  prefix_rewrite: /
                  retry_policy: {retry_on: 5xx, num_retries: 3}
                match: {prefix: /uidgenerator/}
              name: rest_host
              domains: ['*']
            name: rest_route
          codec_type: AUTO
  - address:
      socket_address: {address: <IP_ADDRESS>, port_value: 7676}
    name: grpc_listener
    filter_chains:
    - filters:
      - name: envoy.http_connection_manager
        config:
          http_filters:
          - {name: envoy.router}
          stat_prefix: ingress_http
          route_config:
            virtual_hosts:
            - routes:
              - route:
                  cluster: configserver_grpc
                  prefix_rewrite: /
                  retry_policy: {retry_on: 5xx, num_retries: 3}
                match:
                  prefix: /configserver/
                  grpc: {}
              - route:
                  cluster: uidgenerator_grpc
                  prefix_rewrite: /
                  retry_policy: {retry_on: 5xx, num_retries: 3}
                match:
                  prefix: /uidgenerator/
                  grpc: {}
              name: grpc_host
              domains: ['*']
            name: grpc_route
          codec_type: AUTO
  clusters:
  - connect_timeout: 1s
    lb_policy: LEAST_REQUEST
    hosts:
      socket_address: {address: configserver, port_value: 9191}
    health_checks:
    #- unhealthy_interval: 180s
    - healthy_threshold: 3
      unhealthy_threshold: 3
      #interval_jitter: 1s
      interval: 60s
      http_health_check: {path: "/health"}
      timeout: 1s
      reuse_connection: true
      event_log_path: /work/healthcheck.log
      always_log_health_check_failures: true
    name: configserver_rest
    type: STRICT_DNS
  - http2_protocol_options: {}
    connect_timeout: 1s
    lb_policy: LEAST_REQUEST
    hosts:
      socket_address: {address: configserver, port_value: 7676}
    name: configserver_grpc
    type: STRICT_DNS
  - connect_timeout: 1s
    lb_policy: LEAST_REQUEST
    hosts:
      socket_address: {address: uidgenerator, port_value: 9191}
    health_checks:
    #- unhealthy_interval: 180s
    - healthy_threshold: 3
      unhealthy_threshold: 3
      #interval_jitter: 1s
      interval: 60s
      http_health_check: {path: "/health"}
      timeout: 1s
      reuse_connection: true
      event_log_path: /work/healthcheck.log
      always_log_health_check_failures: true
    name: uidgenerator_rest
    type: STRICT_DNS
  - http2_protocol_options: {}
    connect_timeout: 1s
    lb_policy: LEAST_REQUEST
    hosts:
      socket_address: {address: uidgenerator, port_value: 7676}
    name: uidgenerator_grpc
    type: STRICT_DNS

admin:
  address:
    socket_address: {address: <IP_ADDRESS>, port_value: 9002}
  access_log_path: /dev/null

Healthcheck error logs are basically the same
Envoy healthcheck error logs:
{"health_checker_type":"HTTP","host":{"socket_address":{"protocol":"TCP","address":"<IP_ADDRESS>","resolver_name":"","ipv4_compat":false,"port_value":9191}},"cluster_name":"configserver_rest","health_check_failure_event":{"failure_type":"ACTIVE","first_check":false},"timestamp":"2019-11-02T02:30:00.777Z"}
{"health_checker_type":"HTTP","host":{"socket_address":{"protocol":"TCP","address":"<IP_ADDRESS>","resolver_name":"","ipv4_compat":false,"port_value":9191}},"cluster_name":"uidgenerator_rest","health_check_failure_event":{"failure_type":"ACTIVE","first_check":false},"timestamp":"2019-11-02T02:30:19.857Z"}

Envoy logs:
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:206] initializing epoch 0 (hot restart version=10.200.16384.127.options=capacity=16384, num_slots=8209 hash=228984379728933363 size=2654312)
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:208] statically linked extensions:
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:210]   access_loggers: envoy.file_access_log,envoy.http_grpc_access_log
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:213]   filters.http: envoy.buffer,envoy.cors,envoy.ext_authz,envoy.fault,envoy.filters.http.header_to_metadata,envoy.filters.http.jwt_authn,envoy.filters.http.rbac,envoy.grpc_http1_bridge,envoy.grpc_json_transcoder,envoy.grpc_web,envoy.gzip,envoy.health_check,envoy.http_dynamo_filter,envoy.ip_tagging,envoy.lua,envoy.rate_limit,envoy.router,envoy.squash
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:216]   filters.listener: envoy.listener.original_dst,envoy.listener.proxy_protocol,envoy.listener.tls_inspector
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:219]   filters.network: envoy.client_ssl_auth,envoy.echo,envoy.ext_authz,envoy.filters.network.dubbo_proxy,envoy.filters.network.rbac,envoy.filters.network.sni_cluster,envoy.filters.network.thrift_proxy,envoy.http_connection_manager,envoy.mongo_proxy,envoy.ratelimit,envoy.redis_proxy,envoy.tcp_proxy
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:221]   stat_sinks: envoy.dog_statsd,envoy.metrics_service,envoy.stat_sinks.hystrix,envoy.statsd
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:223]   tracers: envoy.dynamic.ot,envoy.lightstep,envoy.tracers.datadog,envoy.zipkin
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:226]   transport_sockets.downstream: envoy.transport_sockets.alts,envoy.transport_sockets.capture,raw_buffer,tls
[2019-11-01 09:48:54.819][000006][info][main] [source/server/server.cc:229]   transport_sockets.upstream: envoy.transport_sockets.alts,envoy.transport_sockets.capture,raw_buffer,tls
[2019-11-01 09:48:54.831][000006][info][main] [source/server/server.cc:271] admin address: <IP_ADDRESS>:9002
[2019-11-01 09:48:54.840][000006][info][config] [source/server/configuration_impl.cc:50] loading 0 static secret(s)
[2019-11-01 09:48:54.840][000006][info][config] [source/server/configuration_impl.cc:56] loading 42 cluster(s)
[2019-11-01 09:48:54.853][000006][info][config] [source/server/configuration_impl.cc:67] loading 2 listener(s)
[2019-11-01 09:48:54.857][000006][info][config] [source/server/configuration_impl.cc:92] loading tracing configuration
[2019-11-01 09:48:54.857][000006][info][config] [source/server/configuration_impl.cc:112] loading stats sink configuration
[2019-11-01 09:48:54.857][000006][info][main] [source/server/server.cc:463] starting main dispatch loop
[2019-11-01 09:49:04.856][000006][info][upstream] [source/common/upstream/cluster_manager_impl.cc:136] cm init: all clusters initialized
[2019-11-01 09:49:04.856][000006][info][main] [source/server/server.cc:435] all clusters initialized. initializing init manager
[2019-11-01 09:49:04.856][000006][info][config] [source/server/listener_manager_impl.cc:961] all dependencies initialized. starting workers
[2019-11-01 10:04:04.857][000006][info][main] [source/server/drain_manager_impl.cc:63] shutting down parent after drain

Should I provide any other helpful information?Thank you!
^_^

Although the envoy's health check never worked, the url access was available.So I came up with another way that Prometheus could use the gauge type metrics I wrote to capture the health of the service.Therefore, the metrics interface provided by envoy is no longer important.Thank you very much!

@Firewall-Tomohisa what if trying a newer version of envoy? Seems like you tried envoy-alpine:v1.9.0.

Ok, thanks for your advice.And I will try.^_^


Add missing contrib processors, add auto version update for opentelemetry-java-contrib

A couple of processors have recently been added to opentelemetry-java-contrib which are missing from the docs. This updates them.
Also noticed that the contrib version was lagging behind and that there was no automation to automatically update it, so I updated to the latest and added automation for updating.

Preview: https://deploy-preview-5664--opentelemetry.netlify.app/docs/languages/java/sdk/#sampler

I'll let @svrnm manage the merging once all checks pass.


Python 3 support

Unfortunately, this original code doesn't work on Python 3.
    least_list = zip(*least_list)[0]

Could you modify it like the following code?
    least_list = list(zip(*least_list))[0]

Thanks for pointing this out. Done in commit 39758c882bc16834da774a5776f8f9540eb8192e and updated in pypi

Thanks!


Support prime fields with (64 * k)-bit modulus

Description
This PR removes the requirement that the top bit in a limb must be zero.

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[x] Targeted PR against correct branch (master)
[x] Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
[x] Updated relevant documentation in the code
[x] Added a relevant changelog entry to the Pending section in CHANGELOG.md
[x] Re-reviewed Files changed in the GitHub PR explorer

N/A:

[ ] Wrote unit tests

Let me do an explicit separation.

Thanks, I will review this later today

This mostly looks good! The last thing to do would be to add a test case in test-curves


OSX (or WindowServer) Crash when snapshot is running

I'm getting black screen (every single app crashed including Finder) once up on a time snapshot is running
It happens when script is starting instruments, but I can't find crashlogs :(
I'll try to investigate for a reason of such annoying behavior.

OK, it happen again, here is my system.log output:
Feb  5 12:16:05 redf.local ibtoold[22584]: CGSConnectionByID: 0 is not a valid connection ID.
Feb  5 12:16:05 redf.local ibtoold[22586]: CGSConnectionByID: 0 is not a valid connection ID.
Feb  5 12:16:05 redf.local ibtoold[22584]: CGSConnectionByID: 0 is not a valid connection ID.
Feb  5 12:16:05 redf.local ibtoold[22584]: Invalid Connection ID 0
Feb  5 12:16:05 redf.local ibtoold[22586]: Invalid Connection ID 0
Feb  5 12:16:06 redf com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.
Feb  5 12:16:06 --- last message repeated 1 time ---
Feb  5 12:16:06 redf Interface Builder Cocoa Touch Tool[22588]: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file descriptor" - 0x9
Feb  5 12:16:06 redf Interface Builder Cocoa Touch Tool[22588]: assertion failed: 14B25: libxpc.dylib + 29453 [464E62EA-4CF2-3FEF-9C17-692AD8D66AA8]: 0x8d
Feb  5 12:16:06 redf IBCocoaTouchImageCatalogTool[22587]: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file descriptor" - 0x9
Feb  5 12:16:10 redf Interface Builder Cocoa Touch Tool[22589]: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file descriptor" - 0x9
Feb  5 12:16:10 redf Interface Builder Cocoa Touch Tool[22589]: assertion failed: 14B25: libxpc.dylib + 29453 [464E62EA-4CF2-3FEF-9C17-692AD8D66AA8]: 0x8d
Feb  5 12:16:14 redf Interface Builder Cocoa Touch Tool[22626]: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file descriptor" - 0x9
Feb  5 12:16:14 redf Interface Builder Cocoa Touch Tool[22626]: assertion failed: 14B25: libxpc.dylib + 29453 [464E62EA-4CF2-3FEF-9C17-692AD8D66AA8]: 0x8d
Feb  5 12:16:16 redf IBCocoaTouchImageCatalogTool[22653]: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file descriptor" - 0x9
Feb  5 12:16:16 redf com.apple.xpc.launchd[1] (com.apple.quicklook[22657]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
Feb  5 12:16:17 redf com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.
Feb  5 12:16:21 --- last message repeated 1 time ---
Feb  5 12:16:21 redf.local mds[37]: (DiskStore.Warning:127) Failed messaging flag writer
Feb  5 12:16:21 --- last message repeated 13 times ---
Feb  5 12:16:21 redf launchd_sim[22663]: assertion failed: 14B25: libxpc.dylib + 29453 [464E62EA-4CF2-3FEF-9C17-692AD8D66AA8]: 0x8d
Feb  5 12:16:21 redf.local com.apple.CoreSimulator.CoreSimulatorService[20773]: IndigoHIDRegistrationPort does not correspond to a live port, removing
Feb  5 12:16:21 redf.local com.apple.CoreSimulator.CoreSimulatorService[20773]: PurpleFBTVOutServer does not correspond to a live port, removing
Feb  5 12:16:21 redf.local com.apple.CoreSimulator.CoreSimulatorService[20773]: PurpleFBServer does not correspond to a live port, removing
Feb  5 12:16:21 redf.local com.apple.CoreSimulator.CoreSimulatorService[20773]: Error Domain=CoreSimulatorBridgeUninstallError Code=1 "App uninstall failed." UserInfo=0x7fd71a500990 {NSLocalizedDescription=App uninstall failed.}
Feb  5 12:16:22 redf.local mds[37]: (DiskStore.Warning:127) Failed messaging flag writer
Feb  5 12:16:30 --- last message repeated 24 times ---
Feb  5 12:16:30 redf com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.
Feb  5 12:16:31 redf.local mds[37]: (DiskStore.Warning:127) Failed messaging flag writer
Feb  5 12:16:31 --- last message repeated 1 time ---
Feb  5 12:16:31 redf.local com.apple.SecurityServer[56]: Session 101569 created
Feb  5 12:16:31 redf.local com.apple.SecurityServer[56]: Killing auth hosts
Feb  5 12:16:31 redf.local com.apple.SecurityServer[56]: Session 101564 destroyed
Feb  5 12:16:36 redf.local UserEventAgent[20]: Captive: [UserAgentDied:143] User Agent @port=811111 Died
Feb  5 12:16:36 redf.local spindump[96974]: Got xpc error message in libspindump client connection: Connection invalid
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.dock.extra[20563]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.CoreSimulator.SimDevice.33062680-577F-4D74-832D-F901B69A67B8.launchd_sim[22663]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf.local UserEventAgent[20]: Captive: Removing SSID registrations for 20589
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.internetaccounts[20562]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.microsoft.AlertsDaemon.63364[20738]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.getdropbox.dropbox.garcon[20686]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.xpc.launchd.oneshot.0x100000bc.AppleSpell[20613]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.ActivityMonitor.46324[21824]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.getdropbox.dropbox.61092[20659]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.notificationcenterui.agent[20523]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.Spotlight[20524]): Service exited due to signal: Killed: 9
Feb  5 12:16:36 redf com.apple.xpc.launchd[1] (com.apple.metadata.SpotlightNetHelper[20577]): Service exited due to signal: Killed: 9
......
and about 100 more lines of "Killed: 9"

Looks like it caused by simulator:
Feb  5 12:16:21 redf.local com.apple.CoreSimulator.CoreSimulatorService[20773]: Error Domain=CoreSimulatorBridgeUninstallError Code=1 "App uninstall failed." UserInfo=0x7fd71a500990 {NSLocalizedDescription=App uninstall failed.}

I'll take a closer look, in the meantime use snapshot like this: SNAPSHOT_SKIP_UNINSTALL=1 snapshot.

but i need to uninstall :`(

Can you also post the full snapshot output by piping it into a file?

omg.. looks like it doesn't crash if piping to file 0_0

Really.. and works much faster.
The last lines of output before crash was:
1.
DEBUG [2015-02-05 12:15:19.07]: xcodebuild -sdk iphonesimulator CONFIGURATION_BUILD_DIR='/tmp/snapshot/build' -workspace '/Volumes/Data/Projects/imawsg/awesome.xcworkspace' -scheme 'Application' DSTROOT='/tmp/snapshot' OBJROOT='/tmp/snapshot' SYMROOT='/tmp/snapshot' clean build

DEBUG [2015-02-05 11:17:12.50]: instruments -w 'iPhone 6 (8.1 Simulator)' -D '/tmp/snapshot_traces/trace' -t 'Automation' '/tmp/snapshot/build/awesome.app' -e UIARESULTSPATH '/tmp/snapshot_traces' -e UIASCRIPT '/Volumes/Data/Projects/awesome/snapshot.js' -AppleLanguages '(en-US)' -AppleLocale 'en-US'

xcrun simctl uninstall booted 'com.awesome'
It's not the rule on which line it crashed..

So, does it always work if you pipe the output? :open_mouth:

Yes.. no more crashes :)

So I guess it should not output the result of the xcrun commands then?

I don't think that problem in what is in output..
I also think that chance somebody else will get this problem is close to zero :)
I'll live with pipe, so you could just close this issue for now :)

Mh, I got the crashing windows server once as well, but I thought it was fixed.

I just verified: Did you manually launch the simulator while snapshot was running? I've used snapshot a lot recently and it worked just fine. During development I started the iOS simulator myself, which then caused the problem you described.

Nope, I didn't.

Are you still running into this problem? I've been using this for quite some time now and didn't run into any crashes.

I didn't, but I didn't tried also )

I run into this issue with the latest version. It happened when the first simulator is killed. Then the whole Window server seems crashed.

I just released snapshot 1.0, please follow the migration guide.
Since the underlying snapshot was completely rewritten, I'm closing this issue now. Feel free to submit a new issue if you're experiencing an issue :+1:


preserve orderby for delete and update rewrites

@sougou

Looks like there's a genuine failure in the tests.

@sougou I fixed the test and also added another one for delete. Travis looks good now.

LGTM


Adapt csv files for release version 1.1.1

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.01%. Comparing base (a09151c) to head (59db7df).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##           release-1.1    #3324   +/-   ##
============================================
  Coverage        67.01%   67.01%
============================================
  Files              265      265
  Lines            14450    14450
============================================
  Hits              9684     9684
  Misses            3924     3924
  Partials           842      842

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


dtofph3 has logic error

Reported by sjoelund.se on 29 Aug 2012 12:39 UTC
dtofpt3 sets found:=false in the intializer. dtofps3,dtofpsdt3,pofdt125,tofph5,tofps5,tofpst5 as an assignment before the for-loop.
But dtofph3 does not, which causes undefined behaviour (yes, I searched for 'found' everywhere in the file to make sure there was no other such errors). Should be an easy fix.

Migrated-From: https://trac.modelica.org/Modelica/ticket/798

Modified by dietmarw on 29 Aug 2012 14:16 UTC

Comment by dietmarw on 4 Sep 2012 14:48 UTC
FIXED in 30e30c57f7ad088b45e3e9aef87eecf30fcca78c and r5460.


Adding Community Detection App

Ok I left some comments in the 'files changed' tab.  Does this give you enough information to extract the data you need to send to the service?

Or do you need some node attributes/edge attributes data as well?


New command: Otsu

@nint8835 Tagging for review

All changes implemented, afaik.
Please re-review


Update Monitoring Plan Schema for MATS & GNP

Context
BETA Web Client MATS 2.0 MP Reporting Instructions June 2023.docx
BETA Web Client MATS 2.0 EM Reporting Instructions June
BETA Web Client MATS 2.0 EM Reporting Instructions June 2023.docx

CMPS Quals in MP schema :
https://github.com/US-EPA-CAMD/easey-content/blob/master/dev/ecmps/reporting-instructions/monitor-plan.schema.json


python312Packages.aiowatttime: 2023.12.0 -> 2024.06.0

Diff: https://github.com/bachya/aiowatttime/compare/refs/tags/2023.12.0...2024.06.0
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 320961 run on x86_64-linux 1

4 packages built:

python311Packages.aiowatttime
python311Packages.aiowatttime.dist
python312Packages.aiowatttime
python312Packages.aiowatttime.dist


Migration product api

We need product scheme and managing product api.
So, i will migrate product api from hackton.

@coconutperm, I'm closing this issue, you can re-open it if you want. :D


Changing the ClusteredPins Collection doesn't have any impact on the map

After the map is loaded with some pins in the ClusteredPins collection, changing the ClusteredPins collection doesn't have any impact on the map.
I tried to change the icon of a pin when the pin was clicked but nothing happened,
I tried to remove it and add a new one but nothing happened.
(both iOS and Android)

It's probably related to https://github.com/mierzynskim/Xamarin.Forms.GoogleMaps.Clustering/issues/8. I'm looking for a reliable way to update pins collection. A workaround for this issue would be to call Cluster method every time you change it.


(wip) Add Node test coverage to compose.js

Automated message from Dropbox CLA bot
@adnrs96, it looks like you've already signed the Dropbox CLA. Thanks!

I merged the first two already.  Had some comments on the rest and am done with the first round of review.

I just merged all but the last three commits.  We'll want to move test_send_many_messages to debug.js and use more stubs for functions that call send_message(), as we discussed in chat.

I changed this PR to say "wip" in it.  After you address my comments for the first few commits here, I would create a separate, smaller non-wip PR that we can try to merge.

Merged!  Thanks @adnrs96!


Fails to compile since syn-1.0.58: error[E0432]: unresolved import syn::export

I tried to import your crate and got this error:
$ cargo build
   Compiling memoize v0.1.6
error[E0432]: unresolved import `syn::export`
 --> /home/k/.cargo/registry/src/github.com-1ecc6299db9ec823/memoize-0.1.6/src/lib.rs:4:17
  |
4 | use syn::{self, export::ToTokens, parse_macro_input, spanned::Spanned, ItemFn};
  |                 ^^^^^^ could not find `export` in `syn`

error[E0599]: no method named `to_token_stream` found for reference `&std::boxed::Box<syn::Type>` in the current scope
   --> /home/k/.cargo/registry/src/github.com-1ecc6299db9ec823/memoize-0.1.6/src/lib.rs:219:58
    |
219 |         syn::ReturnType::Type(_, ty) => return_type = ty.to_token_stream(),
    |                                                          ^^^^^^^^^^^^^^^ method not found in `&std::boxed::Box<syn::Type>`
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
4   | use quote::ToTokens;
    |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `memoize`

To learn more, run the command again with --verbose.

... probably because of this breaking change in syn-1.0.58.
Running cargo vendor memoize and changing "1.0" to "<1.0.58" in my_crate/memoize/memoize/Cargo.toml fixed the errors.

Thank you for reporting & fixing!


✨ ui/ux improvements for Sprint 3

implement some ui improvements:

[x] add flag key tooltip
[x] let targeting page tooltips more user-friendly
[x] archive, restore, delete flag in flags list
[x] remove archive button from flag details page
[ ] save flag variations with new button
[ ] update picture in docs

other:

[x] fix i18n warnings

Unfinished task update picture in docs will be moved to another pr


Build Docker images on self-hosted agent running in AKS

Agent Version and Platform
Version of your agent? 2.187.2
OS of the machine running the agent? Linux Ubuntu 20.04
Azure DevOps Type and Version
dev.azure.com
I'm attempting to run self-hosted agent on our AKS cluster running version 1.19.11. I followed this to set up it. When I try to execute Docker build task, it fails with "'docker' command not found".
I read up that containerd is going to replace docker runtime. Is there a proper way to build container images using self-hosted agent running on AKS? I've seen recommendations on using buildx but I haven't found a guide on how to implement it in context of self-hosted pipeline agent.

@HighWatersDev The instruction that you have referenced actually only works on AKS 1.18 and lower. We don't have official instructions for setup agents in newer versions of AKS.

Closing this at the moment - since Docker was replaced with containerd in Kubernetes 1.19, and Docker-in-Docker became unavailable. @HighWatersDev please let us know if you have any questions.


Turn off default features for sherpa-rs-sys dependency in sherpa-rs crate

sherpa-rs = { version = "...", default-features = false, ... } won't work properly unless we disable default features for the sherpa-rs-sys dependency inside it. Since we pass all feature flags down to sherpa-rs-sys anyway (including the defaults) this fixes that issue.

Good catch. Thanks!


remove unit and integration tests from pre-commit hook

What this PR does / why we need it:
Remove unit and integration tests from the pre-commit hook so that commits don't take as long
Which issue(s) this PR closes:

Closes #556

Special notes for your reviewer:
Suggestions on how to test this:
Review the code change and optionally do a local commit
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No
Is there a release notes update needed for this change?:
No
Additional documentation:

coverage: 97.363% (+0.02%) from 97.345%
when pulling fb4e846c0c12ef1242f5ca72e6ded1faeda74be4 on feat/556-simplify-pre-commit-hook
into 02b04e5733d4817c79794f3dc5f1536cd5e304f6 on develop.

test / component (pull_request) is failing: https://github.com/IQSS/dataverse-frontend/actions/runs/12143915269/job/34473683831?pr=557

Merging PR


#799 Tidy up Qualifying Tests MVP

Add a 'remove' button for 'Add another' top level on QT edit page

Well that was easy @lloback :stuck_out_tongue: Can't believe I missed it...

Well that was easy @lloback 😛 Can't believe I missed it...

eheheh


Under GCC 11.4, new warning is raised (-Wodr)

This seems due to the "double-include trick" used by the hybrid backend:
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:48:21: warning: type ‘struct IBVerbs’ violates the C++ One Definition Rule [-Wodr]
   48 | class _LPFLIB_LOCAL IBVerbs
      |                     ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:48:21: note: a different type is defined in another translation unit
   48 | class _LPFLIB_LOCAL IBVerbs
      |                     ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:128:34: note: the first difference of corresponding definitions is field ‘m_activePeers’
  128 |     SparseSet< pid_t >           m_activePeers; //
      |                                  ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:128:34: note: a field of same name but different type is defined in another translation unit
  128 |     SparseSet< pid_t >           m_activePeers; //
      |                                  ^
/home/yzelman/lpf.github/src/common/sparseset.hpp:35:7: note: type name ‘lpf::SparseSet<int>’ should match type name ‘lpf::SparseSet<unsigned int>’
   35 | class SparseSet
      |       ^
/home/yzelman/lpf.github/src/MPI/mesgqueue.hpp:42:21: warning: type ‘struct MessageQueue’ violates the C++ One Definition Rule [-Wodr]
   42 | class _LPFLIB_LOCAL MessageQueue
      |                     ^
/home/yzelman/lpf.github/src/MPI/mesgqueue.hpp:42:21: note: a different type is defined in another translation unit
   42 | class _LPFLIB_LOCAL MessageQueue
      |                     ^
/home/yzelman/lpf.github/src/MPI/mesgqueue.hpp:136:18: note: the first difference of corresponding definitions is field ‘m_ibverbs’
  136 |     mpi::IBVerbs m_ibverbs;
      |                  ^
/home/yzelman/lpf.github/src/MPI/mesgqueue.hpp:136:18: note: a field of same name but different type is defined in another translation unit
  136 |     mpi::IBVerbs m_ibverbs;
      |                  ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:48:21: note: type ‘struct IBVerbs’ itself violates the C++ One Definition Rule
   48 | class _LPFLIB_LOCAL IBVerbs
      |                     ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:48:21: warning: type ‘struct IBVerbs’ violates the C++ One Definition Rule [-Wodr]
   48 | class _LPFLIB_LOCAL IBVerbs
      |                     ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:48:21: note: a different type is defined in another translation unit
   48 | class _LPFLIB_LOCAL IBVerbs
      |                     ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:128:34: note: the first difference of corresponding definitions is field ‘m_activePeers’
  128 |     SparseSet< pid_t >           m_activePeers; //
      |                                  ^
/home/yzelman/lpf.github/src/MPI/ibverbs.hpp:128:34: note: a field of same name but different type is defined in another translation unit
  128 |     SparseSet< pid_t >           m_activePeers; //
      |                                  ^
/home/yzelman/lpf.github/src/common/sparseset.hpp:35:7: note: type name ‘lpf::SparseSet<int>’ should match type name ‘lpf::SparseSet<unsigned int>’
   35 | class SparseSet
      |       ^
/home/yzelman/lpf.github/src/MPI/mesgqueue.hpp:42:21: warning: type ‘struct MessageQueue’ violates the C++ One Definition Rule [-Wodr]
   42 | class _LPFLIB_LOCAL MessageQueue
      |                     ^
/home/yzelman/lpf.github/src/MPI/mesgqueue.hpp:42:21: note: a different type is defined in another translation unit

We should probably look into how to name them differently and thus avoid this warning.

Actually scratch the above intuition: this warning appears when linking

liblpf_core_univ_ibverbs_Release
liblpf_core_spec_ibverbs_Release
liblpf_core_univ_hybrid_Release
liblpf_core_spec_hybrid_Release

It seems hence related to the ibverbs engine specifically.


Prevent using fallocate on platforms other than linux

fallocate works only under linux, and many of our developers are not using linux.
Currently fallocate is always on, which prevent raft-engine and crates depends on it from building, eg. tikv#8570.
This pr and cfgs to enable fallocate only on linux.
This should close #34.

PS. Do we need edit the ci to make sure whether this can be built on any platforms?

@longfangsong thanks a lot! Could you edit the github hook for CI on macOS?

@hicqu PTAL
I don't know whether it is a good idea to make this library also work under windows, but that seems a huge work.


[Intel MKL] Compilation fixes for DNNL 1.0

This PR makes following changes:

Enables MklLayoutPass for DNNL 1.0 integration
Makes certain changes to MKL kernels to fix compilation issues introduced by DNNL 1.0
Ports remaining features such as weight caching to DNNL 1.0 API
Adds exponential_avg_factor attribute to MklFusedBatchNorm ops
Adds BUILD support for DNNL 1.0

NOTE: Changes in mkl_fused_batchnorm_op.cc file reflect most of the changes made by PR #36767. Once this PR is merged to master, most of the changes in this file would go away.

Hi @penpornk, pls take a look whenever you get chance.

There are two reformattings that shouldn't happen. Are you using clang-format 8.0.1?

Yes, we are using clang+llvm-8.0.1. These changes were suggested by that tool.

Got it. I'll try to find the version that works some time later then T-T. Please revert by hand for now.

@penpornk Thanks for quick review and approval. I've submitted another PR #37106 for making DNNL 1.2 default.


Catalog set to null causes error with MySQL driver.

When creating a new database (e.g. with Flyway) it is often the case that you want to connect with the default catalog for a given driver.  In the Flyway instance it seems that the catalog is set to the new database after the connection is established.  If the catalog has been changed and the initial value was unset, this exception is thrown:
17:37:49.623 [main] ERROR o.f.c.internal.util.jdbc.JdbcUtils - Error while closing Jdbc connection
java.sql.SQLException: Catalog can not be null
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:959) ~[mysql-connector-java-5.1.37.jar:5.1.37]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898) ~[mysql-connector-java-5.1.37.jar:5.1.37]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887) ~[mysql-connector-java-5.1.37.jar:5.1.37]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:862) ~[mysql-connector-java-5.1.37.jar:5.1.37]
	at com.mysql.jdbc.ConnectionImpl.setCatalog(ConnectionImpl.java:4913) ~[mysql-connector-java-5.1.37.jar:5.1.37]
	at com.zaxxer.hikari.pool.PoolElf.resetConnectionState(PoolElf.java:263) ~[HikariCP-2.4.1.jar:na]
	at com.zaxxer.hikari.pool.PoolBagEntry.resetConnectionState(PoolBagEntry.java:122) ~[HikariCP-2.4.1.jar:na]
	at com.zaxxer.hikari.proxy.ConnectionProxy.close(ConnectionProxy.java:193) ~[HikariCP-2.4.1.jar:na]
	at org.flywaydb.core.internal.util.jdbc.JdbcUtils.closeConnection(JdbcUtils.java:71) ~[flyway-core-3.2.1.jar:na]
	at org.flywaydb.core.Flyway.execute(Flyway.java:1424) [flyway-core-3.2.1.jar:na]
	at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) [flyway-core-3.2.1.jar:na]

I feel like the fix would be to simply never update the catalog with a null value.  Perhaps use the same logic if the catalog is never set in the first place.  The code below allows a null update if the currentCatalog is non-null and the new catalog is null.
final String currentCatalog = poolEntry.catalog;
if ((currentCatalog != null && !currentCatalog.equals(catalog)) || (currentCatalog == null && catalog != null)) {
     poolEntry.connection.setCatalog(catalog);
     resetBits |= 0b01000;
}

If this is similar to https://github.com/brettwooldridge/HikariCP/issues/410, It is fixed in 2.4.2

Verified as fixed in 2.4.2.  Thanks!


Implment auto-config tools

This PR provides tools to validate and auto-fill configuration of DALI backend.
The configuration in Triton is stored as TritonJson::Value. The implemented Validate* functions check the values stored in JSON and compare them with values passed as arguments - those will be later acquired from DALI pipeline.
The Autofill* functions, additionally to validating, produce new auto-filled TritonJson that will be used as new model configuration.
Changes to CMake were required to use C++17 and also to make Triton libraries available in test binary.
Signed-off-by: Rafal<EMAIL_ADDRESS>

CI MESSAGE: [5138310]: BUILD STARTED

CI MESSAGE: [5210073]: BUILD STARTED

CI MESSAGE: [5210073]: BUILD FAILED

CI MESSAGE: [5210093]: BUILD STARTED

CI MESSAGE: [5210093]: BUILD FAILED

CI MESSAGE: [5210519]: BUILD STARTED


Failed to load the model.

Here is my error report.Here is my error report. I would like to ask why this is the case? The files in my /root/models/LLM/CogFlorence-2.2-Large are complete. Then what is microsoft/Florence-2-large? Is it in the hug in.cache?：
Loading model from /root/models/LLM/CogFlorence-2.2-Large
using sdpa for attention
Could not locate the processing_florence2.py inside microsoft/Florence-2-large.
!!! Exception during processing !!! We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like microsoft/Florence-2-large is not the path to a directory containing a file named processing_florence2.py.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 491, in _make_request
raise new_e
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 616, in connect
self.sock = sock = self._new_conn()
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 207, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f85862f3ca0>, 'Connection to huggingface.co timed out. (connect timeout=10)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /microsoft/Florence-2-large/resolve/main/processing_florence2.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f85862f3ca0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1722, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(url=url, proxies=proxies, timeout=etag_timeout, headers=headers)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1645, in get_hf_file_metadata
r = _request_wrapper(
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 372, in _request_wrapper
response = _request_wrapper(
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 395, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 66, in send
return super().send(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 688, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /microsoft/Florence-2-large/resolve/main/processing_florence2.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f85862f3ca0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 0ff49cd8-8c54-4868-832d-28ab3f202036)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/transformers/utils/hub.py", line 398, in cached_file
resolved_file = hf_hub_download(
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1221, in hf_hub_download
return _hf_hub_download_to_cache_dir(
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1325, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1826, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/ComfyUI/execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/root/ComfyUI/execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/root/ComfyUI/execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "/root/ComfyUI/execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "/root/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 174, in loadmodel
processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/processing_auto.py", line 303, in from_pretrained
processor_class = get_class_from_dynamic_module(
File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 489, in get_class_from_dynamic_module
final_module = get_cached_module_file(
File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 294, in get_cached_module_file
resolved_module_file = cached_file(
File "/usr/local/lib/python3.10/site-packages/transformers/utils/hub.py", line 441, in cached_file
raise EnvironmentError(
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like microsoft/Florence-2-large is not the path to a directory containing a file named processing_florence2.py.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

By the way, I can't connection the huggingface. So I can't expect it to download automatically.

I solve the problems. The models have four locations.
The first one is located in models/LLM/.
The second one is located in /root/.cache/huggingface/hub/models--microsoft--Florence-2-large.
The third one is located in /root/.cache/huggingface/modules/transformers_modules/CogFlorence-2.2-Large.
The fourth one is located in /root/.cache/huggingface/modules/transformers_modules/microsoft.


Options on new alasql.Database

I am trying to find out if I need to
	var db = new alasql.Database(name);
	db.options.cache = false;

for each instance or if options are global.
Question: Are AlaSQL options like alasql.options.cache = false; global for all instances of new alasql.Database(name);?

All alasql.options are global.
Are there any cases where we need to have separate options for each database?

Hmmm. No.
It was just for clarification. I will put it into the wiki documentation.


Format this repo so it works with go get

like what we did for go-ucd - https://github.com/cooperhewitt/go-ucd/issues/6

maybe I did this right in 2b662d29abffbf620a5425a877dc123d94171afb ?


Keyboard appears on mobile Android devices

Hello,
when I'm on an Android based device running Firefox/Chrome/Dolphin and try to pick a date, the keyboard appears... Is it possible to disable/prevent somehow this default system behavior?

yes. you can disable the input box, you can set some of the picker options to prevent that from happening.

But how to properly disable it? Adding disabled or readonly attributes prevents timepicker from showing up!

"properly" is for you to decide. You can disable the input box and use the icon or you can call show() from some other method.


Web UI Revamp 2023

Placeholder for the revamp of the WebConfig UI that's currently in progress.

[ ] Implement responsive design
[x] Add dark mode theme
[x] Add i18n - supported languages and maintenance processes TBD
[ ] Optimize bundled application size

Automatic image optimization
Evaluate feasibility of moving from React to Preact
Evaluate dropping bootstrap and react-bootstrap packages and creating a custom site theme

[ ] Page redesigns

Board Config

Replaces Pin Mapping page and all pin config in addons
Interactable SVG of the board layout, spec for board makers will be defined
A form listing all available GPIO/connections with a dynamic dropdown of available features to map to a pin
A section for defining hardware expansion ports like I2C, SPI, etc. that will be mapped to enabled addons

Addons

Present addons in a simplified manner and present them as optional features to enable
Consolidate runtime options for addons into the Settings page
Design TBD

RGB LED Configuration

@FeralAI is working on an interactive configuration interface for RGB LEDs

Here's a very rough prototype of the new Board Config page:

I worked on a mockup the other day when I asked about the UI, prior to getting a reply.
Ended up not continuing with what I had in mind, but ill post what I had at the time, for your consideration.

The idea being that the layout created in this editor will be used throughout every other page that references the layout.
Everything would be tied to a "position/switch" which are ordered from old to new.
To these positions/switches, you set the pin and function.
This way, the end user has a visual representation of their set up and will make making layouts easier, without needing to cross reference.
Another thing is that pages can be combined together.
Extra button add on? Simply drop another button in there.
Turbo? Just drop in another button.
Player indicator? Drop down somewhere on the layout.
The LED layout editor could simply be a separate tab on the same page. Hell, LED options could be on the buttons themselves directly as well.
For global changes those could be done by a small menu on the button left of the window. Ie. for a gradient.
Since the end user will be creating their layout visually as well, the gradient will be more accurate as it could pull the transformation data from the graphics and use that to calculate what colour which button needs to be according to their absolute positions.
I realize my suggestion is a lot of work, less 'data' orientated and it is basically asking for an editor that only a small percentage of a niche portion of a specific game genre would ever put their eyes on. But here it is regardless.
--
To what you have right now, are other pico's being considered? What if someone is using the RP2040-Zero or the other variant that are supported?

Thanks for the input @fatihG!
There is a controller editor being work on for the RGB LED Configuration portion of the redesign. That interface will faciliate a lot of what you're asking for once complete. I hesitate to mention all the features it can be used for because I don't know what will be implemented by the time this update is finished, but it will be a flexible controller design minus the pin mapping in your mockup.
I believe the low-level hardware configuration of pin mapping and expansion port configuration should be kept separated in the new Board Config, while other things like LEDs, button mappings, etc. can be handled in a new Controller Config based on the RGB LED designer work. This way a user doesn't accidentally remove/change a core feature that needs to be displayed on the Controller Config.

To what you have right now, are other pico's being considered? What if someone is using the RP2040-Zero or the other variant that are supported?

Every type of board that has a release build for GP2040-CE is being considered for the visual Board Config. There is an SVG spec and a conversion process being defined so board makers can export their boards from their CAD software and convert for use in the web app and have it "just work" with all the highlighting and click events. I'm currently working with Pico, RP2040-Zero and full arcade board SVGs for dev and testing.

For the automated image optimisation, shall we just enable Imgbot on this repo? It did wonders on #357

We are going to close this for now and re-eval the current state of the web-config.


unit tests: enable CompactionServiceTest.RemoteEventListener

CompactionServiceTest.RemoteEventListener was disabled since it failed on several branches and wasnt considered a serious issue. fix the unit test correctly

running the test separately passes.
i was able to reproduce the failure by running the test in a loop:
while ./compaction_service_test --gtest_filter=CompactionServiceTest.RemoteEventListener; do sleep 1; done
while the system was busy.
error is:
[ RUN      ] CompactionServiceTest.RemoteEventListener
db/compaction/compaction_service_test.cc:782: Failure
Value of: result.second
Actual: false
Expected: true
db/compaction/compaction_service_test.cc:788: Failure
Value of: num == 1
Actual: false
Expected: true
[  FAILED  ] CompactionServiceTest.RemoteEventListener (335 ms)


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1250 ms

Resolved: Bofrost.at performance has improved in e7b8796.


rules_file/rules_files not being respected

Description
I am attempting to include additional rule files including the sandbox and incubating rules. I'm doing this in a Helm chart using the following documentation here to add the following config:

But my config is not being respected.
How to reproduce it
Here is my Chart.yaml:
apiVersion: v2
description: Intrusion detection using Falco
name: falco
version: 1.1.7
dependencies:
  - name: falco
    version: 4.7.0
    repository: https://falcosecurity.github.io/charts

Here is my values.yaml file:
---
falco:
  falco:
    rules_file:
      - /etc/falco/falco_rules.yaml
      - /etc/falco/falco-incubating_rules.yaml
      - /etc/falco/falco-sandbox_rules.yaml
      - /etc/falco/k8s_audit_rules.yaml
      - /etc/falco/rules.d

  falcoctl:
    config:
      allowed_types: ["rulesfile"]
      artifact:
        install:
          rulesfilesDir: /etc/falco/
          refs: [falco-rules:1,falco-incubating-rules:1,falco-sandbox-rules:1,k8s_audit_rules:1]
        follow:
          rulesfilesDir: /etc/falco/
          refs: [falco-rules:1,falco-incubating-rules:1,falco-sandbox-rules:1,k8s_audit_rules:1]

I have also tried this with falco Helm chart version 4.7.2 and with rules_files and that did not work either.
Expected behaviour
I expect the falco-incubating_rules.yaml, falco-sandbox_rules.yaml and k8s_audit_rules.yaml rule files to load in my pod, in addition to the default falco_rules.yaml. However, only falco_rules.yaml loads.
Here are my kubernetes pod logs to confirm that only falco_rules.yaml is being loaded:
Defaulted container "falco" out of: falco, falcoctl-artifact-follow, falco-driver-loader (init), falcoctl-artifact-install (init)
Fri Aug  9 02:15:21 2024: Using deprecated config key 'rules_file' (singular form). Please use new 'rules_files' config key (plural form).
Fri Aug  9 02:15:21 2024: Falco version: 0.38.1 (x86_64)
Fri Aug  9 02:15:21 2024: Falco initialized with configuration files:
Fri Aug  9 02:15:21 2024:    /etc/falco/falco.yaml
Fri Aug  9 02:15:21 2024: System info: Linux version 5.10.219-208.866.amzn2.x86_64 (mockbuild@ip-10-0-35-201) (gcc10-gcc (GCC) 10.5.0 20230707 (Red Hat 10.5.0-1), GNU ld version 2.35.2-9.amzn2.0.1) #1 SMP Tue Jun 18 14:00:06 UTC 2024
Fri Aug  9 02:15:21 2024: Loading rules from file /etc/falco/falco_rules.yaml

Environment

Falco version:

4.7.0 and 4.7.2

OS:

MacOS M1

Kernel:

Darwin VGW0681 23.6.0 Darwin Kernel Version 23.6.0: Fri Jul  5 17:56:41 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T6000 arm64

Installation method:

Kubernetes Helm

Ei thank you for reporting! We will take a look ASAP!
Please note that we could be slower in addressing it since there are many PTOs during this period :/ @alacuku @FedeDP

I would move this to the main Falco repo since it seems a Falco issue


Detect Functions project and use that as api location if it exists

Since we default to folder name "api", this will totally break a user's SWA if they already have a functions project named anything other than "api" unless they know to change it in the workflow yaml.

Suggested in https://github.com/microsoft/vscode-azurestaticwebapps/issues/465#issuecomment-892266091 as well


Update host for Hesan.He3 2.0.20

Resolves #163422

Microsoft Reviewers: Open in CodeFlow

@stephengillie

https://github.com/microsoft/winget-pkgs/issues/142854


Expose typed EventHandlersDataMap

Description:
This could just be that I'm a novice with TypeScript, but I'm using this library in my project and I would like to reference the EventHandlersDataMap type. I don't think I can currently do that as the file concerned isn't available in node_modules.
I've tried getting hold of the map with this, but it feels hacky/wrong and I'm still unsure how to type an event handler to a specific use-case:
import ObsWebSocket from 'obs-websocket-js';

const obs = new ObsWebSocket();

type OnParams = Parameters<typeof obs.on>;

export type EventHandlerKey = OnParams[0];
export type EventHandlerListener = OnParams[1];

export type ObsSocketListener = Partial<Record<EventHandlerKey, EventHandlerListener>>;

This is how I'm trying to get a specific data map for an event handler:
type ProfileChangedHandler = Extract<EventHandlerListener, { profile: string; }> // <- Always returns 'never'

// expecting `ProfileChangeHandler` to be `{ profile: string; }`

It looks like obsWebsocket.ts would be a lot easier to do this kind of thing, is that possible?
Versions Used (if applicable):

obs-websocket-js version: 4.0.3

I've managed to figure out how to get to it in a really long-winded way, but would still prefer the file exposed in the package if possible, this is my solution:
type ProfileChangedHandler = Extract<Parameters<EventHandlerListener>[0], { profile: string; }>;

Evaluates as:
type ProfileChangedHandler = {
    profile: string;
}

Agree, I was really confused when this wasn't exposed.

I've exported all of the EventHandlersData params in a way that is similar to @artdevgame, but I don't think there's a way for me to do dynamic registration of listeners in a manner similar to below

    protected registerEventTransformers(transformers : V4EventTransformerSet) : void
    {
        for (const transformer of transformers) {
            this.transformerRegistery[transformer.obsEventType] = transformer;

            this.websocket.on(transformer.obsEventType, this.notifyListener.bind(this, transformer.obsEventType, transformer));
        }
    }

    protected notifyListener<EventType extends ObsV4EventNames>(obsEventType : EventType, transformer : V4EventTransformer, eventData : ObsV4EventHandlersData[EventType]) : void
    {
        if (this.callback) {
            this.callback(transformer.systemMessageType, transformer.buildSystemMessage(eventData));
        }
    }

I know y'all are probably full steam ahead on v5, but it is sort of a major roadblock for me.  Any help?


Bugfixes

-u wasn't being caught by transforms - whoops
{global: 'true'} would leak between parsed nodes

did this in a hurry; presentation tomorrow! :sparkles:

looks good to me :tea:

Thanks! Released as v4.1.0


sample

Hi @angoju
If this is the beginning of any issue, kindly provide more info on what problem you encountered, we can look into it.
Thanks


Possibly oldschool typescript defs

Ramda's homepage points to https://github.com/types/npm-ramda/ as the source of the TS definitions. DefinitelyTyped repo seems to be a universally accepted way of bringing the typings in  nowadays and it also happens to contain Ramda typings: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ramda, hence my 2 questions:

which one of the two resembles reality more?
irrespectively of which one does, should the 'better' one be maintained here https://github.com/DefinitelyTyped/DefinitelyTyped and referenced from the homepage accordingly?

Few on the core team have any expertise in this area, so we rely on whoever is interested in maintaining these.  The consensus here seems to be that npm-ramda has more accurate typings, most recently discussed in #2306.  If you can find a way to get the more common repository to become more accurate, I'm sure we'll include it on the homepage as well as or instead of npm-ramda.


feat(robot-server,api): Add the skeleton for a new complete-recovery run action

Overview
Closes EXEC-300.
Changelog

Add a new action type for POST /runs/{id}/actions: complete-recovery.
Connect it to ProtocolEngine and update unit tests along the way.
For now, have ProtocolEngine raise a NotImplementedError whenever it encounters it. The actual implementation will be done in future PRs.
Update TypeScript bindings.

Test Plan
I've tested with Postman that I can post a complete-recovery action to a run, and it raises the expected NotImplementedError.
Review requests
Do we like the name complete-recovery for this?
Risk assessment
Low.

why call this complete-recovery as opposed to some resume thing?

No reasoning. resume-from-recovery does sound clearer to me. I'll switch to that unless anyone has a better suggestion.

in fact now that i'm looking at it, why not have this be PlayAction?

A couple of loose reasons:

Depending on how pause-on-open-door shakes out, we might need PlayAction  to resume the recovery sequence from a door pause without exiting the recovery sequence.
We don't yet have a server-enforced way of preventing clients from stepping on each other's toes, like any kind of remote lock or HTTP conditional request. Given that, having HTTP actions that are only valid in certain contexts is a cheap (but admittedly half-assed) way of decrease the odds of two clients accidentally interacting in a dangerous way.


split_polygon_n

Hello,
split_polygon_n have an edge effect problem.
With the documentation exemple https://www.vertica.com/python/documentation_last/geo/split_polygon_n/index.php :
`p = 'POLYGON ((121.334030916 31.5081948415,<PHONE_NUMBER>17 31.5079167872,<PHONE_NUMBER>04 31.5081948413,<PHONE_NUMBER>16 31.5081948415))'
poly = tablesample({"triangle": [p]}).to_vdf()
poly["triangle"].apply("ST_GeomFromText({})")
poly["triangle"].geo_plot(color="white", edgecolor="black")
split_p = split_polygon_n(p)
split_p["geom"].geo_plot(color="white", edgecolor="black")`
we have :

We show that two squares are shifted.
When we convert in geopandas the split polygon :
pd_test_split = split_p.to_geopandas(geometry = "geom")[["geom"]]
pd_test_split[["minx", "miny", "maxx", "maxy"]] =  pd_test_split["geom"].bounds

we calcul min max on x,y axes :

but on the initial figure, we have :
121.333748304
31.5079167872
121.334030916
31.5081948415
The maximums are differents.
If we take the second max, we have :

We find the min, max of the initial figure.
Can you resolve this edge effect problem?
regards,
Alexandre

Hi Alexandre,
This problem is a very hard problem to solve in the geospatial space. We can improve the doc to speak about the edge effect. But finding a more precise solution can be very complex.
Badr


cmd/7l, cmd/ld: support external linking on Linux.

Easier than I expected (well apart from the symtab.c change).  Not sure how to test it.

OK, so I forced linkmode to external in ld/pobj.c and ran all.bash and there were no more failures than default (in fact runtime/pprof tests pass with -ldflags -linkmode=external maybe some stuff is skipped?).

code LGTM, we can merge it and then fix problems as they arise
(hopefully there won't be any.) Thanks.
Yeah, supporting external linking on ARM is much simpler than
some other architecture, for example, PPC64, who has literally
dozens of relocation types. Do you also want to work on internal
linking of ELF files in cmd/7l?
I will start working on cgo, and the darwin/arm64 port.

I'll keep internal linking of ELF files in mind, won't get to it until the middle of next week though at the earliest though.


Url extensions1673

This is MVC part of feature URL Extensions. It does following:

Creates a filter called FormatFilter. This will look at the format parameter if present
in the route data or query data and sets the content type in ObjectResult
It adds new options called FormatterOptions, that contains the map of format to content tyepe
A method in MVC options to add the formatter mapping

@rynowak @harshgMSFT -- This is the first draft of the feature. Please have a look. This has feature and unit tests. Doesnt have functional tests yet. I sent it out so you can have a look while I work on functional tests.

@yishaigalatzer @rynowak @harshgMSFT -- Please have a look at the updated PR. @harshgMSFT -- I have incorporated some of the comments, but as we talked they are more of cleanup. I'll continue to incorporate them.

@rynowak @yishaigalatzer  -- I have incorporated your comments from this morning. Also I have couple of questions that I have asked. Please have a look.

Copying on my buried comments here:

rynowak:  This is the opposite of what I'd expect. I'd expect that the application/* goes into produces. A good example of this in practice would be an api that returns images in a few formats. You'd have [Produces("image/*")] on the action, and use a format mapping to get the exact type you want.

kulmugdha: Yes I tried that one too, it wouldn't work with current code. We check if any of the content type that produces produce is subset of the format content type. If it is not, we 404. We here assume that, produces is going to be specific and not /*. I had a talk to @harshgMSFT on this. His point is the produces is meant to support specific types not *. If you support multiple of these you list them all, but not *. Let me know what you think. @yishaigalatzer -- thoughts?

Let's put aside a discussion of what the current PR does until we've arrived at what's supposed to be supported
/cc @harshgMSFT and @yishaigalatzer
I wouldn't expect registering a media-type-range (application/*) to be an intended/supported scenario, for the simple reason that a file extension is intended to replace the accept header for a limited client that wants to request exactly what they can process.
Now let's look on the other hand at produces. Produces is designed to constrain the set of possible media types, but still play within the conneg system. I'd expect [Produces("image/*")] to work (by allowing conneg based on accept, or based on the first formatter to choose to write an image/*.)
This implies that the check we have is backwards inside [FormatFilter].

@rynowak .. yes thats exactly the conversation I had with @yishaigalatzer today .. the check inside [FormatFilter] needs to be reversed.

@rynowak @harshgMSFT @yishaigalatzer -- please have a look at this iteration. I am trying to fix some aesthetic issues as I said above.

@rynowak -- Incorporated your comments

:watch:

@rynowak incorporated final few comments.

:watch: for small comments

@rynowak fixed the comments

:watch:

@rynowak @yishaigalatzer I have made the Filter Factory change

:shipit:


Fix remaining coverity hits

Description
Fix remaining coverity hits

/intelci: run

@avolkov-intel could you please provide more detailed description:
what, why and how fixed.


GH-3169 validate repository config before adding to manager

GitHub issue resolved: #3169
Briefly describe the changes proposed in this PR:

validate supplied Repository Config before adding into manager
added regression tests

PR Author Checklist (see the contributor guidelines for more details):

[x] my pull request is self-contained
[x] I've added tests for the changes I made
[x] I've applied code formatting (you can use mvn process-resources to format from the command line)
[x] I've squashed my commits where necessary
[x] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

Just have a hard time wrapping my head around what the difference between a RepositoryConfig is and what a RepositoryImplConfig is and why a repository implementation config needs to be an interface when a regular repository config isn't. And since there is a repository implementation config, then is there also a repository implementation class?

I'll be happy to talk you through it more thoroughly on the dev mailinglist or the discussion forum, but in short: a RepositoryConfig is a generic config object for anything that is a Repository. It has a title and an identifier, and a member config object for the specific Repository implementation: the RepositoryImplConfig. As there are several implementations of the Repository interface, this carries the implementation-specific details for each implementation: HTTPRepositoryConfig is a RepositoryImplConfig that carries details about credentials, the server URL et, while SailRepositoryConfig is a RepositoryImplConfig that carries details about the underlying Sail stack for the repo.
The setup was originally designed with the idea that it would allow each implementation to carry its own specific config implementation while still having a generic framework to fit it all in. Some of it could probably be done more elegantly in modern Java though.


Tabs: Implement scrollbar when there is overflow

The case when there is an 'overflow' (too many tabs) isn't handled today.
There should be the following:

A minimal scrollbar to allow easy navigating via the mouse, if desired
Focusing the proper tab - so even if you navigate via keyboard, that would get scrolled into view.

Instead of a scrollbar, is it possible to make the tabs container wrapping in to more lines than one? Like flexbox + flex-wrap. I know that behavior of IntelliJ and really liked it. With a scrollbar you not see all your opened tabs. Probably it is a problem that the editor space gets smaller so a render cycle in NVim must be triggered?

from http://hadihariri.com/2014/06/24/no-tabs-in-intellij-idea/

@hoschi - interesting idea! I didn't think about this. Yes, it would definitely be doable, we'd just have it overflow to the next row.
Perhaps we could make it an option - I think I would prefer the look of a single-line of tabs, but I could see where some would prefer this. Thanks for the suggestion!

@extr0py great :+1:
Yeah, I think some people want to stick to the default vim behavior. An option would be good.

You can also make the tabs shrink Chrome-style with Flexbox as a first measure before scrolling kicks in. I'd be glad to submit a PR if you're happy with the idea.

That sounds great @Shou, a PR would be awesome if you're up for it!

Can we make this configurable? My point of wrapping tabs was to show always the full name.
@Shou when you use flexbox for shrinking can you add wrapping with flex-wrap in one go?

Looks like the work this issue was tracking is complete - having both scrollbar + wrapping behavior. I'll cose this, but we can use a new issue to track the tab-shrinking option, if desired.


moto 1.3.8 breaks real STS access

Just installed the latest 1.3.8 release and it appears to have broken my tests that make actual non-mocked STS calls when the test file includes moto. I've narrowed down the issue and created a minimal example to show the problem.
Test code in file moto38.py:
import json
import boto3
from moto import mock_sts

policy = {
    'Version': '2012-10-17',
    'Statement': [
        {
            'Effect': 'Allow',
            'Action': '*',
            'Resource': '*'
        }
    ]
}

sts = boto3.client('sts')
response = sts.assume_role(
    RoleArn='arn:aws:iam::12345678:role/xxx',
    RoleSessionName='yyy',
    Policy=json.dumps(policy),
    DurationSeconds=900
)

Now run the test and note the error output with exception InvalidClientTokenId:
Traceback (most recent call last):
  File "/Users/dmulter/Desktop/moto38.py", line 22, in <module>
    DurationSeconds=900
  File "/Users/dmulter/Documents/projects/xxx/.virtualenv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/dmulter/Documents/projects/xxx/.virtualenv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid.

If I fall back to moto==1.3.7 the test gets past this error. Note that I didn't bother making the policy and role work properly, but in my tests the real values work as expected when using the previous moto version.

I did a quick check for S3 API access and get a similar failure with an InvalidAccessKeyId exception. I'm thinking maybe the new before-send code is clobbering the access key ID for all boto3 calls even for non-mocked functions.

I'm have the same issue.
This works:
import boto3
from moto import mock_s3

@mock_s3
def test():
    conn = boto3.resource('s3', region_name='us-east-1')
    conn.create_bucket(Bucket='a-totally-unique-moto-bucket-name')

test()

This also works (no moto at all)
import boto3
#from moto import mock_s3

#@mock_s3
def test():
    conn = boto3.resource('s3', region_name='us-east-1')
    conn.create_bucket(Bucket='a-totally-unique-moto-bucket-name')

test()

But this throws an InvalidAccessKeyId error:
import boto3
from moto import mock_s3

#@mock_s3
def test():
    conn = boto3.resource('s3', region_name='us-east-1')
    conn.create_bucket(Bucket='a-totally-unique-moto-bucket-name')

test()

botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the CreateBucket operation: The AWS Access Key Id you provided does not exist in our records.

It seems like importing the moto module prevents normal aws usage.

It also breaks real boto (2) access. I believe the root cause is this commit - https://github.com/spulec/moto/commit/cf5bd7665cff971b8f0e470e96773bcbe1e5ad36, setting 2 env variables (AWS_ACCESS_KEY_ID , AWS_SECRET_ACCESS_KEY) in moto/core/models.py. They can impact boto connection initialization on every flow running after the models.py is imported.
This works fine:

import boto
conn = boto.connect_s3()
conn.access_key
'XXXXXXX'
import moto
conn.access_key
'XXXXXXX'
conn.get_bucket('mybucket')
<Bucket: mybucket>

While this breaks:

import boto
import moto
conn = boto.connect_s3()
conn.access_key
'foobar_key'
conn.get_bucket('mybucket')
Traceback (most recent call last):
File "", line 1, in
File "...lib/python3.6/site-packages/boto/s3/connection.py", line 509, in get_bucket
return self.head_bucket(bucket_name, headers=headers)
File "...lib/python3.6/site-packages/boto/s3/connection.py", line 542, in head_bucket
raise err
boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden

+1 Also being impacted by this issue, behavior is consistent with what others have described

+1 Currently have to place tests that import moto into a different directory and execute them separately to get around this. Would be great to run them as part of the same test execution.

Can someone please try the PR here? https://github.com/spulec/moto/pull/2285

@spulec Tried and it works perfectly. Looking forward to it being merged. Thank you!

Great. I've merged it: https://github.com/spulec/moto/pull/2285

@spulec when is this fix going to be released to PyPi? because pulling from moto=="*" does not pull the  #2285 PR. We had no choice than to lock down our moto package to the master branch which is definitely not healthy

@Ch3ck It has been released in a pre-release https://pypi.org/project/moto/#history . You could use it for now.

@ch3ck Still not released to PyPi, I'm using a horrible workaround but it works: import moto inside the fixture definition. I only have one for now and it's not breaking my code, so I'll stick to it until a stable release.

@danielcarletti as noted in the above comment, we have prereleases on every commit. Are those not working for you?

Pre-release packages are fine, but then I have to pin that specific version. Is there any plan for when the next official release is expected? I would like to keep just pip install -U moto.

pip install -U --pre moto ?

I have moto installed and updated regularly with lots of other packages as part of many Python projects. I think it is a normal expectation that packages do stable releases at some periodic frequency. Specifically installing a pre-release would not be part of such a normal process. Just looking to know when the next stable release is for moto. I love the capabilities of moto and I look forward to the next official release.

Sorry for my admittedly terse response.
I think it is a normal expectation that packages do stable releases at some periodic frequency.
I've been having discussions with various people and trying to really understand the value of this for Moto. Unlike a normal package, we are always adding new endpoints/resources. When we cut releases, there isn't anything additional that is done to ensure it is "stable". The releases aren't any different than the prereleases.
I'll work to cut a release in the next couple days, but I do think our current process is broken. I'm tempted to either have every commit make a real release or do something like pytz and have monthly releases (we would automate them). My fear with both of these is giving a false sense of security to people.
Thoughts?

I would suggest that they are all official releases then. I agree that a monthly "official" release would present a false sense of stability of the release. The boto3 and botocore packages have the same (and even larger) frequency of updates, and they are all official releases. I think that's a better parallel with moto releases. I would rather detect issues with a specific release and pin the version if I run into any issues, which I have to do in rare cases with boot. This is a common pattern.

When we cut releases, there isn't anything additional that is done to ensure it is "stable"

This seems like the root of the issue here, regardless of when releases are. Does it make sense to create a (small, limited) set of integration tests? Int tests can pull the latest dev version, and verify that real life use-cases (like the ones above) still work.
Happy to help out with setting that up of course -  I realize that it does involve some work initially, but it does give people an appropriate sense of stability.
With regards to automated releases (regardless of the frequency) :

How would we ensure that the Changelog is updated in a meaningful manner?
How would we differentiate between major/minor/patch releases?

Cutting manual releases is admittedly more work - but does get around these two issues, and as long as integration tests are run manually it also ensures release stability.


I have a problem about .NET SDK. The problem is it doesn't work...

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: windows
I have a problem with .NET SDK. The problem is it doesn't work. I try again on Command Prompt but
it says my computer is missing api-ms-win-crt-runtime. Please help me if you can.
Thank you for seeing this comment.

Are you running on Win7? If so, please see the Windows 7 prerequisites document

Closing due to inactivity. If you're still having trouble, please re-open with additional details.


Change link to reporting bugs for analyzer package

Thanks for taking a look!

LGTM. We should make a similar change for analysis_server's README.

where is the analysis_server's README? I don't see a repo for analysis_server (at least, by that name)


Hyper does not run

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: Hardened Gentoo (Linux kernel 4.9.24)
Hyper.app version: 1.3.3
Link of a Gist with the contents of your .hyper.js: N/A
Relevant information from devtools (CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A
The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

Attempting to launch hyper from the terminal or dmenu does not open a new window and does not print any messages to stdout. This behaviour is consistent for both version 1.3.3 compiled from source, as well as all the 1.3.x app images.
I am using a minimalistic Wayland compositor called sway with XWayland enabled. I have also tested Hyper in X with twm, however the problem persists.
System Information: https://gist.github.com/albinekb/f24c2b9dac9f382b444258db3f8b7e91

Does other electron apps work? Desktop.github.com for example

I tried Gitkraken and I'm getting the same results. I'm guessing that means it could be an issue with electron then...

Perhaps this is the issue... I am able to compile electron from source successfully, but that won't help if Hyper explicitly uses the pre-compiled electron binaries.

It looks like other electron apps are having similar issues; Gitkraken has the same problem as hyper, Discord segfaults without opening, and Atom doesn't successfully compile. I think all of this suggests an issue with electron on my system; I've opened a bug report over on Gentoo's Bugzilla, so it might be a good idea to wait and see if it's a distribution specific issue before we worry about anything else.
Also thanks for making the gist, that completely slipped my mind! (I've got the Octopatcher plugin on my browser, so I didn't realise how inconvenient it might be for others).

It looks like the culprit in this case is grsecurity; I'm using the hardened-sources  kernel which contains the grkernsec patches. These unfortunately break the functionality of packages which include the chromium eclass such as electron. Therefore it's not possible to use electron apps on kernels with grkernsec patches.


Wrong Emoji Code

The dice emoji code is game_die but I guess it should be game_dice instead.

@CommandDan it's official name in the Unicode spec is named "Game Die"
https://www.unicode.org/emoji/charts/emoji-list.html#1f3b2
(or slightly easier to load/see page: https://www.compart.com/en/unicode/U+1F3B2 )


Display poster after playback is finished

Is there any way to display the poster when the playback ends? As it is now, when the playback finishes either the image video gets frozen (as there's no more video to play) or I get the 'buffering' animation. I do have an open websocket and receive a signal when the live-stream finishes, maybe expose a stop() / poster() / whatever to stop playback and display the poster again?
Also the readme.md says "scaling (default letterbox) - Path to the SWF responsible for the playback."

@DavidVentura This is a real issue, I'll have to look into to it. Thanks for reporting.


ngrok-agent: changelog for v3.4.0

ngrok-agent v3.4.0 changelog.
Includes the new upstream TLS verification options.

Current dependencies on/for this PR:

main

PR #473   👈

This stack of pull requests is managed by Graphite.


Plugin not found (Gradle 6.0.1)

Hello!! How are you?. I need to incorporate Jasypt in my Spring Boot project to secure certain keys and credentials from external services, the problem that it does not have support to encrypt values with Gradles tasks, that's why I have been interested in your repository.
My Spring Boot project uses Gradle 6.0.1, I have incorporated its plugin as follows:

Also I have enabled JCenter as a repository for searching plugins as follows

But I have not managed to solve your plugin, I have the following message

Could you tell me how I can incorporate your plugin into my project or some way to encrypt data with gradle using Jasypt.? Thank you very much for your time. Greetings

Hi,
I have clearified the README's usage section. See https://github.com/moberwasserlechner/jasypt-gradle-plugin#usage
The following is the top of a Spring Boot service build by Gradle 6.1.1.
buildscript {
	repositories {
		jcenter()
	}
	dependencies {
		classpath "com.byteowls:jasypt-gradle-plugin:1.0.1"
	}
}

plugins {
	id 'java'
	id 'org.springframework.boot' version '2.2.6.RELEASE'
	id 'io.spring.dependency-management' version '1.0.9.RELEASE'
}

apply plugin: "com.byteowls.jasypt"

If I run ./gradlew tasks the plugin is successfully discovered.

Right now this workaround is all I can offer as I currently don't have the time to investigate why the plugin is not discovered when used in the plugin block.
BR, Michael


Vercel email

Implement email route using vercel-email. we also use react-email to create the emails.
Closes #455
Closes #456

You gotta be kidding <3  I'll review when i have more time

Closing this, i will open another one that uses resend instead of vercel-email


Support for Post Event endpoint

My team would like to use the go library to post events to the event stream. However, it seems that the post method is missing. Is there any estimated timeframe for when support for this might be added? Thanks!

Thanks for your report. We don't have a timeframe or whether it's going to actually happen. I suggest using https://github.com/zorkian/go-datadog-api for that particular use case for now.

Any idea why this was closed?
The EventsApi still doesn't seem to support the Post an event endpoint.

This is supported on the v1 endpoint: https://datadoghq.dev/datadog-api-client-go/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/#EventsApi.CreateEvent


Sequence Generator -- System Reactive mismatch

I added the SequenceGenerator via nuget.   Version <IP_ADDRESS>
It loaded all of the prerequisite with no Issues.  i.e. System.Reactive 4.4.1
I added this.RequiredModuleTypes.Add(typeof(Xpand.XAF.Modules.SequenceGenerator.SequenceGeneratorModule));  to the agnostic module.
If I now try to view the module I get the error below indicating assembly System.Reactive Version <IP_ADDRESS> is missing.
Any ideas why I am getting this error.
----------StackTrace----------
at Xpand.XAF.Modules.Reactive.ReactiveModuleBase..ctor()
at Xpand.XAF.Modules.SequenceGenerator.SequenceGeneratorModule..ctor() in D:\a\1\s\src\Modules\SequenceGenerator\Module.cs:line 20
at Create_SequenceGeneratorModule()
at DevExpress.ExpressApp.Utils.Reflection.TypeData.CreateInstance(Object[] args)
----------InnerException----------
Could not load file or assembly 'System.Reactive, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=94bc3704cddfc263' or one of its dependencies. The system cannot find the file specified.
----------StackTrace----------
at Xpand.XAF.Modules.Reactive.ReactiveModuleBase..cctor()

System.Reactive Version <IP_ADDRESS>
it is not clear how u got this version the latest published lab version that u seem u used is on 4.3.2

Get-NugetPackageDependencies Xpand.XAF.Modules.SequenceGenerator -Source Xpand

Id                         Include Exclude VersionRange
--                         ------- ------- ------------
Fasterflect.Xpand          {}      {}      [2.0.7, )
JetBrains.Annotations      {}      {}      [2019.1.3, )
System.Reactive            {}      {}      [4.3.2, )
Xpand.Extensions           {}      {}      [<IP_ADDRESS>, )
Xpand.Extensions.Reactive  {}      {}      [<IP_ADDRESS>, )
Xpand.Extensions.XAF       {}      {}      [<IP_ADDRESS>, )
Xpand.Extensions.XAF.Xpo   {}      {}      [<IP_ADDRESS>, )
Xpand.VersionConverter     {}      {}      [2.201.7, )
Xpand.XAF.Modules.Reactive {}      {}      [<IP_ADDRESS>, )

Could not get it working even after the System.Reactive was changed to 4.3.2.   In the end I started a brand new Solution.  This took care of the issue.  Thank you for your help.


TreeView: Support checkParents prop

Is your feature request related to a problem? Please describe.
The TreeView component should support the ability to select a nested item without selecting its parent.
Describe the solution you'd like
Add support for checkParents prop:
checkParents—Determines if the parent checkbox will get selected when the user selects all its children checkboxes. The default value is true. When checkParents is enabled, the TreeView displays the indeterminate state of the parent checkboxes too.

This will only work for multi select trees
Example: https://www.telerik.com/kendo-angular-ui/components/treeview/api/CheckableSettings/#toc-checkparents/

The new update looks great from my perspective, but in the process of testing it looks like the section about Preselected Items isn't working. It looks like some items in the example should be preselected but they're not, and this could be a result of the update.

@k4rnaj1k We noticed that the addition of checkParents and checkChildren breaks when used in conjunction with preselectedItems.
In this example https://storybook-preview-dev--upbeat-sinoussi-f675aa.netlify.app/?path=/story/treeview--complex&args=checkParents:false;checkChildren:false, there are 6 items that are passed to preselected but all the parents/children are also selected for a total of 9.

As it turns out, some of it is caused by this bug in older versions of storybook:
https://github.com/storybookjs/storybook/issues/18796
And adding this to line 401:

Makes the component behave more correctly.
However, there is a bug in how preselected items are checked that appeared before #1409 - pt1ch1.1 is also preselected, but not shown among selected items at the bottom, and selected items count is incorrect - says 9 instead of 10.

Thanks @k4rnaj1k ! We'll look into this.
Outstanding work:

Fix the line of code that k4rnaj1k mentions (adding  && checkParents)
Then, we should confirm that the example https://next--upbeat-sinoussi-f675aa.netlify.app/api/tree-view/#preselected_items in the docs behaves as expected-- we expect to see birds and amphibians checked when the page loads
Dig in to the issue mentioned in the comments-- pt1ch1.1 should be selected even though it’s not in the list of preselected (because it’s the child of a preselected item), but it should also appear on the list of tags and count of tags

Items 1-3 have been addressed in https://github.com/cengage/react-magma/pull/1432.
Moving item 4 above to a new ticket https://github.com/cengage/react-magma/issues/1433 as it's unrelated to checkParents.

I was able to verify on the docs site that the new stuff is working and the pre-selected items example is working again as well. Moving to Done.


Update nc-wdm-pob_pre_operation_callback.md

Updated pre-callback to point to best practices guide for safe calls

The anchor used to work, I think it stopped. How can we fix the achor?
From: Ted Hudek<EMAIL_ADDRESS>Sent: Wednesday, October 7, 2020 4:27 PM
To: MicrosoftDocs/windows-driver-docs-ddi<EMAIL_ADDRESS>Cc: Jason Epperly<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/windows-driver-docs-ddi] Update nc-wdm-pob_pre_operation_callback.md (#969)
@tedhudek commented on this pull request.

In wdk-ddi-src/content/wdm/nc-wdm-pob_pre_operation_callback.mdhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fwindows-driver-docs-ddi%2Fpull%2F969%23discussion_r501288852&data=04|01|jasone%40microsoft.com|ed972b7e8c7a4fac950b08d86aff5dfe|72f988bf86f141af91ab2d7cd011db47|1|0|637376992310291910|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=xFtCUPBKvQ%2Fr%2Bkli%2FO3Nr6dcSHuR5tt23Ur8rfbzuDI%3D&reserved=0:

@@ -47,6 +47,7 @@ api_name:

-description
The ObjectPreCallback routine is called by the operating system when a process or thread handle operation occurs.
+Warning The actions that you can perform in this callback are restricted for safe calls. See Best Practices
Not seeing a subsection with the anchor Best in the target file. Is that work in progress?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fwindows-driver-docs-ddi%2Fpull%2F969%23pullrequestreview-504240154&data=04|01|jasone%40microsoft.com|ed972b7e8c7a4fac950b08d86aff5dfe|72f988bf86f141af91ab2d7cd011db47|1|0|637376992310301906|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=NJqWv%2Fz%2F7k37%2BlWgNY3amycS1X8TEy6eugnzRR6Dn7Y%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHP6ZTMEKF5L527TORD2T6LSJTFJ3ANCNFSM4SHYKEZQ&data=04|01|jasone%40microsoft.com|ed972b7e8c7a4fac950b08d86aff5dfe|72f988bf86f141af91ab2d7cd011db47|1|0|637376992310301906|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=2LVBQ0RTLCUlkHBKJpie4vTY4Nc232UrDfXlGlVkKiU%3D&reserved=0.

I see it from a couple years back.  It was only a couple lines into the article -- think we're better off just linking to the top, which is what I just merged in.  Give it 45 min to appear on the live site and then see what you think


Reorganize triggering code, bump minimum NumPy version to 1.21

[ ] If you are a maintainer (only @nyanpasu64 at the moment), make sure to edit the changelog if needed. Otherwise, a maintainer will edit the changelog.

Codecov Report

Merging #397 (702116e) into master (3fd75fc) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #397      +/-   ##
==========================================
+ Coverage   77.15%   77.16%   +0.01%
==========================================
  Files          27       28       +1
  Lines        3860     3862       +2
==========================================
+ Hits         2978     2980       +2
  Misses        882      882

Impacted Files
Coverage Δ

corrscope/renderer.py
85.08% <ø> (ø)

corrscope/settings/paths.py
93.75% <100.00%> (ø)

corrscope/spectrum.py
62.68% <100.00%> (ø)

corrscope/triggers.py
84.80% <100.00%> (ø)

corrscope/utils/trigger_util.py
94.33% <100.00%> (ø)

corrscope/utils/windows.py
90.90% <100.00%> (ø)

corrscope/wave.py
98.54% <100.00%> (ø)

corrscope/wave_common.py
100.00% <100.00%> (ø)

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 3fd75fc...702116e. Read the comment docs.