Skip to content

test: insert record with enums array into schema (#14161) - #14560

Merged
WikiRik merged 1 commit into
sequelize:mainfrom
mike-usa:mike-usa--main--update-postgres-tests
May 27, 2022
Merged

WikiRik merged 1 commit into
sequelize:mainfrom
mike-usa:mike-usa--main--update-postgres-tests

Conversation

@mike-usa

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Please make sure to review and check all of these items:

  • Have you added new tests to prevent regressions?
  • Does yarn test or yarn test-DIALECT pass with this change (including linting)?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description Of Change

  • User.sync(), which references the schema, was executed before the schema exists
  • add an await before the schema is created to enforce sequencing/synchronocity
    Subtle style change:
  • remove word 'even' from test description

Addresses only PostgreSQL-portion of issue #14161

…lize#14161)

Explanation:
  - User.sync(), which references the schema, was executed before the schema exists
  - add an `await` before the schema is created to enforce sequencing/synchronocity
Subtle style change:
  - remove word 'even' from test description

Addresses only PostgreSQL-portion of issue sequelize#14161

@WikiRik WikiRik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch! Let's hope that this will indeed solve the flaky test

@WikiRik
WikiRik merged commit e0e929c into sequelize:main May 27, 2022
@mike-usa
mike-usa deleted the mike-usa--main--update-postgres-tests branch May 27, 2022 20:35
@ephys

ephys commented May 28, 2022 •

Copy link
Copy Markdown
Member

Hey :) Thanks for the PR!
It looks like this PR is only related to testing. The title of this PR used 'fix' as the commit type but 'fix' should only be used if it fixes a bug that is not internal (a bug that can impact users), as 'fix' commits are automatically listed in the changelog (same for 'feat').

NB: This is only about the PR title, as it's used as the name of the commit once we squash-merge the PR

Not to worry I'll update the commit message in our commit history, so this is not listed in the next release's changelog :)

@mike-usa

Copy link
Copy Markdown
Contributor Author

TY @ephys that's good to know -- maybe more opportunity to update CONTRIBUTING.md 😏 -- sorry for creating more work. I scoured the AngularJS commit recommendation and tried looking at the commit history. Would you recommend this as meta? I see ci, chore, build, and refactor(build). I imagine the more accurate I am, the less work you'll have to do with integrating/squashing commits.

Tangent

The AngularJS commit message document (linked in CONTRIBUTING) includes contradictory examples to their recommendations. For instance, it recommends to drop the past-tense like added in favor of add, but then use different verb tenses in the message-body. Small thing, but I found it amusing and thought others might too.

@WikiRik

WikiRik commented May 28, 2022

Copy link
Copy Markdown
Member

@ephys woops, did not notice that before merging 😅

@mike-usa test is fine, the ones we allow are mentioned in the package.json file; https://github.com/sequelize/sequelize/blob/main/package.json#L172-L182

ephys pushed a commit that referenced this pull request May 28, 2022
Explanation:
  - User.sync(), which references the schema, was executed before the schema exists
  - add an `await` before the schema is created to enforce sequencing/synchronocity
Subtle style change:
  - remove word 'even' from test description

Addresses only PostgreSQL-portion of issue #14161
@ephys

ephys commented May 28, 2022

Copy link
Copy Markdown
Member

I just updated the commit message
By the way, good catch on this!

@ephys ephys changed the title fix(postgres-test): insert record with enums array into schema (#14161) test: insert record with enums array into schema (#14161) May 28, 2022
@ephys

ephys commented May 28, 2022

Copy link
Copy Markdown
Member

maybe more opportunity to update CONTRIBUTING.md

Definitely :) I think our note about it is outdated. But there are also further changes I'd like to make:

  • We don't really care about the commit message itself, because we squash all commits from a PR. Only the PR title matters. We should consider removing conventional commits from our git hooks, and use something like https://github.com/marketplace/actions/conventional-pr-title instead.
  • Only feat and fix types are really important, because they are included in our changelog. All of the other commit types don't really have any purpose. We could consider simplifying them, as we have many of them and they overlap (build, chore, ci, refactor, style, test, meta). We could ban all of them except for meta (both short and generic). Maybe meta & test?
  • Similarly, the commit scope is only important for feat & fix commits because they're included in our changelog. I try to limit them to deps, types, and our list of dialect names (postgres, mysql, etc…).

rharriso pushed a commit to rharriso/sequelize that referenced this pull request Jun 3, 2022
…equelize#14560)

Explanation:
  - User.sync(), which references the schema, was executed before the schema exists
  - add an `await` before the schema is created to enforce sequencing/synchronocity
Subtle style change:
  - remove word 'even' from test description

Addresses only PostgreSQL-portion of issue sequelize#14161
vanthome pushed a commit to vanthome/sequelize that referenced this pull request Jun 12, 2022
…equelize#14560)

Explanation:
  - User.sync(), which references the schema, was executed before the schema exists
  - add an `await` before the schema is created to enforce sequencing/synchronocity
Subtle style change:
  - remove word 'even' from test description

Addresses only PostgreSQL-portion of issue sequelize#14161
evanrittenhouse pushed a commit to evanrittenhouse/sequelize that referenced this pull request Jun 13, 2022
…equelize#14560)

Explanation:
  - User.sync(), which references the schema, was executed before the schema exists
  - add an `await` before the schema is created to enforce sequencing/synchronocity
Subtle style change:
  - remove word 'even' from test description

Addresses only PostgreSQL-portion of issue sequelize#14161
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.

3 participants