Giter VIP home page Giter VIP logo

ci-scripts's People

Contributors

adobes1 avatar hhorak avatar phracek avatar pkubatrh avatar praiskup avatar zmiklank avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ci-scripts's Issues

Invalid sender in sanity check mails

CI does not auto-rebase latest master changes.

Reviewing PR sclorg/s2i-ruby-container#316, we've hit a corner-case which uncovered this issue.

Problem

How to reproduce:

  • PR is created, on top of master branch.
  • In the meantime the master branch gets updated with non-conflicting changes (e.g. updating common scripts).
  • While reviewing the PR, issues are found, fix gets pushed and CI re-runs.
  • The CI gets the state of the current PR (with the master commits from that time), although there are additional non-conflicting changes.
  • Lack of the changes (some other fix) can cause the CI to fail, although it would pass when rebased.
  • The actual PR will get auto-rebased on merge.

In current state:

  • The manual rebase serves no purpose, apart from actually running the CI with correct state.
  • In most cases, the PR will not get rebased with latest changes, and the CI result is not the latest one (e.g. missing some tests added in previous PR).
  • Therefore the results from the CI do not reflect the "final state", IOW state that will occur when the PR gets merged, as it was auto-rebased.
  • The very next PR (with no changes) can actually fail, as some breaking changes could be merged when an outdated test suite (or common scripts) was used for testing the previous PR.

(Please to correct me if I'm mistaken.)

Solution

I'd simply "auto-rebase" for the PR testing (rebase on latest origin/master), not just for the actual merge. This is the cleanest and most accurate solution. I did actually expect that behaviour, and I think it's a correct one.

In case when auto-rebase is not possible, the CI should not run either way.
I don't think the current state has any benefits. Are there some corner cases that I've missed?

Previously resiliency was listed as a reason to keep current state. This change would not do any difference in that state, as only the commits already in this repo are used. IOW container-common-scripts does not get auto-updated for CI testing, and any faulty change commited there will not be propagated, unless actually merged in this repo.

Bottom line, updating the 'common' commit (or any other change) is not a part of the PR, and always rebasing to the latest commit is not a requirement for merge as of now (because of the auto-rebase), unless the change is a conflicting one. F.e. gitlab has a rebase button on the PR, as it doesn't do auto-rebase the PR.

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.