In the day 48 of MLOps challenge the verification includes:
-
GET /api/v1/repos/gitea-admin/fraud-detector/actions/artifacts returns at least one artefact.
but this api was not part of the gitlea version that is deployed in the lab : Powered by GiteaVersion: 1.22.3
Checked the swagger as well
That may well be true, but you won’t need that to complete the task; as long as you configure the required step of the CI script, the task will pass.
@rob_kodekloud even when the gitlea action completes successfully and generated the artefact, the verification of the task fails
added below in the data-quality.yml
- name: Upload Data Docs Artifact
uses: actions/upload-artifact@v3
with:
name: data-docs
path: gx/uncommitted/data_docs/local_site/`
I would go into gitea and check to see if the task actually ran successfully - the task does not accept some versions of actions/upload-artifact due to the available version of nodejs, and it must run. My step in the CI script was:
name: Push data docs tree as artifact
uses: actions/upload-artifact@v3
with:
name: data-docs
path: gx/uncommitted/data_docs/
Once the task passed and the artifact was uploaded:
It’s unclear if the PR needs to be merged, but I did so. In any event, the task passed as green.
@rob_kodekloud as mentioned previously the the task runs successfully in gitlea, the artefact also gets generated, but verification of task fails with following error
Not sure what’s up at your end. You merged the commit after the job succeeded?
Can you please include your edited version of data-quality.yml? I’ve done your lab, but do not get your error. So it would help to have a copy of your work I can run myself for comparison. Please use a code block so I get an uncorrupted copy of it.
name: Data Quality
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
data-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Great Expectations
run: |
pip install --break-system-packages \
great_expectations pandas numpy
- name: Run drift_check checkpoint
run: python3 -m src.gx_run
- name: Upload Data Docs Artifact
uses: actions/upload-artifact@v3
with:
name: data-docs
path: gx/uncommitted/data_docs/local_site/
Try changing that to “gx/uncommitted/data_docs/”, since
- That’s what they suggest in the task description and
- It was what I did, and the grader was happier.
that works - had added that because following was mentioned in the test
referencing gx/uncommitted/data_docs/ (or any descendant of it).