Giter Site home page Giter Site logo

ci's Introduction

Mu2e/CI

CI test status pre-commit.ci status

A GitHub bot (@FNALbuild) which handles continuous integration and testing workflows for the Mu2e Offline software. It is inspired by CMS-BOT.

Thanks to Patrick Gartung (@gartung), and the authors of CMS-BOT.

Development

pre-commit

This repository uses pre-commit and pre-commit.ci to enforce code style and fix problems. pre-commit.ci will push fixes automatically to branches and pull requests.

Running a check locally

You will need pre-commit.

pip install pre-commit

To install commit hooks,

pre-commit install

pre-commit will check everything before a git commit operation.

To run and apply fixes,

pre-commit run --all

ci's People

Contributors

ryuwd avatar hcasler avatar pre-commit-ci[bot] avatar dependabot[bot] avatar rlcee avatar kutschke avatar macndev avatar resnegfk avatar pquentin avatar

Stargazers

 avatar Tao Lin avatar

Watchers

James Cloos avatar Andrei Gaponenko avatar David Brown avatar  avatar  avatar  avatar  avatar

ci's Issues

Properly support "test with" for mu2e_trig_config

Maybe this issue may require fixes in both this repo and Mu2e/codetools . I am not sure.

If you use the CI "test with" clause that includes a PR from mu2e_trig_config, it will work correctly but will generate an error message saying that there is no branch specified for the merge. It will then default to merging into HEAD, which is correct so long as we do not have other working branches in that repo. That is true for now but will not be in the medium term. For an example see:

Mu2e/Offline#1333 (comment)

The issue is to update the code in either CI and/or codetools to get the requested branch name and pass it to the section of codetools that uses it.

Update logic controlling CI on PRs by non-authors

In process_pr near

issue.create_comment(PR_AUTHOR_NONMEMBER)

rejects all CI requests if the author of the PR is not a member of the Mu2e GitHub organization. I would like to modify the logic to this:

  1. Members of the team fnalbuild-users may request a CI job using the comment mechanism, regardless of the membership status of the author.
  2. If the author of the PR is a member of the Mu2e GitHub organization,
    1. automatically run the CI at PR-create-time
    2. allow the author to request CI jobs using the comment mechanism
  3. If the author of the PR is a non-member of the Mu2e GitHub organization:
    1. do not automatically run the CI at PR-create-time
    2. do not allow the author to request CI jobs using the comment mechanism

Add a force option

The CI refuses to rerun the CI if, since the last CI run, there are neither intervening commits on the PR not changes to the HEAD of the repo. This means that if there is an external issue, such as a change to mu2e_trig_config or the DB server going down, we cannot rerun the CI.

We should add syntax to the CI launch command that forces the CI to run even if it would be blocked by those tests. I think it's OK if anyone who can relaunch the CI can also use the force option.

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.