Commit Graph

211 Commits

Author SHA1 Message Date
Feanil Patel
2e75ced467 Merge pull request #33186 from thezaeemaanwar/remove_badges_app
[DEPR]: lms/djangoapps/badges
2023-10-20 10:29:43 -04:00
Kyle McCormick
9c6e765bf6 test: run ./xmodule/ tests with CMS settings (#33534)
Currently, ./xmodule/ unit tests are only run with LMS settings. However,
./common/ and ./xmodule/ are run twice: once with LMS settings and once with
CMS settings.

Just like ./common/ and ./openedx/, the unit tests in ./xmodule/ validate
behavior in both LMS and CMS. So, order to fully test ./xmodule/, we should to
run its tests with CMS settings too.

This will enable us to better validate certain LibraryContentBlocks behaviors
being touched by https://github.com/openedx/edx-platform/pull/33263 which can't
be expressed under LMS settings.

Also in this commit:

* refactor: rename the shards to be clear whether they're running under LMS or CMS
* docs: correct comments regarding conditions under which codejail's
   test_cant_do_something_forbidden is skipped.
* test: update a unit test which was using the now-deleted library_sourced block to use
   library_content block instead.
2023-10-19 10:19:28 -04:00
Tim McCormack
443753d864 build: Only build and push ci-runner Docker image on origin repo (#33535)
I get a weekly CI failure email due to this scheduled workflow running on
my fork of edx-platform. Cancelling the job when it runs on a fork prevents
this.
2023-10-18 20:00:26 +00:00
thezaeemaanwar
0b3e4d73b6 feat!: Removed Badges App
fix: restored badges handlers

feat: remove FE code for badges

fix: resolved failing tests

fix: removed test case for badges app

fix: unused import error

fix: Response Field Count

fix: shareable account response length

fix: resolved PR comments

fix: revert settings override

feat!: Removed Badges App

fix: restored badges handlers

feat: remove FE code for badges

fix: resolved failing tests

fix: removed test case for badges app

fix: unused import error

fix: Response Field Count

fix: shareable account response length

fix: revert subscription badge
2023-10-18 20:30:04 +05:00
Feanil Patel
b7286d7415 Merge pull request #33274 from openedx/dependabot/github_actions/aws-actions/configure-aws-credentials-4
build(deps): bump aws-actions/configure-aws-credentials from 3 to 4
2023-10-12 10:56:09 -04:00
dependabot[bot]
f2db83530c build(deps): bump aws-actions/configure-aws-credentials from 3 to 4
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 3 to 4.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v3...v4)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-12 13:49:39 +00:00
dependabot[bot]
9e816e9754 build(deps): bump actions/download-artifact from 2 to 3
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-12 13:49:16 +00:00
dependabot[bot]
84f7fdfa2f build(deps): bump actions/setup-node from 2 to 3 (#32140)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 17:52:52 +05:00
dependabot[bot]
75bad83da2 build(deps): bump re-actors/alls-green from 1.2.1 to 1.2.2
Bumps [re-actors/alls-green](https://github.com/re-actors/alls-green) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/re-actors/alls-green/releases)
- [Commits](13b4244b31...05ac9388f0)

---
updated-dependencies:
- dependency-name: re-actors/alls-green
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 13:11:03 +00:00
dependabot[bot]
25b991c966 build(deps): bump actions/upload-artifact from 2 to 3 (#32139)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 12:51:21 +05:00
Zubair Shakoor
70f6f5ad9e fix: replaced mysql57 hosts with mysql80 (#33147) 2023-10-04 17:35:18 +05:00
Feanil Patel
c6dbe7608a build: Remove the Auto-merge automation.
This automation is not documented and has not been used in over seven
months. Remove references to it before we remove it from the
organization.

See https://github.com/openedx/axim-engineering/issues/898 for more
details.
2023-09-28 12:37:48 -04:00
Tim McCormack
e09555b561 build: Don't run the weekly upgrade workflow on forks (#33349)
I get a weekly CI failure due to having a fork of edx-platform. This
should stop that from happening.

Also:

- Dedent job name slightly so that the formatting is a little more standard
- Move the `uses` key up so that it's more obvious what's being called
2023-09-27 14:50:41 +00:00
Tim McCormack
8e513f01a1 build: Short-circuit the consistency check when no requirements changes (#33330)
This skips the `make compile-requirements` check when there have been
no changes under `requirements/**`, but it does so in a way that still
registers the action as having passed, not skipped. By doing so, we
can make it a required check while also avoiding the 5-6 minutes of
wasted worker time.

This commit also removes the activation on push-to-master, since we really
just need to check PRs. I don't expect there to be silent merge conflicts
with this check, so if it passes on a branch it should also pass on a
successful simple rebase or merge.

It would be nice if there was a way to declare success and exit early,
but GH hasn't implemented it: https://github.com/actions/runner/issues/662
Alternatively, it would be great if skipped checks could count as
fulfilling the branch protection rules, but no luck there.

The only alternative that uses GH's built-in paths/paths-ignore
feature would be to add a second workflow with the same job name and
the opposite path triggers and that always passes. It's not clear that
this would be any less fragile or confusing than the `git diff | grep`
and step-conditionals approach.
2023-09-25 17:02:29 +00:00
Rômulo Penido
e45460a2ce refactor: Move content_tagging django app so that CMS-only tests run (#33259) 2023-09-21 12:01:20 -07:00
Awais Qureshi
5e8decbd8e test: running django42 tests. (#33144) 2023-09-20 11:34:23 -04:00
Usama Sadiq
62e61cc78d build: add a composite migrations check (#33292) 2023-09-20 10:45:37 -04:00
Tim McCormack
1552ea0762 Add compile-requirements GH workflow and update requirements README (#33126)
Adds a GH workflow that will run `make compile-requirements` and create
a PR for it and overhauls the requirements README with info on how to
use the new workflows.

README changes:

- Group the workflow/makefile info under a new heading
- Switch to imperative for headings
- Move "Upgrade all dependencies" to end of list (uncommon for people to
  actually need this command, I suspect)
- Add "Add a dependency"
- Preamble about .in and .txt files and Mac vs. Linux, as well as about forks

Also, some style fixes to upgrade-one-python-dependency GH workflow:

- Fix indentation in inputs block
- Remove "-workflow" from job name (probably copied from another workflow)
- Wrap a long line
2023-09-18 17:32:51 +00:00
Tim McCormack
25b18e83cd build: Add missing Celery task decorators, and add CI check for it (#33154) 2023-09-15 20:03:04 +00:00
dependabot[bot]
59299ddb61 build(deps): bump aws-actions/configure-aws-credentials from 1 to 3 (#33107)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1 to 3.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1...v3)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 17:33:55 +05:00
Usama Sadiq
2ffcc1aa3f build: distinguish unit test and pylint successful checks (#32452)
We will be able to use these composite checks to block
PR merges instead of blocking on every single individual
unit test and pylint check.

Closes: https://github.com/openedx/edx-platform/issues/32238
2023-08-24 17:38:52 +00:00
Mohamed Akram
d83d769c6f chore: run js tests on all pull requests 2023-08-23 17:22:36 +02:00
Tim McCormack
595c94b795 build: Fail PR if requirements files are inconsistent (#32057)
We have a few situations where requirements files can become
inconsistent or cause unnecessary review churn in later `make upgrade`
runs either due to manual editing, inconsistent environments, or
incorrectly specified git dependencies. This will produce a failing
check for any PR that does not produce a clean run of `make
compile-requirements` on Linux.

Addresses https://github.com/openedx/edx-platform/issues/31372
2023-08-15 20:40:24 +00:00
salmannawaz
e4a1039144 Docker multi-arch images push for linux/amd64, linux/arm64 (#32686)
* fix: push docker multi-arch images

---------

Co-authored-by: Salman Nawaz <salman.nawaz@A006-01081.local>
2023-07-27 14:45:07 +05:00
Tim McCormack
77cef4cd07 build: Fix Axim oncall team reference in codeowners (#32800) 2023-07-24 14:16:29 +00:00
Mubbshar Anwar
4cd7c3b7bc revert: Removing save_far_later app directory (#32713)
This is the third phase of removing save_for_later app in which app directory would be removed from code.

VAN-1451
2023-07-19 14:59:05 +05:00
Kyle McCormick
24130fe260 test: disable docs build in CI, for now (#32741)
@feanil is overhauling the docs structure of edx-platform currently.
Recently, a change he made upped the docs build time from <15mins
to >40mins. Rather than revert the changes he is making, we're going
to take the docs build check out of CI for now. He plans to re-enable
the build check, but as a ReadTheDocs build, not a GitHub Action.
He's actively working on the docs, so he's not worried about any
regressions that may pop up while the check is disabled.

It's worth noting that the current docs check does not actually
publish its output anywhere.
2023-07-13 14:46:03 -04:00
Diana Huang
70822203a1 feat: Update migration command. (#32728)
We are planning on deprecating paver,
starting with paver update_db. This replaces a call
to paver with its replacement, `make migrate`.

https://github.com/openedx/devstack/issues/1085
2023-07-13 14:11:33 -04:00
Kira Miller
b9105a45d9 feat: upgrade github action to support pinned dependencies (#32619)
* fix: edx-enterprise downgrade

* fix: update script

* feat: upgrade action to support pinned dependecies

* Update .github/workflows/upgrade-one-python-dependency.yml

---------
2023-07-06 12:36:19 -06:00
Feanil Patel
82dde016f6 Merge pull request #32239 from openedx/feanil/migration_check
Migrate migration checks to `minimal.yml` config.
2023-06-15 11:06:14 -04:00
Matjaz Gregoric
bc8576a9bb chore: update PR template for Palm release 2023-06-15 08:31:20 +02:00
Feanil Patel
c32514a453 test: Test both mysql 5.7 and 8 in one workflow.
Now that we're using standard service containers, we can use a matrix to
test both the current supported versions in one job.  This should also
make it easier to test with future versions as we get ready to upgrade.
2023-06-12 15:06:15 -04:00
Feanil Patel
640e35e731 test: Change how we test migrations.
Use the default settings file and the minimal.yml config to build the
migrations.
2023-06-12 15:06:15 -04:00
dependabot[bot]
ddf32206af build(deps): bump thollander/actions-comment-pull-request from 1 to 2 (#32141)
Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 1 to 2.
- [Release notes](https://github.com/thollander/actions-comment-pull-request/releases)
- [Commits](https://github.com/thollander/actions-comment-pull-request/compare/v1...v2)

---
updated-dependencies:
- dependency-name: thollander/actions-comment-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 12:27:51 +05:00
dependabot[bot]
9249ea9f0c build(deps): bump actions/setup-python from 2 to 4 (#32136)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 18:57:19 +05:00
dependabot[bot]
b054e0d20d build(deps): bump actions/cache from 2 to 3 (#32138)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 18:56:40 +05:00
edX requirements bot
40dc6cb5d2 build: added reviewers in dependabot config (#32233) 2023-05-22 16:12:47 +05:00
Matjaz Gregoric
960781ea3f Merge pull request #32220 from openedx/mtyaka/fix-gh-test-shards
fix: update shard names for GH tests
2023-05-16 12:06:55 +02:00
Tim McCormack
2274b55ca0 feat: Add change-description field to upgrade-one-dep workflow (#32214)
This will allow people to optionally describe the dependency upgrade
without having to rewrite the auto-generated commit or edit the PR body.
(The PR body isn't even guaranteed to make it into the eventual merged
commit.)
2023-05-12 13:38:10 +00:00
Matjaz Gregoric
f0331ba813 fix: don't run test check when using GH runners 2023-05-11 09:06:08 +02:00
Matjaz Gregoric
2d2a3100f1 fix: update shard names for GH tests
Github hosted tests weren't working because shards were not up to date.
2023-05-11 08:29:31 +02:00
Feanil Patel
3dec975527 build: Monitor changes to minimal.yml
We don't want a lot of things to end up in minimal.yml so get tagged on
reviews of it.
2023-05-09 10:38:00 -04:00
Ahtisham Shahid
118ea3a024 feat: added enrollment api for notification config (#32162)
* feat: added enrollment API for notification config

* feat: added apps.py in notifications

* feat: added waffle flag for notification app

* feat: added proper docs for the API
2023-05-09 11:51:31 +05:00
Tim McCormack
b1f8b9339a build: Add upgrade-package Make target and workflow (#32131)
This adds a Make target that should simplify the common task of
upgrading a single dependency. Sometimes people manually edit the pin
files, which we would like to avoid; hopefully this will make it
easier for them to do the right thing.

The GitHub workflow should also make it easier for people on Mac to
recompile requirements in a Linux environment, reducing the number of
times spurious dependency changes show up in the pin files (due to
OS-dependent requirements.)

Also, separate upgrade/downgrade instructions and simplify the latter.
(Min constraints are rare and we usually move beyond them quickly.)
2023-04-27 13:44:47 +00:00
edX requirements bot
a2f1ad1f11 build: added dependabot config (#32039) 2023-04-26 19:17:52 +05:00
Matjaz Gregoric
76080a7377 Merge pull request #32053 from openedx/mtyaka/update-pr-template-palm
build: nudge devs about Palm release in github
2023-04-24 09:28:39 +02:00
Matjaz Gregoric
e212641257 build: nudge devs about Palm release in github
Remind devs that when they open PRs on edx-platform, that they should
backport their bug fixes to the Palm master branch
(and think about backporting to Olive as well).
2023-04-24 08:49:48 +02:00
Kyle McCormick
151c4fcfb2 build: move collectstatic ignore patterns into configuration (#31934)
Adds a tiny `openedx.core.djangoapps.staticfiles` app so that
static asset ignore patterns can be coded into configuration rather
than supplied on the command line or coded into pavelib.
Makes it easier to run static asset collection without Paver.

See ADR for details:
openedx/core/djangoapps/staticfiles/docs/decisions/0001-purpose-of-app.rst

Closes: https://github.com/openedx/edx-platform/issues/31658
2023-04-21 08:26:48 -04:00
Tim McCormack
66b8b1dd79 build: Remove workarounds for missing packages (#32088)
We'd prefer to install the OS packages rather than have these workarounds
for missing system libraries.
2023-04-18 18:29:52 +00:00
Usama Sadiq
0ec7b8cc30 fix: fix make upgrade job and _mysql issue (#32084)
* fix: upgrade pip & pip-tools versions
* fix: install libmysqlclient-dev system package again
* fix: skip reinstalling mysqlclient package
* fix: add pytz package constraint

---------

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2023-04-18 18:10:01 +05:00