100 Days of devops day 31 issue

Hi KodeKloud Community Team,

I’m facing an issue with a Stratos Git stash task where the auto-validator marks the task as failed, even though the required steps were completed correctly.

Task Description

Restore stash@{1} from the repository and then commit and push the changes to origin.

Repository:

/usr/src/kodekloudrepos/cluster

Steps I Performed

  1. Navigated to the correct repository
  2. Verified stash entries using:
git stash list
  1. Restored the required stash using:
git stash pop stash@{1}

(stash was restored and removed successfully)
4. Verified restored file (welcome.txt)
5. Committed the changes
6. Pushed the commit to the remote origin successfully


Verification Outputs

Stash list (after restore):

git stash list
(no output)

Remote verification:

git log --oneline origin/master -1
f0e4a56 Restore stashed changes from stash@{1}

This confirms:

  • stash@{1} was restored and popped
  • Changes were committed
  • Commit exists on origin/master
  • Local and remote branches are in sync

Issue

Despite all validations passing locally and remotely, the task fails with:

required data not found under repo, seems like stashed changes were not restored

From my understanding, the Git workflow is correct and the stash restoration is clearly reflected in the commit pushed to the remote.


Request

Could someone please review this task or confirm if there is a known issue with the auto-validator for stash-related labs?

Happy to provide additional logs or screenshots if required.

Thank you for your help.

Not sure what happened by you. I tried your approach; it worked for me, assuming you did it as root and pushed the commit correctly.

Thanks! I ran it with root and the task suceeded