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

BB-295 - bootstrap ts compilation #2337

Open
wants to merge 85 commits into
base: development/8.6
Choose a base branch
from

Conversation

jbertran
Copy link

@jbertran jbertran commented Oct 14, 2022

Outcome so far:

  • TypeScript is integrated in the build environment, and compiles to the dist folder
  • Jest is configured to use the mixed sources with on-the-fly compilation, and runs all tests that were run with mocha
  • Some test scripts pass:
    • unit
    • routes
    • retry

Remaining work is simply ensuring all other test suites pass (bonus: make them separate parallel steps in the build process, such that the work doesn’t need to be sequential).

Zenko Build: https://github.com/scality/Zenko/actions/runs/3822509132

@bert-e
Copy link
Contributor

bert-e commented Oct 14, 2022

Hello jbertran,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Status report is not available.

@bert-e
Copy link
Contributor

bert-e commented Oct 14, 2022

Incorrect fix version

The Fix Version/s in issue BB-295 contains:

  • 8.3.20

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 8.5.0

Please check the Fix Version/s of BB-295, or the target
branch of this pull request.

@jbertran jbertran force-pushed the improvement/BB-295-bootstrap-ts-compilation branch from 3f5f8fd to 5c27835 Compare October 14, 2022 14:19
@jbertran
Copy link
Author

/approve

@jbertran
Copy link
Author

/wait

@scality scality deleted a comment from bert-e Oct 14, 2022
@Kerkesni Kerkesni force-pushed the improvement/BB-295-bootstrap-ts-compilation branch 6 times, most recently from 7d247d7 to 7df7f4d Compare December 15, 2022 15:54
@Kerkesni Kerkesni force-pushed the improvement/BB-295-bootstrap-ts-compilation branch from 45cd2d7 to ff1f5dc Compare January 2, 2023 11:14
@Kerkesni Kerkesni changed the base branch from development/8.5 to development/8.6 January 2, 2023 11:14
@Kerkesni Kerkesni force-pushed the improvement/BB-295-bootstrap-ts-compilation branch from ff1f5dc to 4b4967b Compare January 4, 2023 15:21
@Kerkesni Kerkesni force-pushed the improvement/BB-295-bootstrap-ts-compilation branch from 4b4967b to 9f2483d Compare January 16, 2023 10:31
Dockerfile Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
tsconfig.json Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@Kerkesni Kerkesni requested a review from tmacro February 14, 2023 12:16
@Kerkesni Kerkesni force-pushed the improvement/BB-295-bootstrap-ts-compilation branch from 1e3adae to ef611a1 Compare February 14, 2023 12:19
httpServer.close();
async.parallel([
async.series([
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem to be strictly related to typescript/jest, is there a reason for this change?

@@ -42,7 +57,7 @@ describe('NotificationConfigManager ::', () => {
manager = new NotificationConfigManager(params);
const getCollectionStub = sinon.stub().returns({
// mock change stream
watch: () => new events.EventEmitter(),
watch: () => new MockChangeStream(),
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem to be strictly related to typescript/jest, is there a reason for this change?

tests/unit/OffsetLedger.spec.js Show resolved Hide resolved
tests/utils/syntheticbucketd/Dockerfile Outdated Show resolved Hide resolved
Comment on lines -125 to +126
consumer.unsubscribe();
consumer.pause();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change (and the subscribe/resume one)? Was the test wrong before?

tests/unit/RoleCredentials.spec.js Show resolved Hide resolved
tests/unit/RoleCredentials.spec.js Show resolved Hide resolved
tests/unit/RoleCredentials.spec.js Show resolved Hide resolved
lib/api/BackbeatAPI.js Show resolved Hide resolved
bert-e and others added 25 commits October 27, 2023 17:05
…p/octopus/w/8.7/bugfix/BB-455-clean-shutdown-backbeat-consumer
… and 'q/2458/8.6/bugfix/BB-455-clean-shutdown-backbeat-consumer' into tmp/octopus/q/8.7
…o tmp/octopus/w/8.7/feature/BB-452-delete-notification-versionid
- add eslint-plugin-jest for jest globals
- upgrade esling
- fix remaining lint issues
- provide minimal package.json
- move all files to tests/utils/syntheticbucketd
@francoisferrand francoisferrand force-pushed the improvement/BB-295-bootstrap-ts-compilation branch 2 times, most recently from 7083476 to 54273c6 Compare November 8, 2023 08:07
@francoisferrand francoisferrand force-pushed the improvement/BB-295-bootstrap-ts-compilation branch from 980f7e4 to 102140b Compare November 8, 2023 08:42
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.

8 participants