Giter VIP home page Giter VIP logo

ci-gha-workflow's Introduction

OpenCV: Open Source Computer Vision Library

Resources

Contributing

Please read the contribution guidelines before starting work on a pull request.

Summary of the guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.

Additional Resources

ci-gha-workflow's People

Contributors

alalek avatar aleksandrpanov avatar asenyaev avatar asmorkalov avatar davidmartos96 avatar dkurt avatar fengyuentau avatar hipudding avatar kaingwade avatar mshabunin avatar zihaomu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ci-gha-workflow's Issues

Jobs triggered by a commit in a PR are cancelled because of ${{ github.workflow }} gives the parent workflow name instead of the child workflow name

The bug is introduced in #78 , where ${{ github.workflow }} is used to set group name with the workflow name. However, ${{ github.workflow }} returns the parent workflow name, making all jobs triggered by a commit in a PR will lineup together.

For example, in https://github.com/opencv/opencv/actions/runs/3477363324, the Annotations section shows the group name of concurrency is PR:4.x-refs/pull/22814/merge (PR:4.x is the name of https://github.com/opencv/opencv/blob/4.x/.github/workflows/PR-4.x.yaml), but the expected return values of ${{ github.workflow }} should be OCV PR:4.x ARM64, OCV PR:4.x U20 and more (workflow files in this repo). So one job in this lineup will keep running but others will be cancelled.

Security risks in OpenCV actions?

echo "PR Author: ${{ env.PR_AUTHOR }}"
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"

Is it safe to use injections here via env var? I suppose once SOURCE_BRANCH_NAME and other env vars are created, they should be referenced simply as $SOURCE_BRANCH_NAME, otherwise it may not have proper effect.

Please, see Remediation section as a reference.

Android 4.x Build Doubled in Size

If you compare the build artifacts from these 2 runs

  1. https://github.com/opencv/ci-gha-workflow/actions/runs/6345578976
  2. https://github.com/opencv/ci-gha-workflow/actions/runs/6425845547

The first is much bigger than the second. One big difference between the 2 is OpenCV-android-sdk/sdk/native/libs/x86_64/libopencv_java4.so

The size of libopencv_java4.so is the same for all other architectures (armeabi-v7a, arm64-v8a, x86). For whatever reason it only doubled in size for x86_64.

OpenCV-android-sdk/sdk/native/libs/x86_64/libopencv_java4.so should be around 26 MB, but it ends up being over 52 MB

Continue running tests even if previous unit tests failed

I propose to continue running tests when build completes but previous unit tests fail. You can see from this log that GitHub Actions workflow stops once there is an error. However, for a workflow which completes building, stopping at one possible failed unit test is too inefficient.

An implementation to this feature can be as follows:

jobs:
  BuildAndTest:
    steps:
        # ...
        - name: Build OpenCV
           id: build-opencv # used as reference below
           run: #...
        # ...
        - name: Accuracy:core
          if: ${{ always() && steps.build-opencv.outcome == 'success' }}
          run: #...

This should work and show "failed" in overall page if one test fails.

What do you think? @alalek @asenyaev @asmorkalov

Reference:

IPP is randomly dropped from Android package

System Information

See https://github.com/opencv/opencv/releases

Detailed description

N/A

Steps to reproduce

N/A

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.