Coder Social home page Coder Social logo

Comments (3)

harshad16 avatar harshad16 commented on August 17, 2024 2

During the release of an application with help of thoth bots, involves kebechet and aicoe-ci bot application, which works together to release the application.
kebechet function to update the version string based on release type major/minor/patch and create a changelog w.r.t to the previous version tag available.
aicoe-ci once a new tag is available, aicoe-ci creates a build based on the details described in the configuration file.

The new major release issue was stuck because kebechet was trying to update the version string and create a changelog.
During the creation of the changelog, it looked for a previous version tag, as there was no version tag. It started to accumulate all logs from the beginning. The process was blocked, as kebechet function of getting the log, errored out with a fatal issue of unknown revision.

Error message:

  cmdline: git log --format=%s --no-merges c71cd82c2339a7b675d7caca79a4a47c4c68a64b
601b8f897354a47470a893a84043fada54c28c9f..HEAD
  stderr: 'fatal: ambiguous argument 'c71cd82c2339a7b675d7caca79a4a47c4c68a64b
601b8f897354a47470a893a84043fada54c28c9f..HEAD': unknown revision or path not in the working tree.

there seems to be some commit issue in the git tree. More investigation is required to actually resolve this git tree unknow commit revision issue.

However, if the maintainer is satisfied with a small changelog, then the hack to resolve this issue to create a previous minor tag
on an older commit, which in turn would help kebechet create a small changelog and not looking over the whole git tree but a subset.

This approach was used and @tumido created a minor tag with an older commit. https://github.com/aicoe-aiops/mailing-list-analysis-toolkit/releases/tag/v0.1.0

The release is fixed with this fix, #21
#16

from mailing-list-analysis-toolkit.

tumido avatar tumido commented on August 17, 2024 2

Thank you @harshad16 for you time and brainpower on this! 🥇 It is very appreciated! 🚀

The git tree issue comes from merging the template repo changes for the first time while not having a previous release it seems.

Kebechet resolved 2 repository root commits - c71cd82 (from this repo) and 601b8f8 (from the template). Which lead to the incorrect command executed by Kebechet:

git log --format=%s --no-merges c71cd82c2339a7b675d7caca79a4a47c4c68a64b 601b8f897354a47470a893a84043fada54c28c9f..HEAD

only one commit range is allowed in git log, Kebechet tried to fetch 2. Probably some variable expansion gone wrong.

from mailing-list-analysis-toolkit.

tumido avatar tumido commented on August 17, 2024 1

This issue was resolved via a workaround and bots are helping on release of this repo again. I'm closing this issue now, appropriate bug reports should be tagged with this issue already so the great explanation and root cause documentation doesn't get lost. 🙂

from mailing-list-analysis-toolkit.

Related Issues (20)

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.