Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub Actions Run Failure #68

Closed
wants to merge 13 commits into from
Closed

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 27, 2023

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement
    I created this PR to fix the failing GitHub Actions.## Description
    This PR fixes the GitHub Actions run failure by specifying the Node.js version in the GitHub Actions workflow file. The Node.js version is set to 16.14, which is the minimum required version for the project as specified in the 'package.json' file.

Summary of Changes

  • Created a new GitHub Actions workflow file '.github/workflows/main.yml'.
  • The workflow is triggered on every push and pull request to the 'main' branch.
  • The workflow has a job that runs on an Ubuntu-latest runner.
  • The job has steps to checkout the code, setup Node.js with version 16.14, install npm dependencies, and run the npm build script.

Please review the changes and let me know if any modifications are required.

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Rollback Files For Sweep

  • Rollback changes to .github/workflows/main.yml

@sweep-ai sweep-ai bot added the sweep label Dec 27, 2023
Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Sandbox Executions

@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 27, 2023
@kubbot
Copy link
Contributor

kubbot commented Dec 27, 2023

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Sandbox Executions

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

The GitHub Actions run failed with the following error logs:

The command:
Run alex-page/[email protected]
yielded the following error:
##[error]Could not find the column "In Progress" or project "OpenIM-V3.1"

Here are the logs:


Making changes according to plan... (step 2/3)

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

❌ Could not find files to change

Please join our Discord to report this issue.

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

The GitHub Actions run failed with the following error logs:

The command:
Run npm run build
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
> [email protected] build /home/runner/work/docs/docs
> docusaurus build

file:///home/runner/work/docs/docs/node_modules/@docusaurus/core/bin/docusaurus.mjs:30
process.env.BABEL_ENV ??= 'development';
^^^

SyntaxError: Unexpected token '??='
at Loader.moduleStrategy (internal/modules/esm/translators.js:149:18)
at async link (internal/modules/esm/module_job.js:67:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `docusaurus build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-12-27T04_03_19_251Z-debug.log

Making changes according to plan... (step 2/3)

Copy link

netlify bot commented Dec 27, 2023

Deploy Preview for openim-web ready!

Name Link
🔨 Latest commit f67724a
🔍 Latest deploy log https://app.netlify.com/sites/openim-web/deploys/65940a2d47341a00086c2eee
😎 Deploy Preview https://deploy-preview-68--openim-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

The GitHub Actions run failed with the following error logs:

The command:
Run npm run build
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
> [email protected] build
> docusaurus build

[INFO] Website will be built for all these locales:
- zh-Hans
- en
[INFO] [en] Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
[info] [webpackbar] Compiling Client
[info] [webpackbar] Compiling Server
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
[success] [webpackbar] Client: Compiled successfully in 59.07s
[success] [webpackbar] Server: Compiled successfully in 1.25m
[SUCCESS] Generated static files in "build".
[INFO] [zh-Hans] Creating an optimized production build...
[info] [webpackbar] Compiling Client
[info] [webpackbar] Compiling Server
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
[success] [webpackbar] Client: Compiled successfully in 1.01m
[ERROR] Docusaurus server-side rendering could not render static page with path /guides/gettingStarted/admin.
[success] [webpackbar] Server: Compiled with some errors in 1.28m


ReferenceError: Image4 is not defined
[ERROR] Unable to build website for locale zh-Hans.
[ERROR] Error: Failed to compile with errors.
at /home/runner/work/docs/docs/node_modules/@docusaurus/core/lib/webpack/utils.js:180:24
at /home/runner/work/docs/docs/node_modules/webpack/lib/MultiCompiler.js:554:14
[INFO] Docusaurus version: 2.4.1
at processQueueWorker (/home/runner/work/docs/docs/node_modules/webpack/lib/MultiCompiler.js:491:6)
at processTicksAndRejections (node:internal/process/task_queues:78:11)
Node version: v16.14.2

@cubxxw cubxxw closed this Jan 3, 2024
@cubxxw cubxxw deleted the sweep/github-actions-run branch January 3, 2024 09:15
@openimsdk openimsdk locked and limited conversation to collaborators Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants