async does not work in release build

Hi, trying to build my app with CoreRT, using RyuJIT
The build succeeded successfully.
However, an error occurred during execution.
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly '<EDIT: SECRET ASSEMBLY>'. The system cannot find the file specified.
File name: '<EDIT: SECRET ASSEMBLY>'
   at corerttest!<BaseAddress>+0x2e291806
   at corerttest!<BaseAddress>+0x2e29010f
   at corerttest!<BaseAddress>+0x2e27216a
   at corerttest!<BaseAddress>+0x2e271cce
   at corerttest!<BaseAddress>+0x2e261064
--------------------------------------------------
Debug Assertion Violation

Message: FailFast

Expression: 'ASSERT_UNCONDITIONALLY'

File: C:\corert\src\Native\Runtime\EHHelpers.cpp, Line: 498
--------------------------------------------------

I search and finded this issue: #2619
So, I re-built it with IlcReference specified.
However, this error was displayed next time.
--------------------------------------------------
Debug Assertion Violation

Message: Hardware exception raised inside the runtime.

Expression: 'ASSERT_UNCONDITIONALLY'

File: C:\corert\src\Native\Runtime\EHHelpers.cpp, Line: 486
--------------------------------------------------

I tried to build a dependent library with debug.
Then it worked correctly.
However, I would like to use the Release build library.
Is there any good idea?
(I'm sorry, my English is not good)
csproj
<Project ToolsVersion="15.0">
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.props" />
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <IlcReference Include="C:\Users\azuta\Source\Repos\<EDIT: SECRET>\bin\Release\netstandard1.6.1\<EDIT: SECRET>.dll" />
  	<PackageReference Include="<EDIT: SECRET>">
      <Version>0.1.0-alpha-000022</Version>
      <PrivateAssets>All</PrivateAssets>
    </PackageReference>
    </PackageReference>
  </ItemGroup>
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.targets" />
  <Import Project="$(IlcPath)\Microsoft.NETCore.Native.targets" />
</Project>

C:\Users\azuta\Downloads\dtnt\corerttest>dotnet --version
1.0.0-rc4-004771

dependent library is build with .Net Standard 1.6.1.
P.S. I using Visual Studio 2017 RC latest.

P.S. I using Visual Studio 2017 RC latest.

@azutake Could you please try to build a small repro for this crash, or provide some details about the pattern that may be triggering it?

@jkotas Okay, I making crash sample. please wait...

@jkotas Sorry for keeping you waiting for such a long time.
Sample creation is complete.
Also, I understood the cause of the problem.
An error occurred in await.
  This typically occurs if you're using
  an older Cygwin version on a newer Windows.  Please update to the latest
  available Cygwin version from https://cygwin.com/.  If the problem persists,
  please see https://cygwin.com/problems.html

f3b6990f61b57e9f83f810ee7596b65361b48810

dotnet version:
PS C:\corert> dotnet --version
1.0.0-rc4-004771

Execution procedure

Build CoreRT in Release build(It may be the same in Debug) .\build.cmd vs2017 Release
Clone this repository: https://github.com/azutake/CoreRtErrorOccurredAppSample
Open CoreRtCantWorkLibrarySample\CoreRtCantWorkLibrarySample.sln with Visual Studio 2017 RC.
Release target and build solution.
cd CoreRtErrorOccurredAppSample
dotnet restore /p:IlcPath=C:\corert\bin\Product\Windows_NT.x64.Release\packaging\publish1
dotnet build /t:LinkNative /p:IlcPath=C:\corert\bin\Product\Windows_NT.x64.Release\packaging\publish1
cd bin\x64\Debug\netcoreapp1.1\native
CoreRtErrorOccurredAppSample.exe
You should be able to see that it is STOPPED with Called TestMethodAsync().

We are crashing at:
CoreRtErrorOccurredAppSample!System_Private_CoreLib_System_Runtime_EH__FallbackFailFast+0x16
CoreRtErrorOccurredAppSample!System_Private_CoreLib_System_Runtime_CachedInterfaceDispatch__RhpCidResolve_Worker+0xd4
CoreRtErrorOccurredAppSample!RhpCidResolve+0x87
CoreRtErrorOccurredAppSample!ReturnFromUniversalTransition_DebugStepTailCall [D:\corert\src\Native\Runtime\amd64\UniversalTransition.asm @ 159]
CoreRtErrorOccurredAppSample!System_Private_CoreLib_System_Runtime_CompilerServices_AsyncMethodBuilderCore_MoveNextRunner___c___CallMoveNext_b__3_0+0x3c
CoreRtErrorOccurredAppSample!System_Private_CoreLib_System_Threading_ExecutionContext__Run+0x64
CoreRtErrorOccurredAppSample!System_Private_CoreLib_System_Runtime_CompilerServices_AsyncMethodBuilderCore_MoveNextRunner__CallMoveNext+0xd5

@azutake Thanks for creating a great small repro!

The crash is caused by allocating instance of non-constructed type.

EEType obtained here: https://github.com/dotnet/corert/blob/86b64971b099ec3f605c1f3c186dce653ec11691/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncMethodBuilder.cs#L761
Instance allocated here: https://github.com/dotnet/corert/blob/86b64971b099ec3f605c1f3c186dce653ec11691/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncMethodBuilder.cs#L811

Related to https://github.com/dotnet/corert/issues/2380 and https://github.com/dotnet/corert/issues/1314
cc @MichalStrehovsky @davidwrighton

@azutake Thanks for the repro! The problem for this particular case seems to be fixed now. (I can't get it to repro anymore.)
The underlying issue #2380 hasn't been fixed yet though - I'll be looking at that separately.

@MichalStrehovsky I can still repro it. Simpler repro based on the repro project:

Copy&paste this to the repro project:

using System.Threading.Tasks;

internal class Program
{
    static async Task WaitABit()
    {
        for (int i = 0; i < 10; i++)
            await Task.Delay(100);
    }

    private static void Main(string[] args)
    {
        WaitABit().RunSynchronously();
    }
}

Build the repro project as release
Change ryujit.rsp to reference release repro.exe that you have just built
Build and run as usual

@MichalStrehovsky I can still repro it

Ah, I missed it has to be Retail. I have a fix for 2380 that also fixes this.


[iOS] Dashed border and corner radius don't play nice together

Currently the dashed border feature works for most cases, except for a weird behavior on iOS. As you can see in the screenshot below the border seems to be compressed forming a solid line. Initial thoughts are that the rounded corners are causing this. On Android this looks just fine.

Apparently we should be using UIBezierPath.FromRoundRect to avoid this issue. But the method does not seem to support individual corners radius, only a global value for all corners:
https://stackoverflow.com/questions/22356821/how-to-create-rounded-corners-with-cashapelayer/22356822

Yeah, that's why I was messing with a custom path and adding arcs to it:
https://stackoverflow.com/questions/50797620/round-corners-with-different-radius

Has this been fixed? (Or why is it closed?)
The Demo gif in the readme says you're currently only supporting solid borders. Is that still true?

Yes, it was fixed in #be500fd.


Project.toml contains MCMCChain, tutorials are using MCMCChains

Running, for instance, the logistic regression tutorial doesn't work out of the box with the current environment since MCMCChain (singular) is in Project.toml and MCMCChains (plural) in the notebooks. Running pkg.add("MCMCChains") makes the using statements work and shows MCMCChains appearing next to MCMCChain in Project.toml.  I assume this is the correct dependency, but would love some clarification whether it should be MCMCChains or MCMCChains.

It should be MCMCChains, you are correct. Fixed with 1f29c1ee297f00e0a8c379c7d355945d22fa2e00.


ESP-IDF doc :  mcpwm_cache_enable documentation misleading (IDFGH-3000)

ESP-IDF documentation on mcpwm_capture_enable seems to suggest that the parmeter num_of_pulse is a 32 bit value. However the underlying register PWM_CAP_CH0_CFG_REG has only 8 bit's for the prescaling. So any value above 255 will give unexpected results.
Also there is an offset by 1 to take into account.
esp_err_t mcpwm_capture_enable(mcpwm_unit_tmcpwm_num, mcpwm_capture_signal_tcap_sig, mcpwm_capture_on_edge_tcap_edge, uint32_t num_of_pulse)
Hope this helps somebody with the same issues.

@vortex314 Thanks for reporting, we will look into and provide feedback.

@vortex314 Thanks for reporting, we will fix the issue. Thanks. @koobest


Enable warnings

Summary: Set up the system for enabling warnings. Disable warnings by default. Enable warnings in CI, but not warnings as errors yet (have to fix the warnings first). See individual commit messages for details.
This PR also disables compiler extensions, and changes from Make to Ninja.

Ready for next round

Pushed one more commit 8bf993a which uses default versions of clang and gcc instead of specific versions.

This is on hold until I've been able to figure out why the /experimental:external doesn't work on @SatjaSivcev's computer. The rest of the stuff is ready.

@trym-b any further comments before I squash, rebase and merge?

Just talked to @trym-b irl, he has no further objections.


ERROR:ghastoolkit.octokit:GraphQL API Status :: 502 results into workflow failure

What happened?
I encountered a 502 error on the GraphQL API while attempting to set up policy-as-code on a repository. The error message logged is: ERROR:ghastoolkit.octokit:GraphQL API Status :: 502.
The issue arose during the process of configuring a workflow where, upon every code push, CodeQL would scan the code, and after the scan completed, the policy-as-code configuration would trigger. The expected outcome was that if the policy returned a success, the code would be allowed to merge into the repository. However, the actual behavior deviated from this, as the policy-as-code setup consistently failed with a 502 error on the GraphQL API, blocking the entire workflow.
To troubleshoot the problem, I tested the same policy-as-code configuration on a smaller repository. Interestingly, this test was successful, with the setup running without encountering any errors. This led me to believe that the issue might be related to the size of the repository or specific configurations (https://github.com/magit/forge/issues/20#issuecomment-449027721).
I have attached the YML configuration file and the raw logs from the failed run for further examination.
Given the critical nature of this issue, which is blocking code merging workflows in our development process, I request that the 502 error in the GraphQL API be investigated. Any guidance on resolving this issue or suggestions for alternative configurations to avoid such errors would be greatly appreciated.
name: Enforce Policies on CodeQL Scan Alerts

on:
  workflow_run:
    workflows: ["CodeQL"]
    types:
      - completed

jobs:
  enforce-policies:
    name: Enforce Policies using GHAS Policy-as-Code
    runs-on: ubuntu-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v3

    - name: Set up Python
      uses: actions/setup-python@v4
      with:
        python-version: '3.x'

    - name: ghas-policy-as-code
      uses<EMAIL_ADDRESS>      with:
        policy: nextiva-security-test/cc-server
        policy-path: .github/pac-config.yml
        policy-branch: develop
        token: ${{ secrets.ACCESS_TOKEN }}
        argvs: "--is-github-app-token --disable-dependencies"

Version
v2 (current major version)
Where are you experiencing the issue?
GitHub Actions
Relevant log output
2024-08-26T19:27:13.8015009Z Current runner version: '2.319.1'
2024-08-26T19:27:13.8038295Z ##[group]Operating System
2024-08-26T19:27:13.8039057Z Ubuntu
2024-08-26T19:27:13.8039388Z 22.04.4
2024-08-26T19:27:13.8039717Z LTS
2024-08-26T19:27:13.8040116Z ##[endgroup]
2024-08-26T19:27:13.8040516Z ##[group]Runner Image
2024-08-26T19:27:13.8040923Z Image: ubuntu-22.04
2024-08-26T19:27:13.8041436Z Version: 20240818.1.0
2024-08-26T19:27:13.8042506Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240818.1/images/ubuntu/Ubuntu2204-Readme.md
2024-08-26T19:27:13.8044215Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240818.1
2024-08-26T19:27:13.8045187Z ##[endgroup]
2024-08-26T19:27:13.8045609Z ##[group]Runner Image Provisioner
2024-08-26T19:27:13.8046097Z 2.0.382.1
2024-08-26T19:27:13.8046520Z ##[endgroup]
2024-08-26T19:27:13.8061612Z ##[group]GITHUB_TOKEN Permissions
2024-08-26T19:27:13.8063227Z Contents: read
2024-08-26T19:27:13.8063643Z Metadata: read
2024-08-26T19:27:13.8064338Z Packages: read
2024-08-26T19:27:13.8064780Z ##[endgroup]
2024-08-26T19:27:13.8068075Z Secret source: Actions
2024-08-26T19:27:13.8068672Z Prepare workflow directory
2024-08-26T19:27:13.8692013Z Prepare all required actions
2024-08-26T19:27:13.8858023Z Getting action download info
2024-08-26T19:27:14.1756112Z Download action repository 'actions/checkout@v3' (SHA:f43a0e5ff2bd294095638e18286ca9a3d1956744)
2024-08-26T19:27:14.3076255Z Download action repository 'actions/setup-python@v4' (SHA:65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236)
2024-08-26T19:27:14.4245708Z Download action repository<EMAIL_ADDRESS>(SHA:55488b32e6bfdbbc719d1f8c660e5c058c28b12f)
2024-08-26T19:27:15.1696318Z Complete job name: Enforce Policies using GHAS Policy-as-Code
2024-08-26T19:27:15.2647853Z ##[group]Run actions/checkout@v3
2024-08-26T19:27:15.2648539Z with:
2024-08-26T19:27:15.2649029Z   repository: nextiva-security-test/cc-server
2024-08-26T19:27:15.2650030Z   token: ***
2024-08-26T19:27:15.2650448Z   ssh-strict: true
2024-08-26T19:27:15.2650928Z   persist-credentials: true
2024-08-26T19:27:15.2651498Z   clean: true
2024-08-26T19:27:15.2651912Z   sparse-checkout-cone-mode: true
2024-08-26T19:27:15.2652474Z   fetch-depth: 1
2024-08-26T19:27:15.2652979Z   fetch-tags: false
2024-08-26T19:27:15.2653424Z   lfs: false
2024-08-26T19:27:15.2653776Z   submodules: false
2024-08-26T19:27:15.2654312Z   set-safe-directory: true
2024-08-26T19:27:15.2654796Z ##[endgroup]
2024-08-26T19:27:15.4548680Z Syncing repository: nextiva-security-test/cc-server
2024-08-26T19:27:15.4552328Z ##[group]Getting Git version info
2024-08-26T19:27:15.4554089Z Working directory is '/home/runner/work/cc-server/cc-server'
2024-08-26T19:27:15.4557371Z [command]/usr/bin/git version
2024-08-26T19:27:15.4570335Z git version 2.46.0
2024-08-26T19:27:15.4602021Z ##[endgroup]
2024-08-26T19:27:15.4626440Z Temporarily overriding HOME='/home/runner/work/_temp/23fa2cd4-6826-48fe-8ef5-61c32f59a71e' before making global git config changes
2024-08-26T19:27:15.4629652Z Adding repository directory to the temporary git global config as a safe directory
2024-08-26T19:27:15.4632943Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/cc-server/cc-server
2024-08-26T19:27:15.4669674Z Deleting the contents of '/home/runner/work/cc-server/cc-server'
2024-08-26T19:27:15.4674458Z ##[group]Initializing the repository
2024-08-26T19:27:15.4678552Z [command]/usr/bin/git init /home/runner/work/cc-server/cc-server
2024-08-26T19:27:15.4758471Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-08-26T19:27:15.4760862Z hint: is subject to change. To configure the initial branch name to use in all
2024-08-26T19:27:15.4763414Z hint: of your new repositories, which will suppress this warning, call:
2024-08-26T19:27:15.4765838Z hint:
2024-08-26T19:27:15.4767269Z hint: 	git config --global init.defaultBranch <name>
2024-08-26T19:27:15.4769455Z hint:
2024-08-26T19:27:15.4771382Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-08-26T19:27:15.4775203Z hint: 'development'.
2024-08-26T19:27:19.9703515Z echo "Running Policy as Code..."
2024-08-26T19:27:19.9704657Z export PYTHONPATH=/home/runner/work/_actions/advanced-security/policy-as-code/v2.8.0:/home/runner/work/_actions/advanced-security/policy-as-code/v2.8.0/vendor
2024-08-26T19:27:19.9705641Z python3 -m ghascompliance \
2024-08-26T19:27:19.9706089Z   --severity "error" \
2024-08-26T19:27:19.9706584Z   --action "break" \
2024-08-26T19:27:19.9707221Z   --github-token "***" \
2024-08-26T19:27:19.9707729Z   --policy-repo-token "" \
2024-08-26T19:27:19.9708255Z   --github-repository "nextiva-security-test/cc-server" \
2024-08-26T19:27:19.9708846Z   --github-ref "refs/heads/develop" \
2024-08-26T19:27:19.9709459Z   --github-policy "nextiva-security-test/cc-server" \
2024-08-26T19:27:19.9710089Z   --github-policy-path ".github/pac-config.yml" \
2024-08-26T19:27:19.9710612Z   --github-policy-branch "develop" \
2024-08-26T19:27:19.9711197Z   --is-github-app-token --disable-dependencies
2024-08-26T19:27:19.9972673Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-08-26T19:27:19.9973466Z env:
2024-08-26T19:27:19.9973844Z   pythonLocation: /opt/hostedtoolcache/Python/3.12.5/x64
2024-08-26T19:27:19.9974537Z   PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.5/x64/lib/pkgconfig
2024-08-26T19:27:19.9975263Z   Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64
2024-08-26T19:27:19.9975842Z   Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64
2024-08-26T19:27:19.9976392Z   Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.5/x64
2024-08-26T19:27:19.9977041Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.5/x64/lib
2024-08-26T19:27:19.9977534Z ##[endgroup]
2024-08-26T19:27:20.0150330Z Running Policy as Code...
2024-08-26T19:27:20.0627129Z /home/runner/work/_actions/advanced-security/policy-as-code/v2.8.0/ghascompliance/__version__.py:35: SyntaxWarning: invalid escape sequence '\|'
2024-08-26T19:27:20.0628819Z   """
2024-08-26T19:27:20.5353365Z INFO:root:GitHub Repository :: nextiva-security-test/cc-server
2024-08-26T19:27:20.5355186Z INFO:root:GitHub Instance :: https://github.com
2024-08-26T19:27:20.5356695Z INFO:root:GitHub Reference (branch/pr) :: refs/heads/develop
2024-08-26T19:27:20.5359189Z INFO:root:Loading Policy as Code from Repository - https://github.com/nextiva-security-test/cc-server/.github/pac-config.yml
2024-08-26T19:27:20.5361239Z INFO:root:Cloning policy repo - nextiva-security-test/cc-server@develop
2024-08-26T19:27:24.7660591Z INFO:root:Loading policy file - /tmp/repo/.github/pac-config.yml
2024-08-26T19:27:24.7676859Z INFO:root:Policy loaded successfully
2024-08-26T19:27:24.7678434Z INFO:root:Saving Policy...
2024-08-26T19:27:24.7680558Z INFO:root:Policy saved
2024-08-26T19:27:24.7681699Z INFO:root:Finished loading policy
2024-08-26T19:27:24.7682636Z INFO:root:Policy as Code Summary:
2024-08-26T19:27:24.7683307Z INFO:root:
2024-08-26T19:27:24.7686755Z INFO:root:name: Default Policy
2024-08-26T19:27:24.7688388Z INFO:root:codescanning: 'critical'
2024-08-26T19:27:24.7689717Z INFO:root:dependabot: 'high'
2024-08-26T19:27:24.7691034Z INFO:root:licensing: 'None'
2024-08-26T19:27:24.7692438Z INFO:root:secretscanning: 'all'
2024-08-26T19:27:24.7693638Z INFO:root:general: 'error'
2024-08-26T19:27:24.7695061Z INFO:root:dependencies: 'error'
2024-08-26T19:27:24.7696098Z INFO:root:```
2024-08-26T19:27:25.5487478Z INFO:root:Total Code Scanning Alerts :: 162
2024-08-26T19:27:25.5576839Z INFO:root:Code Scanning violations :: 47
2024-08-26T19:27:37.9017262Z ERROR:ghastoolkit.octokit:GraphQL API Status :: 502
2024-08-26T19:27:37.9021675Z ERROR:ghastoolkit.octokit:GraphQL Content :: b'{\n   "data": null,\n   "errors":[\n      {\n         "message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug.   It is a problem with the GraphQL query we are using to get licence information.
I plan on having a patch out for this along with a Code Scanning bug fix next week.

@GeekMasher thank you. Any update on this fix?

@tr1shul Please upgrade to v2.9.0 and let me know if everything works

Still getting the error, here's the raw logs:
2024-09-23T15:17:59.8294004Z ##[group]Operating System
2024-09-23T15:17:59.8294662Z Ubuntu
2024-09-23T15:17:59.8295020Z 22.04.5
2024-09-23T15:17:59.8295411Z LTS
2024-09-23T15:17:59.8295715Z ##[endgroup]
2024-09-23T15:17:59.8296104Z ##[group]Runner Image
2024-09-23T15:17:59.8296584Z Image: ubuntu-22.04
2024-09-23T15:17:59.8296996Z Version: 20240915.1.0
2024-09-23T15:17:59.8298172Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240915.1/images/ubuntu/Ubuntu2204-Readme.md
2024-09-23T15:17:59.8299686Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240915.1
2024-09-23T15:17:59.8300565Z ##[endgroup]
2024-09-23T15:17:59.8300965Z ##[group]Runner Image Provisioner
2024-09-23T15:17:59.8301463Z 2.0.384.1
2024-09-23T15:17:59.8301823Z ##[endgroup]
2024-09-23T15:17:59.8316611Z ##[group]GITHUB_TOKEN Permissions
2024-09-23T15:17:59.8318377Z Contents: read
2024-09-23T15:17:59.8318924Z Metadata: read
2024-09-23T15:17:59.8319449Z Packages: read
2024-09-23T15:17:59.8320006Z ##[endgroup]
2024-09-23T15:17:59.8323193Z Secret source: Actions
2024-09-23T15:17:59.8323767Z Prepare workflow directory
2024-09-23T15:17:59.8948972Z Prepare all required actions
2024-09-23T15:17:59.9124421Z Getting action download info
2024-09-23T15:18:00.1724290Z Download action repository 'actions/checkout@v3' (SHA:f43a0e5ff2bd294095638e18286ca9a3d1956744)
2024-09-23T15:18:00.3154095Z Download action repository 'actions/setup-python@v4' (SHA:65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236)
2024-09-23T15:18:00.3862966Z Download action repository<EMAIL_ADDRESS>(SHA:c5dff3b33e49176359f48b91c3d3906be0eaee7b)
2024-09-23T15:18:01.1996425Z Complete job name: Enforce Policies using GHAS Policy-as-Code
2024-09-23T15:18:01.2917317Z ##[group]Run actions/checkout@v3
2024-09-23T15:18:01.2918282Z with:
2024-09-23T15:18:01.2918763Z   repository: nextiva-security-test/cc-server
2024-09-23T15:18:01.2919531Z   token: ***
2024-09-23T15:18:01.2919966Z   ssh-strict: true
2024-09-23T15:18:01.2920421Z   persist-credentials: true
2024-09-23T15:18:01.2920859Z   clean: true
2024-09-23T15:18:01.2921298Z   sparse-checkout-cone-mode: true
2024-09-23T15:18:01.2921749Z   fetch-depth: 1
2024-09-23T15:18:01.2922121Z   fetch-tags: false
2024-09-23T15:18:01.2922541Z   lfs: false
2024-09-23T15:18:01.2922873Z   submodules: false
2024-09-23T15:18:01.2923273Z   set-safe-directory: true
2024-09-23T15:18:01.2923775Z ##[endgroup]
2024-09-23T15:18:01.5475331Z Syncing repository: nextiva-security-test/cc-server
2024-09-23T15:18:01.5477904Z ##[group]Getting Git version info
2024-09-23T15:18:01.5478841Z Working directory is '/home/runner/work/cc-server/cc-server'
2024-09-23T15:18:01.5481401Z [command]/usr/bin/git version
2024-09-23T15:18:01.5554010Z git version 2.46.0
2024-09-23T15:18:01.5585725Z ##[endgroup]
2024-09-23T15:18:01.5616277Z Temporarily overriding HOME='/home/runner/work/_temp/b927e8ae-0e75-49ae-9f3a-c85329dbadd4' before making global git config changes
2024-09-23T15:18:01.5619149Z Adding repository directory to the temporary git global config as a safe directory
2024-09-23T15:18:01.5622183Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/cc-server/cc-server
2024-09-23T15:18:01.5668634Z Deleting the contents of '/home/runner/work/cc-server/cc-server'
2024-09-23T15:18:01.5672061Z ##[group]Initializing the repository
2024-09-23T15:18:01.5675419Z [command]/usr/bin/git init /home/runner/work/cc-server/cc-server
2024-09-23T15:18:01.5759818Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-09-23T15:18:01.5762057Z hint: is subject to change. To configure the initial branch name to use in all
2024-09-23T15:18:01.5763693Z hint: of your new repositories, which will suppress this warning, call:
2024-09-23T15:18:01.5766097Z hint:
2024-09-23T15:18:01.5766951Z hint: 	git config --global init.defaultBranch <name>
2024-09-23T15:18:01.5767923Z hint:
2024-09-23T15:18:01.5769035Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-09-23T15:18:01.5771769Z hint: 'development'.
2024-09-23T15:18:06.0075234Z echo "Running Policy as Code..."
2024-09-23T15:18:06.0076616Z export PYTHONPATH=/home/runner/work/_actions/advanced-security/policy-as-code/v2.9.0:/home/runner/work/_actions/advanced-security/policy-as-code/v2.9.0/vendor
2024-09-23T15:18:06.0077853Z python3 -m ghascompliance \
2024-09-23T15:18:06.0078309Z   --severity "error" \
2024-09-23T15:18:06.0078730Z   --action "break" \
2024-09-23T15:18:06.0079493Z   --github-token "***" \
2024-09-23T15:18:06.0079892Z   --policy-repo-token "" \
2024-09-23T15:18:06.0080462Z   --github-repository "nextiva-security-test/cc-server" \
2024-09-23T15:18:06.0081107Z   --github-ref "refs/heads/develop" \
2024-09-23T15:18:06.0081677Z   --github-policy "nextiva-security-test/cc-server" \
2024-09-23T15:18:06.0082239Z   --github-policy-path ".github/pac-config.yml" \
2024-09-23T15:18:06.0082827Z   --github-policy-branch "develop" \
2024-09-23T15:18:06.0083296Z   --retry-count "240" \
2024-09-23T15:18:06.0083831Z   --is-github-app-token --disable-dependencies
2024-09-23T15:18:06.0114613Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-09-23T15:18:06.0115291Z env:
2024-09-23T15:18:06.0115726Z   pythonLocation: /opt/hostedtoolcache/Python/3.12.6/x64
2024-09-23T15:18:06.0116341Z   PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.6/x64/lib/pkgconfig
2024-09-23T15:18:06.0117049Z   Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.6/x64
2024-09-23T15:18:06.0117844Z   Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.6/x64
2024-09-23T15:18:06.0118448Z   Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.6/x64
2024-09-23T15:18:06.0119109Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.6/x64/lib
2024-09-23T15:18:06.0119580Z ##[endgroup]
2024-09-23T15:18:06.0251716Z Running Policy as Code...
2024-09-23T15:18:06.0771240Z /home/runner/work/_actions/advanced-security/policy-as-code/v2.9.0/ghascompliance/__version__.py:35: SyntaxWarning: invalid escape sequence '\|'
2024-09-23T15:18:06.0775044Z   """
2024-09-23T15:18:06.5330384Z INFO:root:GitHub Repository :: nextiva-security-test/cc-server
2024-09-23T15:18:06.5332087Z INFO:root:GitHub Instance :: https://github.com
2024-09-23T15:18:06.5336049Z INFO:root:GitHub Reference (branch/pr) :: refs/heads/develop
2024-09-23T15:18:06.5338190Z INFO:root:Loading Policy as Code from Repository - https://github.com/nextiva-security-test/cc-server/.github/pac-config.yml
2024-09-23T15:18:06.5339986Z INFO:root:Cloning policy repo - nextiva-security-test/cc-server@develop
2024-09-23T15:18:10.6708884Z INFO:root:Loading policy file - /tmp/repo/.github/pac-config.yml
2024-09-23T15:18:10.6724633Z INFO:root:Policy loaded successfully
2024-09-23T15:18:10.6725956Z INFO:root:Saving Policy...
2024-09-23T15:18:10.6728924Z INFO:root:Policy saved
2024-09-23T15:18:10.6730702Z INFO:root:Finished loading policy
2024-09-23T15:18:10.6731523Z INFO:root:Policy as Code Summary:
2024-09-23T15:18:10.6732377Z INFO:root:```
2024-09-23T15:18:10.6732904Z INFO:root:name: Default Policy
2024-09-23T15:18:10.6733742Z INFO:root:codescanning: 'critical'
2024-09-23T15:18:10.6734653Z INFO:root:dependabot: 'high'
2024-09-23T15:18:10.6735430Z INFO:root:licensing: 'None'
2024-09-23T15:18:10.6737440Z INFO:root:secretscanning: 'all'
2024-09-23T15:18:10.6739427Z INFO:root:general: 'error'
2024-09-23T15:18:10.6740257Z INFO:root:dependencies: 'error'
2024-09-23T15:18:10.6740922Z INFO:root:```
2024-09-23T15:18:11.4799551Z INFO:root:Total Code Scanning Alerts :: 161
2024-09-23T15:18:11.5023840Z INFO:root:Code Scanning violations :: 46
2024-09-23T15:18:12.7496908Z WARNING:root:Unable to get Dependabot alerts :: Advisory.__init__() got an unexpected keyword argument 'cvss_severities'
2024-09-23T15:18:12.7499777Z WARNING:root:Trying GraphQL API
2024-09-23T15:18:26.3693080Z ERROR:ghastoolkit.octokit:GraphQL API Status :: 502
2024-09-23T15:18:26.3698480Z ERROR:ghastoolkit.octokit:GraphQL Content :: b'{\n   "data": null,\n   "errors":[\n      {\n         "message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `E8C4:3C8052:2F45A3A:2FB71ED:66F186B7` when reporting this issue."\n      }\n   ]\n}\n'
2024-09-23T15:18:26.3702604Z ERROR:root:Unknown Exception was hit, please repo this to https://github.com/advanced-security/policy-as-code
2024-09-23T15:18:26.3703852Z ERROR:root:Failed to get data from GraphQL API
2024-09-23T15:18:26.3704397Z
2024-09-23T15:18:26.3705489Z For more information, see: https://docs.github.com/en/enterprise-cloud@latest/graphql/overview/about-the-graphql-api
2024-09-23T15:18:26.3707023Z  _____  _   _   ___   _____ _____                       _ _
2024-09-23T15:18:26.3708320Z |  __ \| | | | / _ \ /  ___/  __ \                     | (_)
2024-09-23T15:18:26.3709571Z | |  \/| |_| |/ /_\ \\ `--.| /  \/ ___  _ __ ___  _ __ | |_  __ _ _ __   ___ ___
2024-09-23T15:18:26.3710605Z | | __ |  _  ||  _  | `--. \ |    / _ \| '_ ` _ \| '_ \| | |/ _` | '_ \ / __/ _ \
2024-09-23T15:18:26.3711623Z | |_\ \| | | || | | |/\__/ / \__/\ (_) | | | | | | |_) | | | (_| | | | | (_|  __/
2024-09-23T15:18:26.3712752Z  \____/\_| |_/\_| |_/\____/ \____/\___/|_| |_| |_| .__/|_|_|\__,_|_| |_|\___\___|
2024-09-23T15:18:26.3713658Z                                                  | |
2024-09-23T15:18:26.3714428Z                                                  |_|         v2.9.0
2024-09-23T15:18:26.3715417Z     GitHub Advanced Security Policy as Code by GeekMasher
2024-09-23T15:18:26.3716017Z
2024-09-23T15:18:26.3716451Z GitHub Repository :: nextiva-security-test/cc-server
2024-09-23T15:18:26.3717311Z GitHub Instance :: https://github.com
2024-09-23T15:18:26.3718324Z GitHub Reference (branch/pr) :: refs/heads/develop
2024-09-23T15:18:26.3719790Z ##[group]Policy as Code
2024-09-23T15:18:26.3721082Z Loading Policy as Code from Repository - https://github.com/nextiva-security-test/cc-server/.github/pac-config.yml
2024-09-23T15:18:26.3722555Z Cloning policy repo - nextiva-security-test/cc-server@develop
2024-09-23T15:18:26.3723629Z Loading policy file - /tmp/repo/.github/pac-config.yml
2024-09-23T15:18:26.3724485Z Policy loaded successfully
2024-09-23T15:18:26.3725038Z Saving Policy...
2024-09-23T15:18:26.3725569Z Policy saved
2024-09-23T15:18:26.3726358Z Finished loading policy
2024-09-23T15:18:26.3726891Z Policy as Code Summary:
2024-09-23T15:18:26.3727509Z ```
2024-09-23T15:18:26.3728354Z name: Default Policy
2024-09-23T15:18:26.3729105Z codescanning: 'critical'
2024-09-23T15:18:26.3729646Z dependabot: 'high'
2024-09-23T15:18:26.3747222Z licensing: 'None'
2024-09-23T15:18:26.3748264Z secretscanning: 'all'
2024-09-23T15:18:26.3748727Z general: 'error'
2024-09-23T15:18:26.3749205Z dependencies: 'error'
2024-09-23T15:18:26.3749544Z ```
2024-09-23T15:18:26.3750198Z ##[endgroup]
2024-09-23T15:18:26.3751654Z ##[group]Code Scanning Results
2024-09-23T15:18:26.3752088Z Total Code Scanning Alerts :: 161
2024-09-23T15:18:26.3752575Z Code Scanning violations :: 46
2024-09-23T15:18:26.3753180Z ##[endgroup]
2024-09-23T15:18:26.3753777Z ##[group]Dependabot Results
2024-09-23T15:18:26.3786870Z ##[warning] Unable to get Dependabot alerts :: Advisory.__init__() got an unexpected keyword argument 'cvss_severities'
2024-09-23T15:18:26.3788952Z ##[warning] Trying GraphQL API
2024-09-23T15:18:26.3791361Z ##[error]Unknown Exception was hit, please repo this to https://github.com/advanced-security/policy-as-code
2024-09-23T15:18:26.3792871Z ##[error]Failed to get data from GraphQL API
2024-09-23T15:18:26.3793175Z
2024-09-23T15:18:26.3793886Z For more information, see: https://docs.github.com/en/enterprise-cloud@latest/graphql/overview/about-the-graphql-api
2024-09-23T15:18:37.8069596Z ERROR:ghastoolkit.octokit:GraphQL API Status :: 502
2024-09-23T15:18:37.8071458Z ##[group]Dependency Graph Results - Licensing
2024-09-23T15:18:37.8074667Z ##[error]Unknown Exception was hit, please repo this to https://github.com/advanced-security/policy-as-code
2024-09-23T15:18:37.8077087Z ##[error]Failed to get data from GraphQL API
2024-09-23T15:18:37.8078386Z
2024-09-23T15:18:37.8082113Z ERROR:ghastoolkit.octokit:GraphQL Content :: b'{\n   "data": null,\n   "errors":[\n      {\n         "message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `E8C5:3AA426:3CE1571:3D78BB7:66F186C3` when reporting this issue."\n      }\n   ]\n}\n'
2024-09-23T15:18:37.8085616Z ERROR:root:Unknown Exception was hit, please repo this to https://github.com/advanced-security/policy-as-code
2024-09-23T15:18:37.8087041Z ERROR:root:Failed to get data from GraphQL API
2024-09-23T15:18:37.8087819Z
2024-09-23T15:18:37.8089004Z For more information, see: https://docs.github.com/en/enterprise-cloud@latest/graphql/overview/about-the-graphql-api
2024-09-23T15:18:37.8091297Z For more information, see: https://docs.github.com/en/enterprise-cloud@latest/graphql/overview/about-the-graphql-api
2024-09-23T15:18:38.3728457Z INFO:root:Total Secret Scanning Alerts :: 37
2024-09-23T15:18:38.3735891Z INFO:root:Secret Scanning violations :: 37
2024-09-23T15:18:38.3738370Z INFO:root:Total unacceptable alerts :: 85
2024-09-23T15:18:38.3739739Z ERROR:root:Unacceptable Threshold of Risk has been hit!
2024-09-23T15:18:38.3741063Z ##[group]Secret Scanning Results
2024-09-23T15:18:38.3745787Z Total Secret Scanning Alerts :: 37
2024-09-23T15:18:38.3746822Z Secret Scanning violations :: 37
2024-09-23T15:18:38.3748418Z ##[endgroup]
2024-09-23T15:18:38.3749538Z ##[endgroup]
2024-09-23T15:18:38.3750564Z ##[group]Summary
2024-09-23T15:18:38.3751369Z Total unacceptable alerts :: 85
2024-09-23T15:18:38.3760503Z ##[error]Unacceptable Threshold of Risk has been hit!
2024-09-23T15:18:38.3979384Z ##[error]Process completed with exit code 1.
2024-09-23T15:18:38.4079569Z Post job cleanup.
2024-09-23T15:18:38.4832823Z [command]/usr/bin/git version
2024-09-23T15:18:38.4871752Z git version 2.46.0
2024-09-23T15:18:38.4918869Z Temporarily overriding HOME='/home/runner/work/_temp/089110bf-2934-407e-86fb-06b05c2eea49' before making global git config changes
2024-09-23T15:18:38.4921417Z Adding repository directory to the temporary git global config as a safe directory
2024-09-23T15:18:38.4923745Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/cc-server/cc-server
2024-09-23T15:18:38.4960034Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-09-23T15:18:38.4993771Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-09-23T15:18:38.5267575Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-09-23T15:18:38.5292685Z http.https://github.com/.extraheader
2024-09-23T15:18:38.5305696Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-09-23T15:18:38.5340577Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-09-23T15:18:38.5835006Z Cleaning up orphan processes```

GraphQL is not needed in our use case. We want to apply policies only to code scanning alerts and secret scanning then get a successful build job if the policies are not violated.  Is there a set of recommended flags I can set in order to disable GraphQL and enable only what's needed?


Erro trying to make a request to a https url

Hi,
I'm trying to make a request to this url https://www.whoscored.com/?t=Hart, but I'm getting the following error:
Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp5.6\htdocs\comuniazo-uk\api\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187 Stack trace: #0 C:\xampp5.6\htdocs\comuniazo-uk\api\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 C:\xampp5.6\htdocs\comuniazo-uk\api\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 C:\xampp5.6\htdocs\comuniazo-uk\api\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFa in C:\xampp5.6\htdocs\comuniazo-uk\api\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187
I know of course is related with the SSL connection, but I'm kind of lost in this aspect. I've made some search over the internet, but I haven't found a solution for the problem.
Could you help me with this? Some guide on how to solve the problem...
This is the code that make the request:
$client = new Client();

$url = 'http://www.whoscored.com/Search/?t=' . $player["name"];

$crawler = $client->request('GET', $url);

Is there anyway to make the call without a cert?

wrong project


"Click to download the extension" button redirects to namada.me

The button "Click to download the extension" is redirecting to namada.me only. It isn't opening the extensions store as intended.

The following code needs to be updated

Please suggest the required changes, I'll update the code accordingly.

Closing this for now as UI is in the middle of rework :)


Features planned for future

The goal of this weather app is to demo different ionic component in a nice working app. Contributions are welcome for any good feature.
Features planned for future releases:

[x] Lazy loading
[ ] Virtual scroll hourly weather in segment page
[ ] Local and Push notifications
[ ] i18n support with ng2-translate
[ ] Login screen(maybe with firebase)
[ ] PWA(Progressive Web Apps)
[ ] Unit testing
[ ] Demo more ionic components
[ ] Some documentation
[ ] Use Async/Await

Hey @aggarwalankush , I have some spare time and can help you with development of some of these features. I think that Ionic 3 has support for lazy loading now, so maybe we can start with this one.

@jamzi That would be great. Lazy loading should be fun to implement. You can take reference from https://docs.google.com/document/d/1vGokwMXPQItZmTHZQbTO4qwj_SQymFhRS_nJmiH0K3w/edit and https://github.com/driftyco/ionic-conference-app/tree/lazy-load/src. Let me know if you face any issue.

@aggarwalankush Great work on improving the lazy loading, man!. I would like to try with i18n implementation. I once contributed to ionic-super-starter template pack and they used ng-translate (https://github.com/driftyco/ionic-starter-super).

i follow you :) great job!!!

Just tried. Looks great

Hi @aggarwalankush , I have gained some fresh experience with Ionic and would really like to continue it by contributing to your weather app. I would like to start with the Login screen, for which I want to try Firebase, Facebook and Google+.

@sarthvader Regarding login screen, I would like to point out few things:

Apple app store doesn't allow facebook/google login if app is not using any login features. To avoid this issue, simply showing user image in side menu would be good.
After login, if we can save user state(cities user added, weather settings...) in firebase, it would be great.  So when user logout and login to app, everything can be restored.

@aggarwalankush Thank you so much for share your project, I was wondering which is the easiest way to receive the results in spanish. Regards

@pedrazacarlos @jamzi commented that he would like to implement i18n with ng-translate in this comment https://github.com/aggarwalankush/ionic-mosum/issues/2#issuecomment-298024864 I think that would be the best approach.

Hey Ankush,
I got super busy the past few months but I now I have enough time to work the login screen, if it isn't already done by someone else. Just wanted to clarify what you are looking for; have the user login using their emails ids the first time they open the app, store those emails in a database in firebase and then use those emails to remember user's last state.

Hey @sarthvader I think a login screen with facebook/google/email login should be good. Also, a skip button if the user doesn't want to login. And saving information in firebase sounds good.

hi I got the app working par it doesn't pick up cities when I search for a city any ideas what's wrong

@LUNBOX make sure you have a google api key
https://github.com/aggarwalankush/ionic-mosum#getting-started

Hi. I am trying your app under ionic 4
after adding "serve": "ionic-app-scripts serve", to "scripts" I could run
ionic serve --devapp w/o ERRORS but it looks like it gets no data. (API keys double checked, darksky reports some calls)
Whats am I doing wrong?
Best regards


[ENH] TruncationTransformer, PaddingTransformer and TSFresh internal type to np-list

Reference Issues/PRs
relies on #355
part of #360
What does this implement/fix? Explain your changes.
Converts the TruncationTransformer and PaddingTransformer to work with np-list (list of 2D numpy) and 3D numpy input types. Its so much simpler than dataframes.
I have also removed the lower and upper bounds in TruncationTransformer. I found it confusing: if just lower was set it truncated to 0 ... lower-1, but if lower and upper were set it extracted lower, lower+1, ...., upper-1. These are not the same behaviour to me.  I dont see much use for wrapping like this, if you want to slice you are more likely to do it directly. This function is primarily to convert list of 2D numpy arrays to a 3D numpy array.
Did you add any tests for the change?
I have added extra tests and removed a test based on multiindex which seemed to be testing conversion rather than this classes functionality

Would be nice to add, not high priority, though. Would create a feature request issue if you want it implemented.


Implement an actual error handling mechanism

Currently, errors are handled individually on the direct catch. We need a proper mechanism to communicate errors between the backend and the frontend to enable good user feedback when something fails or when users are not using DISCO in the intended way.
For example, rather than parsing the error message to identify the error, we can subtype errors to make identifiable more reliably.

This issue is getting more and more relevant to provide user feedback when an error occurs during training. We need a reliable framework to pass an error that occurs in discojs or the server to the webapp and convert it to a user-friendly error message.
Currently this is done by parsing the error message which is far from ideal:
if (error.message.includes("provided in columnConfigs does not match any of the column names")) {
      // missing field is specified between two "quotes"
      const missingFields: String = error.message.split('"')[1].split('"')[0];
      toaster.error(`The input data is missing the field "${missingFields}"`);
}

An idea would be to give specific errors identifiers such as error numbers and associate each error number with a user-friendly error message. However this requires sharing the error number table between discojs, the webapp and the server and increase interdepency.

@tharvik do you have any ideas or opinions?

error handling is hard.
there is no real standard, that I know of, to safely handle error in JS/TS (as in nearly all exception based languages). there is some ideas with a JS proposal to pattern match on catch that could help a bit in a far future.
exception based:
the best we have now is documenting the various functions with @throws (but provides no compile-time checks, maybe via some eslint plugins). as you wrote, we can easily subclass Error with our own types, documenting when we're throwing theses subclasses, and try...catch at callsite.
values based:
there are some libraries, such as neverthrow, that provides safer values to force users to check that returned values are safe. this could be useful in some places where failure are excepted (opening files, read CSV, use user input, ...). as there is not language support, it's more cumbersome than in :sparkles:Rust:sparkles: but might worth a look.
so that doesn't really answers on what we can actually do in our case. I'm proposing the following

function likely to fail: use neverthrow.Result to force users to check it. at least to give some context and rethrow it.
function unlikely to fail: let if throw, no need to document possible failures when it's because of breach of contract (out of bound index, …)

and as the code evolves, we can put more and more everthrow around, gradually making it safer.


Singular("campus") returns "Campu"

package main

import (
	"fmt"

	"github.com/jinzhu/inflection"
)

func main() {
	// outputs "Campu"
	fmt.Println("Campus", inflection.Singular("Campus"))
}

I'm submitting a PR for this: https://github.com/jinzhu/inflection/pull/17

A fix has been merged @kyleconroy , if it resolves this issue please close it.


disallow duplicate sample IDs in demux types/formats

Came up on the forum: duplicate sample IDs should be disallowed with types SampleData[SequencesWithQuality] and SampleData[PairedEndSequencesWithQuality] (the fix would be implemented on those types' transformers).

This can be assigned to me.

This came up again on the forum. It looks like this issue still exists for CasavaOneEightSingleLanePerSampleDirFmt.


AJ-1284: Use stronger types for wdsProxyUrl and wdsTypes status.

In prep for introducing more logic based on WDS app status, this improves the type support to create closer alignment with LeoAppStatus, which is used to determine UI state. In prep
Jira Ticket: https://broadworkbench.atlassian.net/browse/1284
Summary of changes:
What

This refactoring improves typing guarantees for the status used to display the data tab.

Why

This is in prep for introducing another logic branch for UPDATING.

Testing strategy

[x] Existing unit tests continue to pass.

I think these fields were possibly based on LoadedState vs app statuses.

Ahhhh that helps to understand this, thanks...I'm going to close this angle off for now.


Prevent saving notebook with the same name

Fix #60.
I am not a native English speaker, please review and update the flash message.

@levlaz Sure!

Thank you! :+1:


wrap table into div

Table should be wrapped into div to add a class with overflow-x: scroll for simple responsiveness (solution of most frameworks)

published with version 1.3.7, tables get a div tag with class ".tm-table". You can easily responsivy tables now with the bootstrap hack:
.tm-table {
    overflow-x: auto;
}


problem of running train.py

After running create_tfrecords.py,I tried to run train.py,but its speed was very slow,just 40000+ steps for three days,was there something that i didn't realize?

I have provided a detailed tutorial here
https://www.datadiscuss.com/deep-learning-project-face-detection/


Request failed with status 500

Hello again,
I got one step ahead....
when using your plugin the binding is finished successfully (without exception), but when searching for the user I recieve: 2023-09-07T20:17:12.091Z backstage error Request failed with status<PHONE_NUMBER>B: RefErr: DSID-0310079C, data 0, 1 access points
[1] 	ref 1: '[THE DN]'
[1]  type=errorHandler lde_message=0000202B: RefErr: DSID-0310079C, data 0, 1 access points
[1] 	ref 1: '[THE DN]'
[1]  lde_dn=null stack=ReferralError: 0000202B: RefErr: DSID-0310079C, data 0, 1 access points
[1] 	ref 1: '[THE DN]'
[1]
[1]     at messageCallback (....node_modules/ldapjs/lib/client/client.js:1220:45)
[1]     at Parser.onMessage (...node_modules/ldapjs/lib/client/client.js:888:14)
[1]     at Parser.emit (node:events:513:28)
[1]     at Parser.write (.../node_modules/ldapjs/lib/messages/parser.js:107:8)
[1]     at TLSSocket.onData (.../node_modules/ldapjs/lib/client/client.js:875:22)
[1]     at TLSSocket.emit (node:events:513:28)
[1]     at addChunk (node:internal/streams/readable:315:12)
[1]     at readableAddChunk (node:internal/streams/readable:289:9)
[1]     at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
[1]     at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
I know this is not a bug of your plugin, but maybe you have a little bit more experience in LDAP handling, so you have an idea and could give me a hint? Would be very nice.
Thanks in advance
Markus

Reason was: the userSearchBase was not correct


[8] Implement Set Decoding

#8
Allows SET type to be decoded with elements in arbitrary order.
Ensures that mandatory types are specified exactly once, and optional types are specified zero or one times.

In my opinion you should also test SET with *** option (skip unknown tags)

That's a good suggestion,  I'll add it, thanks

In my opinion you should also test SET with *** option (skip unknown tags)

I've added logic, and a test case here:
https://github.com/Samuel-Tyler/fast_ber/blob/b13a40f9c2c64ea23943e9e012b7e901d4c801cc/test/generated/SetTest.cpp#L170
Please let me know if you have any other comments.
Also, I'd like to hear about your usage of ASN/BER, and if you have any other suggestions for improvements to the library?


(kernel) declaration has free variables error when extending class with typeclass parameter and extends

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Check that your issue is not already filed.
Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to mathlib4 or std4.

Description
The following Lean 4 code produces an error:
class A
class B
class C [A] extends B
class D extends A, B, C
--                    ^ (kernel) declaration has free variables 'D.toC'

Context
This came about when I was defining my own classes for abstract algebra, which heavily build on other classes and use extends to minimize field repetition caused by inheritance diamonds.
Steps to Reproduce

Write the code above into a Lean file
Attempt to compile it

Expected behavior: No error.
Actual behavior: The type checker gives the described error.
Versions
Lean (version 4.3.0-nightly-2023-10-01, commit e6292bc0b890, Release) on Linux 6.3.13
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

Note that this has never worked (extends classes cannot be dependent on each other)

That’s surprising to me, because the following does work:
class A
class B [A]
class C extends A, B


Cannot add more then 32 servers

I'm adding servers to the config.json file and when I hit server number 33 new servers stopped showing up on the monitoring page after I restarted the sergate process.
Is there a limitation to the number of servers that can be added with this monitoring tool?
Thanks

https://github.com/BotoX/ServerStatus/blob/master/server/src/network.h#L13
NET_MAX_CLIENTS = 32

And obviously recompile and restart the server.
I wouldn't have thought somebody will be using this for this many servers :o

Thank you! I just upped the max clients config and recompiled the server and everything's working great. Glad that I could stretch the limits :)

Closing issue.

@coonsmatthew Did it run smoothly with 32+ clients? How many clients have you tried so far? 100+ ?


Detail the possibility of using releases environment variables

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


Versioning in the spec URLs

https://github.com/data-apis/array-api/pull/394 gives a way we can add a version menu to select different versions of the spec once we release things.
We should decide how we are going to name the versions in the URLs, so that we don't end up changing things and breaking the URLs. For example https://data-apis.org/array-api/latest/index.html
My suggestions:

Right now where the URLs say latest we should write the full version number (e.g., https://data-apis.org/array-api/2022.02/index.html)
We should continue to have latest, which always redirects to the latest version of the spec. I'm not sure if it should be a literal redirect or just a copy. If we did a redirect, any URL would always redirect to something that will be stable and always point to that exact version. With no redirect, a "latest" page will give a URL that will change whenever we do a release. The effective difference is the behavior when someone copies the URL from their browser.
We need something that can point to the development version of the spec. I would suggest using something like draft or development.

The main index page should always point to latest. We might also consider adding headers to the development version that warn people that it isn't a released version.

This should now be addressed. Namely,

latest redirects to the latest specification revision.
draft serves as the development version.
the main index.html page redirects, similar to latest, to the latest specification revision.


Old libraries?

Hello,
during installation of WPHC I see some warnings about plugins
Some are renamed other are outdated
You can find a building log below:
Fetching plugin "org.apache.cordova.dialogs" via npm
WARNING: org.apache.cordova.dialogs has been renamed to cordova-plugin-dialogs. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.dialogs and cordova pluWARNING: org.apache.cordova.dialogs has been renamed to cordova-plugin-dialogs. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.dialogsandcordova plugin add cordova-plugin-dialogs. Fetching plugin "org.apache.cordova.dialogs" via cordova plugins registry org.apache.cordova.dialogs" will not install due to "/Users/Nello/Documents/PhoneGap/wordpress-hybrid-client/plugins/cordova-plugin-dialogs" being installed. Fetching plugin "org.apache.cordova.globalization" via npm WARNING: org.apache.cordova.globalization has been renamed to cordova-plugin-globalization. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.globalizationandcordova plugin add cordova-plugin-globalization. Fetching plugin "org.apache.cordova.globalization" via cordova plugins registry Fetching plugin "org.apache.cordova.globalization" via cordova plugins registry org.apache.cordova.globalization" will not install due to "/Users/Nello/Documents/PhoneGap/wordpress-hybrid-client/plugins/cordova-plugin-globalization" being installed. Fetching plugin "org.apache.cordova.inappbrowser" via npm WARNING: org.apache.cordova.inappbrowser has been renamed to cordova-plugin-inappbrowser. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.inappbrowserandcordova plugin add cordova-plugin-inappbrowser. Fetching plugin "org.apache.cordova.inappbrowser" via cordova plugins registry org.apache.cordova.inappbrowser" will not install due to "/Users/Nello/Documents/PhoneGap/wordpress-hybrid-client/plugins/cordova-plugin-inappbrowser" being installed. Cross-platform AppRate plugin for Cordova / PhoneGap Installing "org.pushandplay.cordova.apprate" for ios Fetching plugin "org.apache.cordova.dialogs" via npm WARNING: org.apache.cordova.dialogs has been renamed to cordova-plugin-dialogs. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.dialogsandcordova plugin add cordova-plugin-dialogs. Fetching plugin "org.apache.cordova.dialogs" via cordova plugins registry org.apache.cordova.dialogs" will not install due to "/Users/Nello/Documents/PhoneGap/wordpress-hybrid-client/plugins/cordova-plugin-dialogs" being installed. Fetching plugin "org.apache.cordova.globalization" via npm WARNING: org.apache.cordova.globalization has been renamed to cordova-plugin-globalization. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.globalizationandcordova plugin add cordova-plugin-globalization. Fetching plugin "org.apache.cordova.globalization" via cordova plugins registry org.apache.cordova.globalization" will not install due to "/Users/Nello/Documents/PhoneGap/wordpress-hybrid-client/plugins/cordova-plugin-globalization" being installed. Cross-platform AppRate plugin for Cordova / PhoneGap Fetching plugin<EMAIL_ADDRESS>via npm Installing "nl.x-services.plugins.toast" for android Installing "nl.x-services.plugins.toast" for ios Fetching plugin<EMAIL_ADDRESS>via npm WARNING: nl.x-services.plugins.socialsharing has been renamed to cordova-plugin-x-socialsharing. You may not be getting the latest version! We suggest you cordova plugin rm nl.x-services.plugins.socialsharingandcordova plugin add cordova-plugin-x-socialsharing`.

just plugin author‘s tips，in fact，we are use newest version。

@ang3lx these warnings may be coming from a dependency, we are already using the right plugin names. You can see the complete list here: https://github.com/shprink/wordpress-hybrid-client/blob/develop/package.json#L25


Danalock square BTZW125 - wrong device config loaded

After adding this danalock lock it loads the wrong device config. The link to zwavejs db on Device ID
270-2-3 (0x010e-0x0003-0x0002) is ok and there is a right config in zwavejs database. But the loaded cofig is from an unknown lock

Hi there @kfazon 👋
This is an add-on, and add-ons wrap existing software. In this case Z-Wave JS to MQTT.
Please report this kind of issues upstream, as soon as they get fixed and updated, the add-on will update as well.
../Frenck


Introduce a more refined notion of "profiles"

The compiler currently has a few different notions of "profiles" that aren't implemented very completely:

There are the front-end enumerations wrapped up in the Profile type that correspond to what the user specifies on the command line (e.g., -profile vs_5_1).

There are the front-end notions of code-generation target (e.g., -target dxbc) which are not quite orthogonal from the above.

There is a back-end notion of functions being "target intrinsic" or "target specialized" that uses the fixed strings hlsl and glsl.

There are the __glsl_version and __glsl_extension modifiers, which specify that code using a particular function requires a particular version of GLSL, or a particular GLSL extension.

There really isn't a consistent, systematic approach here, and that means that we don't actually enforce anything related to these modifiers in the way that the user would like. We should replace all of the ad-hoc methods described above with a single consistent representation.
A "profile" is conceptually a set of capabilities. When a function is tagged with a profile, we are saying that it can only be called when all of the capabilities in the set are available. When the user specifies a profile on the command line, they are saying that they want to compile under the assumption that all of those capabilities are available.
When compiling a function, we can infer a required profile (set of capabilities) by taking the union of the profiles for everything it calls/uses (types might have requirements as well...). When compiling an entry point, we will want to validate that the required profile for the entry-point function is a subset of the actual profile the user specified.
A profile (or rather, the capabilities inside a profile) might represent:

A particular target stage (e.g., vertex, fragment, etc.)
A shader model or feature level (e.g., sm_4_0, glsl_430)
A target language/format (e.g., hlsl, spriv)

Profiles should be defined in the standard library, possibly with some support to hook them up to the AST classes that will represent them. A simple profile declaration would be:
__profile glsl;

This example defines the glsl profile to be a singleton set, with a single capability in it, that would also be named glsl.
We would also allow the definition of a sub-profile:
__profile glsl_100 : glsl;

This line defines the glsl_100 profile to be a capability set that contains all of the capabilities in glsl as well as a new capability called glsl_100.
We would also allow profiles to be defined as a combination of existing profiles:
__profile glsl_vertex = glsl & vertex;

In this case, the & operator is going to combine requirements, which is a union of the underlying set representation, so that glsl_vertex is a set containing everything in glsl and everything in vertex.
(In an ideal world we'd also have an | operator on profiles, but there are reasons why that gets complicated.)
When defining a function or type, we should allow it to be restricted to a particular profile:
[profile(glsl_vertex)] void doSomething();

Multiple [profile(...)] attributes should be allowed on a single function, and they should more or less act like an | or the profiles ("my function works with these capabilities OR those capabilities").
When compiling a function, we should infer a "required" profile based on the operations the function performs (basically take the profile(s) of anything it uses/calls, and & them together). If the function also has an explicit [profile(...)] we should enforce that the inferred profile is a subset of the explicit profile.
When a function doesn't have an explicit profile given, the behavior probably needs to differ between "application" and "library" code:

In application code (e.g., some user's random .hlsl file), the compiler should treat the function as if it were declared with the inferred profile as its explicit profile, and then proceed through the rest of compilation.

In library code, a function without an explicit profile should be treated as using a "default" profile that was specified as part of the compile action. Errors should be generated for code that can't compile using the default profile, and which didn't have an explicit profile.

When checking an entry point, we'd check it against the profile specified on the command line for that entry point, and give an error if it requires capabilities beyond what the user specified.
The standard library should include a set of profile declarations that covers:

Different target stages: vertex/vs, fragment/fs, etc.

Different target platform families: d3d, d3d11, d3d12, vulkan, etc.

Different target code formats: dxbc, dxil, spirv, hlsl, glsl, etc.

Different platform-specific shader models: sm_4_0, glsl_330, etc.

GLSL extensions: GL_ARB_derivative_control

Combinations of the above: vs_5_0

The profile names that the user specifies via command line or API should be looked up in these standard library declarations. Different profiles might be specified by different options (e.g., -target vs. -profile, and maybe a future -extension option). The effective profile to use should be the & of the specified profiles.
One important detail in all of the above is that we should have a notion that certain profiles are "disjoint" so that they cannot be used together. For example, the compiler should recognize that vertex & fragment is an impossible profile. If the user writes a function that requires that profile, or specifies it on the command line, they should get an error message.
A good default behavior is that if two profiles "inherit" from a common base (but neither one inherits from the other), then they are assumed to be disjoint from one another:
__profile __shader_stage; // should ideally be a `private` profile in the stdlib
__profile vertex : __shader_stage;
__profile fragment : __shader_stage;
...

Aside: there are some similar rules for assuming disjointness in the Julia type system, and we should look into how those rules are defined.
IR functions would store the profile(s) for which they are defined. During back-end specialization of code for a particular target, we should have a profile for the chosen code generation target (which will include the chosen stage, etc.) and that should inform our choice of which version of an IR function to select. The basic rules would be:

Dismiss any IR function definitions with requirements not in our chosen target's capabilities

When considering two functions that are applicable (and thus represent subsets of the target's capabilities), one function is "better" than another if it requires strictly more capabilities (that is, its profile is a proper subset of the other).

Based on further discussion, it seems like trying to define profiles/capabilities purely in the stdlib isn't actually the best plan, since other systems need ways to access and work with them that might not want to instantiate a full AST:

The command-line processing and API need ways to turn a string name of a capbility or version of a feature into a value they can manipulate.

The IR needs a way to reference a capbility/version in a decoration, without having the IR stay around.

It is probably for the best to just have a single file somewhere that defines all the capabilities (both atomic and derived) that the compiler will understand (so that adding new capabilities requires modifying and rebuilding the compiler - no chance of user-defined capabilities...) and then any simple capability can be referenced by a single enumeration value (fixed size, no allocation). Determining whether one capability implies another could then be handled via data-driven routines based on tables derived from the raw declarations of the capabilities.
The existing slang-profile-defs.h is perhaps a starting point showing what that system could look like.

Note that we have the CapabilityAtom and CapabilitySet types now. The next step on this issue would be to:

expand the set of capabilities defined in that system
allow AST declarations to be tagged with required capabilities
introduce logic to translate the current "profiles" over to equivalent capability sets
add semantic checking to validate that capabilities are being respected
ensure that all the __target_intrinsic, etc. modifiers use capabilities instead of bare strings

Superceeded by #3371.


bug: should not allow NOW in generated columns

In RisingWave, the NOW function under streaming execution behaves like an updatable stream of the latest timestamp, while the PROCTIME function means a snapshot of the timestamp when the record is processed.
Currently, we can create a source or table with a generated column of NOW, which has some semantics issues as above. We should not allow this from happening and encourage users to use PROCTIME here.
dev=> CREATE TABLE t3 (v INT, t timestamptz as now()) WITH (
    connector = 'datagen',
    fields.v.kind = 'sequence',
    fields.v.start = '1',
    fields.v.end  = '10',
    datagen.rows.per.second='15',
    datagen.split.num = '1'
) ROW FORMAT JSON;
ERROR:  QueryError: internal error: Rpc error: gRPC error (Internal error): Expression error: Unsupported function: Ok(Now)

dev=> CREATE SOURCE t3 (v INT, t timestamptz as now()) WITH (
    connector = 'datagen',
    fields.v.kind = 'sequence',
    fields.v.start = '1',
    fields.v.end  = '10',
    datagen.rows.per.second='15',
    datagen.split.num = '1'
) ROW FORMAT JSON;
CREATE_SOURCE
dev=> create materialized view mv as select * from t3;
ERROR:  QueryError: Expr error: Unsupported function: Ok(Now)

Note that we do report errors here but it's not that intuitive. Instead, the error messages reveal another issue of the frontend. Previously we handled these time-related expressions by rewriting them with constants during the binding phase. However, it's now possible that some expressions reside in the table's catalog, so we fail to catch them. This may also affect select-from-source of PROCTIME, or these functions in default column values.
cc @yuhao-su @Eurekaaw

Any updates? cc. @yuhao-su

It will panic now... I'll take a look


Add yourself as contributor

Please feel free to add yourself as contributor: https://github.com/bgruening/galaxy-rna-workbench#contributers
ping @dyusuf @s-will @jfallmann @bebatut

ping @dyusuf

https://travis-ci.org/bgruening/galaxy-rna-workbench/builds/186311068
error: no space left on device

I know :( see discussion here: https://github.com/bgruening/galaxy-rna-workbench/pull/18

@dyusuf travis is fixed! Thanks @jfallmann for contacting travis!


Add a "Resume" option/system

It would be nice if you can add a "Resume" option for Live Downloads.
Sometimes happens that due to a bad connection, the livestream stops and at the same time it stops download on TwitchLink then when the stream resumes, you have to download it again manually. This could be a problem especially cause there is no notification that inform you.
Let's say i'll go in livestream and at the same time i download my own stream. During the livestream at some point my bad connection stops the livestream for a second but then it resume immediately. During the livestream i can't check TwitchLink so what happens is that maybe i've did my 3-4 hours livestream and then i found out that TwitchLink have downloaded only the first hour.
Having a "Resume" option or better, a resume system that automatically resumes the stream would be really helpful.
I've noticed this happens most of the time with IRL streams.
Of course i'm not an expert and so i don't know if is something possible.

I'm sorry, but we do not provide the feature to pause and splice live streaming videos at will.
Such functionality could introduce a host of issues due to the nature of live broadcasts.
You may need to halt the download and start a new one, or use a different professional video editor to merge the footage.


Don't create new fragments each time

We can probably reuse instances. Maybe?

Don't think this is necessary.


Space before closing > parsed incorrectly

Hi,
If you have a space before the closing > in a tag, this library incorrectly assumes the following text is a set of attributes for the tag. Eg
This is text

The a node will then have the following attributes: href, This, is, text.

I have the same problem

`

`

will be pared as
', '">"', $str);


By default getting API response in XML

I am successfully able to implement this, but I have an issue be default API response is in XML format. I wanted JSON response, Can you help where I can configure response to be JSON. Thanks in advance

You have to put this code in component section of your api main config file:
        'request' => [
            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
            ]
        ],

Hi i put the code above, but i have problem only when i try to get single country , i have to add ?_format=json in url after the lasrt parameter  so :   ..../country/ID?_format=json.
Thanks for your help


Fix exception causes in video_recorder.py

More context for this change here: https://blog.ram.rachum.com/post/621791438475296768/improving-python-exception-chaining-with

Thanks for the PR, the blog post is very cool.
Has this issue been raised with flake8 as we use it as our code analyse tool?
Would you be interested in finding all the other places in the codebase where this is used and applying the style there, otherwise, I can ask others


Continuous replication: 'Content-Length' bigger than max packet size

My Environment

ArangoDB Version:        3.3.16 (all instances)
Storage Engine:             RocksDB
Deployment Mode:       Master/Slave
Infrastructure:               own
Operating System:        Debian 9.5 (master and slave) Ubuntu 16.04 (other slave)
Used Package:              Debian .deb

Component, Query & Data
Affected feature:
Continuous replication.
Dataset:
14 collections, 11 of them having less than 50 docs (almost empty), the biggest having 320 000 docs.
The 3 collections having a lot of docs are continuously undergoing many writes, around 10 per second.
Steps to reproduce

Create a database / user on the slave instance

Setup a continuous replication using arangosh:

require("@arangodb/replication").applier.forget();

require("@arangodb/replication").setupReplication({
  endpoint: "tcp://my.master.host:8529",
  username: "root",
  password: "my_password",
  verbose: true,
  includeSystem: false,
  incremental: true,
  autoResync: true
});

Wait for initial sync to finish and continuous replication to start. Everything works fine.

Restart slave server. Continuous replication resumes as expected.

Wait and watch the logs

On problematic slave only, see in the logs:

2018-10-05T15:56:12 [15514] DEBUG {replication} starting applier with configuration {"adaptivePolling":true,"autoResync":true,"autoResyncRetries":2,"autoStart":true,"chunkSize":0,"connectTimeout":10,"connectionRetryWaitTime":15,"database":"my_database","endpoint":"tcp://my.master.host:8529","idleMaxWaitTime":2.5,"idleMinWaitTime":1,"ignoreErrors":0,"includeSystem":false,"incremental":true,"initialSyncMaxWaitTime":300,"lockTimeoutRetries":0,"maxConnectRetries":100,"requestTimeout":600,"requireFromPresent":false,"restrictCollections":[],"restrictType":"","skipCreateDrop":false,"sslProtocol":0,"username":"root","verbose":true}
2018-10-05T15:56:12 [15514] DEBUG {replication} requesting replication applier start for database 'my_database'. initialTick: 0, useTick: 0
2018-10-05T15:56:12 [15514] INFO {replication} re-started replication applier for database 'my_database', endpoint 'tcp://my.master.host:8529' from previous state
2018-10-05T15:56:12 [15514] INFO {replication} fetching master state information
2018-10-05T15:56:12 [15514] DEBUG connecting to ip endpoint 'http+tcp://my.master.host:8529'
2018-10-05T15:56:12 [15514] INFO {replication} connected to master at tcp://my.master.host:8529, id<PHONE_NUMBER>83104, version 3.3, last log tick 16998462
2018-10-05T15:56:12 [15514] TRACE {replication} looking for replication state file '/var/lib/arangodb3/REPLICATION-APPLIER-STATE' for database 'my_database'
2018-10-05T15:56:12 [15514] DEBUG {replication} replication state file '/var/lib/arangodb3/REPLICATION-APPLIER-STATE' found for database 'my_database'
2018-10-05T15:56:12 [15514] DEBUG {replication} requesting continuous synchronization, fromTick: 16986155, safeResumeTick 16986155, useTick: 0, initialTick: 0
2018-10-05T15:56:12 [15514] INFO {replication} starting with from tick 16986155, fetch tick 16986155, open transactions: 0
2018-10-05T15:56:12 [15514] INFO {replication} fetching master log from tick 16986155, first regular tick 16986155, barrier: 0, open transactions: 0, chunk size 2097152

-- continuous replication seems to work

2018-10-05T16:02:37 [15514] INFO {replication} fetching master log from tick 17251509, first regular tick 16986155, barrier: 0, open transactions: 0, chunk size 2097152
2018-10-05T16:02:37 [15514] TRACE {replication} master active: 1, worked: 1, sleepTime: 0
2018-10-05T16:02:37 [15514] INFO {replication} fetching master log from tick 17251515, first regular tick 16986155, barrier: 0, open transactions: 0, chunk size 2097152
2018-10-05T16:02:37 [15514] TRACE {replication} master active: 1, worked: 0, sleepTime: 1000000
2018-10-05T16:02:37 [15514] TRACE {replication} garbage collecting replication client entries
2018-10-05T16:02:37 [15514] TRACE {replication} garbage collecting replication client entries
2018-10-05T16:02:37 [15514] TRACE {replication} garbage collecting replication client entries
2018-10-05T16:02:37 [15514] TRACE {replication} garbage collecting replication client entries
2018-10-05T16:02:37 [15514] TRACE {replication} garbage collecting replication client entries
2018-10-05T16:02:38 [15514] INFO {replication} fetching master log from tick 17251515, first regular tick 16986155, barrier: 0, open transactions: 0, chunk size 2097152
2018-10-05T16:02:38 [15514] TRACE {replication} starting replication transaction 11025997
2018-10-05T16:02:38 [15514] TRACE {replication} committing replication transaction 11025997
2018-10-05T16:02:38 [15514] TRACE {replication} starting replication transaction 11026003
2018-10-05T16:02:38 [15514] TRACE {replication} committing replication transaction 11026003

-- continuous replication goes on, until this

2018-10-05T16:06:35 [15514] TRACE {replication} garbage collecting replication client entries
2018-10-05T16:06:35 [15514] WARNING {httpclient} ignoring HTTP response with 'Content-Length' bigger than max packet size (378819325 > 268435456)

-- the warning message above repeats dozens of time, and finally appears the following after more than 30mn

2018-10-05T16:40:38 [15514] WARNING {httpclient} ignoring HTTP response with 'Content-Length' bigger than max packet size (378819325 > 268435456)
2018-10-05T16:40:38 [15514] DEBUG {replication} requesting replication applier stop for database 'mydatabase'
2018-10-05T16:40:38 [15514] ERROR {replication} error while running applier thread for database 'my_database': could not connect to master at tcp://my.master.host:8529 for URL /_api/wal/tail?chunkSize=2097152&barrier=0&from=17267372&firstRegular=16986155&serverId=221779840837043&includeSystem=false: ignoring HTTP response with 'Content-Length' bigger than max packet size (378819325 > 268435456)

Problem:
On one slave (Ubuntu), this procedure works well and continuous replication is very efficient, almost real-time.
On another one (Debian), the errors mentioned in 6. above appear and replication stops writing new documents.
Comments:
I know thanks to #6261 that max packet size can be adjusted in the client (arangosh) using --server.request-timeout. But what about server side ? Once the continuous replication is set up, if the slave reboots for example, the replication will be resumed (tried with success); what will then be the max packet size value ?
Besides, in my case max packet size is 256MB if I understand correctly; how is it possible that the continuous replication sends such big amounts of data ?
Thanks
Mathias

Mmh, it means that the replication client got a response from with a Content-Length value bigger than 256MiB. According to the above output it must have been something like 378MB.
Are there any "huge" documents in the collections that are modified, that would explain the huge data transfer?
Or are there any voluminous transactions with lots of operations going on?
If not, then 378MB for a single WAL tailing response seems way too much.
Are all servers using RocksDB or is this a mixed setup (maybe unintentionally)?

No there a no huge documents, only a few KB each. All servers are using RocksDB. But there was probably a big transaction, now that you say it !
The slave on the which the replication works, had the replication triggered a few minutes later, so maybe it avoided a big transaction. I'll investigate on that today.
If a transaction is responsible for this issue, and supposing we need this transaction, how could we get around the problem ?

I think transactions are always replicated in one single batch.
Is it possible to split the big transaction into multiple smaller ones? That should avoid the problem.

After looking at the (JS) code, it's not exactly a transaction, ie. not db.transaction(), but a big AQL UPDATE on ~350 000 documents.
We can split it to avoid the problem, but it ruins a little the power of AQL to write simple operations… If you have any plans on how to improve the replication mechanism to allow such big UPDATEs it would be great. In the meantime we'll split it, no problem.
Thank you for solving this !

Wow thank you so much !

@graetzer 's changes have been merged into 3.4, and will become available with 3.4.0-RC3.


The Verida Connect modal should provide both the deep link and the QR code

Based on certain conditions, the Verida Connect modal will either display the QR code or a deep link  but this doesn't accomodate to all use cases.
On narrow window, the modal displays the deep link assuming the device is a mobile with the Verida Wallet installed on it. This is obviously not always the case.
Conversely, on larger window, the modal displays the QR code, assuming the user has the Verida Wallet installed on a different device. To a lesser extent, this is also not always the case, on tablet for example.
A solution to this UX issue is to provide both the deep link and the QR code to the user so they can use the most appropriate. The modal could emphasise one or the other depending on the assumptions (narrow window = mobile = deep link and large window =desktop = QR code) but the user could still get access to the other method to accomodate the edge cases above.

@aurelticot I think you are best placed to resolve this.


[CXF-7317] Non-URL encoded Content-Id href does not seem be serialized by CXF's AttachmentSerializer

JIRA: https://issues.apache.org/jira/browse/CXF-7317
downstream: https://issues.jboss.org/browse/JBWS-4064
According to https://tools.ietf.org/html/rfc2392, Content-ID header shouldn't be decoded

For example<EMAIL_ADDRESS>corresponds to Content-ID<EMAIL_ADDRESS>
See comments in JBWS-4064 for more info

@asoldano done


"Open Form Section" to be updated with new video file

[Enter feedback here] Under section "Open the form" all of the options are now updated. It is still showing old dropdown values. Ex: Now "Integrate" option is available not "PowerApps" option. We should update it accordingly

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

ID: 3a8c4146-101d-7ba2-7ae0-d7138b743154
Version Independent ID: 1f752762-0809-a2fb-4a03-b490547ee7f1
Content: Customize a SharePoint list or library form by using Power Apps - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/customize-list-form.md
Service: powerapps
Sub-service: canvas-maker
GitHub Login: @wimcoor
Microsoft Alias: emcoope

Thank you for reaching out and your feedback. The animations on the topic are slated for future review and updates. Closing this task for now.


Keeper QR/link: Ramp Up

https://github.com/bithyve/hexa/pull/4542 ramps up the F&F deep link generation by allowing the initTrustedContact worker to do the channel setup in the background w/ Relay. Despite that, the keeper QR/link generation is taking quite a bit of time and we would ideally want to do all the asynchronous setup processes in the background, thereby, showing the QR/link almost instantaneously.

Verified this issue on staging app v2.0.5(382)


Add a drone file to the project to trigger drone builds

Before drone will build the secrets need to be set and the project authorised to run on drone

Maybe get rid of all the commented out stuff?

@lennym fair point, but I have left it there for as soon as acceptance tests are added with a Dockerfile-acceptance file they'll be required again. So they are in situ for convenience.

Any compelling reason not to run acceptance tests?

There aren't any

@lennym thanks for reviewing

This looks fine to me, but also


Running ./scripts/setup/install for the second time results in failure

For generating Digital Ocean one click app base image, we run ./scripts/setup/install on a droplet with --no-init-db --self-signed-cert + random hostname, email values and take a snapshot. After the user creates a droplet from the image and logs into the droplet, ./scripts/setup/install script is ran again with --certbot, proper hostname, email to complete the installation. This used to work properly untill this release. The installer now fails with this error when the installer is run for the second time to complete the installation.
# Traceback from existing current one click app in digital ocean
'
+ '[' -f /.dockerenv ']'
+ su postgres -c psql
+ echo '
CREATE USER zulip;
ALTER ROLE zulip SET search_path TO zulip,public;
CREATE DATABASE zulip OWNER=zulip;
\connect zulip
CREATE SCHEMA zulip AUTHORIZATION zulip;
CREATE EXTENSION tsearch_extras SCHEMA zulip;
CREATE EXTENSION pgroonga;
GRANT USAGE ON SCHEMA pgroonga TO zulip;
'
ERROR:  role "zulip" already exists
ALTER ROLE
CREATE DATABASE
You are now connected to database "zulip" as user "postgres".
CREATE SCHEMA
CREATE EXTENSION
ERROR:  could not open extension control file "/usr/share/postgresql/10/extension/pgroonga.control": No such file or directory
ERROR:  schema "pgroonga" does not exist
++ dirname /home/zulip/deployments/2019-12-13-09-15-49/scripts/setup/postgres-init-db
+ /home/zulip/deployments/2019-12-13-09-15-49/scripts/setup/flush-memcached
Flushing memcached...

The previous one click apps also used to have the error ERROR:  role "zulip" already exists, but the script never failed. Instead the script use to continue the execution and complete the installation sucesfully.
After spending some time debugging I narrowed down cause of this new behavior to the commit 5290519a622ed00dbca1becd4b97f0b809637429. This commit made using ON_ERROR_STOP=1 mandatory while running psql. This commit was not present in 2.0.7. Thats the reason why psql continued the execution even after encountering the error in older one click apps.
Removing ON_ERROR_STOP=1 from the line su "$POSTGRES_USER" -c 'psql -v ON_ERROR_STOP=1 -e' < "$(dirname "$0")/create-db.sql" in postgres-init-db does results in sucessful completion of the installation.
Ofcourse, removing CREATE USER zulip; from create-db.sql also also results in sucesfull installation when the script is run for the second time.
I am not sure what is the right fix here though? Should we check whether zulip user is present in begining of create-db.sql and drop the user if present? Or do something complex and create the user only if the user is not present? @timabbott @andersk You folks might have better idea.

I think this is the fix:
diff --git a/scripts/setup/postgres-init-db b/scripts/setup/postgres-init-db
index 544c852db4..52984714eb 100755
--- a/scripts/setup/postgres-init-db
+++ b/scripts/setup/postgres-init-db
@@ -46,6 +46,7 @@ cd /

 su "$POSTGRES_USER" -c 'psql -v ON_ERROR_STOP=1 -e' <<EOF
 DROP DATABASE IF EXISTS zulip;
+DROP USER IF EXISTS zulip
 EOF

 su "$POSTGRES_USER" -c 'psql -v ON_ERROR_STOP=1 -e' < "$(dirname "$0")/create-db.sql"

(Totally untested)


vs code debug adapter, requesting scope and variables

Issue Type: Bug
I created my own debug session based on LoggingDebugSession.
When debugging, if I press the STOP button before variables is shown, the request of scopes and variables will never be sent to me again. In previous version 1.32 it works fine.
VS Code version: Code 1.33.1
log when I pressed the stop while scope is requested:
vms-debug-1.txt
next session log, no request of scope is present:
vms-debug-2.txt
OS version: Windows_NT x64 10.0.17763

Please create a fork of the mock debug with your changes such that I can reproduce this on my machine and then I can investigate. Thanks!
https://github.com/Microsoft/vscode-mock-debug

i'v created  vorfol:vorfol-scope-request-test
(just added a delay to scope response)
run extension
then add "trace" to target launch configuration to see, when press stop
run debug session and press stop while scope is requesting
after that we will never get scope request

@vorfol thanks for great steps. I can reproduce this.
The issue here is that when the session is stopped the pending requests are not properly "canceled".
Because the request is not canceled the tree getChildren never returns and the tree is left in the bad shape.


Improvements to the Video Selections Process

rebased onto main

I think, we should merge #251 before this and then rebase this again if there are conflicts

rebased onto main after #251 was merged


Should be able to select InputField with no explicit type with TextBox API

Expected behavior
Should be able to select InputField with no explicit type with TextBox API
Actual behavior
Currently I have to use inputField(deprecated) or $ for selecting this
Steps to reproduce

Script

const assert = require('assert');

const { openBrowser, goto, write, press, click, near, checkBox, inputField,closeBrowser } = require('taiko');
(async () => {
    try {
        await openBrowser({headless:false},{timeout:60000});
        await goto("http://todomvc.com/examples/typescript-backbone/");

        await write('Complete Task',into(inputField({placeholder:"What needs to be done?"})));
    } catch (e) {
        console.error(e);
    } finally {
        await closeBrowser();
    }
})();

The HTML of the inputField looks like this

<input class="new-todo" placeholder="What needs to be done?" value="" data-reactid=".0.0.1">

Should be able to use textBox instead of inputField

Versions
commit - c4bd3810aa5790692479555507e40dc66a2a4fe3

This enhancement has been verified and found fixed.
Now textBox api supports no explicit type api attribute.
Tested version: 364f6b088a7b3d31eb4dbbbd49c1f14d5333ab25

@negiDharmendra , Is this fix released?

@SudhiHathwar yes it is.
The best place to look for fixes against releases are here
https://github.com/getgauge/taiko/releases
You can also use npm to install the latest master version or a specific commit using
npm install<EMAIL_ADDRESS>


Image to Word Cloud Issue

Hello,
I am trying to convert an image to word-cloud (like your whale.png).
But I am getting the following result. What can be the problem?

Best
Onder

The image will most probably have no alpha channel (there are no transparent pixels, so the word cloud is generated on the whole image).

@Donnerbart Is correct. If you open the image in another tab, you'll see the background is actually white, and not transparent. :)


Suggestion about the third part dependency of the RocketMQ client.

FEATURE REQUEST

Please describe the feature you are requesting.
我认为rocketmq应该尽量减少客户端不必要的包引用以降低包冲突的风险。如下图一，客户端在添加acl支持的时候，所引用的guava包，仅仅在org.apache.rocketmq.srvutil.FileWatchService#FileWatchService里被用来做字符串的空判断（图二），其实完全可以用common模块所引用的commons-lang3包里的StringUtils.isNotEmpty来替代，并把guava包的引用放到filter模块里。这样用户在使用rocketmq客户端的时候就减少了不必要的guava依赖

Provide any additional detail on your proposed use case for this feature.

Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
blocker

If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

sub-task1-issue-number: sub-task1 description here,
sub-task2-issue-number: sub-task2 description here,
...

Firstly,thanks for your suggestion for rocketmq client issue.And then,can you describe your issue in English? @ChaosYjh

Your suggestion is correct.We can disscuss here for this issue. @ShannonDing @duhenglucky

Thank you for your reply!
I will describe my issue first.
I think rocketmq should minimize unnecessary client package references to reduce the risk of package conflicts. It is also very helpful for users to select or update RocketMQ.
Actually，there are quite a few application systems using Alibaba-rocketmq version under 3.5.8.For this users, they just only referenced fastjson,netty-all,slf4j-api.And it is difficult to let they to update rocketmq client, but acl and message trace is necessary.For those who is using ant, it will be impossible...
Other than，even if the version used by the user is 4.x, the three-party package referenced by the client is not controlled. It will be difficult to convince users to update the version.
Here is the dependency of rocketmq-client 3.2.6.
、
And here is the dependency of rocketmq-client4.5.1 with all.
eg guava:I think is it unnecessary to only used to judge string is not empty.
eg commons-codec:It can be replaced with javax.xml.bind.DatatypeConverter#parseBase64Binary
eg snakeyaml:It was not used in client at all.
Thank you.
From ChaosYjh
------------------ 原始邮件 ------------------
发件人: "Hu<EMAIL_ADDRESS>发送时间: 2019年6月10日(星期一) 晚上10:50
收件人<EMAIL_ADDRESS>抄送: "苑俊辉"763900954<EMAIL_ADDRESS>主题: Re: [apache/rocketmq] Suggestion about the third part dependency ofthe RocketMQ client. (#1241)
Your suggestion is correct.We can disscuss here for this issue. @ShannonDing @duhenglucky
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


fix: index.ts error: Cannot find name 'process'

fix: index.ts error: Cannot find name 'process'

Hmm, I haven't run into this myself, but it can't hurt. Thanks!


Content-Type text/plain

Which package is this bug report for? If unsure which one to select, leave blank
@crawlee/cheerio (CheerioCrawler)
Issue description
We have a website returning valid content with Content-Type "text/plain; charset=utf-8" but CheerioCrawler fails with:
ERROR CheerioCrawler: Request failed and reached maximum retries. Error: Resource {url} served Content-Type text/plain, but only text/html, text/xml, application/xhtml+xml, application/xml, application/json are allowed. Skipping resource.
We can see this is standard behaviour since a test for that particular situation exists at https://github.com/apify/crawlee/blob/322764c180be363ff06597a3391643e4a65575a4/test/core/crawlers/cheerio_crawler.test.ts#L416 Is this limitation to CheerioCrawler? Or is there a workaround to work with that Content-Type?
Also tried:
   additionalMimeTypes: [
        "text/plain"
    ],

Code sample
No response
Package version
latest
Node.js version
18
Operating system
No response
Apify platform

[X] Tick me if you encountered this issue on the Apify platform

I have tested this on the next release
No response
Other context
No response

Its just the default configuration we provide. If you want to also parse text/plain, please look into specifying it under https://crawlee.dev/api/cheerio-crawler/interface/CheerioCrawlerOptions#additionalMimeTypes in your crawler options!


PR numbers as links in changelogs

Describe the problem
It's difficult to determine which version a merged PR is in.
I believe the changeset title is the PR title, though I am not sure this is strictly always the case.
As a maintainer of an external adapter, when I see a change to the Adapter API I often have to check the changelog of Kit (which navigating to is annoying to begin with) and read for the changesets since the last version my adapter was specifically built for. I'd rather just ctrl+f for the PR number.
Describe the proposed solution
Include PR numbers as a link to the PR in the changelog for each changeset
Alternatives considered
No response
Importance
would make my life easier
Additional Information
I imagine 1.0 will resolve most of this, though I wish to contribute to the Adapter API discussion before 1.0.

We should copy https://github.com/sveltejs/vite-plugin-svelte/blob/main/scripts/changelog-github-custom.js which would fix this. Happy to accept a PR to do that

I would also add the request to this PR to add the packages with changelog links in the root README :point_down:

From the sveltejs/vite-plugin-svelte README

Packages

Package
changelog

@sveltejs/vite-plugin-svelte
changelog

yeah, that's not a bad idea

I've been able to backtrack changelog entries to PRs via commit hashes. By looking up, for example, https://github.com/sveltejs/kit/commit/5911b1c7 from the 1.0.0-next.140 changelog entry, I see the commit message is "[fix] consider protocol-relative URLs as external (#2062)" and then I can look up #2062 and see the PR discussion and the linked issue.
It should be trivial to write a script to take the existing changelog with commit hashes, grab the first line of the log message for that hash, and extract a PR number from the end of that first line. As long as the commit was created using GitHub's "Squash and merge" button, the end of the commit message will be (#NNNN) where NNNN is the PR number. It's possible that not every changelog entry was made from a commit that used the "Squash and merge" button, but that method should allow backfilling PR numbers into most of the existing changelog entries, if desired.

The vite-plugin-svelte script I linked to above should already handle including PR numbers in the changelog. Take a look at their changelog: https://github.com/sveltejs/vite-plugin-svelte/blob/main/packages/vite-plugin-svelte/CHANGELOG.md

it won't retroactively add them though, so a one-off to sync the old entries would be good

Yeah, we can just delete the old changelog and regenerate, right?

I don't think it could work out the version numbers correctly, but worth a try

it won't retroactively add them though, so a one-off to sync the old entries would be good

I've created #2138 to do just that. I included the script I used in https://github.com/sveltejs/kit/pull/2138#issuecomment-894917909 so someone else can re-run it if desired (e.g., if more changesets get merged before you switch over to the changelog script from vite-plugin-svelte).

Note: #2138 doesn't include the PR numbers as links, just as #NNNN references. I figure the changelog should be kept short, as those references will be automatically turned into links when it's viewed on GitHub. But if having the actual links in the changelog file itself is desired, it should be pretty trivial to edit my script to create GitHub links and re-run it.

I think that's only true in issues, not in files. None of the PR numbers appear to be linked: https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md

Does also do not appear with issues in my short tests.
According to this https://stackoverflow.com/questions/16539687/github-readme-reference-issue auto-referencing is only supported in issues, comments or pr, but not in pure md files

github also allows linking to other issues types via https://github.com/repo/issues/NNNN
So just replacing (#NNNN) in the markdown file with ([#NNNN](https://github.com/sveltejs/kit/issues/NNNN)) via regex works.
See linkify utility of the changelog script which helps to turn text references in changesets to links.

Solution is great, thanks all! :pray:


Should f16 vrgather/vcompress be supported for f16 with Zvfhmin? bf16 with Zvfbfmin?

clang supports f16 vrgather/vcompress with Zvfh, but the required instruction are part of the base vector spec. It could work with Zvfhmin like load/store.
clang doesn't support bf16 vrgather at all.
CC: @kito-cheng @rofirrim

Agreed.


Some Features Request with AT/XA/TCC mode

When AT mode will support composite primary key？ is there any schedule?
by the way,will seata support store procedure?

When seata will release XA mode? is there any schedule?

will TCC mode support feign or openfeign ?

@zhiwei55

Omposite primary key will be supported in a later release, but the specific version has not yet been determined. For now, you can add a column of id primary keys to the table.
XA will be released soon
There are support plans, but the specific version of support has not yet been decided.

for #2, XA mode will still support single primary key?

https://github.com/seata/seata/pull/2381, support XA mode.
https://github.com/seata/seata/pull/2913, config data source proxy mode to XA.

for #2, XA mode will still support single primary key?

As long as the database used supports XA protocol. Any SQL is supported.


loadDefinedPath tests in all formats, including errors

Right now there is just a single prototype test.

Duplicate of #4.


Add character:  to font:

Character :
Font :

assign this to me

@Bhargava-1103 i am assigning this to @harshvyas-22


Fix shortened Session Id display

Changes
Fixed the displaying of the short version of the Session ID on the Session's container:
Before

After

I think the closing ) is missing now

I think the closing ) is missing now

Yep, thanks for the correction, I was too busy copypasting :)

@bereg2k thanks for the ping, triggered https://github.com/aerokube/selenoid-ui/releases/tag/1.10.9

@lanwen thanks!


Exeption in Discord Integration (1.11.0)

I think this is due to the fact that I listen to Spotify when I start Intellij.
stacktrace:
https://pastebin.com/raw/CyFVTZPP

To fix this, u need to set the text on a small icon, like this