Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

feat: Added integration test workflow action - #4

Merged
Agrendalath merged 5 commits into
mainfrom
sathis/unit-test-git-action
May 15, 2023
Merged

feat: Added integration test workflow action#4
Agrendalath merged 5 commits into
mainfrom
sathis/unit-test-git-action

Conversation

@sathiscode

@sathiscode sathiscode commented May 10, 2023

Copy link
Copy Markdown
Contributor

Unit test workflow action is added to run automatically on PR

Merge checklist:
Check off if complete or not applicable:

  • Version bumped
  • Changelog record added
  • [NA] Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • [NA] Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

This workflow runs automatically on any PR and the results can be viewed in "Actions" table at the top of this page.

Note:
The branch name of section-to-course repo has to match edx-platform repo branch name. For example, section-to-course repo PR on branch open-release/nutmeg.master will be validated against open-release:nutmeg.master branch of edx-platfom.

The CI run will fail as this PR is to merge against section-to-course repo main branch. But there is no main branch in edx-platform repo.

Edit:
The CI run will fail as open-craft/opencraft-release/nutmeg.2 is not yet merged upstream.

2nd Edit:
The CI is updated to run only for nutmeg release. The master run is removed as the upstream changes are yet to be pushed.

@sathiscode
sathiscode requested review from Agrendalath and Kelketek and removed request for Kelketek May 10, 2023 19:31

@Kelketek Kelketek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sathiscode Glad to find you were able to locate code that can install and run the platform. Left some comments that should get you in the direction of making this work as expected for the team.

Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread section_to_course/__init__.py

@Agrendalath Agrendalath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sathiscode, the CI is currently failing.

Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread section_to_course/__init__.py
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
Comment thread .github/workflows/unit-tests.yml Outdated
@sathiscode
sathiscode force-pushed the sathis/unit-test-git-action branch from f2352d0 to d729c4a Compare May 12, 2023 00:17
Comment thread .github/workflows/integration-tests.yml
@sathiscode
sathiscode force-pushed the sathis/unit-test-git-action branch from 24cdfa5 to 9e27803 Compare May 12, 2023 18:29
@Kelketek

Copy link
Copy Markdown
Member

@sathiscode Have you rebased to the latest master of the repo?

I just realized the unit tests will certainly fail against upstream master currently since this PR isn't merged. But Nutmeg should pass if you're up to date, I'd think.

@sathiscode

Copy link
Copy Markdown
Contributor Author

@sathiscode Have you rebased to the latest master of the repo?

I just realized the unit tests will certainly fail against upstream master currently since this PR isn't merged. But Nutmeg should pass if you're up to date, I'd think.

@Kelketek Yes, I also just realized that upstream merge has not happened. The test are failing for both master & nutmeg. For nutmeg, are we expected always pull changes from open-craft/opencraft-release/nutmeg.2? Is this to bring in the drift changes?

@Kelketek

Copy link
Copy Markdown
Member

@sathiscode

For nutmeg, are we expected always pull changes from open-craft/opencraft-release/nutmeg.2? Is this to bring in the drift changes?

You'll just want to check out that branch directly-- you don't need to do anything to reconsile it with upstream. Upstream's nutmeg.2 branch is frozen. Our branch is based on it. If upstream cuts a revised Nutmeg branch, it will be called nutmeg.3, and we'll go through a process of rebasing our changes on it for our own Nutmeg.3 branch and then we'll need to update the target test branch here-- all of which is outside of the scope of this PR.

All you have to do right now is test against Nutmeg.2. For now, let's comment out the master tests, and just do tests against our own Nutmeg branch. Then I'll do a follow up when the upstream master PR is merged.

@sathiscode
sathiscode force-pushed the sathis/unit-test-git-action branch from 733ebf7 to 371a43a Compare May 12, 2023 19:04
@sathiscode

Copy link
Copy Markdown
Contributor Author

@Kelketek Sounds good. I'll make the changes and request for code review.

@sathiscode
sathiscode force-pushed the sathis/unit-test-git-action branch from 371a43a to 620a9a9 Compare May 12, 2023 19:10
@sathiscode
sathiscode requested a review from Agrendalath May 12, 2023 19:20
@sathiscode sathiscode changed the title feat: Added unit test workflow action feat: Added integration test workflow action May 12, 2023
Comment thread .github/workflows/integration-tests.yml
Comment thread .github/workflows/integration-tests.yml Outdated
Comment thread .github/workflows/integration-tests.yml Outdated
Comment thread .github/workflows/integration-tests.yml Outdated
Comment thread .github/workflows/integration-tests.yml Outdated
Comment thread .github/workflows/integration-tests.yml Outdated
Comment thread .github/workflows/integration-tests.yml Outdated
Comment thread .github/workflows/integration-tests.yml Outdated
Comment thread .github/workflows/integration-tests.yml Outdated
@Agrendalath
Agrendalath force-pushed the sathis/unit-test-git-action branch from 4fc19db to 799548a Compare May 15, 2023 14:38

@Agrendalath Agrendalath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

  • I tested this: checked that the integration tests are passing
  • I read through the code
  • I checked for accessibility issues: n/a
  • Includes documentation: n/a
  • I made sure any change in configuration variables is reflected in the corresponding client's configuration-secure repository: n/a

@Agrendalath
Agrendalath merged commit 6ddc689 into main May 15, 2023
@Agrendalath
Agrendalath deleted the sathis/unit-test-git-action branch May 15, 2023 14:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants