Giter Club home page Giter Club logo

Comments (3)

Borda avatar Borda commented on May 15, 2024

seems GH CLI does not offer a simple list of changed files, but this could work:

git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD main)

see: https://stackoverflow.com/a/25071749/4521646

OR from the same discussion use GH API:

get https://api.github.com/repos/PyTorchLightning/ecosystem-ci/pulls/7/files

which gives:

[{
        "sha": "fa3ac999d0ae5a728123ab555262ed68a1071efa",
        "filename": ".azure/ci-testig-parameterized.yml",
        "status": "modified",
        "additions": 1,
        "deletions": 0,
        "changes": 1,
        "blob_url": "https://github.com/PyTorchLightning/ecosystem-ci/blob/1cca821a70316c64dd1f6792971b0c2c0320de02/.azure/ci-testig-parameterized.yml",
        "raw_url": "https://github.com/PyTorchLightning/ecosystem-ci/raw/1cca821a70316c64dd1f6792971b0c2c0320de02/.azure/ci-testig-parameterized.yml",
        "contents_url": "https://api.github.com/repos/PyTorchLightning/ecosystem-ci/contents/.azure/ci-testig-parameterized.yml?ref=1cca821a70316c64dd1f6792971b0c2c0320de02",
        "patch": "@@ -21,3 +21,4 @@ jobs:\n     - \"PyTorchLightning/metrics_pl-release.yaml\"\n     - \"PyTorchLightning/flash_pl-master.yaml\"\n     - \"PyTorchLightning/flash_pl-release.yaml\"\n+    - \"NVIDIA/nemo-release.yaml\""
    },
    {
        "sha": "4c4f6749721d54df289ddf72a53325016f1b9b87",
        "filename": ".github/workflows/ci_testing.yml",
        "status": "modified",
        "additions": 1,
        "deletions": 0,
        "changes": 1,
        "blob_url": "https://github.com/PyTorchLightning/ecosystem-ci/blob/1cca821a70316c64dd1f6792971b0c2c0320de02/.github/workflows/ci_testing.yml",
        "raw_url": "https://github.com/PyTorchLightning/ecosystem-ci/raw/1cca821a70316c64dd1f6792971b0c2c0320de02/.github/workflows/ci_testing.yml",
        "contents_url": "https://api.github.com/repos/PyTorchLightning/ecosystem-ci/contents/.github/workflows/ci_testing.yml?ref=1cca821a70316c64dd1f6792971b0c2c0320de02",
        "patch": "@@ -27,6 +27,7 @@ jobs:\n           - {os: \"ubuntu-20.04\", python-version: \"3.8\", config: \"PyTorchLightning/metrics_pl-master.yaml\"}\n           - {os: \"ubuntu-20.04\", python-version: \"3.9\", config: \"PyTorchLightning/transformers_pl-master.yaml\"}\n           - {os: \"ubuntu-20.04\", python-version: \"3.8\", config: \"PyTorchLightning/flash_pl-master.yaml\"}\n+          - {os: \"ubuntu-20.04\", python-version: \"3.8\", config: \"NVIDIA/nemo-release.yaml\"}\n         exclude:\n           - {os: \"windows-2019\", config: \"PyTorchLightning/transformers_pl-release.yaml\"}\n     # Timeout: https://stackoverflow.com/a/59076067/4521646"
    },
    {
        "sha": "390b3284d872b95626095a986199acc18fe601f0",
        "filename": "configs/NVIDIA/nemo-release.yaml",
        "status": "added",
        "additions": 24,
        "deletions": 0,
        "changes": 24,
        "blob_url": "https://github.com/PyTorchLightning/ecosystem-ci/blob/1cca821a70316c64dd1f6792971b0c2c0320de02/configs/NVIDIA/nemo-release.yaml",
        "raw_url": "https://github.com/PyTorchLightning/ecosystem-ci/raw/1cca821a70316c64dd1f6792971b0c2c0320de02/configs/NVIDIA/nemo-release.yaml",
        "contents_url": "https://api.github.com/repos/PyTorchLightning/ecosystem-ci/contents/configs/NVIDIA/nemo-release.yaml?ref=1cca821a70316c64dd1f6792971b0c2c0320de02",
        "patch": "@@ -0,0 +1,24 @@\n+target_repository:\n+  HTTPS: https://github.com/NVIDIA/NeMo.git\n+  # checkout a particular branch or a tag\n+  checkout: main\n+  # define installing package extras\n+  install_extras: all\n+  # copy some  test from the target repository\n+  copy_tests:\n+    - tests\n+\n+before_install:\n+  - sudo apt-get install libsndfile1\n+\n+dependencies:\n+  - name: pytorch-lightning\n+    HTTPS: https://github.com/PyTorchLightning/pytorch-lightning.git\n+    checkout: release/1.5.x\n+    install_extras: loggers\n+\n+testing:\n+  dirs:\n+    - tests\n+  # additional pytest arguments\n+  pytest_args: -m \"not pleasefixme and not torch_tts\" --cpu --with_downloads --relax_numba_compat"
    },
    {
        "sha": "5699b2c67914e648e1ec6fbb13c86729e0d34bf8",
        "filename": "requirements.txt",
        "status": "modified",
        "additions": 1,
        "deletions": 0,
        "changes": 1,
        "blob_url": "https://github.com/PyTorchLightning/ecosystem-ci/blob/1cca821a70316c64dd1f6792971b0c2c0320de02/requirements.txt",
        "raw_url": "https://github.com/PyTorchLightning/ecosystem-ci/raw/1cca821a70316c64dd1f6792971b0c2c0320de02/requirements.txt",
        "contents_url": "https://api.github.com/repos/PyTorchLightning/ecosystem-ci/contents/requirements.txt?ref=1cca821a70316c64dd1f6792971b0c2c0320de02",
        "patch": "@@ -1,3 +1,4 @@\n+Cython  # some projects need it for compiling\n fire>=0.4\n PyYAML>=5.3\n coverage>=5.0"
    }
]

from ecosystem-ci.

Borda avatar Borda commented on May 15, 2024

Github actions:

we can set one job for all which would be determining changed configs and set it as output,

with if job run:

from ecosystem-ci.

Borda avatar Borda commented on May 15, 2024

Azure pipelines:

conditional skip for jobs:

sharing job outputs:

from ecosystem-ci.

Related Issues (13)

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.