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

Int test #5945

Merged
merged 6 commits into from
Jul 7, 2024
Merged

Int test #5945

merged 6 commits into from
Jul 7, 2024

Conversation

gc
Copy link
Collaborator

@gc gc commented Jul 7, 2024

Description:

Changes:

Other checks:

  • I have tested all my changes thoroughly.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to cdbb8b8 in 33 seconds

More details
  • Looked at 93 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. .env.test:1
  • Draft comment:
    The PR description is empty, which makes it difficult to understand the intent behind the changes. Please provide a detailed description of the changes and their purpose.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
2. docker-compose.yml:1
  • Draft comment:
    The robochimp service has been removed from the docker-compose.yml file, but the ROBOCHIMP_DATABASE_URL in the .env.test file still points to a PostgreSQL instance. This could lead to issues with integration tests as the database might not be properly set up. Please ensure that the database configuration is consistent and correct.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
3. src/lib/util/getOSItem.ts:1
  • Draft comment:
    The import of '../data/trophies' has been removed. If this module was providing necessary side effects or initializations, its removal could lead to unexpected behavior. Please confirm that this change does not affect other parts of the application relying on these side effects.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_VM91qRmZleHzzq37


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -32,6 +32,7 @@ async function main() {
console.log(`Finished run ${i + 1}/${runs}`);
}
} catch (err) {
console.log(execSync('docker-compose logs', { encoding: 'utf-8' }));
Copy link
Contributor

Choose a reason for hiding this comment

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

The addition of docker-compose logs in the catch block could potentially expose sensitive information in the logs. Ensure that no sensitive data is logged, or consider implementing more secure logging practices.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 0902161 in 41 seconds

More details
  • Looked at 77 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. .github/workflows/unit_tests.yml:41
  • Draft comment:
    The PR lacks a description and a comprehensive list of changes. Please provide a detailed description and enumerate the changes to help reviewers understand the context and purpose of the modifications.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
2. .github/workflows/unit_tests.yml:47
  • Draft comment:
    The change from yarn build --clean to yarn build:tsc removes the cleaning step from the build process. Ensure that this change does not lead to issues with stale files or artifacts from previous builds affecting the new build.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
3. tests/integration/setup.ts:62
  • Draft comment:
    Moving the CREATE EXTENSION IF NOT EXISTS intarray; SQL command to a beforeAll block is a good optimization, as it avoids unnecessary repetition and potential performance overhead.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The CREATE EXTENSION IF NOT EXISTS intarray; SQL command is moved from a function that was called after each test to a beforeAll block. This change means the extension is now created only once before all tests run, instead of after each test. This is generally a positive change as it reduces redundancy and potential performance overhead from repeatedly checking and potentially trying to create the extension after each test.

Workflow ID: wflow_gbuF8EQ6pzZrLgJ5


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -10,8 +10,7 @@ async function main() {
execSync('docker compose up -d --wait', { stdio: 'inherit' });
stopwatch.check('Docker compose finished.');

await sleep(3000);
stopwatch.check('Finished waiting.');
await sleep(100);
Copy link
Contributor

Choose a reason for hiding this comment

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

Reducing the sleep time from 3000ms to 100ms may not allow enough time for all Docker services to be fully operational before proceeding. Consider verifying if this reduced time is sufficient or if it might lead to race conditions or errors in the integration tests.

ellipsis-dev[bot]

This comment was marked as outdated.

@gc gc merged commit ab04929 into master Jul 7, 2024
4 checks passed
@gc gc deleted the inttestchanges branch July 7, 2024 23:31
gc added a commit that referenced this pull request Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant