Resolving Frontend Buildout Assessment Submission Issues

Modified on Wed, 15 Jan at 12:46 PM

Context


When implementing Frontend Buildouts, in order to pass assessments, it’s crucial to ensure that your code is not only functioning locally i.e. test cases are passing on the workspace but also correctly pushed to the remote repository for assessment. 

Many issues arise due to improper GIT operations or skipping necessary steps during submission. This guide will be helpful in identifying and resolving common problems, ensuring a smooth submission process.


---------------------------------------------------------------------------------------------------------------


Resolving Frontend Buildout Assessment Submission Issues


If your assessment tab shows “Couldn’t find any code …” for Frontend Buildouts, it could be due to the code not being pushed to the remote repository correctly. 


Follow these steps to resolve the above issue:


Step 1: Verify Test Cases are running successfully Locally

Step 2: Clone the repo

Step 3: Commit and push the updated files for assessment

Step 4: Confirm Successful Code Push


---------------------------------------------------------------------------------------------------------------


Step 1: Verify Test Cases are running successfully Locally


  1. Ensure all the test cases are passing in your Crio workspace to confirm the issue is not with the code itself.
  2. Run the following commands:
chmod +x run_assessment.sh

./run_assessment.sh

    This will execute the test cases locally. If any test cases fail, fix the errors before proceeding.


NOTE: If you are struggling to fix the errors, please raise a chat.

---------------------------------------------------------------------------------------------------------------


Step 2: Cloning the repo


If you try to copy the files directly into your workspace instead of properly cloning the repository, Git won’t recognize the remote origin. Please make sure, you have followed the below steps to clone the repo which is part of the setup milestone.


  1. Go to the workspace directory
    cd ~/workspace
  2. On enrollment of this buildout, you are assigned a personalized Gitlab repository where you can submit the project code which you can leverage to carry out the assessment. Clone the repository for the buildout you're facing issues with.NOTE: If you accidentally typed no instead of yes when prompted for host authenticity during cloning, authentication will fail. This can prevent other Git commands (like push) from working properly.Please make sure you have typed in yes. In case you already typed no, please run the command again and choose yes.
  3. Go into the cloned repository
    cd ~/workspace/faizan-criodo-ME_FE_BUILDOUT_XTABLE/
  4. We provide a default set of source files that you’ll need to add to your repository so that you can get started with coding right away. Setup the remote for the stubs repository
  5. Pull the code stubs for this Buildout ME


Now that you have cloned the repo, setup the remote and pull the stubs. Start implementing your code in this repo. After completing the project, test it locally as specified in Step 1 and then move to Step 3.


---------------------------------------------------------------------------------------------------------------


Step 3: Commit and push the updated files for assessment


  1. Use the following command to commit your code given in the Submit milestone
  2. Use the following command to push your code to the remote repository:
  3. During this step, if you are prompted with a message about the authenticity of the host. Please recheck step 2 and make sure the repo was properly cloned before executing this step.


---------------------------------------------------------------------------------------------------------------


Step 4: Confirm Successful Code Push


To ensure the remote repository has received your code, click on the link shown in the Submit your files milestone.


---------------------------------------------------------------------------------------------------------------


Summary

  • Ensure local test cases pass before attempting to push your code.
  • Clone correctly and Authenticate the host by typing yes when prompted during the initial cloning or the later push process.
  • Avoid copying files directly; always use git clone to set up your workspace properly and then add your code
  • Confirm that the remote repository reflects your latest changes after pushing the code.


By following the above steps, you can ensure the successful submission of your assessment.


If at this point, the tests pass locally but not in the assessment, please raise a Chat on the Crio Platform.






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article