Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with snapshot tagging in Step-2 #116

Open
requaos opened this issue Apr 27, 2018 · 4 comments
Open

Issue with snapshot tagging in Step-2 #116

requaos opened this issue Apr 27, 2018 · 4 comments
Labels
bug help wanted stale This issue has not been looked at by the reporter or the team in a long time...

Comments

@requaos
Copy link

requaos commented Apr 27, 2018

To my understanding these are now 'annotated' tags, which reference a hash with info which refers to another hash of the actual commit. So I read that this error is just seeing this, but why doesn't it know what to do with these? I may also be missing something:

Failed to tag mkstream 3993. Tag points to cb83d88e9325041f8ebd95680da13590be055f6b instead of 45af6d0e408cb7baecbd065a086935e6cc7fb44b
mkstream 3993. Tag rw_12.0.0.7 exists, re-creating on rw_qa_int at 45af6d0e
Failed to tag mkstream 3993. Tag points to cb83d88e9325041f8ebd95680da13590be055f6b instead of 45af6d0e408cb7baecbd065a086935e6cc7fb44b
Running time was  0:16:34.25
The script has encountered an exception, aborting!
Traceback (most recent call last):
  File "/db/neil/ac2git/ac2git.py", line 4075, in AccuRev2GitMain
    rv = state.Start(isRestart=args.restart, isSoftRestart=args.softRestart)
  File "/db/neil/ac2git/ac2git.py", line 3347, in Start
    self.ProcessTransactions()
  File "/db/neil/ac2git/ac2git.py", line 3123, in ProcessTransactions
    self.ProcessTransaction(streamMap=state["stream_map"], trId=tr, affectedStreamMap=transactionsMap[tr], prevAffectedStreamMap=prevAffectedStreamMap)
  File "/db/neil/ac2git/ac2git.py", line 2721, in ProcessTransaction
    raise Exception("Failed to create tag {branch} at {hash} (latest commit on {parentBranch}).".format(branch=branchName, hash=self.ShortHash(basisCommitHash), parentBranch=basisBranchName))
Exception: Failed to create tag rw_12.0.0.7 at 45af6d0e (latest commit on rw_qa_int).
Traceback (most recent call last):
  File "/db/neil/ac2git/ac2git.py", line 4095, in <module>
    AccuRev2GitMain(sys.argv)
  File "/db/neil/ac2git/ac2git.py", line 4075, in AccuRev2GitMain
    rv = state.Start(isRestart=args.restart, isSoftRestart=args.softRestart)
  File "/db/neil/ac2git/ac2git.py", line 3347, in Start
    self.ProcessTransactions()
  File "/db/neil/ac2git/ac2git.py", line 3123, in ProcessTransactions
    self.ProcessTransaction(streamMap=state["stream_map"], trId=tr, affectedStreamMap=transactionsMap[tr], prevAffectedStreamMap=prevAffectedStreamMap)
  File "/db/neil/ac2git/ac2git.py", line 2721, in ProcessTransaction
    raise Exception("Failed to create tag {branch} at {hash} (latest commit on {parentBranch}).".format(branch=branchName, hash=self.ShortHash(basisCommitHash), parentBranch=basisBranchName))
Exception: Failed to create tag rw_12.0.0.7 at 45af6d0e (latest commit on rw_qa_int).

Hoping it is something simple

@orao
Copy link
Collaborator

orao commented Sep 8, 2018

Searching through the code for the error message led me to the comments here which agree with your analysis.

A check could be added if the commitHash != objectHash to further check if the type of object is a tag, probably using something like git cat-file, and only failing if the actual commit is different. Or something along those lines.

However, I no longer have access to AccuRev and cannot validate any changes to this code so I will have to leave it to those using it to try and make the fix.

@orao
Copy link
Collaborator

orao commented Apr 17, 2019

If you are able to help fix this, pull requests are welcome.

@orao orao added the stale This issue has not been looked at by the reporter or the team in a long time... label Apr 17, 2019
@requaos
Copy link
Author

requaos commented Apr 17, 2019 via email

@orao
Copy link
Collaborator

orao commented May 1, 2019

Thanks for letting us know. I will leave this issue open as it might affect someone else in the future. I'm glad you were successful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted stale This issue has not been looked at by the reporter or the team in a long time...
Projects
None yet
Development

No branches or pull requests

2 participants