Unable to access external/internal websites when I launch a browser

I have set up selenoid in docker machine . I am able to poll the status using http://host:4444/status
Also I am able to launch a chrome instance (vnc_65) and see it in selenoid-ui  . But when it is unable to navigate to the website in this step -
driver.get("https://www.google .com");
Any thoughts ? Seems I have to make some config changes but not sure what ?

Just to mention, I am unable to access even internal sites :/

@rohitpatwari84 do you have to configure any proxies to access the Internet?

On my local , yes I have to . So where do I mention these proxies  in docker-compose yaml file ?

@rohitpatwari84 so far as I know you have to configure Docker itself to work with proxies. https://docs.docker.com/network/proxy/

I used chrome image v65 , v64 , v64 . All are having issues . The chrome browsers shows establishing secure connection and connecting at the bottom left for a long time . After that my home page displays but the connecting mesage at bottom is still displayed and the loading icon doesnt go . So its unable to perform any steps after that . Can you please help ?

@rohitpatwari84 did you configure Docker to work with proxies?

But , if it was a proxy issue then my site wouldnt have opened up at all , Right ? . It shows the home page after a long time . In few seconds after opening my url , it shows "SITE CANT BE REACHED .. TIME ERR" on Chrome , But soon after it shows me the HOME Page of my site .
On FF though , the page loads pretty fast.

@rohitpatwari84 timeout can be increased either with Selenoid -timeout flag or with sessionTimeout capability specified in seconds.

