Feedback: merge step breaks if one of the files contains apostrophe (') in the name

Example:
3_ Book III - Chapter 01 - The Departure of Boromir.mp3
3_ Book III - Chapter 02 - The Riders of Rohan.mp3
3_ Book III - Chapter 03 - The Uruk-Hai.mp3
3_ Book III - Chapter 04 - Treebeard.mp3
3_ Book III - Chapter 05 - The White Rider.mp3
3_ Book III - Chapter 06 - The King of the Golden Hall.mp3
3_ Book III - Chapter 07 - Helm's Deep.mp3
3_ Book III - Chapter 08 - The Road to Isengard.mp3
3_ Book III - Chapter 09 - Flotsam & Jetsam.mp3
3_ Book III - Chapter 10 - The Voice of Saruman.mp3

Only the first 6 files are included in the output after clicking the "Merge" button.
It works correctly if "Helm's Deep" is renamed to "Helms Deep".
Thanks for making this tool available. Running ffmpeg in the browser is really something.

Thanks for the report, it should work now! (Make sure to force refresh if necessary, e.g. via Command+Shift+R.)


Accordion sections prop not support Realm.Results

When using RealmJs query result as the datasource of Accordion , since Realm.Results is not a array, but an array-like object,  and the  prop 'sections'  MUST be an array, so an error will be throwed by this function
https://github.com/oblador/react-native-collapsible/blob/ed6283a8ce7ea16e7b54fc7a5341b7a73d95f11b/Accordion.js#L74-L78
I would like to  create a pull request, but I am not sure how to change this part of logic,
change
sections: PropTypes.array.isRequired
to
sections:  PropTypes.oneOfType([       PropTypes.array,       PropTypes.shape({         map: PropTypes.func,       }),     ])
and the handleErrors func to
  handleErrors = () => {     if (!this.props.sections.map) {       throw new Error('Sections should be an array-like');     }   };
?
looks so weird...

You can cast the results from realm as an array that you can then pass to the accordion. See https://github.com/realm/realm-js/issues/280#issuecomment-347011764

thank you,I have read this realm thread before, in my code I use the function lodash.values to do the same thing, but I really do not like the unnecessary process, speaking of which maybe this should be a realm issue and I know they are working on it since 2016😢... anyway thank you for your reply

Met this problem again, and I forgot I have been there few months ago...So here is my solution, just rewrite it, hope it's helpful for who gets here too.
class AccordionForRealm extends Accordion {     static propTypes = {         sections: PropTypes.oneOfType([PropTypes.array, PropTypes.shape({map: PropTypes.func})])     }     handleErrors = () => { }     };}


Can't start minecraft with skyblockcatia

I was try to use the mod and its instant crash for some reason
the crash report say Initializing game
crash-2020-07-24_11.50.51-client.txt

Update forge


Exit process with code 0 after successful adapt

fixes #978. Closes open db connections etc without needing to have an additional hook
Before submitting the PR, please make sure you do the following

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts

Can this be merged soon?


Adding Estacio University

university official website URL
http://portal.estacio.br/
a URL of a page on the official website where a long-term (>1 year) IT related course is offered by the university:
http://portal.estacio.br/graduacao/analise-e-desenvolvimento-de-sistemas

@mpcrocha I have to close this request without merging, because you requested to add a non-existent domain to this repository: ;; connection timed out; no servers could be reached Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for understanding!


Fix spacing between enum constants

Coverage remained the same at 94.53% when pulling d8e601fd179514715d719b966fd0fe9b8f5de424 on Abrasha:fix/enum-spaces into 4bd982d1a1df87724682c17c39bf27b5cbe389be on apache:master.

Thanks!


Clippy arithmetic new

new push #7928

@honeywest this doesn't compile. Check check-web-wasm job.

bot merge


ref: add swiss tax

This PR will just add swiss tax
close #460

Please do a pull request to update auto_renew json in accordance


Remove old Ajna codebase

Remove old Ajna codebase
Changes 👷♀

Removed all old Ajna codebase that wasn't used in features other than positions handling.
Created temporary redirect from old Ajna positions address to old-ajna legacy app version.
Created index files for ALL Ajna related directories.


Lights turned on using device_id target are not adapted

Home Assistant Adaptive Lighting Issue Template
Bug Reports
If you need help with using or configuring Adaptive Lighting, please open a Q&A discussion thread here instead.
Before submitting a bug report, please follow these troubleshooting steps:
Please confirm that you have completed the following steps:

[x] I have updated to the latest Adaptive Lighting version available in HACS.
[x] I have reviewed the Troubleshooting Section in the README.
[x] (If using Zigbee2MQTT) I have read the Zigbee2MQTT troubleshooting guide in the README.
[x] I have checked the V2 Roadmap and open issues to ensure my issue isn't a duplicate.

Required information for bug reports:
Please include the following information in your issue.
Issues missing this information may not be addressed.

Debug logs captured while the issue occurred. See here for instructions on enabling debug logging:

2024-01-01 14:26:26.751 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-01-02 10:11:17.111 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (0) _service_interceptor_turn_on_handler: call.context.id='01HK4TFXFN3DHT6X8GQMVRRVT5', is_skipped_hash='False'
2024-01-02 10:11:17.111 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.turn_on (c:01HK4TFXFN3DHT6X8GQMVRRVT5): device_id=['7f0959e90d660d9d442b4e4943c68e19'], params=>', service_data='{'device_id': ['7f0959e90d660d9d442b4e4943c68e19'], 'params': {}}'
2024-01-02 10:11:17.112 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] No entity_ids or area_ids found in service_data: {'device_id': ['7f0959e90d660d9d442b4e4943c68e19'], 'params': {}}
2024-01-02 10:11:17.112 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (2) _service_interceptor_turn_on_handler: switch_to_eids='{}', skipped='[]'
2024-01-02 10:11:17.113 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] No entity_ids or area_ids found in service_data: {'device_id': ['7f0959e90d660d9d442b4e4943c68e19']}
2024-01-02 10:11:17.366 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.kitchen_ceiling_lights' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'color_temp_kelvin': None, 'color_temp': None, 'hs_color': (0.0, 100.0), 'rgb_color': (255, 0, 0), 'xy_color': (0.701, 0.299), 'effect': None, 'icon': 'mdi:ceiling-light', 'friendly_name': 'Kitchen Ceiling Lights', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01HK4TFXFN3DHT6X8GQMVRRVT5'
2024-01-02 10:11:17.366 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.kitchen_ceiling_lights' with context.id='01HK4TFXFN3DHT6X8GQMVRRVT5'
2024-01-02 10:11:17.366 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HK4TFXFN3DHT6X8GQMVRRVT5'
2024-01-02 10:11:17.366 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: delta_time='20.133753' > delay='5'
2024-01-02 10:11:17.367 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01HK4TFXFN3DHT6X8GQMVRRVT5'
2024-01-02 10:11:17.367 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Ignoring 'off' → 'on' event for 'light.kitchen_ceiling_lights' with context.id='01HK4TFXFN3DHT6X8GQMVRRVT5' because 'light.turn_on' was not called by HA and 'detect_non_ha_changes' is False
2024-01-02 10:11:17.367 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.kitchen_ceiling_lights' as manually controlled.

Your Adaptive Lighting configuration:

From .storage/core.config_entries:
{
    "lights": [
        "light.kitchen_ceiling_lights"
    ],
    "interval": 90,
    "transition": 45.0,
    "initial_transition": 1.0,
    "min_brightness": 1,
    "max_brightness": 100,
    "min_color_temp": 2000,
    "max_color_temp": 4000,
    "prefer_rgb_color": false,
    "sleep_brightness": 1,
    "sleep_rgb_or_color_temp": "rgb_color",
    "sleep_color_temp": 1000,
    "sleep_rgb_color": [
            255,
            56,
            0
          ],
    "sleep_transition": 1.0,
    "transition_until_sleep": false,
    "sunrise_time": "None",
    "min_sunrise_time": "None",
    "max_sunrise_time": "None",
    "sunrise_offset": 0,
    "sunset_time": "None",
    "min_sunset_time": "None",
    "max_sunset_time": "None",
    "sunset_offset": 0,
    "brightness_mode": "default",
    "brightness_mode_time_dark": 900,
    "brightness_mode_time_light": 3600,
    "take_over_control": true,
    "detect_non_ha_changes": false,
    "autoreset_control_seconds": 0,
    "only_once": false,
    "adapt_only_on_bare_turn_on": false,
    "separate_turn_on_commands": true,
    "send_split_delay": 0,
    "adapt_delay": 0.0,
    "skip_redundant_commands": false,
    "intercept": true,
    "multi_light_intercept": true,
    "include_config_in_attributes": true
}

(If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):

devices.yaml
groups.yaml
configuration.yaml ⚠; Warning REMOVE ALL of the PERSONAL INFORMATION BELOW before posting ⚠;

mqtt: server:
mqtt: user:
mqtt: password:
advanced: pan_id:
advanced: network_key:
anything in log_syslog if you use this

Brand and model number of problematic light(s)

Describe the bug and how to reproduce it:

Turn on a light using target.device_id instead of target.entity_id, note that the color and brightness are not adapted:
service: light.turn_on
target:
  device_id:
    - 7f0959e90d660d9d442b4e4943c68e19

