Code Monkey home page Code Monkey logo

fireant's People

Contributors

deepsourcebot avatar fireant-ci avatar leetheod avatar lewismc avatar mjemnawaz avatar ufunnxagpm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lewismc

fireant's Issues

Build Dockerfile bug

Building the Dockerfile on the Apache server now causes the following error:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openjdk-11-jdk : Depends: openjdk-11-jre (= 11.0.9.1+1-1~deb10u2) but 11.0.11+9-1~deb10u1 is to be installed
                  Depends: openjdk-11-jdk-headless (= 11.0.9.1+1-1~deb10u2) but 11.0.11+9-1~deb10u1 is to be installed
�[91mE: Unable to correct problems, you have held broken packages.
�[0mThe command '/bin/sh -c apt-get update  && apt-get -y --no-install-recommends install ant="1.10.5-2" openjdk-11-jdk="11.0.9.1+1-1~deb10u2" git="1:2.20.1-2+deb10u3"  && apt-get clean  && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

The Dockerfile code has not been edited since 13 days ago, Jenkins pipeline runs started to fail 9 days ago. Cannot recreate this issue on local Jenkins pipeline.

Another warning that showed up that was not present during the last successful run, might not be related:

WARNING: You are using pip version 21.0.1; however, version 21.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

Merge docker branch into main

We need to merge the (very updated) docker branch into the main branch and start working directly off main for consistency and maintainability.

Project documentation

I'm currently trying to work out documentation for portions of Fireant with readthedocs.io and sphinx. More specifically, I aim to document what Fireant does and how it works, as well as instructions on how to properly install / run it. If there's a need or want for more information (Jenkins / Docker / Unit Test documentation) as well, I can look into that. I'll most likely need to connect with all team members to get a better understanding on how I should document different aspects.

The only documentation I currently posses is the Updating Dependencies Tutorial which I based off of Nutch Confluence pages. It's currently formatted as a google doc in our team drive. Since Fireant is an automated service, I'm not sure whether this documentation is necessary. Let me know if I should still make a PR for this / update the documentation with readthedocs

(DOK-DL3015) Avoid additional packages by specifying `--no-install-recommends`

Description

Avoid installing additional packages that you did not explicitly want. Problematic code: dockerfile FROM busybox RUN apt-get install -y python=2.7 Correct code: dockerfile FROM busybox RUN apt-get install -y --no-install-recommends python=2.7

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/fireant-bot/fireant/issue/DOK-DL3015/occurrences/

Active deepsource for fireant

Deepsource allows us to automate code reviews with static analysis. I want someone to take the lead on activating Deepsource so we can Identy and fix bug risks, anti-patterns, performance issues, and security flaws on every commit and pull request.

Set up webhook with new pipeline

Edit the settings of this github repository to set up a webhook that will notify Jenkins whenever a commit is pushed to this repository. Also create an explanation of how to configure the jenkins instance to work with the webhook.

Dockerhub credential in pipeline

Add or explain how to add a username/password credential for dockerhub on a jenkins instance so that the jenkins pipeline will execute successfully.

Duplicate dependency detection/delete logic

Currently, if a dependency that needs to be updated exists twice (or more times) in the same file, two (or more) separate pull requests are created. The desired behavior is to delete the duplicate dependencies and submit a single pull request for the dependency upgrade, noting in the pull request that this deletion was made.

Document Jenkins code

Add an explanation of the Jenkins pipeline to the Github wiki so others have a better idea of how it works and what it does.

(DOK-DL3009) Delete the `apt-get` lists after installing something

Description

Cleaning up the apt cache and removing /var/lib/apt/lists helps keep the image size down. Since the RUN statement starts with apt-get update, the package cache will always be refreshed prior to apt-get install. You can read more about it here. Note: Clean up must be performed in the same RUN …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/fireant-bot/fireant/issue/DOK-DL3009/occurrences/

Branch to our remote, pull request to remote

main.py should do the following for pull requests:
Sync/update fireant-ci/nutch fork to latest
Create branch/code changes in the fireant-ci/nutch fork
Create the pull request in apache/nutch

(DOK-DL3008) Pin versions in apt get install

Description

Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes in required packages. You can read more about it here Problematic code: dockerfile FROM busybox RUN apt-get install python Correct code: ```dockerfile FROM …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/fireant-bot/fireant/issue/DOK-DL3008/occurrences/

Add rule to deepsource to ignore BAN-B314

Add rule to deepsource to ignore BAN-B314 so that we are able to keep comments in the xml files. Using the "safe" defusedxml package, we do not retain comments. Also edit lines to make fireant correct again.

(PYL-W1510) Subprocess run with ignored non-zero exit

Description

subprocess.run uses a default of check=False, which means that a nonzero exit code will be ignored by default, instead of raising an exception. You can ignore this issue if this behaviour is intended. <!--more--> ## Examples: ### Bad practice: ```python # Nonzero exit code will be ignored here subprocess.run(['notify-send', '-u', …

Occurrences

There are 5 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/fireant-bot/fireant/issue/PYL-W1510/occurrences/

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.