avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suraj Acharya <su...@apache.org>
Subject Re: Pre-Commit Build Jobs on Apache AVRO
Date Tue, 25 Apr 2017 18:18:25 GMT
I used a few terminology straight out of YETUS.
* Modules are usually sub projects. In our case every language has been
setup to be a module. Was a bit easier that way.
* One of the main tests it runs is ./build.sh on the module(language) which
had the change present. The determination of the change in language is done
by the YETUS system. Apart from build.sh it also checks whitespace and
asflicense issues.
* Once merged, when a ticket is converted to "Patch Available" the jenkins
job is triggered. It looks for either the GitHub bot comment mentioning the
location of the patch file or the patch file in the attachments. If any
changes are made and a new patch is submitted, then the job is retriggered.

Hope that helps


On Tue, Apr 25, 2017 at 1:45 AM, Gill, John <John.Gill@teradata.com> wrote:

> Suraj,
> Few questions for clarifications:
>     - What do you mean by module - Java, C, Python or like an individual
> code file?
>     - When you say, " ./build.sh test on the module you have made the
> change to" how does it determine this?
>     - Once merged what will trigger the PreCommit Build? Opening a PR?
> Submitting a Patch?
> Thanks,
> John
> ________________________________________
> From: Suraj Acharya [suraj@apache.org]
> Sent: Monday, April 24, 2017 7:15 PM
> To: dev@avro.apache.org
> Subject: Pre-Commit Build Jobs on Apache AVRO
> Hi,
> I have made an attempt and have setup a pre-commit job using the build
> system in apache.
> https://builds.apache.org/view/PreCommit%20Builds/job/
> PreCommit-AVRO-Build-TEST/
> I have tried to test most of the use cases when I was setting it up.
> The biggest usecase I have verified is java. I did run it against a few
> other language patches.
> The bot basically runs ./build.sh test on the module you have made the
> change to.  Hence, it is not recommended to make changes to multiple
> modules. It uses docker to run the tests in.
> Going forward I would like to hold every patch to a minimum of this level.
> A -1 from the bot should disqualify the patch from being submitted.
> If you believe there is a mistake in the bots response, either a positive
> or a negative please let me know.
> I hope no one has an issues with the setup.
> PS :
>    - Due to a known issue in YETUS (the underlying build test system) if
>    the GitHub bot doesn’t comment on the ticket, the test infrastructure
> will
>    fail to pick up that issue. There is work currently in progress on the
> said
>    issue. (YETUS-499)
>    - Currently the code (AVRO-1887) has not been merged to avro:master.
>    Hence, the code is being run on spacharya:master.
>    - This is my first attempt at setting up a pre-commit job, if you can
>    think of improvements or mistakes please let me know.
> Thanks
> Suraj Acharya

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message