Turning on the light with entity_id correctly adapts the color and brightness:
service: light.turn_on
target:
  entity_id: light.kitchen_ceiling_lights

These lines line from the log seems to indicate that Adaptive Lighting thinks something other than HA turned on the light (seemingly because it isn't checking for device_id?):
2024-01-02 10:11:17.112 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] No entity_ids or area_ids found in service_data: {'device_id': ['7f0959e90d660d9d442b4e4943c68e19'], 'params': {}}
2024-01-02 10:11:17.113 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] No entity_ids or area_ids found in service_data: {'device_id': ['7f0959e90d660d9d442b4e4943c68e19']}
2024-01-02 10:11:17.367 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Ignoring 'off' → 'on' event for 'light.kitchen_ceiling_lights' with context.id='01HK4TFXFN3DHT6X8GQMVRRVT5' because 'light.turn_on' was not called by HA and 'detect_non_ha_changes' is False

It seems like this is due to _get_entity_list only checking entity_id and area_id: https://github.com/basnijholt/adaptive-lighting/blob/3118e6f308b13927049c764f8131bf7d62ea56f6/custom_components/adaptive_lighting/switch.py#L2197-L2221
I guess this could be extended to return all light entities for all devices in the device_id list from the device registry?


Improve iOS slide transitions

It that the default transitions didn't match the native iOS transitions. I've made a few tweaks to make the transitions more similar to native transitions:

The shadow is a more subtile.
The underlying card moves 30% of the screen width instead of 10 pixels.
The underlying card gets darker instead of lighter when transitioning to the new card.

I've attached some gifs to illustrate the differences. Sadly, it's barely noticeable in the gifs, yet it makes a big difference when you try it on an actual device.
Before:

After:

add containerStyle is not a good idea, you can set it in cardStyle

@nihgwu You won't get the same results when you're only changing the cardStyle.
All Card components are rendered within a CardStack. When we transition between cards the opacity of individual Card components is animated as is defined in CardStackStyleInterpolator.js. The underlying container, the CardStack component, is visible when a card is opaque. It makes sense have control over the styling of visible elements. It will be impossible to mimic the iOS transitions without altering this.
Changing the cardStyle only affects individual cards. This doesn't have any effect on the underlying content when the transition changes the opacity.
I'm not sure if the TransitionConfig should have a containerStyle property. On one hand it's styling, not a transition. On the other hand the container will only be visible when you change the opacity of a card, which I only see happening during a transition. It's in some way part of the transition, e.g. the Android transition doesn't require a dark background.
I'm open for suggestions!

@stefanroex sorry for my quick reply, I've got you motivation now, but I think you can move the containerStyle to StackNavigatorConfig

@nihgwu I thought about moving it to StackNavigatorConfig as well, but the background is dependent on which transition is used. The containerStyle is different for iOS and Android transitions.

@stefanroex but I think containerStyle is still useful for other use-case, for you scenario, I think you can simply pass the backgroundColor in screenInterpolator

@nihgwu Hmmm. I'm not sure, but I think screenInterpolator only sets the style of a single card, right? How would that work?

@stefanroex Hello, I saw yesterday that your pull request was approved :) I update my version react navigation and I saw your code but for iOS I don't see the new animation.. I have to do something special?

@mickaelw The PR isn't reviewed or merged yet, so updating react-navigation won't have any effect. You could reference my PR repository from you're package.json via "react-navigation"<EMAIL_ADDRESS>This won't give you any future updates though.

This is great.
Thanks.

Nice! Noticed the difference some time ago, but didn't have the time to create a PR. One thing that still can be improved is the shadow, which should fade out the more the screen moves out of the screen. Although I think that's more work to implement, since the shadow can't be natively animated.

@koenpunt you're right about that! Maybe we'll get that fixed some time in the future :)


[Mod] Modify Notice, Delete Notice function

Description

In functions to modify and delete notices
When user select nonexistent notice, inform the user that the selected notice does not exist and the function was executed until the user chooses to exist
Related Issue

#28
Motivation and Context

If user select an notice that does not exist in the function to modify the notice, enter an entry value and enter the empty value in the notice section entered by the user.
Screenshots (if appropriate):

I see. Thx. 👍

Thank you for reflecting my advice. Exception handling would be import for user and our program. I'll also do my best to fix my exception! Thank you 👍

@Haeeeun This exception handling will be useful for the users. Thanks for your support.


rosa benchmark fails after the latest change to the default namespace on fetch keycloal url step

Describe the bug
rosa benchmark fails after the latest change to the default namespace on fetch keycloal url step
$ oc get routes -n keycloak | grep keycloak-service | awk '{ print $2 }'
No resources found in keycloak namespace.

work around with the right namespace
$ oc get routes -n runner-keycloak | grep keycloak-service | awk '{ print $2 }'
keycloak-runner-keycloak.apps.kakella-rosa.exkb.p1.openshiftapps.com

Version
nightly
Expected behavior
workflow step should be able to fetch urls for the proper namespace
Actual behavior
looks like the keycloak namespace is hard coded in the fetch urls step of the workflow.
https://github.com/keycloak/keycloak-benchmark/actions/runs/5143990296/workflow#L73
How to Reproduce?
No response
Anything else?
No response

task: [openshift-env] echo $(whoami)- > .task/var-KC_NAMESPACE_PREFIX this seems to be reason, as we pick up the default value from the user on the host os. @stianst would it be fair to re-hard code the namespace to be runner-keycloak ?

https://github.com/keycloak/keycloak-benchmark/pull/361/files
This issue is being addressed as part of this PR


osm2pgsql: 1.5.1 -> 1.6.0

Motivation for this change
https://osm2pgsql.org/news/2022/01/24/release-1.6.0.html
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

1 package built:

osm2pgsql


Investigation task. Do we need separate template for local news type. (To allow access for unique editors to publish local articles)

For now this is mostly for Equinor Venture, UK and US news on the global site. Could be the same template. No subscription option for these news.

Documentation/sketching in Figjam here: https://www.figma.com/file/xm1aNey7RrP4llwou1t8OX/Envis-content-Figjam?node-id=1225%3A16123
To summarize:

Use the same template as the normal news article, with a few adjustments

No subscription
Dropdown to select which market/tag
Adjusted slug field

The slug field is prefixed by the country tag resulting in something like: /uk-news/:slug
Split the Sanity 'news' menu into 2 submenus;

Global news (show all normal news)
Local news

For the local news we can use a filtered/smart folder approach where we can have the following options:

Show all local news
Filter news by market

Where the 'filter news by market' option gives the user an option to show news for only the specific market, similar to how the desk structure filters work for the asset library

With regards to the web part; the local news will not be part of the newsroom, instead they will create a dedicated topic page for each market where they want to add a new "news list" component. This component would work similar to the promotion component where they select a market/country tag which will then automatically generate a list of all local news for that market.
It might be good to create a proper "list" component for this instead of using the regular cards, something along the lines of this:

As question to be answered here is: do we want/need pagination for this list, or some kind of "load more" button - as this list should show all the local news for a market, since this will be the only place to find the local news.


Update free-programming-books-ru.md

Among others here are two rare gems and there are under CC! Just awesome.

Nice!


[PDS] Add CI Workflow

adds rust-toolchain, which specifies a nightly rust version (2024-06-23)
adds .github/workflows/rust.yml, which does a cargo check, build, test in that order
fixes a couple of build errors

You can see the CI working on the PR in my fork
(oh also, let me know if you want me to rebase this onto main instead of this feature branch!)

closed in favor of #10


Modernize WebSockets

Use Compat

send_fragment: Rewrite using binary literals and new constructor syntax
WebSocketFragment constructor: remove deprecated bool()

Drop julia 0.2 support
Also drop prerelease support for HttpCommon and HttpServer

People ended up implementing a lot of what was in here on master, so I took the liberty of merging things. Let me know if anything is unsatisfactory -- I went with UInt calls that were on master, so this should be up-to-date with 0.4 conventions.


Revert "Update Uuid to 0.7"

This reverts commit 8973d8427b2c82d168ef641627c3ecdefaf601f3.
Short term solution for #1900

Makes me sad but 👍 at least we'll show it's not compatible

