Commit Graph

361 Commits

Author SHA1 Message Date
Usama Sadiq
f7b6fcb6b4 build: upgrade edxapp docker image to python 3.11 (#34982)
* build: upgrade edxapp docker image to python 3.11
---------

Co-authored-by: Tim McCormack <tmccormack@edx.org>
2024-06-13 21:15:00 +05:00
Juliana Kang
0fc990cf08 chore: Upgrade moment-timezone to v0.5.45 (#34968)
REV-4067
2024-06-13 11:57:23 -04:00
Feanil Patel
3660503d2d build: Update dispatch workflows to also run with 3.11 2024-06-11 11:30:22 -04:00
Feanil Patel
63ff4966b9 build: Check consistencies with Python 3.11 now. 2024-06-11 11:30:22 -04:00
Kyle McCormick
a3bafb2ccd temp: build: compile python requirements with 3.8, not 3.11 (#34960)
We haven't quite dropped Py3.8 support yet, so we can't use these workflows if
they're compiling with 3.11:

* upgrade-one-python-dependency (upgrading a single, targeted dep)
* compile-python-requirements (recompiling all deps without upgrading)

So, we "downgrade" those workflows to use 3.8, for now. We should revert this
commit when we drop 3.8 support.

Note: The upgrade-python-requirements.yml workflow is still using 3.8, so this
commit will update the other workflows to match that one.
2024-06-10 15:50:06 -04:00
Feanil Patel
39a1369f74 Merge pull request #34549 from salman2013/salman/add-ci-check-python-dependencies
chore: Add github workflow and script to check python depencies source
2024-06-10 09:20:27 -04:00
salman2013
35f6f5041d fix: code improvement as per PR reivew comment 2024-06-10 17:10:05 +05:00
salman2013
6a526bb1d7 fix: fix test cases 2024-06-10 16:56:52 +05:00
salman2013
7ecf49e8ca fix: fix the comments as per PR review 2024-06-10 16:49:01 +05:00
Kyle McCormick
c3d158689c build: switch renovate.json to JSON5 for comment support (#34944)
Allows us to use comments to explain why we pin (ignore) certain deps.

Renovate docs ref: https://docs.renovatebot.com/configuration-options/#configuration-options

Closes https://github.com/openedx/edx-platform/issues/34940
2024-06-07 10:06:15 -04:00
Deborah Kaplan
b937fd4346 feat: temporarily prevent renovate from updating this package (#34938)
* feat: temporarily prevent renovate from updating this package

Minor (and therefore presumed-safe by renovate) version updates caused
an exception on some deprecated code. Marking this package as not-safe
for renovate until that code is removed, which  will happen quite soon.
see external (2U) ticket REV-4067 for details. cc @julianajlk

FIXES: APER-3502

* feat: adding a comment

attempting to add a comment explaining the ignored dependency

Co-authored-by: Kyle McCormick <kyle@axim.org>

---------

Co-authored-by: Kyle McCormick <kyle@axim.org>
2024-06-06 16:36:49 -04:00
Kyle McCormick
88a6855255 test: cancel old unit tests when a new PR commit is pushed (#34909)
Based on: 
* https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-and-the-default-behavior
* https://stackoverflow.com/questions/68418857/how-to-cancel-existing-runs-when-a-new-push-happens-on-github-actions-but-only
2024-06-05 08:26:04 -04:00
salman2013
87a7e879ae chore: add workflow to find dependencies 2024-06-05 17:04:57 +05:00
Feanil Patel
59cae77f36 Merge pull request #34837 from openedx/feanil/update_renovate
build: Update renovate config.
2024-06-04 13:03:18 -04:00
Kyle McCormick
b063dfc1ea test: always run aggregate unit test check (#34903)
When a shard of unit-tests.yml fails, we want the `success` job to be
maked "Failed" (not "Skipped"). That's because "Failed" blocks the PR
from merging, whereas "Skipped" does not. This change ensures that
`success` always runs to completion rather than being cancelled as soon
as a unit test shard fails or is cancelled.

From https://github.com/marketplace/actions/alls-green#options:

> Important: For this to work properly, it is a must to have the job always run,
> otherwise GitHub will make it skipped when any of the dependencies fail. In
> some contexts, skipped is interpreted as success which may lead to undersired,
> unobvious and even dangerous (as in security breach "dangerous") side-effects.

Closes https://github.com/openedx/edx-platform/issues/34789
2024-06-04 10:15:51 -04:00
Feanil Patel
34de5af6f5 build: Update renovate config.
Update the renovate config in edx-platform to match the standard config
in most of our other frontend repos, with the exception of 1 settings:

Given the size of edx-platform I want to limit the number of concurrent
renovate PRs to a very small number so that we don't overwhelm our CI
resources.  If we find that it would be useful to get more PRs at a
time, we can change this setting in the future.

We've also removed the `rebaseStalePRs` settings since that would be
extra costly on edx-platform for now.
2024-06-04 09:21:02 -04:00
Emad Rad
6c5b98087e chore: cleanup
- rst heading definitions
- indirect hyperlinks and code-blocks added for better readability
- MarkDown warnings resolved
- Yaml style issues fixed
2024-06-03 22:18:27 +03:30
Emad Rad
0c44a78fad chore: typos fixed 2024-06-03 22:11:05 +03:30
Irtaza Akram
11e8b8ba90 fix: verify-and-collect issues 2024-05-30 15:00:49 -04:00
Irtaza Akram
c22fbec6a9 fix: move collect-and-verify to unit-tests.yml 2024-05-30 15:00:49 -04:00
Irtaza Akram
b3185ffe7b fix: env for runner 2024-05-30 15:00:49 -04:00
Irtaza Akram
2506d9373a fix: test runner 2024-05-30 15:00:49 -04:00
Irtaza Akram
99248ae992 fix: review changes 2024-05-30 15:00:49 -04:00
Irtaza Akram
5a46a3aa0f fix: tests on forks 2024-05-30 15:00:49 -04:00
Irtaza Akram
6b5f11a79b fix: merged gh-hosted into gha 2024-05-30 15:00:47 -04:00
Irtaza Akram
a6755edcbb fix: remove sudo for pip specific commands 2024-05-30 15:00:33 -04:00
Irtaza Akram
f6f75b428c fix: lynx dependency 2024-05-30 15:00:33 -04:00
Irtaza Akram
e428dd4511 fix: update github actions & remove edx runner 2024-05-30 15:00:30 -04:00
Feanil Patel
f12cd32fce Merge pull request #34858 from openedx/dependabot/github_actions/supercharge/mongodb-github-action-1.11.0
build(deps): bump supercharge/mongodb-github-action from 1.7.0 to 1.11.0
2024-05-30 14:53:02 -04:00
Feanil Patel
4085066fea Merge pull request #34417 from qasimgulzar/qasim/DEPR/git-issue-34342
[DEPR]: Remove Neo4J Support #34342
2024-05-28 10:25:33 -04:00
dependabot[bot]
36da5283c2 build(deps): bump supercharge/mongodb-github-action from 1.7.0 to 1.11.0
Bumps [supercharge/mongodb-github-action](https://github.com/supercharge/mongodb-github-action) from 1.7.0 to 1.11.0.
- [Release notes](https://github.com/supercharge/mongodb-github-action/releases)
- [Changelog](https://github.com/supercharge/mongodb-github-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/supercharge/mongodb-github-action/compare/1.7.0...1.11.0)

---
updated-dependencies:
- dependency-name: supercharge/mongodb-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-27 04:58:12 +00:00
Max Sokolski
a96078c1f1 Merge pull request #34807 from raccoongang/max/update-pr-template-redwood
build: nudge devs about Redwood release in github
2024-05-24 20:42:40 +09:00
Max Sokolski
d88732fbe0 build: update nudge text for devs
Add link to the Support Development Guidelines
regarding the currently supported releases.
2024-05-23 11:59:55 +03:00
Kyle McCormick
69e5fa4227 test: check both dev and prod asset builds using npm run (#34836)
This switches the static asset check over from the deprecated
paver commands to the new 'npm run build' command. Doing so allows us
to check both the prod AND dev build, whereas before we were only
checking the prod build.

Please note that, as before, the "check" is only ensuring that the build
returns 0. It is not checking the contents of the build output.

Closes: https://github.com/openedx/edx-platform/issues/34834
2024-05-22 09:40:37 -04:00
Kyle D. McCormick
f820961de5 test: actually unit test and lint remaining pavelib modules
We haven't unit-tested or linted these modules ever since testing was
moved from Jenkins to GitHub Actions.
2024-05-21 15:14:38 -04:00
qasim.gulzar
48cdbce893 refactor: [DEPR]: Neo4J Support #34342 2024-05-17 18:55:16 +05:00
Feanil Patel
17596bf70e fix: Check consistency with python 3.8
We need to do this until we're ready to compile requirements with python
3.11 some time next week.
2024-05-14 11:04:05 -04:00
Feanil Patel
4687dae487 build: Drop testing with Mongo 4.4 and Python 3.8 2024-05-14 09:25:18 -04:00
Feanil Patel
ff6edf0791 fix: Correct shard count verification.
The test count was off because without warnings disabled, it was also
counting warning lines as tests.

The `head -n -2` grabs everything but the last two lines which contain a
count (not sure why this isn't used).  If you run without
`--disable-warnings` this will include any warnings that occur during
test collection which we don't want in this case.
2024-05-08 23:00:48 -04:00
Feanil Patel
c66f28dcee fix: Add a trailing wildcard because we don't use an exact path.
We were seeing the following error:

```
  /usr/bin/git add -- requirements scripts/**/requirements
  fatal: pathspec 'scripts/**/requirements' did not match any files
```

Once we introduce wildcards, the whole path needs to be valid so adding
a trailing wildcard to catch all the relevant directories and files.
2024-05-07 12:32:40 -04:00
Feanil Patel
b9623833c8 fix: Ensure depedency checks run on script requirements as well. 2024-05-06 14:43:17 -04:00
Feanil Patel
1d23fc1089 fix: Include script requirements in upgrade.
The `upgrade-one-python-dependency` workflow would fail if there were
changes in the scripts directory because they wouldn't get added to the
PR.  Update the list of `add-paths` for the workflow so that it doesn't
fail like this in the future.
2024-05-06 14:43:17 -04:00
Kyle McCormick
e6610f5ece test: only run Mongo 4.4 tests on xmodule directory (#34683)
Cuts the number of unit test checks from 64 down to 34

Also, we rename test contexts so that they're easier to read in GHA.
2024-05-06 14:37:38 -04:00
farhan
9777e3a7cf chore: put the geolite database workflow to cron
- Run the workflow on 1st of every month
2024-05-05 12:00:41 +05:00
farhan
4db6082539 fix: remove reviewer from update-geolite workflow to fix issue 2024-05-02 19:40:07 +05:00
Feanil Patel
8f4cbeadc4 Merge pull request #34576 from farhan/farhan/move-geoipupdate-script
Adds geoip maxmind database upgrade github workflow
2024-05-02 10:05:44 -04:00
farhan
6eacf3a5b1 chore: Address PR change requests 2024-05-02 12:34:25 +05:00
farhan
70af2048d4 feat: Move geoipupdate script from ecommerce-scripts repo
* Ticket: https://github.com/openedx/axim-engineering/issues/1046
2024-05-02 12:34:24 +05:00
Feanil Patel
325a7b91b2 build: Update more workflows to test on Python 3.11 2024-05-01 10:23:34 -04:00
Feanil Patel
e9d716375f build: Update to allow tests to run on python 3.11
* Update so tox will allow running on the new version.
* Update so the hosted runner actually respects the python version in
  the matrix
2024-05-01 10:23:34 -04:00