@vania-pooh , thanks . But it seems that this doesnt work . My page gives time out msg within 20 sec after I do a get and then after a long time shows my home page .
I see the following debug statements initially (when Chrome shows ERR_TIMED OUT) -
[1535723018.294][DEBUG]: DEVTOOLS RESPONSE DOM.getDocument (id=16) {
"root": {
"backendNodeId": 1,
"baseURL": "chrome-error://chromewebdata/",
"childNodeCount": 2,
"children": [ {
"backendNodeId": 2,
"localName": "",
"nodeId": 7,
"nodeName": "html",
"nodeType": 10,
"nodeValue": "",
"parentId": 6,
"publicId": "",
"systemId": ""
}, {

@vania-pooh  , The below Logs might help you to give some clue -
Initialize...
Connecting to ws://dockerhost:9090/ws/logs/873870c9dc38373921948458e2ec8cb5...
Connected!
 Use a whitelist instead!
[1535726707.426][INFO]: COMMAND InitSession {
"capabilities": {
"firstMatch": [ {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "start-maximized", "--disable-extensions", "test-type", "--timeout=120", "--disable-web-security", "--allow-running-insecure-content", "--unsafely-treat-insecure-origin-as-secure=https://adpvantage-fit.nj.adp.com" ],
"extensions": [  ]
}
} ]
},
"desiredCapabilities": {
"browserName": "chrome",
"enableVNC": true,
"goog:chromeOptions": {
"args": [ "start-maximized", "--disable-extensions", "test-type", "--timeout=120", "--disable-web-security", "--allow-running-insecure-content", "--unsafely-treat-insecure-origin-as-secure=https://adpvantage-fit.nj.adp.com" ],
"extensions": [  ]
},
"javascriptEnabled": true,
"platform": "ANY",
"sessionTimeout": 200,
"version": "64.0"
}
}
[1535726707.441][INFO]: Populating Preferences file: {
"alternate_error_pages": {
"enabled": false
},
"autofill": {
"enabled": false
},
"browser": {
"check_default_browser": false
},
"distribution": {
"import_bookmarks": false,
"import_history": false,
"import_search_engine": false,
"make_chrome_default_for_user": false,
"skip_first_run_ui": true
},
"dns_prefetching": {
"enabled": false
},
"profile": {
"content_settings": {
"pattern_pairs": {
"https://,": {
"media-stream": {
"audio": "Default",
"video": "Default"
}
}
}
},
"default_content_setting_values": {
"geolocation": 1
},
"default_content_settings": {
"geolocation": 1,
"mouselock": 1,
"notifications": 1,
"popups": 1,
"ppapi-broker": 1
},
"password_manager_enabled": false
},
"safebrowsing": {
"enabled": false
},
"search": {
"suggest_enabled": false
},
"translate": {
"enabled": false
}
}
[1535726707.441][INFO]: Populating Local State file: {
"background_mode": {
"enabled": false
},
"ssl": {
"rev_checking": {
"enabled": false
}
}
}
[1535726707.462][INFO]: Launching chrome: /usr/bin/google-chrome --allow-running-insecure-content --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-extensions --disable-extensions-except=/tmp/.org.chromium.Chromium.K2azKR/internal --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --disable-web-security --enable-automation --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12206 --start-maximized --test-type --timeout=120 --unsafely-treat-insecure-origin-as-secure=https://adpvantage-fit.nj.adp.com --use-mock-keychain --user-data-dir=/tmp/.org.chromium.Chromium.mqIm5g data:,
[1535726707.463][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.603][DEBUG]: DevTools request failed
[1535726707.653][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.653][DEBUG]: DevTools request failed
[1535726707.704][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.704][DEBUG]: DevTools request failed
[1535726707.754][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.754][DEBUG]: DevTools request failed
[1535726707.804][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.805][DEBUG]: DevTools request failed
--- x11vnc loop: waiting for: 66
[1535726707.855][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.855][DEBUG]: DevTools request failed
[1535726707.905][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.905][DEBUG]: DevTools request failed
[1535726707.955][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726707.956][DEBUG]: DevTools request failed
[1535726708.006][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.006][DEBUG]: DevTools request failed
[1535726708.056][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.056][DEBUG]: DevTools request failed
Failed to read: session.screen0.opaqueMove
Setting default value
Failed to read: session.screen0.fullMaximization
Setting default value
Failed to read: session.screen0.maxIgnoreIncrement
Setting default value
Failed to read: session.screen0.maxDisableMove
Setting default value
Failed to read: session.screen0.maxDisableResize
Setting default value
Failed to read: session.screen0.workspacewarping
Setting default value
Failed to read: session.screen0.showwindowposition
Setting default value
Failed to read: session.screen0.autoRaise
Setting default value
Failed to read: session.screen0.clickRaises
Setting default value
Failed to read: session.screen0.defaultDeco
Setting default value
Failed to read: session.screen0.tab.placement
Setting default value
Failed to read: session.screen0.windowMenu
Setting default value
Failed to read: session.screen0.noFocusWhileTypingDelay
Setting default value
Failed to read: session.screen0.workspaces
Setting default value
Failed to read: session.screen0.edgeSnapThreshold
Setting default value
Failed to read: session.screen0.window.focus.alpha
Setting default value
Failed to read: session.screen0.window.unfocus.alpha
Setting default value
Failed to read: session.screen0.menu.alpha
Setting default value
Failed to read: session.screen0.menuDelay
Setting default value
Failed to read: session.screen0.tab.width
Setting default value
Failed to read: session.screen0.tooltipDelay
Setting default value
Failed to read: session.screen0.allowRemoteActions
Setting default value
Failed to read: session.screen0.clientMenu.usePixmap
Setting default value
Failed to read: session.screen0.tabs.usePixmap
Setting default value
Failed to read: session.screen0.tabs.maxOver
Setting default value
Failed to read: session.screen0.tabs.intitlebar
Setting default value
Failed to read: session.screen0.focusModel
Setting default value
Failed to read: session.screen0.tabFocusModel
Setting default value
Failed to read: session.screen0.focusNewWindows
Setting default value
Failed to read: session.screen0.focusSameHead
Setting default value
Failed to read: session.screen0.rowPlacementDirection
Setting default value
Failed to read: session.screen0.colPlacementDirection
Setting default value
Failed to read: session.screen0.windowPlacement
Setting default value
Failed to read: session.ignoreBorder
Setting default value
Failed to read: session.forcePseudoTransparency
Setting default value
Failed to read: session.colorsPerChannel
Setting default value
Failed to read: session.doubleClickInterval
Setting default value
Failed to read: session.tabPadding
Setting default value
Failed to read: session.styleOverlay
Setting default value
Failed to read: session.slitlistFile
Setting default value
Failed to read: session.appsFile
Setting default value
Failed to read: session.tabsAttachArea
Setting default value
Failed to read: session.cacheLife
Setting default value
Failed to read: session.cacheMax
Setting default value
Failed to read: session.autoRaiseDelay
Setting default value
Failed to read: session.screen0.opaqueMove
Setting default value
Failed to read: session.screen0.fullMaximization
Setting default value
Failed to read: session.screen0.maxIgnoreIncrement
Setting default value
Failed to read: session.screen0.maxDisableMove
Setting default value
Failed to read: session.screen0.maxDisableResize
Setting default value
Failed to read: session.screen0.workspacewarping
Setting default value
Failed to read: session.screen0.showwindowposition
Setting default value
Failed to read: session.screen0.autoRaise
Setting default value
Failed to read: session.screen0.clickRaises
Setting default value
Failed to read: session.screen0.defaultDeco
Setting default value
Failed to read: session.screen0.tab.placement
Setting default value
Failed to read: session.screen0.windowMenu
Setting default value
Failed to read: session.screen0.noFocusWhileTypingDelay
Setting default value
Failed to read: session.screen0.workspaces
Setting default value
Failed to read: session.screen0.edgeSnapThreshold
Setting default value
Failed to read: session.screen0.window.focus.alpha
Setting default value
Failed to read: session.screen0.window.unfocus.alpha
Setting default value
Failed to read: session.screen0.menu.alpha
Setting default value
Failed to read: session.screen0.menuDelay
Setting default value
Failed to read: session.screen0.tab.width
Setting default value
Failed to read: session.screen0.tooltipDelay
Setting default value
Failed to read: session.screen0.allowRemoteActions
Setting default value
Failed to read: session.screen0.clientMenu.usePixmap
Setting default value
Failed to read: session.screen0.tabs.usePixmap
Setting default value
Failed to read: session.screen0.tabs.maxOver
Setting default value
Failed to read: session.screen0.tabs.intitlebar
Setting default value
Failed to read: session.screen0.focusModel
Setting default value
Failed to read: session.screen0.tabFocusModel
Setting default value
Failed to read: session.screen0.focusNewWindows
Setting default value
Failed to read: session.screen0.focusSameHead
Setting default value
Failed to read: session.screen0.rowPlacementDirection
Setting default value
Failed to read: session.screen0.colPlacementDirection
Setting default value
Failed to read: session.screen0.windowPlacement
Setting default value
[1535726708.107][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.107][DEBUG]: DevTools request failed
PORT=5900
[1535726708.157][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.157][DEBUG]: DevTools request failed
Failed to read: session.screen0.slit.acceptKdeDockapps
Setting default value
Failed to read: session.screen0.slit.autoHide
Setting default value
Failed to read: session.screen0.slit.maxOver
Setting default value
Failed to read: session.screen0.slit.placement
Setting default value
Failed to read: session.screen0.slit.alpha
Setting default value
Failed to read: session.screen0.slit.onhead
Setting default value
Failed to read: session.screen0.slit.layer
Setting default value
[1535726708.208][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.208][DEBUG]: DevTools request failed
[1535726708.258][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.258][DEBUG]: DevTools request failed
Failed to read: session.screen0.toolbar.autoHide
Setting default value
Failed to read: session.screen0.toolbar.maxOver
Setting default value
Failed to read: session.screen0.toolbar.widthPercent
Setting default value
Failed to read: session.screen0.toolbar.alpha
Setting default value
Failed to read: session.screen0.toolbar.layer
Setting default value
Failed to read: session.screen0.toolbar.onhead
Setting default value
Failed to read: session.screen0.toolbar.placement
Setting default value
Failed to read: session.screen0.toolbar.height
Setting default value
[1535726708.308][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.309][DEBUG]: DevTools request failed
[1535726708.359][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.359][DEBUG]: DevTools request failed
[1535726708.409][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.410][DEBUG]: DevTools request failed
[1535726708.460][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.460][DEBUG]: DevTools request failed
[1535726708.510][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.510][DEBUG]: DevTools request failed
[1535726708.561][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.561][DEBUG]: DevTools request failed
[1535726708.611][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.611][DEBUG]: DevTools request failed
[1535726708.661][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.662][DEBUG]: DevTools request failed
[57:101:0831/104508.663241:ERROR:bus.cc(394)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1535726708.712][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.712][DEBUG]: DevTools request failed
[1535726708.762][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.762][DEBUG]: DevTools request failed
[1535726708.813][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.813][DEBUG]: DevTools request failed
[57:302:0831/104508.816949:ERROR:bus.cc(394)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DevTools listening on ws://<IP_ADDRESS>:12206/devtools/browser/33c8286c-1152-4732-9225-410c5b98e544
ATTENTION: default value of option force_s3tc_enable overridden by environment.
Failed to read: session.screen0.titlebar.left
Setting default value
Failed to read: session.screen0.titlebar.right
Setting default value
(google-chrome:57): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Unknown orunsupported transport 'disabled' for address 'disabled:'
[1535726708.863][DEBUG]: DevTools request: http://localhost:12206/json/version
[1535726708.869][DEBUG]: DevTools response: {
"Browser": "Chrome/64.0.3282.119",
"Protocol-Version": "1.2",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36",
"V8-Version": "6.4.388.40",
"WebKit-Version": "537.36 (@5e944b2d79bce5f96dc35a05a76b03d65a6e9a0a)",
"webSocketDebuggerUrl": "ws://localhost:12206/devtools/browser/33c8286c-1152-4732-9225-410c5b98e544"
}
[1535726708.872][DEBUG]: DevTools request: http://localhost:12206/json
[1535726708.874][DEBUG]: DevTools response: [ {
"description": "",
"devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12206/devtools/page/(F0B06F77DFACDA5E3CBDD0ADE872F3A9)",
"id": "(F0B06F77DFACDA5E3CBDD0ADE872F3A9)",
"title": "Chrome Automation Extension",
"type": "background_page",
"url": "chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html",
"webSocketDebuggerUrl": "ws://localhost:12206/devtools/page/(F0B06F77DFACDA5E3CBDD0ADE872F3A9)"
}, {
"description": "",
"devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12206/devtools/page/(D2D39841B0FAA1C3E49DB7A181467C)",
"id": "(D2D39841B0FAA1C3E49DB7A181467C)",
"title": "",
"type": "page",
"url": "data:,",
"webSocketDebuggerUrl": "ws://localhost:12206/devtools/page/(D2D39841B0FAA1C3E49DB7A181467C)"
} ]
[1535726708.875][DEBUG]: DevTools request: http://localhost:12206/json
[1535726708.875][DEBUG]: DevTools response: [ {
"description": "",
"devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12206/devtools/page/(F0B06F77DFACDA5E3CBDD0ADE872F3A9)",
"id": "(F0B06F77DFACDA5E3CBDD0ADE872F3A9)",
"title": "Chrome Automation Extension",
"type": "background_page",
"url": "chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html",
"webSocketDebuggerUrl": "ws://localhost:12206/devtools/page/(F0B06F77DFACDA5E3CBDD0ADE872F3A9)"
}, {
"description": "",
"devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12206/devtools/page/(D2D39841B0FAA1C3E49DB7A181467C)",
"id": "(D2D39841B0FAA1C3E49DB7A181467C)",
"title": "",
"type": "page",
"url": "data:,",
"webSocketDebuggerUrl": "ws://localhost:12206/devtools/page/(D2D39841B0FAA1C3E49DB7A181467C)"
} ]
[1535726708.876][INFO]: resolved localhost to ["<IP_ADDRESS>","<IP_ADDRESS>","::1"]
[1535726708.876][DEBUG]: DEVTOOLS COMMAND Log.enable (id=1) {
}
[1535726708.876][DEBUG]: DEVTOOLS COMMAND DOM.getDocument (id=2) {
}
[1535726708.876][DEBUG]: DEVTOOLS COMMAND Runtime.enable (id=3) {
}
[1535726708.876][DEBUG]: DEVTOOLS COMMAND Page.enable (id=4) {
}
[1535726708.877][DEBUG]: DEVTOOLS COMMAND Page.enable (id=5) {
}
[256:256:0831/104508.877099:ERROR:sandbox_linux.cc(375)] InitializeSandbox() called with multiple threads in process gpu-process.
[57:57:0831/104508.879832:ERROR:gpu_process_transport_factory.cc(1009)] Lost UI sharedcontext.
[1535726708.909][DEBUG]: DEVTOOLS RESPONSE Log.enable (id=1) {
}
[1535726708.909][DEBUG]: DEVTOOLS RESPONSE DOM.getDocument (id=2) {
"root": {
"backendNodeId": 1,
"baseURL": "about:blank",
"childNodeCount": 1,
"children": [ {
"attributes": [  ],
"backendNodeId": 2,
"childNodeCount": 2,
"children": [ {
"attributes": [  ],
"backendNodeId": 3,
"childNodeCount": 0,
"localName": "head",
"nodeId": 3,
"nodeName": "HEAD",
"nodeType": 1,
"nodeValue": "",
"parentId": 2
}, {
"attributes": [  ],
"backendNodeId": 4,
"childNodeCount": 0,
"localName": "body",
"nodeId": 4,
"nodeName": "BODY",
"nodeType": 1,
"nodeValue": "",
"parentId": 2
} ],
"frameId": "(D2D39841B0FAA1C3E49DB7A181467C)",
"localName": "html",
"nodeId": 2,
"nodeName": "HTML",
"nodeType": 1,
"nodeValue": "",
"parentId": 1
} ],
"documentURL": "",
"localName": "",
"nodeId": 1,
"nodeName": "#document",
"nodeType": 9,
"nodeValue": "",
"xmlVersion": ""
}
}
[1535726708.909][DEBUG]: DEVTOOLS RESPONSE Runtime.enable (id=3) {
}
[1535726708.909][DEBUG]: DEVTOOLS RESPONSE Page.enable (id=4) {
}
[1535726708.909][DEBUG]: DEVTOOLS RESPONSE Page.enable (id=5) {
}
[1535726708.909][DEBUG]: DEVTOOLS COMMAND Page.enable (id=6) {
}
[7:16:0831/104508.917849:ERROR:command_buffer_proxy_impl.cc(134)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[1535726708.919][DEBUG]: DEVTOOLS EVENT Page.frameNavigated {
"frame": {
"id": "(D2D39841B0FAA1C3E49DB7A181467C)",
"loaderId": "(7972B0F75F36EFD51D07FF4D2A99FA99)",
"mimeType": "text/plain",
"securityOrigin": "://",
"url": "data:,"
}
}
[1535726708.919][DEBUG]: DEVTOOLS EVENT DOM.documentUpdated {
}
[1535726708.919][DEBUG]: DEVTOOLS COMMAND DOM.getDocument (id=7) {
}
[1535726708.919][DEBUG]: DEVTOOLS EVENT Runtime.executionContextCreated {
"context": {
"auxData": {
"frameId": "(D2D39841B0FAA1C3E49DB7A181467C)",
"isDefault": true
},
"id": 1,
"name": "",
"origin": "://"
}
}
[1535726708.919][DEBUG]: DEVTOOLS RESPONSE Page.enable (id=6) {
}
[1535726708.922][DEBUG]: DEVTOOLS EVENT Page.loadEventFired {
"timestamp": 4266148.782107
}
[1535726708.922][DEBUG]: DEVTOOLS EVENT Page.frameStoppedLoading {
"frameId": "(D2D39841B0FAA1C3E49DB7A181467C)"
}
[1535726708.922][DEBUG]: DEVTOOLS EVENT Page.domContentEventFired {
"timestamp": 4266148.782576
}
[1535726708.922][DEBUG]: DEVTOOLS EVENT DOM.documentUpdated {
}
[1535726708.922][DEBUG]: DEVTOOLS COMMAND DOM.getDocument (id=8) {
}
[1535726708.922][DEBUG]: DEVTOOLS RESPONSE DOM.getDocument (id=7) {
"root": {
"backendNodeId": 5,
"baseURL": "data:,",
"childNodeCount": 1,
"children": [ {
"attributes": [  ],
"backendNodeId": 6,
"childNodeCount": 2,
"children": [ {
"attributes": [  ],
"backendNodeId": 7,
"childNodeCount": 0,
"localName": "head",
"nodeId": 7,
"nodeName": "HEAD",
"nodeType": 1,
"nodeValue": "",
"parentId": 6
}, {
"attributes": [  ],
"backendNodeId": 8,
"childNodeCount": 1,
"localName": "body",
"nodeId": 8,
"nodeName": "BODY",
"nodeType": 1,
"nodeValue": "",
"parentId": 6
} ],
"frameId": "(D2D39841B0FAA1C3E49DB7A181467C)",
"localName": "html",
"nodeId": 6,
"nodeName": "HTML",
"nodeType": 1,
"nodeValue": "",
"parentId": 5
} ],
"documentURL": "data:,",
"localName": "",
"nodeId": 5,
"nodeName": "#document",
"nodeType": 9,
"nodeValue": "",
"xmlVersion": ""
}
}
[1535726708.924][DEBUG]: DEVTOOLS RESPONSE DOM.getDocument (id=8) {
"root": {
"backendNodeId": 5,
"baseURL": "data:,",
"childNodeCount": 1,
"children": [ {
"attributes": [  ],
"backendNodeId": 6,
"childNodeCount": 2,
"children": [ {
"attributes": [  ],
"backendNodeId": 7,
"childNodeCount": 0,
"localName": "head",
"nodeId": 11,
"nodeName": "HEAD",
"nodeType": 1,
"nodeValue": "",
"parentId": 10
}, {
"attributes": [  ],
"backendNodeId": 8,
"childNodeCount": 1,
"localName": "body",
"nodeId": 12,
"nodeName": "BODY",
"nodeType": 1,
"nodeValue": "",
"parentId": 10
} ],
"frameId": "(D2D39841B0FAA1C3E49DB7A181467C)",
"localName": "html",
"nodeId": 10,
"nodeName": "HTML",
"nodeType": 1,
"nodeValue": "",
"parentId": 9
} ],
"documentURL": "data:,",
"localName": "",
"nodeId": 9,
"nodeName": "#document",
"nodeType": 9,
"nodeValue": "",
"xmlVersion": ""
}
}
[1535726708.924][DEBUG]: DEVTOOLS COMMAND Runtime.enable (id=9) {
}
[1535726708.925][DEBUG]: DEVTOOLS EVENT Page.frameResized {
}
[1535726708.925][DEBUG]: DEVTOOLS RESPONSE Runtime.enable (id=9) {
}
[1535726708.926][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=10) {
"expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rightsreserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
"returnByValue": true
}
[1535726708.929][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=10) {
"result": {
"type": "object",
"value": {
"status": 0,
"value": 1
}
}
}
[1535726708.930][INFO]: RESPONSE InitSession {
"acceptInsecureCerts": false,
"acceptSslCerts": false,
"applicationCacheEnabled": false,
"browserConnectionEnabled": false,
"browserName": "chrome",
"chrome": {
"chromedriverVersion": "2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881)",
"userDataDir": "/tmp/.org.chromium.Chromium.mqIm5g"
},
"cssSelectorsEnabled": true,
"databaseEnabled": false,
"handlesAlerts": true,
"hasTouchScreen": false,
"javascriptEnabled": true,
"locationContextEnabled": true,
"mobileEmulationEnabled": false,
"nativeEvents": true,
"networkConnectionEnabled": false,
"pageLoadStrategy": "normal",
"platform": "Linux",
"rotatable": false,
"setWindowRect": true,
"~~~": "..."
}
[1535726709.251][INFO]: COMMAND Navigate {

@rohitpatwari84 the only conclusion I can made from these logs is that session was created successfully.

Thanks @vania-pooh  . What are these bus related Errors then -
[57:302:0831/104508.816949:ERROR:bus.cc(394)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Are they causing this extreme slowness ?

@rohitpatwari84 for example that there is no DBUS daemon installed inside browser container. This daemon is mainly used for sending various messages to another processes in Linux supporting DBUS, so not needed for Firefox to work properly.

Hmm...since on firefox the page opens fine without timeout , So I think something to do with Chrome image ?

@rohitpatwari84 sorry for the delay. Was this issue resolved?

Not yet..My browser shows the login page and then take a long time to connect to googletagmanager.com.  Same thing happens on my local , But on when I add Proxy address in my local browser , it works . But I am not sure how to add the proxy to browser container in selenoid ?

Also Browser (FF) shows the below address bar And at the bottom it shows connecting to googletagmanager.com....And then before arrying out further action it times out -


[FEATURE] Query Insights API spec

Is your feature request related to a problem?
We have introduced query insights plugin with top n queries API but we don't have API spec defined for the new API.
What solution would you like?
Add API spec for top queries https://opensearch.org/docs/latest/observing-your-data/query-insights/top-n-queries/
What alternatives have you considered?
N/A
Do you have any additional context?
Please refer to the below doc for more details

https://opensearch.org/docs/latest/observing-your-data/query-insights/top-n-queries/
https://github.com/opensearch-project/OpenSearch/issues/11522

Closed via https://github.com/opensearch-project/opensearch-api-specification/pull/625.


leader can not balance again after fault recover from one of tikv io delay 100ms which lasts for 10mins with evict-slow-trend-schedule

Bug Report

What version of TiKV are you using?
./tikv-server -V
TiKV
Release Version:   8.0.0-alpha
Edition:           Community
Git Commit Hash:   6bf8b5e2ac8d2f5e8e74c183aafcdeeee6bf9e54
Git Commit Branch: heads/refs/tags/v8.0.0-alpha
UTC Build Time:    2024-01-15 11:43:16
Rust Version:      rustc 1.76.0-nightly (06e02d5b2 2023-12-09)
Enable Features:   pprof-fp jemalloc mem-profiling portable sse test-engine-kv-rocksdb test-engine-raft-raft-engine cloud-aws cloud-gcp cloud-azure trace-async-tasks openssl-vendored
Profile:           dist_release
2024-01-16T04:36:05.039+0800
What operating system and CPU are you using?
8c/32g
Steps to reproduce
1、schedule add evict-slow-trend-scheduler
2、go-tpc tpcc run -D tpcc20000 --host tc-tidb.ha-test-evict-slow-trend-scheduler-tps-6090123-1-242 -P4000 --warehouses 20000 -T 32 --ignore-error '2013,1213,1105,1205,8022,8028,9004,9007,1062' --user root --password '' --interval '10s'
3、inject one of tikv io delay 100ms and last for 10mins
chaos start：2024-01-16 04:25:49
chaos end：2024-01-16 04:35:49
What did you expect?
after fault recover，the leader of tikv can  balance again
What did happened?
1、tikv oom（known issue）when fault recover
2、leader can not balance again after fault recover

clinic ：
https://clinic.pingcap.com.cn/portal/#/orgs/31/clusters/7324356502423764476?from=1705334573&to=1705372775

/severity major
/assign LykxSassinator

This issue can be paused for tracking, as this case just happened only once and cannot be reproduced again.


Assignments for session 12

Paper reading
Tommi Gröndahl, Luca Pajola, Mika Juuti, Mauro Conti, and N. Asokan. 2018. All You Need is "Love": Evading Hate Speech Detection. In Proceedings of the 11th ACM Workshop on Artificial Intelligence and Security (AISec '18). Association for Computing Machinery, New York, NY, USA, 2–12. DOI:https://doi.org/10.1145/3270101.3270103

1.1 Discussion questions
Write down 3 questions that came up while reading the paper that would be interesting to discuss in the next session. Post your Questions on GitHub as comments under the assignment.
Time slots project presentation:
Find a slot to present you project in session 13 (11.02.) or 14 (18.02.):
https://docs.google.com/spreadsheets/d/1DdkST3KZV4x9D5nGsHgevIASmu_rFkK0Bx2r4AeBGPE/edit#gid=1895482106

The paper mentioned the problem of the conflation between hate and offensive speech, whereas the dataset T1 has three labels (hate speech, offensive, and ordinary). I think that the rules of distinguishing these classes are subjective and sensitive to many factors that could also differ over time. what are the criteria that differ between hate and offensive speech? are the cross_cultural differences taken into consideration?
The paper mentioned also the influence of the imbalanced classes on the performance of the classifiers,  could expansion of the training data solve this problem in practice (in our case, by adding more hate speech comments)?
A very important point that has been broached is the necessity of more focus on the datasets and qualitative analysis rather than models, when we talk about YouTube, Facebook, or Twitter, how efficient is the role of the content moderators from this perspective?

question 1: In section 2.1 the referenced paper mentioned that by using LSTM+GBDT they get a better result than which only using LSTM. But the author got the opposite result i.e. LSTM better than LSTM+GBDT. Why the more complex model get a bad result? Is that the problem of the model itself or it depends on the datasets they use? A possible reason that I think is, maybe the model is overfitting?
question 2: In section 3.3 the author used the word appending method in the Adversarial training. It is certainly useful to add common words to the hate speech and make the dataset more general. But on the other side, If you add hate words to the common sentences, actually the whole speech turns into the "hate speech" class. So does it make sense? what's the meaning of adding hate words to normal speech? I personally don't think it could be useful for getting a better result.
question 3: In section 8 the author mentioned that we should focus more on the dataset instead of the models. What should we do exactly about it?  Are there any ideas?

Where should the boundary between true (hate speech) and false positives (offensive speech) lie? Is it even possible to set this boundary?
What other evasion attacks can be used? For example, after the problem with simple text modification attacks described in the article will be solved.
What could be done to prevent breaking word-models with only one word that negatively correlate with hate speech? ("love" in the article)

Shouldn't we, before training and evaluating models, clarify what kind of offensive speech should be censored? Can we justify false positives for fewer false negatives (i.e. what is more important, free speech or hate-free communities)?

What happens if we combine all data sets for training and only leave one data set for testing? This should force the model to generalize more and be trained with more heterogeneous data (since the data sets were noted to be the main issues).

From a philosophical point of view I think it is very beautiful that "love always wins" but from a technical point of view I think it is strange that the word love has such a big impact on reducing the toxicity score. I think it should have no impact on the toxicity but rather have an impact on the "love score": So maybe - although the researchers would focus on the training data -  a different model architecture would be an idea? Like with multiple output channel for hate and love (or hope or joy or whatever). But of course I don't know anything on the model architecture, so maybe I don't know what I am talking about.
The researchers would rather focus on better training data sets. Are there any ideas about how the data should look like?
I would like to see more examples for hateful speech and offensive speech. For me it seems difficult to set a strict boundary between these two classes. And "offensive" does not sound respectful anyway, so maybe it should be avoided too?

Seeing as simple white space removeal effectively kills word-based detection, could one say that word-based hate-speech detection is not really feasible because it is easily tricked by just every average user?

In the case of white space removal...i don't think it is always that easy to reproduce the original content from this for the reader, as removing all whitespaces can make the text very hard to read, so i dont think it is such an easy to use technique for an adversary as the authors want us to believe

Adding love to the sentence makes it indeed less toxic/hateful for a ML algorithm because from a pure numerical/statistical standpoint, love is an anti-hate/toxic word, so it seems logical to reduce the toxicity score for that sentence then. Are there any ideas currently how to resolve such cases, as context gets very important here, can ML work with this?

The threat of false positive results is very high considering that these algorithms will sooner or later be used in social networks. The German NetzDG (Network enforcement act) forces networks such as Facebook to delete fake news and hate speech. If these algorithms are quite easy to attack and he deletion of false positives could lead to violation of the freedom of speech is it really desirable to use algorithms for that?

Since char-based algorithms are much more resistible against attacks why are word based even used? Is the performance so much better?

A lot in this paper surrounds the topic of the datasets. It was mentioned that the used data is labelled manually by different people. The authors of the paper believed that there are great differences in the dataset based on whether the data was labelled in 2 groups or in 3. Wouldn't this assumption imply that all researchers would label all data the same based on whether it is divided in 2 or 3 groups? From my perspective the impact of the decisions that the "labellers" make (due to not having a strong definition of hate speech) should have a much higher impact on the datasets than the fact that some of the data ist divided the non-state speech further.

Assuming that hate speech often reflects real life events, could one manually find trends in hate speech, so that the models can pay attention to that?
Why was not syntax considered? Is it because syntax-detection gets confused easily? Adding words like „love“ or just using cursing word before a non-hateful verb could maybe be detected
Why is not meta-data used to classify hate speech.  Maybe the classifier can pay special attention to hateful words in combination with words related to muslims or Islam.

Since words like "love" or the "F" word can strongly affect the prediction of the text, how can one train the classifier to differentiate between positively and negatively annotated swear words for example? Or rather how can a model be taught to understand the connections between different words?

Training and testing the classifiers with the original datasets resulted in good predictions, but using different test sets the F1 scores drastically deteriorated. Language models usually have to be fine-tuned for special data sets or maybe even platform-specific. Would it make sense to train on positive or negative words first and then to adjust the model later?

Adversarial attacks can have a huge impact on the models' performance. I once did that with an image classifier by adding some noise to the pictures. With the human eye, it could be clearly recognized but the machine totally failed. Regarding a language model should errors such as spelling mistakes be included in the model planning phase? How can one prevent such attacks?

Is it possible to add the cultural component to the Hate Speech Detector, i.e. religious taboos and cultural taboos. And how should we realize it?
This detector is unable to detect the homophobic Hate Speech, which has been observed in many social media platform. How did the scholars deal with this kind of speech?

Question 1: What characterises offensive speech?
Question 2: How we can construct datasets comprising large variety of hate speech variants from diverse sources? Also, how do we label the data since offensive/hate speech is a subjective matter.
Question 3: In the introduction the authors claim that "hate speech detection is largely independent of model architecture." However, in section 4 they say that model selection has influence on model performance in terms of attack resilience. How does this two statements might be true?

1.How to set clear boundaries between false positive and false negative?
2.They mentioned that based on the asymmetry of hate speech classification, the solution might be to reintroduce more traditional keyword-based approaches. Will the keyword-based approach not be too simple to detect hate speech efficiently? If not, how will it works? Should the keyword-based approach be combined with other techniques?
3. They mentioned that hate speech are highly context-dependent. What does it mean by context here? Context based on surrounding discussion or context based on the discussed topic?

This is all about English language, are there any such discussions for other languages?
A suggestion: MIT tech review's podcast "In machines we trust" has two episodes where Twitter's and Facebook's CTOs talk about dealing with misinformation on their platforms, and they also get to hate speech management.

Where are the different hate speech detection models used? Are they used in the big Social Media companies? For every comment that is posted or like only for those that are reported by other users?
Apropos reporting, human users would still be able to report comments that used some of the presented attacks for avoiding being detected. So how big is the impact of such attacks anyway?
A few more examples would be nice

the authors note that the models classifies on prevalence and therefore can make false classification if sufficient test from the opposing class is added. are there any current approaches which analyze the text in parts (maybe in sentences) and classify the text as hate speech if one part is hate speech?

False positives are quite common with these methods in either direction.

In the related work section the authors note that the appended "good words" problem is known from spam filters. How would adding such a spam filter approach as a pre-processing step affect the quality of the classification? And should detected text with “good words” appended automatically be classified as hate speech?

1. How were the performances of the models finally evaluated? By human beings cross-checking results?
2. A result of this study is, that all models somehow are equally "good" in classifying hate-speech. Therefore, according to the authors, the focus of future research should be on the datasets instead of the models. How would that work? If all models have difficulties classifying new content, how can you improve the classification of hate speech by improving the data set?
3. To what extent could transfer learning help to make the models more efficient?

1. The paper raises the problem of properly distinguishing between the concepts of hate speech and offensive speech. Although a definition of the former was offered, a clear delimitation between these two concepts was not presented in the paper. It was also mentioned that upon testing each two-class model on offensive ordinary speech, they proved to be susceptible to false positives. What are the criteria applied to distinguish between these two concepts? Can these criteria be considered to be cross-cultural? More examples of words which can be classified in these two groups would be helpful.
2. Regarding the classification of data in hate- and offensive-speech, it seemed to me that this is still rather a subjective matter, basing my assumption on the models of different researchers used in the paper. How can data pertaining to either of these two groups be labeled more efficiently?
3. The paper showed that appending the text with words like "love" or "F" directly affect the toxicity score of a sentence, leading to false positives or false prediction for sentences. How can a classifier be trained to correctly differentiate between the contexts in which such words ("love", "F", etc.) are used so that for example non-hateful sentences which contain an "F" word for example, are not predicted to be hateful?

1. The authors showed that adversarial attack strategies are very efficient against hate speech classification models. They further discussed the positive impact of adversarial training to prevent misclassification of altered samples. Since one can only add adversarial training samples for known adversarial attack strategies, could you imagine other adversarial attacks than those described in the paper?
2. It was said that all models performed equally well, when they were tested on similar data they were previously trained on. However, when the models were trained on one data set (e.g T1) and then tested on another (e.g T2) the performance was massively reduced. Imagine one would combine the models (all trained on different data) by applying them separately on an arbitrary data set and implement a majority vote for the final classification. Do you think it would result in better classification accuracies?
3. Word-based and character-based approaches differ completely their building structure. Which of the two do you think is the more promising strategy for the future and why?

Could the performance drop on the different data types be the consequence of overfitting?

Are there any ways to deal with the described adversaries?

What's the main difference between the researchers’ solution and Google’s one?

1. Taking into account the design of a model, what could be the reason for the character-level features to overperform the world-level ones?
2. How these seven models were chosen?
3. What contributes more to the results - the data type or the labeling criteria?

As mentioned in the Paper: "Hate speech is not a universal concept.". So it would be interesting to know how this models can deal with the Bias introduced in the training, or how humans can deal with it once those models are deployed. That could be a threat to the freedom of speech. For example I can imagine that the word "Trump" could be associated to a certain degree of toxicity, while the word "Obama" not.
Related to the previous question, it would be also good to know with which criteria the data is labeled.


It's possible to create a chat?

Description:
I would like to request a new feature for this library: the ability to set up a chat that can retrieve all conversations and messages. This would greatly enhance the usability and functionality of the library for projects requiring complete chat history access.
Use Case:
In my current project, I need to implement a chat system that not only allows for real-time communication but also provides access to the entire chat history. This includes fetching all past conversations and their respective messages. This feature is crucial for applications such as customer support systems, where having access to previous interactions can significantly improve the service quality.

lol, github has a template for feature request when you're opening an issue

Sorry if I expressed myself poorly, but I wanted to know if it's possible to build a chat, like a Whatsapp clone, because I didn't find a function that would return all chats to me @bentacos

Sorry if I expressed myself poorly, but I wanted to know if it's possible to build a chat, like a Whatsapp clone, because I didn't find a function that would return all chats to me @bentacos

honestly, that's stupid. just use whatsapp and don't reinvent the wheel

lol, github has a template for feature request when you're opening an issue @bentacos
I understand your concern, but let me clarify why this approach is actually beneficial for both users and maintainers of the library
GitHub Issues are a collaborative platform where users and maintainers can discuss potential improvements. Providing a well-thought-out feature request helps maintainers understand the user's needs and assess the feasibility and priority of the request.
While hiring someone to implement the feature is an option, contributing ideas and suggestions through GitHub Issues is a standard and effective practice in the open-source community.

you are basically asking for an "app" not a feature. there already several functions in baileys that will help you manage the chat messages. use a database if you want to save the old messages.

That's the point, I don't want to save the message history but access the existing one @bentacos

const wppconnect = require('@wppconnect-team/wppconnect');

wppconnect.create().then(async (client) => {
  try {
    // Obtenha todos os chats
    const allChats = await client.getAllChats();

    // Ordene os chats pela data da última mensagem e pegue os 50 mais recentes
    const sortedChats = allChats.sort((a, b) => {
      const dateA = new Date(a.t);
      const dateB = new Date(b.t);
      return dateB - dateA;
    }).slice(0, 50);

    console.log(sortedChats);
  } catch (error) {
    console.error('Error fetching chats:', error);
  }
}).catch((error) => {
  console.error('Error initializing wppconnect:', error);
});

const wppconnect = require('@wppconnect-team/wppconnect');

wppconnect.create().then((client) => {
  client.onMessage(async (message) => {
    // Substitua "chatId" pelo ID do chat que você deseja buscar as mensagens
    const chatId =<EMAIL_ADDRESS>
    try {
      const messages = await client.getChatMessages(chatId, {
        limit: 50,
      });
      console.log(messages);
    } catch (error) {
      console.error('Error fetching messages:', error);
    }
  });
}).catch((error) => {
  console.error('Error initializing wppconnect:', error);
});

something like this


Added the index sections to the landing page

Fills out the landing page a little more with our top level concepts

Docs Build status updates of commit bc131a8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/index.yml
:white_check_mark:Succeeded
View

docs/maui/behaviors/index.md
:white_check_mark:Succeeded
View

docs/maui/behaviors/maximum-length-reached-behavior.md
:white_check_mark:Succeeded
View

docs/maui/converters/index.md
:white_check_mark:Succeeded
View

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

Does the Behaviors overview need to go in the TOC? I don't see it in the menu on the left right now as I see the converters one

Does the Behaviors overview need to go in the TOC? I don't see it in the menu on the left right now as I see the converters one

It should be there now

PRMerger Results

Issue
Description

Added File(s)
This PR contains added files. New files require human review.

Yaml File(s)
This PR includes changes to .yml file(s) owned by another author.

File Change Percent
This PR contains file(s) with more than 20% file change.

Index File
This PR contains a change to the index file.


Skip native-build on Pull Request

Fix #179
Changes

Skip native-build on Pull Request

Codecov Report

Merging #180 (e917a08) into main (94b98ad) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #180   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           50        50
  Lines         2297      2297
  Branches       110       110
=========================================
  Hits          2297      2297

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 94b98ad...e917a08. Read the comment docs.


Remove InherentsPool and introduce non-propagateable transactions.

Follow up on this comment: https://github.com/paritytech/substrate/pull/2342
This changes the way priority field of TransactionValidity is handled for large values as it uses the highest bit to indicate that transaction is not meant to be propagated.

Let me know if we prefer to break runtime API by changing TransactionValidity to have an extra field or rather use one bit of priority to do that.

i would generally go for an additional bool as it's more readable..

Okay, let me rework this then.

Added a flag and custom Decode implementation to support older runtimes.


Fix and evolution for mts960 bernardpe

mode Cycle/count down on/off is reported as Fan_only HACMode
Fix Min Mac for HACMode need to use KEYCTL_MIN and KEY_CTLMAX  for MTS960 instead of KEY_MIN, KEY_MAX
Set display precision of 1 on generic Current Temperature Entity
Add entity Output Power State to report when output Power is On or Off
Fix Issue for MTS960 Configuration like Lock switch (MTS960 needs array of parameter)
Fix Multiple Generic Calendar issue

Management of number of schedule par days (using section entry)
Issue when updating the last schedule of the day (update is internally delete and add but delete the last is not allowed)
bad temperature  scaling using 10 instead of climate.device_scale when data is send to device
one some case the last schedule added is replicated to all next days (we generated empty schedule when schedule is send to schedule
When received MQTT message, update calendar is not performed because reference copy of data instead of deepcopy
Now Management of event FREQ=week and we can set some days (BYDAYS) ==> Create a event for multiple selected days of the week

Add a entity to reported Device Mode Status Report Cooling/Heating/Schedule Cool/Scheduling Heat/Countdown On/Countdown Off/Cycle/Off
Management of namespace NS_APPLIANCE_CONTROL_THERMOSTAT_TIMER to reported Countdown on/off and cycle
Change Config Label Forst_switch to Frost Alarm
Set entity Frost (Temperature) to unavailable when Frost_switch is off ==> Issue to update temperature when Forst is off
Move scheduleb entity Config to Diagnostic panel

Hi
Thanks for the update
I will continue to make changes on config fist implement alarm low and alarm high
After I will try to complete evolution by adding configuration of timer count down on/off and cycle
Let me know if you prefer a PR per evolution ?
Bernard


unique_constraint match: :suffix fails when name is too big

Hello, whenever an index name is bigger than 63 characters, postgresql will trucate the name to within these 63 characters.
In my case, I'm using TimescaleDB extension, so it creates by default hypertables that have a big name, for example, I have this table:
create table("candles_one_minute_btc_usdt", primary_key: false) do
 ...
end

create unique_index(name, ["timestamp desc"])

This will try to create an unique constraint with the name _hyper_2_34_chunk_candles_one_minute_btc_usdt_timestamp_desc_index, but since this is bigger than 63 characters, then it will be truncated to this name: _hyper_2_34_chunk_candles_one_minute_btc_usdt_timestamp_desc_in
In my changeset function, I try to check that unique constraint like this:
def changeset(candle, params) do
  ...
  |> unique_constraint(:timestamp, name: :timestamp_desc_index, match: :suffix)
end

But since the name was truncated, it doesn't match correctly and fails.
Also note that the hyper table number can change in the beggining of the name during migration, so I cannot simply use :timestamp_desc_in in the name option of unique_constraint.
Is there some way to workaround this and somehow link my unique_constraint to my index in the migration?

You can pass the :name like this:
create unique_index(name, ["timestamp desc"], name: timestamp_desc_index)

See https://hexdocs.pm/ecto_sql/Ecto.Migration.html#index/3 for more information.
In the future please use elixir forum, stack overflow, etc for asking questions and seeking help; we reserve issue tracker for bugs. Thanks!


[Error] XHR failed:

VSCode Version: 1.17.0 c[ be377c0faf7574a59f84940f593a6849f12e4de7 ]
OS Version: Windows 8.1 64-bit & Linux Ubuntu 16.04.2 Gnome 3

Steps to Reproduce:

I was trying reproduce #35719
I hidded icon, but very fast I dragged it in moment, when I will in drag it will refresh activity bar, and icon was placed to "void" = generate error .... also extension marketplace list will still be not loaded.

Reproduces without extensions: Yes

#34385


Fix typo in error message

Copy-paste error, I guess :)

Aah yes, good catch. Thanks!
I updated the commit message style to allow our automated release agent to pickup on it, such that it creates a new release. So the fix entered main through db2479e4411441e8edc9188d002ee73b3d3e8e4e.


How to Determine If PWA Install is From Windows Store?

I had a chromium-Edge based app built with PWA builder rejected from the Store because my site contains a link to other Web Apps that I develop on my own website, rather than links to the Windows Store, which they say violated their policy regarding linking to competing app stores.  I am wondering if there is a way in JS to determine if the site is running in the regular web browser, or if it was downloaded/installed through the Windows Store?  Is there a special global object or user agent line for apps installed from the store?

I've noticed that recently Edge has started appending ?app-install-source=microsoft-store to the launch URL of the PWA when it's installed from the Store.
I save this in sessionStorage so that it survives between page navigations:
//On first page load:
if (new URL(location.href).searchParams.get('app-install-source') == 'microsoft-store') {
    sessionStorage.setItem('ms_store', 1);
}

//Later, when you need to check:
if (sessionStorage.getItem('ms_store')) {
    //PWA is installed from the MS Store
}

One issue: if your PWA defines app shortcuts or Share Target URLs, Edge doesn't seem to append ?app-install-source=microsoft-store in those cases. If you launch your PWA from those ways, you can't detect if it was installed from the Store. Hopefully that'll be fixed soon.

Thank you @marto55555 that helps.  I will mark this as closed since it gets me what I am looking for!

@bastecklein and @marto55555,
Please be aware that the app-install-source=microsoft-store is a temporary measure. We (PWABuildder and the Microsoft Edge team) originally had intended this to be the permanent solution.
But Google raised some issues around service worker cache busting, as well as potential privacy issues.
In response to this feedback, we're deprecating the app-install-source query string.
In place of this, when your Store PWA is launched, we'll set a referrer request header and set its value to app-info://platform/microsoft-store:

Note that this referrer header gets set only on app launch; successive navigations won't have that request header.
This aligns with what Google is doing for PWAs from the Google Play Store. We're working with W3C to standardize this practice.
If you have any feedback about this direction, please let me know and I can relay it to the Edge and W3C groups.

Thank you for the update @JudahGabriel , I appreciate it.  Just to clarify, is this the regular referrer header that I can access in JS using document.referrer ?  So if an app is launched from the MS Store, document.referrer will = info://platform/microsoft-store ?
Anyway, thanks again for the update on this.

In my initial test, no, document.referrer is empty. This makes sense: document.referrer is meant to be empty if the page was loaded directly.
Instead, on your server, you'll inspect the request headers and look for referer. If it equals app-info://platform/microsoft-store, then you know it was your Store PWA.

Thanks for the response @JudahGabriel, but are you certain it's supposed to work like that? If I invoke the Store PWA from a Share target, document.referrer is set to app-info://platform/microsoft-store, just like the request header server-side. The current behavior of Edge also differs from Android Chrome, where a Play Store PWA (trusted web activity) always sets the document.referrer even if launched from the app icon. The Referer request header is also set to the same value.
I'm asking because I use Cloudflare CDN caching for my PWA and I cannot easily modify the server response based on the Referer header without causing unintended consequences. Therefore, it would be great if I can continue using JS to show/hide the Store-specific stuff in my PWA.

are you certain it's supposed to work like that?

I'm testing it on my machine, and that's how it's working. Yeah. If you're saying, "Hey, I want document.referrer to be set as well", I can give that feedback to the Edge team.

I'm asking because I use Cloudflare CDN caching for my PWA and I cannot easily modify the server response based on the Referer header without causing unintended consequences.

I don't follow here.
The general idea would be: your server gets a request, it sees that the Referer header is set, and so you set a flag on the session indicating it was launched from the Store. You can even pass that info down to the client and access that flag via JS.
Am I missing something?

@JudahGabriel

If you're saying, "Hey, I want document.referrer to be set as well", I can give that feedback to the Edge team.

Yes, that’s what I need. Thank you for checking this with the Edge team.

Am I missing something? Are you thinking Cloudflare would break that behavior? We see that Cloudflare passes request headers through to the origin site, so I think this scenario should still work for you.

Sorry, I did a poor job trying to explain it.
I meant that I have set up a Cloudflare Page rule to “Cache Everything,” which includes text/html resources. The homepage (which is also the PWA’s start_url) has this Page rule applied to it. The problem is that if I change the HTML response server-side based on the Referer header (e.g. to remove some buttons shown only in the MS Store PWA version), other non-Store-PWA users who are also served from the same Cloudflare cache will still see those buttons.
This is why I currently serve an identical version to all users, and then hide/show the buttons in JS, based on the values of url.searchParams.get('app-install-source') and document.referrer. (I’ll remove the searchParams check when it’s no longer needed in the future.)

If document.referrer works as you expect, then this whole solution will work for you, yeah?  Cloudflare's caching wouldn't break that? You could still do JS-side UI updates based on that.

@JudahGabriel

If document.referrer works as you expect, then this whole solution will work for you, yeah? Cloudflare's caching wouldn't break that? You could still do UI updates from JS based on that.

Yes, that is correct.

Cool. I'll tell the Edge team this client-side scenario is very important for some developers. And I'll tell them document.referrer will fill this need, but that it's not currently working today.


mqtt LWT???

Is there any topic for the mqtt last will and testament???
Online and offline
thanks in advance

Good idea! Added LWT and status report the repeater publishes:
prefix_path/status: A retained topic either "online" (as soon as the repeater connects) or "offline" (after connection loss as LWT)

ok. Is there any way to save my configuration before flash the module again in order to update?

No need to - as long as the config data and magic-number do not change, the current config will presist a re-flash of the firmware.
BTW: just updated the LWT implementation

thnx


Bad Template ID -- Topic | a30fef54-a4e5-4beb-a8b5-962c528d753a

Communication site templates:
Correct Template ID for Topic  | 96c933ac-3698-44c7-9f4a-5fd17d71af9e
Please update document.

@jpatel1002 Please indicate the document you are referring to and wish to give the feedback for its improvement. Thanks

@jpatel1002 We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to re-open this issue if you see an improvement is required in the specific area of this documentation. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


feat: update "lastUpdated" and "hash" after user updates approval amount

Resolves #167
This change ensures the last updated date and hash of an allowance is updated in the UI after a user updates the approval amount for an ERC20 contract.
Summary of changes:

useAllowances: onUpdate now accepts an updatedProperties param instead of newAmount
waitForTransactionConfirmation: now returns a transaction receipt
useRevoke: when a user updates an ERC20 allowance, we fetch the confirmed block timestamp, then pass the hash and lastUpdated values to onUpdate

Small enhancements:

Consolidated OnUpdate type definition in lib/interfaces.ts
Removed the default value for the onUpdate param in the useRevoke hook (all useRevoke invocations pass an onUpdate argument, so figured the default value wasn't necessary)

Video

Looks great, thank you for this! I'll double check it and expect to merge it tomorrow.


chore: upgrade and bump dependencies

/test all

/help

/test pre-main-kyma-incubator-component-reconciler

/test pre-main-kyma-incubator-mothership-reconciler


[BUG] Exclude folder fails with AttributeError

Describe the bug
Trying to exclude a top-level folder in my drop box fails with this error
To Reproduce
$ maestral excluded add  Ash\'s\ PSF2011\ Videos
Excluded directory '/Ash's PSF2011 Videos'.
Exception ignored in: <function Proxy.__del__ at 0x7f00d38f85e0>
Traceback (most recent call last):
  File "/home/ash/.virtualenvs/maestral/lib/python3.8/site-packages/Pyro5/client.py", line 80, in __del__
AttributeError: 'NoneType' object has no attribute 'suppress'

System (please complete the following information):

Maestral version:
OS: ArchLinux
Desktop environment: KDE
Qt version: (QT5, but not using GUI, and PyQt5 not installed)

Additional context
Fresh install in virtual env just now

Packages installed
```
argh==0.26.2
blinker==1.4
certifi==2019.11.28
cffi==1.13.2
chardet==3.0.4
Click==7.0
cryptography==2.8
dropbox==9.4.0
idna==2.8
jeepney==0.4.2
keyring==21.1.0
keyrings.alt==3.4.0
maestral==0.5.0
pathtools==0.1.2
pycparser==2.19
Pyro5==5.6
PyYAML==5.3
requests==2.22.0
SecretStorage==3.1.2
serpent==1.28
six==1.13.0
u-msgpack-python==2.5.2
urllib3==1.25.7
watchdog==0.9.0
```

Add any other context about the problem here.

Oh though I just noticed that it did actually update the exclusion list.

Yeah, that as known issue with the upstream library Pyro5 v5.6 which I noticed too late to adjust the dependencies. It has already been fixed but the new version has not been released yet.


Boss summons

All fargo version of vanilla boss summons does not work

Bumping this with another related issue. My group has been unable to summon the Trojan Squirrel boss in multiplayer, the boss summon item is consumed and no boss spawns. Boss does spawn on single player worlds. Spinning up a server by myself I am also able to spawn the boss. However, I am unable to summon the boss if I joined a server and use the summoning item.

Upon further investigation the error seems to be from this bit of code in FargoSoulsUtil.cs.

Upon further investigation the error seems to be from this bit of code in FargoSoulsUtil.cs.

Were you able to find a way to solve this problem? I faced the same problem and am trying to find a way to solve it


Do not set Timestamp explicitly

Hi.
Just a very tiny change.
We don't need to set the timestamp explicitly here since it's updated automatically when not set.
The way it is right now I imagine it can create some discrepancies when the clock is not correctly synced on the instance running benthos.

Sounds good, thanks @mfamador!


New LLVM renderer

Unifies renderer syntax with #2632. Still needs to be cleaned up, but is passing all of test_ops.py.
Removing llvmlite dependency altogether is definitely possible (with a pretty decent line savings too), but seems a little difficult: not just as simple as replacing compile_llvm with a call to llc since llc can't build dynamic libraries.

So as of now this is a large line increase, and I assume many of these abstractions are for PTX?
Want to merge the two PRs? Like there's no real way I'll merge a big line increase, but if it's a line increase with new functionality that's easier to justify.

Sure, I can just merge this into #2632. I had started removing the lines that were just for PTX but it still wasn't going to be below 5k lines.


fix: avoid chain switch on connect if already on supported chain

Thanks @jxom for showing me the (currently undocumented) connector.getChainId() API which makes this possible 🙏

Confirmed that this doesn't interrupt iOS deep linking too 🙌

Thank you, this is much appreciated!


test

Thanks for your interest in palantir/witchcraft-java-logging, @Bughuntr00! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.


What is the format for input using a csv file?

I have a large list of peptides and wondering what is the format if using a csv file as input. I have tried few ways but doesn't work. Is there a template?

The name csv in the help is confusing, I see. Input csv should contain a peptide per line. I have added example_input.csv and the corresponding output csv to the repo.

Thanks! That's helpful.

Thanks, I got the below error with csv as input (~150K peptides):
Traceback (most recent call last):
  File "/home/dz33/.conda/envs/hmmhc/bin/hmmhc-predict", line 8, in <module>
    sys.exit(main())
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/cmdline.py", line 53, in main
    predictions = predictor.predict(peptides)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/hmmhc.py", line 70, in predict
    normalizedLogOdds = self.computeLogOdds(peptidesList)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/hmmhc.py", line 103, in computeLogOdds
    sequenceSetBlocks = self.toSequenceSetBlocks(peptideList)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/hmmhc.py", line 156, in toSequenceSetBlocks
    [list(p) for p in peptideList[rangeStart:rangeEnd]]
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/ghmm.py", line 948, in __init__
    internalInput = [self.emissionDomain.internalSequence(seq) for seq in sequenceSetInput]
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/ghmm.py", line 393, in internalSequence
    result = map(lambda i: self.index[i], result)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/ghmm.py", line 393, in <lambda>
    result = map(lambda i: self.index[i], result)
KeyError: 'X'

Some suggestions?

At least one of your peptide-encoding strings contains character 'X' which denotes an unknown amino acid and is not supported by the predictor. 'U' is also not supported.
As a quick solution, for now please input only the peptide strings containing the 20 amino acids ACDEFGHIKLMNPQRSTVWY.
We will consider filtering the peptides with unsupported amino acids in the tool itself.

I removed all peptides contains X and U but still got error
Traceback (most recent call last):
  File "/home/dz33/.conda/envs/hmmhc/bin/hmmhc-predict", line 8, in <module>
    sys.exit(main())
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/cmdline.py", line 53, in main
    predictions = predictor.predict(peptides)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/hmmhc.py", line 70, in predict
    normalizedLogOdds = self.computeLogOdds(peptidesList)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/hmmhc.py", line 103, in computeLogOdds
    sequenceSetBlocks = self.toSequenceSetBlocks(peptideList)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/hmmhc/hmmhc.py", line 156, in toSequenceSetBlocks
    [list(p) for p in peptideList[rangeStart:rangeEnd]]
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/ghmm.py", line 948, in __init__
    internalInput = [self.emissionDomain.internalSequence(seq) for seq in sequenceSetInput]
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/ghmm.py", line 393, in internalSequence
    result = map(lambda i: self.index[i], result)
  File "/home/dz33/.conda/envs/hmmhc/lib/python2.7/site-packages/ghmm.py", line 393, in <lambda>
    result = map(lambda i: self.index[i], result)
KeyError: '*'

As said, peptide strings shall only contain the 20 canonical amino acids. You have '*' (it usually denotes a stop codon) in at least one of the strings.

A stop codon in peptide? There are peptides from genes CDS though.


Packages Update

Short description of what this resolves:
Changes proposed in this pull request:

Upgraded the vs engine
Upgraded the node modules

Fixes: #
How Has This Been Tested?

Screenshots (if appropriate):
Checklist:

[x] I have read the contribution guidelines.
[x] My change requires a change to the documentation and GitHub Wiki.
[x] I have updated the documentation and Wiki accordingly.

这是来自QQ邮箱的假期自动回复邮件。你好，我最近正在休假中，无法亲自回复你的邮件。我将在假期结束后，尽快给你回复。

Ljl


Docs: clean up getting started

Main change: split quickstart into two, put chat model stuff in a Part 2 doc. Also clean up headers for prettier table of contents
check it out here: https://python.langchain.com/en/dev2049-getting_started_clean

This is looking pretty good to me... discussed offline, but let's follow up later with changes to replace Prompt instantiation everywhere with the from_prompt classmethod, makes it much easier to use prompts

mmm seems a bit weird. Basics is installation + LLMs, and then chat is separate? i dont think thats very logical
if anything id prefer to combine more

mmm seems a bit weird. Basics is installation + LLMs, and then chat is separate? i dont think thats very logical
if anything id prefer to combine more

part 1 = intro to all modules, mostly in context of LLMs bc those are more established and bit easier to understand
part 2 = go over all modules again but this time in context of chat models, which are the newer abstraction
combining sounds great eventually but think we first need to make the other modules handle either model type more seamlessly


Intro to Identity Needs Updated to 2.0

This article still uses the 1.x API's for configuring Cookies.  These API's are missing in 2.x.
Specifically this:
services.Configure<IdentityOptions>(options =>
{
    // Cookie settings
    options.Cookies.ApplicationCookie.ExpireTimeSpan = TimeSpan.FromDays(150);
    options.Cookies.ApplicationCookie.LoginPath = "/Account/LogIn";
    options.Cookies.ApplicationCookie.LogoutPath = "/Account/LogOut";
});

Should be this:
services.ConfigureApplicationCookie(
{
    // Cookie settings
    options.Cookie.Expiration= TimeSpan.FromDays(150);
    options.LoginPath = "/Account/Login";
    options.LogoutPath = "/Account/Logout";
});

Happy to send a PR (for real this time!), but didn't know if this was already a WIP somewhere that I didn't see already, and if you wanted to have tabs for 1.x vs 2.x behavior like other places on the docs.
Thanks!

@scottsauber  a PR would be much appreciated. cc @scottaddie

@scottsauber Are you still interested in submitting a PR for this?

Yep! Will start tonight. Sorry! I skimmed the issue and saw it was assigned to you and completely missed Rick's comment.
First go at contributing to MS docs besides a typo in SQL's docs so I may noob it up. :)

@scottsauber Not a problem. We're here to help if you have any questions. Thanks again for your help!

@scottaddie I'm having some trouble testing out the Tabs for the diff versions of Core like you see on other pages with like 1.x vs 2.x.

I can't preview the tabs when I build locally, they just look like links.  Is this a style thing that only happens when you pick up the css of docs.asp.net?
When I indent code snippets within a tab, I break the code snippets.  The first one will render, but the other ones will not.  Again, not sure if this is just a local problem or not.  Also not sure if I need to indent the code snippets within a tab, but I can't preview it.
Somehow with the #'s get reset locally when I use the tabs.  Like the "3. Create a User" gets replaced with "1. Create a User."  Not sure if this is a bug or if I'm doing something wrong.

My commit with my changes is in my fork here if you want to take a look or repro: https://github.com/scottsauber/Docs/commit/c8381d50aab58dd12a7c71f1073fe68b1baf3df9
Hope some of these are just user error.  Once we figure out some of this stuff, I think I can contribute to a few of the other Identity ones that need a 1.x vs 2.x like https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-configuration
Thanks!

@scottsauber

I can't preview the tabs when I build locally, they just look like links and only render the first tab's contents. Is this a style thing that only happens when you pick up the css of docs.asp.net?

That's the expected behavior — the latest version of DocFx doesn't support previewing of tabs. We'll soon have a versioning strategy in place to differentiate between 1.x and 2.x content. At that point, this use case for tabs is likely to disappear.

Somehow the #'s get reset when I preview locally when I use the tabs. Like the "3. Create a User" gets replaced with "1. Create a User." Not sure if this is a bug or if I'm doing something wrong. It shows as "3. Create a User" in the markdown.

Try using the following:
1.  Create an ASP.NET Core Web Application project with Individual User Accounts.

    # [Visual Studio](#tab/visual-studio)
    In Visual Studio, select **File** -> **New** -> **Project**. Select the **ASP.NET Web Application** from the **New Project** dialog box. Selecting an ASP.NET Core **Web Application** with **Individual User Accounts** as the authentication method.

    Note: You must select **Individual User Accounts**.

    ![New Project dialog](identity/_static/01-mvc.png)

    # [.NET Core CLI](#tab/netcore-cli)
    If using the .NET Core CLI, create the new project using ``dotnet new mvc --auth Individual``. This will create a new project with the same Identity template code Visual Studio creates.

    The created project contains the `Microsoft.AspNetCore.Identity.EntityFrameworkCore` package, which will persist the Identity data and schema to SQL Server using [Entity Framework Core](https://docs.efproject.net).

    ---

2.  Configure Identity services and add middleware in `Startup`.

    The Identity services are added to the application in the `ConfigureServices` method in the `Startup` class:

    # [ASP.NET Core 2.x](#tab/aspnetcore2x)

    [!code-csharp[Main](identity/sample/src/ASPNETv2-IdentityDemo/Startup.cs?name=configureservices&highlight=7-9,11-28,30-39)]

    These services are made available to the application through [dependency injection](xref:fundamentals/dependency-injection).

    Identity is enabled for the application by calling  `UseAuthentication` in the `Configure` method. `UseAuthentication` adds cookie-based authentication [middleware](xref:fundamentals/middleware) to the request pipeline.

    [!code-csharp[Main](identity/sample/src/ASPNETv2-IdentityDemo/Startup.cs?name=configure&highlight=17)]

    # [ASP.NET Core 1.x](#tab/aspnetcore1x)

    [!code-csharp[Main](identity/sample/src/ASPNET-IdentityDemo/Startup.cs?name=configureservices&highlight=7-9,13-34)]

    These services are made available to the application through [dependency injection](xref:fundamentals/dependency-injection).

    Identity is enabled for the application by calling  `UseIdentity` in the `Configure` method. `UseIdentity` adds cookie-based authentication [middleware](xref:fundamentals/middleware) to the request pipeline.

    [!code-csharp[Main](identity/sample/src/ASPNET-IdentityDemo/Startup.cs?name=configure&highlight=21)]

    ---

    For more information about the application start up process, see [Application Startup](xref:fundamentals/startup).

3.  Create a user.


Add office_hours field

Add office_hours rich text field (with limited tags - see existing) to

ServicePage
ServicePointPage

Check that field is available in the page API response when set using automated test.
https://trello.com/c/6lAijO3o/131-show-office-hours

Done https://github.com/OpenUpSA/muni-portal-backend/pull/25


Update Python SDK to support labels

This issue follows #463 which has a partial implementation in #536.
One additional PR is needed to get #436 into a consistent and complete state for end users. Currently #536 makes changes to Feast Core by adding support for labels to feature sets and features, but it doesn't add support for labels to feature sets in the Python SDK.
The task here is to add this support and update any end-to-end tests that test both the Python SDK and Feast Core w.r.t label metadata.

Unless there is any objection then I think we can push this out to 0.6. We'd be introducing new API methods and not taking anything away? I don't see a compelling reason to block 0.5 over this.

Sounds reasonable, I also think this could be a great community contribution if there's someone wishing to use this functionality from the Python SDK who can prioritize it before the maintainers are able to.

I would be happy to pick this up somewhere next week. From #463:

with the Python SDK having a set_label(key, value) method and a remove_label(key) method on the Feature class. list_feature_sets() would print out this information as well, but filtering will be left for a future release.

The idea is still to implement the 2 suggested functions and update list_feature_sets() right?

Hi @Joostrothweiler, that would be great!
Correct, it's about adding those to the feature set as opposed to the feature. Methods like list_feature_sets() should also be tested to see that they expose this information.


Support for compound primary key

If it's supported, is there some doc about it?
Example of API:
To access an individual object, the URL looks like /my-entities/province-name/year, example: /my-entities/Sevilla/2010
There would be no id field in the model.

It's not supported, and it won't be. Composite primary keys are a nightmare (I implemented such support in a previous admin generator, never again). Besides, it's far from being standardized in REST.

Composite primary keys are a nightmare

I totally understand, thanks anyway :)


Allow Managers to Promote Employees to Managers

We originally had the idea of having only 1 manager at any time, but this will be problematic if multiple Tower higher-ups need manager permissions (Tower Lead, Head Setter, and likely a few more employees will need manager permissions). This means that we will allow MANAGERS to promote EMPLOYEES to MANAGER.
Code Pointer is here: https://github.com/ucf-tower-app/web/blob/815a66fb0076f0fe0df394061e59c71898e08082/src/components/Profile/ProfileBanner.tsx#L22
We need to rename the managerSwap function, and check it to make sure the current logged in user is a MANAGER, the user being viewed is an EMPLOYEE, and then execute the promotion through API.

backend for allowing multiple managers is done but waiting on a PR: https://github.com/ucf-tower-app/xplat/pull/248
gonna take a look at the frontend for this today


⚠ Turnos 24x7 has degraded performance

In 8630475, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 884 ms

Resolved: Turnos 24x7 performance has improved in abf262c.


Add rename functionality to all Infra and Cloud providers

The rename operation has only been added to vmware, but there's no reason it couldn't be added to all providers with VMs.
Extracted from https://github.com/ManageIQ/manageiq-ui-classic/pull/7916#issuecomment-946853728

@agrare Is this still a feature?  If so, we can just mark this as help wanted.

Note that in https://github.com/ManageIQ/manageiq-ui-classic/pull/7916 the rename functionality was removed from the multi-select list views, but it is still present on VM details page.


copy dot files

I've this config:
new CopyWebpackPlugin([
        { from: `${paths.static}/pom.xml` },
        { from: `${paths.static}/.htaccess` }
      ], {
        ignore: []
      }),

however the file .htaccess isn't copied, what could be?

Nvm, stupid mistake

@alex88 I'm probably making the same stupid mistake, can you tell what you found about it please?

@jayrmotta I don't remember actually, I don't have that code in any repo either, maybe the ignore key is wrong, I really don't know sorry

In case @jayrmotta or anyone else is still facing this problem, this is how I solved it. By adding a ./ in front of the to: path. Before that, it either put it in a .htaccess (root/.htaccess/.htaccess) directory, or didn't do anything at all.
{ from: 'app/.htaccess', to: './.htaccess'}

For people looking in the future, i was checking the directory with 'ls' instead of 'ls -a', so the file was actually being copied
new CopyWebpackPlugin([       {from: './public/.htaccess'}     ])


Add pointer cursor on buttons for v4

Added the pointer cursor on .btn class in v4 so that all buttons (a.btn, input.btn, button.btn) have the pointer.

see #22313


Three test_ipythonconsole.py test failures: test_restart_kernel, test_kernel_kill, test_kernel_restart_after_manual_restart_and_crash

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[x] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Hello again!  Thanks for releasing 5.2.2 :-)  I've tried testing this on Debian (as this will save me a bigger job when 5.3.0 is released), and there are not too many failing tests this time.  I've already commented on #17058 that test_get_pydoc is still not working, but now there are some new failures.  The first three are in test_ipythonconsole.py (using python3-ipython version 7.31.1-1).  Here is the test output.  (BTW, all of these IPython sessions have "[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled"; I have no idea if this is relevant, but I presume not.)
_____________________________ test_restart_kernel ______________________________

ipyconsole = <spyder.plugins.ipythonconsole.plugin.IPythonConsole object at 0x7faa141ef6d0>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7faa16c44f70>
qtbot = <pytestqt.qtbot.QtBot object at 0x7faa14a03eb0>

    @flaky(max_runs=3)
    def test_restart_kernel(ipyconsole, mocker, qtbot):
        """
        Test that kernel is restarted correctly
        """
        # Mock method we want to check
        mocker.patch.object(ClientWidget, "_show_mpl_backend_errors")

        shell = ipyconsole.get_current_shellwidget()
        qtbot.waitUntil(lambda: shell._prompt_html is not None, timeout=SHELL_TIMEOUT)

        # Do an assignment to verify that it's not there after restarting
        with qtbot.waitSignal(shell.executed):
            shell.execute('a = 10')

        # Restart kernel and wait until it's up again
        shell._prompt_html = None
        ipyconsole.restart_kernel()
>       qtbot.waitUntil(lambda: shell._prompt_html is not None, timeout=SHELL_TIMEOUT)
E       pytestqt.exceptions.TimeoutError: waitUntil timed out in 20000 milliseconds

/tmp/autopkgtest.VGygWg/build.wdI/src/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py:1147: TimeoutError
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

In [1]: a = 10

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [2]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

In [1]: a = 10

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [2]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

In [1]: a = 10

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [2]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

In [1]: a = 10

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [2]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

In [1]: a = 10

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [2]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

In [1]: a = 10

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [2]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

In [1]: a = 10

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [2]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: a = 10

In [2]:
_______________________________ test_kernel_kill _______________________________

ipyconsole = <spyder.plugins.ipythonconsole.plugin.IPythonConsole object at 0x7fa99c589090>
qtbot = <pytestqt.qtbot.QtBot object at 0x7fa99c435de0>

    @flaky(max_runs=3)
    @pytest.mark.skipif(os.name == 'nt', reason="no SIGTERM on Windows")
    def test_kernel_kill(ipyconsole, qtbot):
        """
        Test that the kernel correctly restarts after a kill.
        """
        shell = ipyconsole.get_current_shellwidget()
        qtbot.waitUntil(lambda: shell._prompt_html is not None,
                        timeout=SHELL_TIMEOUT)
        # Wait for the restarter to start
        qtbot.wait(3000)
        crash_string = 'import os, signal; os.kill(os.getpid(), signal.SIGTERM)'
        # Check only one comm is open
        old_open_comms = list(shell.spyder_kernel_comm._comms.keys())
        assert len(old_open_comms) == 1
        with qtbot.waitSignal(shell.sig_prompt_ready, timeout=30000):
            shell.execute(crash_string)
        assert crash_string in shell._control.toPlainText()
>       assert "Restarting kernel..." in shell._control.toPlainText()
E       assert 'Restarting kernel...' in 'Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]\nType "copyright", "credits" or "license" for more informati...ndefined, debugging will not be enabled\n\nIn [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)\n\nIn [1]: '
E        +  where 'Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]\nType "copyright", "credits" or "license" for more informati...ndefined, debugging will not be enabled\n\nIn [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)\n\nIn [1]: ' = <built-in method toPlainText of ControlWidget object at 0x7fa99c4bc310>()
E        +    where <built-in method toPlainText of ControlWidget object at 0x7fa99c4bc310> = <spyder.plugins.ipythonconsole.widgets.control.ControlWidget object at 0x7fa99c4bc310>.toPlainText
E        +      where <spyder.plugins.ipythonconsole.widgets.control.ControlWidget object at 0x7fa99c4bc310> = <spyder.plugins.ipythonconsole.widgets.shell.ShellWidget object at 0x7fa99c47b250>._control

/tmp/autopkgtest.VGygWg/build.wdI/src/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py:1680: AssertionError
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]: import os, signal; os.kill(os.getpid(), signal.SIGTERM)

In [1]:
______________ test_kernel_restart_after_manual_restart_and_crash ______________

ipyconsole = <spyder.plugins.ipythonconsole.plugin.IPythonConsole object at 0x7fa99c3c5e10>
qtbot = <pytestqt.qtbot.QtBot object at 0x7fa99c3ef730>

    @flaky(max_runs=3)
    @pytest.mark.skipif(os.name == 'nt', reason="no SIGTERM on Windows")
    def test_kernel_restart_after_manual_restart_and_crash(ipyconsole, qtbot):
        """
        Test that the kernel restarts correctly after being restarted
        manually and then it crashes.

        This is a regresion for spyder-ide/spyder#12972.
        """
        shell = ipyconsole.get_current_shellwidget()
        qtbot.waitUntil(lambda: shell._prompt_html is not None,
                        timeout=SHELL_TIMEOUT)

        # Restart kernel and wait until it's up again
        shell._prompt_html = None
        ipyconsole.restart_kernel()
>       qtbot.waitUntil(lambda: shell._prompt_html is not None,
                        timeout=SHELL_TIMEOUT)
E       pytestqt.exceptions.TimeoutError: waitUntil timed out in 20000 milliseconds

/tmp/autopkgtest.VGygWg/build.wdI/src/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py:1752: TimeoutError
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.2 (main, Jan 16 2022, 17:11:27) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.31.1 -- An enhanced Interactive Python.

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

In [1]:

What steps reproduce the problem?
Running the test in a clean Debian unstable chroot.
Versions

Spyder version: 5.2.2
Python version: 3.10 and 3.9
Qt version: 5.15.8+dfsg-1
PyQt version: 5.15.6+dfsg-1+b1
Operating System name/version: Debian unstable

Dependencies
(These are copied from my Debian testing version as I can't run Spyder directly in the chroot, but they should be almost the same.)

This line in your logs is a bit odd because I don't see it locally:

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

Thanks for the quick response!  That's really weird; my local setup is attempting to follow your upstream version as closely as possible.  The only differences (which are admittedly big ones) are the versions of PyQt5 and Qt5.  So maybe it's there, and things will get resolved once we get (closer) to version 5.3.0?  Happy to leave this open for now; I certainly don't see any obviously  strange behaviour when running Spyder in this environment.

Ah, there really is something amiss with my environment, but I don't yet know what it is.  Installing spyder in a venv allows the "Restart kernel" menu option to work, but in my Debian build it doesn't work at all.  Definitely some investigation needed on my part here ... ho hum...

Yes, indeed.  I've had a little time to track down the cause, but with no success so far.  It definitely appears to be something to do with the environment.  When I succeed, I will let you know if it turns out to be something worth telling you about!

Thanks @juliangilbey!


add a centered  header

I like to have my search engine always at hand. But to put it right by the links is not really a pretty sight. With this addition, it can be centered.

now it's work fine for me

@DragonHeart69 this broke with hamburger menu when resizing the window, going to keep your changes but try to fix this breakage

Hmmm, weird, I'll check it again tomorrow, this can indeed not be the intention.

I just pushed code to master that I believe fixes it on desktop and mobile.

Indeed, this solves the problem. I had something ready myself before I saw your post. I just closed this one, it looks like yours is even better :)
PS: Do you want to change the screenshot of the darkmode to your test setup please ?


[docs] Migrate Drawer demos to hooks

[x] I have followed (at least) the PR section of the contributing guide.

Thanks  😜