We can add support for uuid 0.7 as soon as cargo supports renaming crates(#1915) or we release diesel 2.0


Keybase broke my network

I'll preface this by saying that, based on my searching, I'm the only one this happened to. If this was a widespread issue I'm sure I wouldn't have been the first person that encountered it. This issue may not reproduce, but I'm posting it here in case it helps somebody who sees the same problem.
OS is Windows 7 SP1 x64. Keybase client version is whatever was here on April 20.
I installed the Keybase client app and immediately noticed that I could no longer connect to any network shares through standard methods.

The Network folder and all network discovery areas listed no other devices other than the local machine.
In Windows Explorer, typing \\server\share in the address bar resulted in the error "Windows cannot access '\server\share'" along with the code "0x80004005, Unspecified error."
From the command prompt, net use z: \\server\share resulted in the error "The Workstation service has not been started."
One of the only successful methods of accessing the share was through the command prompt: dir \\server\share worked properly, as did other command-line methods of interacting with files.

I tried many fruitless and disruptive fixes, none of which worked. I was almost ready to give up and reinstall Windows when I stumbled on a Super User post that led me on the right path:
In my registry, the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order had the string ProviderOrder set to ,Dokan1 -- literally a comma followed by Dokan1 -- and similar values were found in ControlSet001, 002, etc. Dokan appears to be something that the Keybase virtual filesystem installed, which is something that the Keybase client installed, which is why I'm opening this here.
Looks to me like the installer tried to append Dokan to the existing list like
ProviderOrder = ProviderOrder + ",Dokan1"

but whatever was present on my system ended up clobbering the old value instead of appending to it.
I don't know what that registry value was set to before. System Restore was not useful in trying to recover the old value, nor is this something I have in any of my personal backups. The best I could do was copy the ProviderOrder value from a known-working system, RDPNP,LanmanWorkstation,webclient. That resolved the issue.
I have since uninstalled Dokan, and the Keybase client.

Thanks for the report, and apologies for the trouble.  We'll try to reproduce and check it out.
CC @zanderz @taruti

You are right, the Dokan mounting utility seems to write the comma regardless of what was there:
https://github.com/dokan-dev/dokany/blob/b4dc99ad9efa0b60b05a1e37653e1fc1ba793f43/dokan/mount.c#L315
and also seems a bit cavalier about checking errors from reading the existing string. However, I am pretty sure it was not supposed to be blank in the first place - mine also has RDPNP,LanmanWorkstation,webclient.
We frequently sanity check installations on Win7 x64, so that shouldn't be a problem by itself. Do you have antivirus software installed, or something that may monitor and block registry access? Are you willing to try installing again, maybe with a system restore point ready just in case? Lastly, you can invoke our installer exe with the argument nodriver=1 to skip the Dokan part, so you can still use Keybase chat and keybase fs commands.

Also we don't need the Dokan network provider, so just avoiding that registry write could be a possible solution?


Can't scroll compose message view with super long text

If the text is longer than what fits on the screen, it's not possible to scroll up and see the beginning of the message.

Fixed in 64bf605


ConstanceAdmin should create LogEntry objects

admin.ModelAdmin has a method log_change to create LogEntry objects to show a history of actions by admins. ConstanceAdmin should do that too.

Certainly, even though it's a bit more complicated because constance doesn't itself have model instances by default. Not sure if this could be hacked somehow.
Seems like a duplicate of #19.


Schema Document

Simple Summary
The meta schema defines the format of a document which contains a schema.
Abstract
Motivation
The meta schema document aims to standardize how schema documents are written.
Definitions
Specification
V1
Schema

@oed would be nice to have you on this one. It's meant to define a schema document.


Pipeline stops after 15 seconds with error about discarded payload data

Environment: ubuntu 22 container running on Jetson Xavier
0:00:22.554138012   256 0xaaab13017ea0 WARN                pylonsrc gstpylonsrc.cpp:992:gst_pylon_src_create:<pylonsrc0> error: Failed to create buffer.
0:00:22.554252418   256 0xaaab13017ea0 WARN                pylonsrc gstpylonsrc.cpp:992:gst_pylon_src_create:<pylonsrc0> error: Payload data has been discarded. Payload data can be discarded by the camera device if the available bandwidth is insufficient.
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Failed to create buffer.
Additional debug info:
../subprojects/gst-plugin-pylon/ext/pylon/gstpylonsrc.cpp(992): gst_pylon_src_create (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
Payload data has been discarded. Payload data can be discarded by the camera device if the available bandwidth is insufficient.
0:00:22.554891649   256 0xaaab13017ea0 WARN                 basesrc gstbasesrc.c:3132:gst_base_src_loop:<pylonsrc0> error: Internal data stream error.
Execution ended after 0:00:19.928173550
0:00:22.554948227   256 0xaaab13017ea0 WARN                 basesrc gstbasesrc.c:3132:gst_base_src_loop:<pylonsrc0> error: streaming stopped, reason error (-5)
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Additional debug info:
../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:

Did you resolve this issue?
was this a GiGE or USB camera?

First find optimal settings of your camera in pylon viewer.
Default behaviour of the plugin is to abort the stream in case of transmission errors.
This can be configured using
https://github.com/basler/gst-plugin-pylon/blob/86e4ccf58a164531116f2d98de094d3975f961b2/README.md?plain=1#L151

Yes, it was resolved using correct camera settings.


Pl 129 update people

Completes Trello Story
Private Label Admin: View/Edit People
Description
Private Label administrators can set the admin flag for people associated with the private label, or remove people from the private label.  This does not delete their Person account altogether -- just their association with the private label.

@KBalderson Incorporated your suggestion!


pn.pane.HTML('holomap.html')

I know there's pn.pane.HoloViews, but I thought this would work too.
import panel as pn
pn.extension()

import xarray as xr
import holoviews as hv
hv.extension('bokeh')

ds = xr.tutorial.open_dataset('air_temperature').isel(time=slice(0, 15))

overlay = hv.Dataset(ds).to.image(['lon', 'lat'])
hv.save(overlay, 'test.html')

pn.pane.HTML('test.html').embed()

There's no point calling embed on an html since embed only does anything if there are widgets. Also this works:
pn.pane.HTML(open('test.html').read(), height=500)

To be clear I do not think HTML should load external files, it makes sense for images but you might genuinely want to render 'test.html' or some other filename in an HTML pane.

Although this pn.pane.HTML(open('test.html').read(), height=500) shows the image, the slider is unresponsive. Is there a way to piece together several holomaps exported as HTML (without reprocessing the data)?


Maybe cloud_RoleName is wrong?

In my C# code in order to get multi map I used telemetryInitializer as discussed in this article meaning using this :
 telemetry.Context.Properties["cloud_RoleName"] = "your_role_name"

but it turns out I had to do this :
telemetry.Context.Cloud.RoleName = "your_role_name"

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

ID: 66ca899c-40f6-f27d-dcc5-c42bfa3f4dc8
Version Independent ID: ba07be48-c270-ca16-e4b2-64c063018d74
Content: Azure Application Insights support for multiple components, microservices, and containers
Content Source: articles/application-insights/app-insights-monitor-multi-role-apps.md
Service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@roozbehid-ic Thank you for the feedback!  We are investigating this and will get back to you shortly.

Thanks @roozbehid-ic you are correct. We have added a new section to address this as well as adding info on how to set cloud_RoleName for other languages. Thank you for helping us make our docs better!

@MicrosoftDocs/azure-cxp-triage #please-close


Add batch processing to MMLU and Humaneval evaluation scripts to prevent OOM errors

This is a workaround for the OOM errors I get when running MMLU and humaneval tests on my WIndows PC. It works! :)

Just out of interest, have you tried just doing a gc.collect() periodically while it's creating jobs?

Yes, unfortunately it didn't seem to affect anything.

Basically my commited memory in Windows fills up to circa 180GBs (which is give or take 3x my system RAM) and then it OOMs.

I tried this variant out. Limiting the batch to 64 allowed me to run the test with 16GB VRAM under Windows, while 128 resulted in OOM. I didn't try to optimize the batch size. Used torch 2.4.1 and python 3.11 along with cuda 12.4.

@jim-plus I'm curious if the OoM you're getting is due to VRAM or system RAM. The issue this PR means to address is a system memory leak of some kind in PyTorch or HF Tokenizers (maybe SentencePiece?), which is why I'm a little hesitant to merge it. While enqueued each sequence would use a couple of kB of system RAM at most, and zero VRAM until they're moved to the active list. So it's bizarre that a few thousand jobs can overcommit 3x the available system RAM in this way, or if limiting the length of the queue affects VRAM allocation somehow.
It's definitely unintended behavior, and if it is a bug in ExLlama I'd rather fix it than work around it. Or if it's a memory leak in the tokenizer, perhaps tokenization could be batched in an isolated context.

@turboderp Agreed, it's always better to fix the root cause than workaround it. Still I just wanted to have it out in the open, in case someone might find it useful.
If there's anything else you'd like for me to try to help debug this I'm all ears :)

Something curious is happening. Running the baseline script with default batch 128 will OOM when preparing questions, but that doesn't happen when I select batch size 128 for the updated script above. There seems to be a memory spike when initially preparing questions which levels off.

That's correct. The changes I introduced process the 164 questions in batches (with a default batch size value of 50, if not altered via cmd line argument)) instead of all 164 as done in the original version. This helps to avoid the OOM which happens when the commited memory reaches the Window's limit of circa 3x the system RAM size in GB.


Dialog's "Intent recognized" trigger does not kick in when a winning intent with low score determined by Orchestrator

Describe the bug
Dialog cannot be launched when it has same utterances as Orchestrator for an intent, but this intent is determined with low score, even it is a winning intent.
e.g., When 3 intents X, Y, Z with scores are "X=0.4, Y=0.2, Z=0.1", the winning intent is X, even it's lower than 0.5
Setup a DialogForIntentX with "Intent recognized" trigger, and have the same utterances as in Orchestrator for intent X.
then Begin a new dialog for DialogForIntentX  in Orchestrator's Intent recognized trigger, e.g., OnIntent(X)
Talk to the bot with something that can cause low score and Orchestrator has to pick a winner.
See example in the screen shot.
P.S.,
If I could think of a mitigation for this problem, that would be
Is there a way to set a threshold to make Orchestrator trigger the Unknown intent trigger when all candidate intents are with low scores?
I spot this problem when I was expecting my test message would fall into the Unknown intent while it's actually being directed to a different dialog but did not response due to the winning intent's low score and the reasons illustrated below.
This feels complex to explain in text, but I tried to illustrate in the screenshot below.

Version
2.1.2
OS

[ ] macOS
[X] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Create a bot with Orchestrator at root dialog, with sample utterances as shown below (without the - how are you line)
Add another dialog, with LUIS Intent recognized trigger, with sample utterances as shown below (without the - how are you line)
Talk with the bot with utterance how are you
Add - how are you in the LUIS Intent recognized trigger, but not in the Orchestrator sample utterances, and try talk to the bot again with utterance how are you

Actual behavior
The dialog can only be triggered for Setup # 4
Expected behavior
The dialog can be triggered for both Setup # 3 and Setup # 4

Screenshots

Additional context

@dawwa
This is intended behavior.
To solve your issue, you have to set the condition for each intent like this :

This will make it so that your intent will not trigger unless the recognition threshold is above 0.8.

thanks @johnkm516 , this seems reasonable, and it looks a promising solution!


fix some section and function names in '09_cloudml'

Double check me on the README section name changes.

Thanks, Amy!


consider more time for one-sided communication

if participants of the December 2020 workshop are representative of the intended target audience also for future workshops, we might want to give more time to one-sided communication as that was the topic most were interested in

Yes, I think my original estimates are wildly inaccurate :smile_cat:


Stripe Currency

Add option to set stripe currency from env and have this pass through the app into Stripe to allow the button structure to appear correct.
The default currency is USD, if no currency is passed the [ PAY ] button indicates USD even if in the stripe dashboard it is a different amount. By passing through the currency this removes the USD from the [ PAY ] button not confusing the customer

This looks good.  I will test it out tonight.

It's nothing much. Just purely display
If you don't have a currency passed into the stripe handler the stripe pay button looks like: https://www.evernote.com/l/AGIaC6tuJ2FL0LOC5AOWquNLAE0BgkT0wW8
And if you do set the currency you get: https://www.evernote.com/l/AGLhpUtF4WREXqzsNFEw_Uer2CCujUdF4ek
Enjoy your day!

Sorry, finally got around to merging this PR.  Thanks again!

No problems.
I have a few other improvements in the pipeline. I'll submit those feature
improvements as I go see how you like them and if you want them in the core.
have a great week
—
Lance N. Solomon
On 31 July 2017 at 05:56:12, Matthew Smith<EMAIL_ADDRESS>wrote:

Sorry, finally got around to merging this PR. Thanks again!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/madoublet/respond/pull/531#issuecomment-318925317,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADlk67aucch02ZddF5rZ_to7xeI6wuEKks5sTN_cgaJpZM4Oj9tK
.


Remove deprecation for 'Run Keyword Unless' in RF4

Fixes #593

Codecov Report

Merging #598 (1e4ec38) into master (04d8864) will decrease coverage by 0.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #598      +/-   ##
==========================================
- Coverage   97.34%   97.12%   -0.23%
==========================================
  Files          23       23
  Lines        2639     2639
==========================================
- Hits         2569     2563       -6
- Misses         70       76       +6

Impacted Files
Coverage Δ

robocop/checkers/naming.py
98.59% <ø> (-0.47%)
:arrow_down:

robocop/checkers/misc.py
96.96% <0.00%> (-2.17%)
:arrow_down:

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 04d8864...1e4ec38. Read the comment docs.


hive on flutter web

Hi, I am exploring to use Hive on my flutter web app. Can someone please help me answer/understand the below questions?

Where is Hivedb stored on the browser? local storage or session storage?
What will happen if I open my app in multiple tabs? Will the tabs be able to access the data in the Hive?
What if I open multiple browser windows?
Will the Hive be deleted when I close my tab/window?

Thanks,
Arathi

Where is Hivedb stored on the browser? local storage or session storage?

IndexedDB.

What will happen if I open my app in multiple tabs? Will the tabs be able to access the data in the Hive?

Please check this StackOverflow post for additional details.

What if I open multiple browser windows?

I think the behavior would be same as opening multiple tabs.

Will the Hive be deleted when I close my tab/window?

No. Unless user clears browser storage.

Thank you for your response, from your experience, do you think it's a good use case to use HiveDB to store OAuth tokens on the browser?

Thank you for your response, from your experience, do you think it's a good use case to use HiveDB to store OAuth tokens on the browser?

Actually I'm using Flutter for mobile specific tasks only. For web I'm using react instead. But in general I'm using Hive to store OAuth tokens on device. Previously I was creating json file manually but sometimes weird things occurred and I did not wanted to deal with File System issues.
But I think the answer is: it depends. The best practice might not work for someone else because he/she might have additional requirements. Also if it works for you just use it.

I guess you should use shared preference along with any encrypt algorithm
@arathiShankri


[Documentation Update]: Adding solution to leetcode 172

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
Adding solution to leetcode 172
Suggested Change
Adding solution to leetcode 172
Rationale
No response
Urgency
High
Acknowledgements

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository
[X] I have read and followed the Contribution Guidelines
[X] I have followed the code style guidelines of this project
[X] I have checked for any existing open issues that my pull request may address
[X] I have ensured that my changes do not break any existing functionality
[X] Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently
[X] I have read the resources for guidance listed below
[X] I have not used AI-generated content (e.g., ChatGPT, other AI tools)
[X] I have not used content from existing sites (e.g., text, images)
[X] I have followed all security rules and only shared trusted resources

Assign me this issue


Reactive Feign

Hi. Probably there's a place to view the roadmap for spring but I could not find. I would like to ask if developing a Reactive version of Feign is in the roadmap or in talks for the near future. Thanks

Hello @miguellgramacho96. This is a duplicate. Closing in favour of gh-668. Please see this comment for the suggested replacement.


alert close button doesnt show

here is the code:
insert into the dom:
$('#'+this.id).append(''+
'×');
then:
$('.deletealert').css("display", "block");
$('#alertclosebutton').css("display", "block");
$('.deletealert').text(realmsg);

For personal support requests such as this please use stack overflow with the twitter-bootstrap-3 tag. The github issue tracker is for framework bugs not implementation questions. Thanks for understanding.

What @kkirsche said.


Unit test is failing, but build reporting success

Even though the Travis CI build is reporting a success, if you look at the log, there is a failed unit test...
======================================================================
FAIL: test_post_to_notifications_should_send_a_message (tests.views_tests.ViewsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/travis/build/TwilioDevEd/lead-alerts-flask/tests/views_tests.py", line 23, in test_post_to_notifications_should_send_a_message
    'New lead received for house title. Call name at phone. Message message')
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/mock/mock.py", line 925, in assert_called_with
    raise AssertionError('Expected call: %s\nNot called' % (expected,))
AssertionError: Expected call: send_message('New lead received for house title. Call name at phone. Message message')
Not called

@dprothero - Good catch. Looks like this repo has the same mistake I made in a personal repo recently.
You can see the fix here: https://github.com/atbaker/anti-voicemail/commit/efc9bc6e8628b3e20e521413b1111f296ac63bd3
Any interest in writing a little Python? If not, I'll happily fix it myself.
Whoever works on it should also do a quick check of our other Flask repos and make sure they're okay.

@abaker I'll take a stab at it.

@atbaker Made the change and that worked to cause the build to fail. I'm not, however, sure why the unit test is failing. It passes locally, it only fails on Travis. I'll poke around to see if I can debug it.

@atbaker OK, I found the problem. It wanted the TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN environment variables. I just gave them dummy values in .travis.yml. Want to +1 and merge PR #3 for me?

Merged and the build is passing! Thanks @dprothero


No FailureDetection read_only=on on all servers in a topology

I have a case in which all instances in a topology have read only on, which means that there is no write-able master available. However this is not detected as a failure and the OnFailureDetectionProcesses does not kick off. Nor does the Auto-Recovery.
Is there something I am missign in the configuration that will enable this detection and recovery?
~  ./orchestrator -c topology -i <IP_ADDRESS>
<IP_ADDRESS>:3306      [0s,ok,5.7.23-23-log,ro,ROW,>>,GTID]
+ <IP_ADDRESS>:3306  [0s,ok,5.7.23-23-log,ro,ROW,>>,GTID]
  + <IP_ADDRESS>:3306 [0s,ok,5.7.23-23-log,ro,ROW,>>,GTID]
+ <IP_ADDRESS>:3306   [0s,ok,5.7.23-23-log,ro,ROW,>>,GTID]

This scenario was not designed for failover. What would be the solution? Perhaps just turn off read_only on the master of the topology?
I'm happy to make this a structure warning analysis ; but I'm not sure if I want to take it to failure detection + recovery.
Do you know at this time how you ended up with a read-only master? Does your monitoring cover such scenario?

We have machines that restart quite frequently due to various reasons, that can't be avoided. The my.cnf file has read only set to ON to avoid scenarios that would lead to writes going to two different servers. In these cases currently a DBA manually sets read only off on servers that are master.
Currently we don't have monitoring that is "topology-aware". In case such a restart happens I was wondering if we could use Orchestrator to notify us, since it is topology-aware. The remediation would be to set read only off but I am not depending on orchestrator to take this action. It would still be a manual step. Since there could be complexities related to which node should the read only off be on. Just looking at if I can configure Orchestrator to detect such a scenario and notify.

Here's one way of doing it:
orchestrator-client -c api -path all-instances | jq '.[] | select(.MasterKey.Hostname == "")' | jq -r '. | select (.ReadOnly == true) | .Key.Hostname'
see some ideas on https://github.com/github/orchestrator/blob/master/docs/script-samples.md

Yes, those might be helpful, trying to figure out a way of doing this as a script. However it will help if this can be a structure warning analysis. Perhaps as a part of the replication-analysis command? A warning could definitely make my use case easier :)

yes, a structure warning would be part of replication-analysis.

@jfudally is this something you might be interested in?

@dontstopbelieveing PR #878 was just merged into master.  This PR introduces the NoWriteableMasterStructureWarning structure warning when the master node is read-only.  Please take a look and let me know if this addresses your use-case.

@shlomi-noach sorry for bumping this, I happen to notice in vitess the read-only master is handled.
https://github.com/vitessio/vitess/blob/25762d88e50d77352dfd5cc0bb41902f7215a3d9/go/vt/orchestrator/logic/topology_recovery.go#L1563
Do you think that vitess code could be useful here also? I would be happy to try and write PR if you see no reason not to.

@dontstopbelieveing may I ask how solved this scenario eventually?

@liortamari good timing. Please look at https://github.com/openark/orchestrator/pull/1332, unmerged yet. It solves the issue.


td operator: handle empty query result

👍  without ignorable comment https://github.com/treasure-data/digdag/pull/279/files#r78701804


fix throw RejectedExecutionException

What is the purpose of the change
ref #12632
fix throw RejectedExecutionException when ThreadlessExecutor has been shutdown
Brief changelog
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #12674 (4163db0) into 3.2 (96fb4e8) will decrease coverage by 0.54%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                3.2   #12674      +/-   ##
============================================
- Coverage     69.95%   69.42%   -0.54%
+ Complexity      316        2     -314
============================================
  Files          1852     1629     -223
  Lines         97786    67411   -30375
  Branches      17868     9888    -7980
============================================
- Hits          68408    46798   -21610
+ Misses        23893    16096    -7797
+ Partials       5485     4517     -968

see 3481 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Remove OverlayPainter mechanism

We used to use this mechanism to paint scrollbars, but it's awkward. The
new approach to scrollbars is much cleaner. This mechanism has no other
clients, so we should remove it.

@HansMuller @Hixie


Program Creation

Issue
The End date can be a date that is less than the start date.

Fix
When adding a new program, the end date should greater date than the start date.

@eugeneogongo, we have addressed this issue. You can check if the issue has been resolved by logging into activity.hikaya.app

Hello @andrewtpham
This looks like a partial fix to the data validation.
Can you try setting the following steps:

First set the  End Date. eg. Feb 24th, 2020
Set the start date eg 30th January 2020
finally change the end date to a past day than your end date. eg.  2nd January 2020.

Thank you.

@eugeneogongo Thanks for your feedback, we'll be releasing this fix to production tomorrow but it is currently in our dev and staging branches in case you want to check it out. Also, are you interested in contributing to the project? If so, let me know and we can get you set up.

Hello @andrewtpham ,
I will switch to the dev branch and try out the fix.
I am interested in making contributions to this project..Looking forward to checking contributions guidelines for the project.

Hey @eugeneogongo no problem, let me know if you have any questions since we're still updating our contribution docs. I've also sent you an invite to our slack 😄


Add support for i18n and a few starting translated strings.

This adds the infrastructure for being able to translate strings. Next will be the tedious part of replacing inline strings with formatted ones.
Note to frontend engineers, even when just prototyping, unless you are absolutely sure something won't ever be localized, strongly recommend using i18n from the start ;)
For #2970

@JoveYu @MrGlaucus @gzchenyong can you look at this for adding chinese support to lens UI?

Awesome! Next language could be español ;)

or Catalonian cc @pchiwan @javigomez
man. 10. feb. 2020, 05:36 skrev Anuraag Agrawal<EMAIL_ADDRESS>
Merged #2974 https://github.com/openzipkin/zipkin/pull/2974 into master.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openzipkin/zipkin/pull/2974?email_source=notifications&email_token=AAXOYAUPHMQTQWNSHCQ3ZG3RCDKTVA5CNFSM4KRJPLT2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWQKTOYI#event-3021289313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYARTICFCH2NVNPMOCILRCDKTVANCNFSM4KRJPLTQ
.


Settings page error - Redline 4.0.7

ActionView::Template::Error (uninitialized constant #Class:0x00005559b9c22bb8::Gitlab):
10:     <%= l(:text_scm_command_version) %>
11:
12:   <% Redmine::Scm::Base.all.collect do |choice| %>
13:     <% scm_class = "Repository::#{choice}".constantize %>
14:     <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %>
15:     <% setting = :enabled_scm %>
16:     <% enabled = Setting.send(setting).include?(value) %>
app/views/settings/_repositories.html.erb:13:in block (2 levels) in _app_views_settings__repositories_html_erb__1351165689430309301_46921946125160' app/views/settings/_repositories.html.erb:12:in collect'
app/views/settings/_repositories.html.erb:12:in block in _app_views_settings__repositories_html_erb__1351165689430309301_46921946125160' app/views/settings/_repositories.html.erb:1:in _app_views_settings__repositories_html_erb__1351165689430309301_46921946125160'
app/views/common/_tabs.html.erb:17:in block in _app_views_common__tabs_html_erb__1227372980101744441_46921921741860' app/views/common/_tabs.html.erb:16:in each'
app/views/common/_tabs.html.erb:16:in _app_views_common__tabs_html_erb__1227372980101744441_46921921741860' app/helpers/application_helper.rb:386:in render_tabs'
app/views/settings/edit.html.erb:5:in _app_views_settings_edit_html_erb__2408847084055145564_46921921812260' app/controllers/settings_controller.rb:31:in index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Did you run 'bundle install' to install ruby llibrary gitlab v4.14.0.
Please read the installation of README.md.


Could you please answer my question when you are free ? I would be grateful

when i run "sudo ./build/fbcode_builder/getdeps.py install-system-deps --recursive --install-prefix=$(pwd)/_build" on Ubuntu 20.04 , some errors occured.  when i run "./getdeps.sh" on Ubuntu 20.04 , some errors occured.  Could you please answer my question when you are free ? I would be grateful

hi, have u solved it ?

Are your connections going through a proxy? Can you try to download the same files using curl -v?

@LCJDogLover @qiaoqiao321 you are missing the project name mvfst.   e.g. run ./build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive mvfst


Change pipeline pruner behavior in Staging

Change the pruner settings to aggressively delete finshed PipelineRuns. This change has been requested as part of the investigation around performance testing.

Since the change is just a config setting and it is not mirrored on development, the CI is unlikely to tell us anything meaningful about the PR.
I believe the PR can be force merged to speed up it's deployment to staging.


Feature/search input

Description
This PR adds a minimal <SearchInput /> offering a few helpful callbacks including a debounced callback. Can be used as a controlled or uncontrolled input. For full control, supply your own onChange and value props. The simplest implementation would be to simply use the onDebounce callback and grab the value anytime its updated based on the debounceDelay (default of 300ms). If you wish to include a search button, simply supply a onSearchClick callback which will return the current value when the search button is clicked.
🔗 Reference

Relevant links (e.g. issue, design, etc.)

LINK_NAME

📋 Acceptance Criteria

Checked off by PR Assignees

[ ] CRITERION_HERE

🖼 Demo

👩🔬 Test Instructions

Provided by PR Assignees

TEST_STEP_HERE

🔎 Reviewer Checklist

Checked off by PR Reviewers

[ ] Merge destination is correct
[ ] Code is correct as understood and conforms to quality standards
[ ] Tests have been added where appropriate (unit, visual, end-to-end)
[ ] Acceptance Criteria have been met

Roles & Responsibilities
👨💻 Assignee

Initiator of this PR (be sure to set in GitHub UI)
Addresses feedback and change requests
Merges PR once approved (usually deletes branch unless develop or release)

👩💻 Reviewer

Invited to review PR by Assignee (via GitHub UI)
Is expected to complete a review and address followup

Just fyi that I have several tweaks I'll be shipping out today to make sure this better represents the expected behaviors of a search input.

@luiz-chagas @albatrocity I went full on uncontrolled. Curious to hear your thoughts on the changes.

@luiz-chagas @albatrocity I went full on uncontrolled. Curious to hear your thoughts on the changes.

You were always on controlled land, I think the only way to go uncontrolled is by using refs and not setting value on inputs.
That said, it's looking good!

e only way to go uncontrolled is

Sure, I guess what I'm distinguishing is where the state is managed. In this case, it's manage fully in the component itself. That's a great distinction though.

Haha.  Anyway, @albatrocity I changed initialValue back to value.

Okay @belv2c I've extended the props interface. I'll address the other stuff after my vacation.


bst deletes objects that are needed for the session

See original issue on GitLab
In GitLab by [Gitlab user @abderrahimk] on Mar 1, 2020, 20:20
Summary
Steps to reproduce
take a big project and a small disk, and launch the build.
to be sure this is not a corrupted cache, I deleted ~/.cache/buildstream (and have sourcedir configured outside of it), and launched a full rebuild with no remote cache configured. The build was run with --on-error continue
What is the current bug behavior?
One element build fails with the following error
[--:--:--] START   freedesktop-sdk.bst:extensions/mesa/mesa.bst: Staging dependencies
[--:--:--] START   freedesktop-sdk.bst:bootstrap/gnu-config.bst: Staging bootstrap/gnu-config.bst/39fb0a36
[00:00:00] FAILURE freedesktop-sdk.bst:bootstrap/gnu-config.bst: Staging bootstrap/gnu-config.bst/39fb0a36
[00:00:00] FAILURE freedesktop-sdk.bst:extensions/mesa/mesa.bst: Staging dependencies
[00:00:00] FAILURE freedesktop-sdk.bst:extensions/mesa/mesa.bst: Directory not found in local cache: [Errno 2] No such file or directory: '/home/abderrahim/.cache/buildstream/cas/objects/6d/08cdaaa5b10bfe42c9f28dac47ce7d82bdf46736db5d47a6eff9b1d9e39494'

What is the expected correct behavior?
Relevant logs and/or screenshots
  File "/home/abderrahim/.virtualenvs/bst-master/bin/bst", line 8, in <module>
    sys.exit(cli())
  File "/home/abderrahim/.virtualenvs/bst-master/lib/python3.7/site-packages/click/core.py", line 766, in __call__
    return self.main(*args, **kwargs)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_frontend/cli.py", line 281, in override_main
    original_main(self, args=args, prog_name=prog_name, complete_var=None, standalone_mode=standalone_mode, **extra)
  File "/home/abderrahim/.virtualenvs/bst-master/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/abderrahim/.virtualenvs/bst-master/lib/python3.7/site-packages/click/core.py", line 1139, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/abderrahim/.virtualenvs/bst-master/lib/python3.7/site-packages/click/core.py", line 958, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/abderrahim/.virtualenvs/bst-master/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/abderrahim/.virtualenvs/bst-master/lib/python3.7/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_frontend/cli.py", line 491, in build
    app.stream.build(elements, selection=deps, ignore_junction_targets=ignore_junction_targets, remote=remote)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_stream.py", line 326, in build
    self._run()
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_stream.py", line 1363, in _run
    status = self._scheduler.run(self.queues, self._context.get_cascache().get_casd_process_manager())
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/scheduler.py", line 211, in run
    self.loop.run_forever()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 538, in run_forever
    self._run_once()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1782, in _run_once
    handle._run()
  File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/scheduler.py", line 458, in real_schedule
    self._sched_queue_jobs()
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/scheduler.py", line 438, in _sched_queue_jobs
    self._start_job(job)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/scheduler.py", line 386, in _start_job
    job.start()
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/jobs/job.py", line 187, in start
    self._process.start()
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/_multiprocessing.py", line 62, in start
    self._popen = self._Popen(self)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 277, in _Popen
    return Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 74, in _launch
    code = process_obj._bootstrap()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/_multiprocessing.py", line 69, in run
    super().run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/jobs/job.py", line 707, in child_action
    result = self.child_process()  # pylint: disable=assignment-from-no-return
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/jobs/elementjob.py", line 103, in child_process
    return self._action_cb(self._element)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_scheduler/queues/buildqueue.py", line 93, in _assemble_element
    return element._assemble()
  File "/home/abderrahim/Projects/bst-master/src/buildstream/element.py", line 1589, in _assemble
    self.stage(sandbox)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/buildelement.py", line 223, in stage
    self.stage_dependency_artifacts(sandbox, Scope.BUILD)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/element.py", line 729, in stage_dependency_artifacts
    result = dep.stage_artifact(sandbox, path=path, include=include, exclude=exclude, orphans=orphans)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/element.py", line 679, in stage_artifact
    files_vdir = self.__artifact.get_files()  # type: ignore
  File "/home/abderrahim/Projects/bst-master/src/buildstream/_artifact.py", line 79, in get_files
    return CasBasedDirectory(self._cas, digest=files_digest)
  File "/home/abderrahim/Projects/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 143, in __init__
    self._reset(digest=digest)

Possible fixes
Other relevant information

BuildStream version affected: /milestone %BuildStream_v1.x

In GitLab by [Gitlab user @abderrahimk] on Jun 6, 2020, 17:44
I have a new stack trace for this
  File "/home/abderrahim/.virtualenvs/bst2/bin/bst", line 8, in <module>
    sys.exit(cli())
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/abderrahim/bst-master/src/buildstream/_frontend/cli.py", line 280, in override_main
    original_main(self, args=args, prog_name=prog_name, complete_var=None, standalone_mode=standalone_mode, **extra)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/abderrahim/bst-master/src/buildstream/_frontend/cli.py", line 861, in source_fetch
    app.stream.fetch(elements, selection=deps, except_targets=except_, remote=remote)
  File "/home/abderrahim/bst-master/src/buildstream/_stream.py", line 345, in fetch
    self._fetch(elements)
  File "/home/abderrahim/bst-master/src/buildstream/_stream.py", line 1385, in _fetch
    self._run()
  File "/home/abderrahim/bst-master/src/buildstream/_stream.py", line 1359, in _run
    status = self._scheduler.run(self.queues, self._context.get_cascache().get_casd_process_manager())
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 211, in run
    self.loop.run_forever()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
    self._run_once()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
    handle._run()
  File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 480, in real_schedule
    self._sched_queue_jobs()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 445, in _sched_queue_jobs
    self._start_job(job)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 385, in _start_job
    job.start()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/job.py", line 189, in start
    self._process.start()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/_multiprocessing.py", line 62, in start
    self._popen = self._Popen(self)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 277, in _Popen
    return Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 74, in _launch
    code = process_obj._bootstrap()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/_multiprocessing.py", line 69, in run
    super().run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/job.py", line 709, in child_action
    result = self.child_process()  # pylint: disable=assignment-from-no-return
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/elementjob.py", line 103, in child_process
    return self._action_cb(self._element)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/queues/fetchqueue.py", line 78, in _fetch_not_original
    element._fetch(fetch_original=False)
  File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2059, in _fetch
    self.__cache_sources()
  File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2939, in __cache_sources
    self.__sourcecache.commit(source, [])
  File "/home/abderrahim/bst-master/src/buildstream/_sourcecache.py", line 181, in commit
    source._stage(vdir)
  File "/home/abderrahim/bst-master/src/buildstream/source.py", line 831, in _stage
    cas_dir = CasBasedDirectory(self._get_context().get_cascache(), digest=self.__digest)
  File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 146, in __init__
    self._reset(digest=digest)
  File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 152, in _reset
    self._populate_index(digest)
  File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 163, in _populate_index

It seems to be caused by a local source (which defines BST_KEY_REQUIRES_STAGE), where the files disappear from the cache between the calls to _get_unique_key() and _stage(). The former is likely called at around bst startup, whereas the latter happens when the source is actually needed.

In GitLab by [Gitlab user @abderrahimk] on Jun 6, 2020, 17:44
I have a new stack trace for this
  File "/home/abderrahim/.virtualenvs/bst2/bin/bst", line 8, in <module>
    sys.exit(cli())
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/abderrahim/bst-master/src/buildstream/_frontend/cli.py", line 280, in override_main
    original_main(self, args=args, prog_name=prog_name, complete_var=None, standalone_mode=standalone_mode, **extra)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/abderrahim/.virtualenvs/bst2/lib/python3.7/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/abderrahim/bst-master/src/buildstream/_frontend/cli.py", line 861, in source_fetch
    app.stream.fetch(elements, selection=deps, except_targets=except_, remote=remote)
  File "/home/abderrahim/bst-master/src/buildstream/_stream.py", line 345, in fetch
    self._fetch(elements)
  File "/home/abderrahim/bst-master/src/buildstream/_stream.py", line 1385, in _fetch
    self._run()
  File "/home/abderrahim/bst-master/src/buildstream/_stream.py", line 1359, in _run
    status = self._scheduler.run(self.queues, self._context.get_cascache().get_casd_process_manager())
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 211, in run
    self.loop.run_forever()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
    self._run_once()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
    handle._run()
  File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 480, in real_schedule
    self._sched_queue_jobs()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 445, in _sched_queue_jobs
    self._start_job(job)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/scheduler.py", line 385, in _start_job
    job.start()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/job.py", line 189, in start
    self._process.start()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/_multiprocessing.py", line 62, in start
    self._popen = self._Popen(self)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 277, in _Popen
    return Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 74, in _launch
    code = process_obj._bootstrap()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/_multiprocessing.py", line 69, in run
    super().run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/job.py", line 709, in child_action
    result = self.child_process()  # pylint: disable=assignment-from-no-return
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/elementjob.py", line 103, in child_process
    return self._action_cb(self._element)
  File "/home/abderrahim/bst-master/src/buildstream/_scheduler/queues/fetchqueue.py", line 78, in _fetch_not_original
    element._fetch(fetch_original=False)
  File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2059, in _fetch
    self.__cache_sources()
  File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2939, in __cache_sources
    self.__sourcecache.commit(source, [])
  File "/home/abderrahim/bst-master/src/buildstream/_sourcecache.py", line 181, in commit
    source._stage(vdir)
  File "/home/abderrahim/bst-master/src/buildstream/source.py", line 831, in _stage
    cas_dir = CasBasedDirectory(self._get_context().get_cascache(), digest=self.__digest)
  File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 146, in __init__
    self._reset(digest=digest)
  File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 152, in _reset
    self._populate_index(digest)
  File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 163, in _populate_index

It seems to be caused by a local source (which defines BST_KEY_REQUIRES_STAGE), where the files disappear from the cache between the calls to _get_unique_key() and _stage(). The former is likely called at around bst startup, whereas the latter happens when the source is actually needed.

In GitLab by [Gitlab user @abderrahimk] on Jun 7, 2020, 11:42
And another one. (Note I'm running it with low disk space on purpose to find more of these)
[--:--:--] BUG     bootstrap/linux-headers.bst: Fetch

    An unhandled exception occured:

    Traceback (most recent call last):
      File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/job.py", line 709, in child_action
        result = self.child_process()  # pylint: disable=assignment-from-no-return
      File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/elementjob.py", line 103, in child_process
        return self._action_cb(self._element)
      File "/home/abderrahim/bst-master/src/buildstream/_scheduler/queues/fetchqueue.py", line 78, in _fetch_not_original
        element._fetch(fetch_original=False)
      File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2059, in _fetch
        self.__cache_sources()
      File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2936, in __cache_sources
        self.__sourcecache.commit(source, self.__sources[last_requires_previous:ix])
      File "/home/abderrahim/bst-master/src/buildstream/_sourcecache.py", line 177, in commit
        vdir.export_files(tmpdir)
      File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 570, in export_files
        self.cas_cache.checkout(to_directory, self._get_digest(), can_link=can_link)
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 262, in checkout
        self.checkout(fullpath, dirnode.digest, can_link=can_link)
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 262, in checkout
        self.checkout(fullpath, dirnode.digest, can_link=can_link)
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 262, in checkout
        self.checkout(fullpath, dirnode.digest, can_link=can_link)
      [Previous line repeated 1 more time]
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 244, in checkout
        utils.safe_copy(self.objpath(filenode.digest), fullpath)
      File "/home/abderrahim/bst-master/src/buildstream/utils.py", line 388, in safe_copy
        shutil.copyfile(src, dest)
      File "/usr/lib/python3.7/shutil.py", line 120, in copyfile
        with open(src, 'rb') as fsrc:
    FileNotFoundError: [Errno 2] No such file or directory: '/home/abderrahim/.cache/buildstream/cas/objects/4a/16cab41a8f641d77f5c3cb94e7ab34b15c97db8f816c124bca9ebad53340c0'

This one seems to be sourcecache related as well.

In GitLab by [Gitlab user @abderrahimk] on Jun 7, 2020, 11:42
And another one. (Note I'm running it with low disk space on purpose to find more of these)
[--:--:--] BUG     bootstrap/linux-headers.bst: Fetch

    An unhandled exception occured:

    Traceback (most recent call last):
      File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/job.py", line 709, in child_action
        result = self.child_process()  # pylint: disable=assignment-from-no-return
      File "/home/abderrahim/bst-master/src/buildstream/_scheduler/jobs/elementjob.py", line 103, in child_process
        return self._action_cb(self._element)
      File "/home/abderrahim/bst-master/src/buildstream/_scheduler/queues/fetchqueue.py", line 78, in _fetch_not_original
        element._fetch(fetch_original=False)
      File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2059, in _fetch
        self.__cache_sources()
      File "/home/abderrahim/bst-master/src/buildstream/element.py", line 2936, in __cache_sources
        self.__sourcecache.commit(source, self.__sources[last_requires_previous:ix])
      File "/home/abderrahim/bst-master/src/buildstream/_sourcecache.py", line 177, in commit
        vdir.export_files(tmpdir)
      File "/home/abderrahim/bst-master/src/buildstream/storage/_casbaseddirectory.py", line 570, in export_files
        self.cas_cache.checkout(to_directory, self._get_digest(), can_link=can_link)
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 262, in checkout
        self.checkout(fullpath, dirnode.digest, can_link=can_link)
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 262, in checkout
        self.checkout(fullpath, dirnode.digest, can_link=can_link)
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 262, in checkout
        self.checkout(fullpath, dirnode.digest, can_link=can_link)
      [Previous line repeated 1 more time]
      File "/home/abderrahim/bst-master/src/buildstream/_cas/cascache.py", line 244, in checkout
        utils.safe_copy(self.objpath(filenode.digest), fullpath)
      File "/home/abderrahim/bst-master/src/buildstream/utils.py", line 388, in safe_copy
        shutil.copyfile(src, dest)
      File "/usr/lib/python3.7/shutil.py", line 120, in copyfile
        with open(src, 'rb') as fsrc:
    FileNotFoundError: [Errno 2] No such file or directory: '/home/abderrahim/.cache/buildstream/cas/objects/4a/16cab41a8f641d77f5c3cb94e7ab34b15c97db8f816c124bca9ebad53340c0'

This one seems to be sourcecache related as well.

In GitLab by [Gitlab user @abderrahimk] on Jun 8, 2020, 09:57
mentioned in commit 09b2c8527bb88c457fb40fbb14a1dfcea04afc60

In GitLab by [Gitlab user @abderrahimk] on Jun 8, 2020, 09:57
mentioned in commit 09b2c8527bb88c457fb40fbb14a1dfcea04afc60

In GitLab by [Gitlab user @abderrahimk] on Jun 8, 2020, 09:59
mentioned in merge request !1958

In GitLab by [Gitlab user @abderrahimk] on Jun 8, 2020, 09:59
mentioned in merge request !1958

In GitLab by [Gitlab user @marge-bot123] on Jun 8, 2020, 14:30
closed via merge request !1958

In GitLab by [Gitlab user @marge-bot123] on Jun 8, 2020, 14:30
closed via merge request !1958

In GitLab by [Gitlab user @marge-bot123] on Jun 8, 2020, 14:30
mentioned in commit feb82abe89c56a0f6bfbddcf69e1534c68b7e973

In GitLab by [Gitlab user @marge-bot123] on Jun 8, 2020, 14:30
mentioned in commit feb82abe89c56a0f6bfbddcf69e1534c68b7e973


Refactoring

Summary
This PR:

Reimplements the CLI to use click rather than argparse (#14)
Adds options for custom line lengths (#3)

Tasks

[x] I have searched for similar/duplicate PR's, and there are none.
[x] I have made tests to validate any changes to the code base.
[x] I have run nox and all sessions pass.

Related issues
Closes #3.
Closes #14.

Don't worry about all the force pushes 😅


Hability to tell new members on both platforms

It's possible to send an alert message when a new member joined to the Telegram group or Discord server?
Like
SkateWarp joined to [Telegram group name] to the Discord server.
for Discord to Telegram, at first I thought it woudn't be possible to send an alert message from one text channel, but what if you use the bot with the server roles to separate the users from others channels?

This has now been implemented in commit 2296b09dadf0ea508a561ac74e9ec860f0dd172c
It also has two per-bridge settings associated with it: bridge.telegram.relayJoinLeaveMessages and bridge.discord.relayJoinLeaveMessages, which toggles this functionality


Add type annotations to v2.x

Is there any plan to add type annotations to v2.x?

Thanks, no pressure from my side. I thought they could be auto-generated but it seems that's not the case right now.

Fixed by commit https://github.com/pemistahl/lingua-rs/commit/ac9480ee82a99460fb55d8fe8e70606e01c23603, to be released shortly.


Fix push close and re-open from DDJ to JIRA

This is a fix for updating issues in JIRA from DDJ.  On DDJ 1.6.5, when an issue is closed or re-opened, DDJ doesn't update existing JIRA issues.  This ticket will set the push_to_jira flag when an update that has a JIRA ticket changes status.
Also included are a couple minor logging updates to log issues when DDJ tries to update a JIRA ticket and there is a problem with the update.  This change will log the event and send the response from JIRA.
This template is for your information. Please clear everything when submitting your pull request.
Note: DefectDojo is now on Python3.5 and Django 2.2.x Please submit your pull requests to the 'dev' branch as the 'legacy-python2.7' branch is only for bug fixes. Any new features submitted to the legacy branch will be ignored and closed.
When submitting a pull request, please make sure you have completed the following checklist:

[X] Your code is flake8 compliant.
[X] Your code is python 3.5 compliant (specific python >=3.6 syntax is currently not accepted).
[ ] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.
[ ] Model changes must include the necessary migrations in the dojo/db_migrations folder.
[ ] Add applicable tests to the unit tests.
[ ] Add the proper label to categorize your PR.

Current accepted labels for PRs:

Import Scans (for new scanners/importers)
enhancement
performance
feature
bugfix
maintenance (a.k.a chores)
dependencies
New Migration

Git Tips
Rebase on dev branch
If the dev branch has changed since you started working on it, please rebase your work after the current dev.
On your working branch mybranch:
git rebase dev mybranch

In case of conflict:
 git mergetool
 git rebase --continue

When everything's fine on your local branch, force push to your myOrigin remote:
git push myOrigin --force-with-lease

To cancel everything:
git rebase --abort

Squashing commits
git rebase -i origin/dev

Replace pick by fixup on the commits you want squashed out
Replace pick by reword on the first commit if you want to change the commit message
Save the file and quit your editor

Force push to your myOrigin remote:
git push myOrigin --force-with-lease

O.K.  I think I got this right this time.

When editing a finding, the user can choose whether to use push_to_jira or not. I am wondering if it should be the same for close finding? Or should both just automatically push?

I would think that we would want external ticketing systems to be kept in sync with the state of findings here.  It is important for a user, who isn't paying attention to the content of this system, knows if a finding has been closed or reopened.  It a user thinks that the fixed an issue and closes a ticket, that will push from JIRA back to DDJ (if the webhook is enabled).  We look at the issue later and see that it hasn't been fix properly, the user needs to get an updated that there is still a issue, right?

I think I agree with @valentijnscholten. The point of push_all_issues in the settings is to do this automatically no matter what. The way that all of the other actions (like editing a finding) are done by checking if push_all_issues is enabled at the product level and, if it isn't, use a checkbox to then determine if we push the issue.
It's probably better to allow the users to decide how they want to implement their JIRA integration rather than force a specific workflow upon them.

I would think that we would want external ticketing systems to be kept in sync with the state of findings here
This is a choice we give to the users with the product-level push_all_issues checkbox.

+1 on the point @Apipia made.

does it already work with 1.6.5 if you have push_all_to_jira enabled for a product?

does it already work with 1.6.5 if you have push_all_to_jira enabled for a product?

It doesn't work for /close or /open with push_to_jira enabled. A Checkbox might be easily added to closing (since it takes you to a page where you have to supply a note) but for opening, that might be more difficult. Opening a finding doesn't take to you any intermediate view, it just takes you to the finding but now it's opened. Maybe a pop-up? ("DO you want to push to jira?") if push_all_issues isn't already enabled?
Might be more difficult that I thought to implement pushing to jira on opening/closing a finding. I guess it was never really there and it never really worked.
Side note: If you open or close a finding by clicking "Open Finding" or "Close Finding", then edit the finding (making no changes), it will THEN update it in JIRA. since the code in the /edit view does check for jira and has a checkbox.

O.K.  I can redo this.  How about if push_all_issues and the existing finding already has an issue in JIRA
push_all_issues_enabled = finding.test.engagement.product.jira_pkey_set.first().push_all_issues
if push_all_issues_enabled and JIRA_Issue.objects.filter(finding=finding).exists():
finding.save(push_to_jira=True)
else:
finding.save()
This won't fix the issue that an issue can't be updated if push_all_issues isn't already set, but at least some of the tickets will get fixed

I think if push all to jira is enabled, then indeed it should gets pushed to JIRA when closed or (re)opened.
Anything else probably needs either to present the user a choice, which could be another PR if you want.

does it already work with 1.6.5 if you have push_all_to_jira enabled for a product?

It doesn't work for /close or /open with push_to_jira enabled. A Checkbox might be easily added to closing (since it takes you to a page where you have to supply a note) but for opening, that might be more difficult. Opening a finding doesn't take to you any intermediate view, it just takes you to the finding but now it's opened. Maybe a pop-up? ("DO you want to push to jira?") if push_all_issues isn't already enabled?
Might be more difficult than I thought to implement pushing to jira on opening/closing a finding. I guess it was never really there and it never really worked.
Side note: If you open or close a finding by clicking "Open Finding" or "Close Finding", then edit the finding (making no changes), it will THEN update it in JIRA. since the code in the /edit view does check for jira and has a checkbox.

I don't follow you, does it or does it not work when push_all_to_jira is checked/enabled?

When clicking either of those, is does not touch JIRA in any way.
Following either of those clicks by editing the finding, making no changes, and saving it, will then update the item in JIRA.

O.K.  This time a little better thought out.  Still learning.  Not each project has a JIRA_PKey.
Found the query for jpkey a little earlier in the code, so I am modeling after that section. Try to get the JIRA config for a finding.  If it fails, save the finding.  If it is successful. check if push_all_issues is True and there is a JIRA already created.  If so, save the finding with push to jira else save the finding.
try:
jpkey = JIRA_PKey.objects.get(product=finding.test.engagement.product)
if jpkey.push_all_issues and JIRA_Issue.objects.filter(finding=finding).exists():
finding.save(push_to_jira=True)
else:
finding.save()
except JIRA_PKey.DoesNotExist:
finding.save()


update readme

Hi @Hacker-VP, thank you for taking the time to make these changes. I'm going to have to close of this pull request because neither of these appear to be needed.


Create a Gregorian Date Component Class

There are semantic issues with the provided Date class in js
It would be more clear and better suited to have an alternative Gregorian Date Component, which can be used to represent a gregorian date

I found an existing implementation here: https://www.npmjs.com/package/gregorian-calendar
@bchurchill Can you please take a look at this library and let me know if this would be helpful? Thanks!


The Scrollbar() Widget in Flutter Web is not working as expected

Hi,
Imagin you have a list of cards in a Scrollbar widget. You set show the scrollbar allways to true.
What does work as expected:

If the browser window is large enough to display all cards, no scrollbar is shown.
If I decrease the size of the window so that not all cards can be shown anymore, a scrollbar appears.

What does not work as expected:

If I increase the size of the window, so that all cards can be shown again, the scrollbar does not dissapear again. But it should.
If I use expandable cards, and I expand one so that not all cards can be shown anymore, no scrollbar appears. I had to resize the window to make it appear.

Here is my doctor -v output

flutter doctor -v
[√] Flutter (Channel beta, 1.26.0-17.3.pre, on Microsoft Windows [Version 10.0.19042.685], locale de-DE)
    • Flutter version 1.26.0-17.3.pre at C:\Users\akilian\Flutter SDK\flutter
    • Framework revision 4b50ca7f7f (3 days ago), 2021-02-04 19:44:27 -0800
    • Engine revision 2c527d6c7e
    • Dart version 2.12.0 (build 2.12.0-259.8.beta)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\akilian\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.52.1)
    • VS Code at C:\Users\akilian\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.146
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 88.0.705.56

Hi @Wissperwind
Can you please provide a minimal complete reproducible code sample?
Thank you

Here it is:
import 'package:flutter/material.dart';

void main() {
  runApp(BugExample());
}

class BugExample extends StatelessWidget {

  Widget buildCard(BuildContext context, int index) {

    SizedBox sizedBox = SizedBox(width: 300, height: 200);

    //Create an expansion tile
    var expansionTile = ExpansionTile(title: Text(""),
        children: [sizedBox]);

    final expanderTheme = Theme.of(context).copyWith(dividerColor: Colors.white, hoverColor: Colors.white);
    var themedExp = Theme(data: expanderTheme, child: expansionTile);

    Column cardColumn = Column(children: [sizedBox, themedExp]);

    Card card = Card(child: cardColumn);

    return card;
  }

@override
  Widget build(BuildContext context) {

  List<Widget> cards = <Widget>[];

  var scrollController = ScrollController();

  //Build a nice ListView
  var listView = ListView.builder(
      itemCount: 3,
      itemBuilder: buildCard,
      controller: scrollController
  );

  //Default flutter scrollbar
  var scrollbar = Scrollbar(child: listView, isAlwaysShown: true, controller: scrollController);

  Container c = Container(child: scrollbar, constraints: BoxConstraints(maxWidth: 800));
  Row r = Row(children: [c]);

  Scaffold myScaffold = Scaffold(body: r);

  MaterialApp app = MaterialApp(
    title: 'Example',
    home: myScaffold,
  );

  return app;

}
}

I can reproduce the issue on latest Master channel.

flutter doctor -v
[✓] Flutter (Channel master, 1.27.0-2.0.pre.101, on macOS 11.2 20D64 darwin-x64, locale en-AO)
    • Flutter version 1.27.0-2.0.pre.101 at /Users/pedromassango/Code/flutter_master
    • Framework revision c2ee916a5d (3 hours ago), 2021-02-14 23:01:04 -0500
    • Engine revision 1d537824d6
    • Dart version 2.13.0 (build 2.13.0-30.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 53.1.5
    • Dart plugin version 203.6912

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.1

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2 20D64 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.150

! Doctor found issues in 1 category.

This may be a duplicate of #67690, both may be resolved by #82687

any update?

@xu-baolin
Hi, did you successfully merge this into master? When will it be merged to stable?

Is there a workaround for stable release?

The patch is still in the final review, I believe it will be on the master soon, but it will take a while to push to the stable branch, I think it may take several weeks.


Fix for code example in documentation (Getting Started/Async Completion)

The code example on the Async Completion page was meant to log the version from package.json to the console, but it was logging out "undefined".
Output of previous code example:

Output of fixed code example:

Thanks!


Call permission always return false

For checking call permission of app I'm using this method
this._androidPermission.checkPermission(this._androidPermission.PERMISSION.CALL_PHONE)
And always it returns false.

Are you using Android 9 (Oreo)? I noticed this issue after updating Android. Not all permissions are broken here, e.g. the camera permission works for me.

i am using  PERMISSION.ACCESS_FINE_LOCATION and PERMISSION.ACESS_COARSE_LOCATION,
and it return false even if i approve that :/