Commit Graph

34 Commits

Author SHA1 Message Date
Ciaran Liedeman
e69ec9d86d ci: add postgres13 to circleci (#962) 2020-11-19 11:16:23 +02:00
Ariel Mashraki
4cdfc7b57e integration: test json predicates in ci (#724) 2020-09-03 11:15:31 +03:00
Ariel Mashraki
e1fe2267bc go: bump go version to 1.15 (#674) 2020-08-18 11:37:01 +03:00
Alex Snast
7df2e02343 ci/lint: enabling goheader linter ensuring the existance of a license header in go files (#593)
Signed-off-by: Alex Snast <alexsn@fb.com>
2020-07-07 15:36:09 +03:00
Ariel Mashraki
abc4e63efb ci: change postgres12 listen port (#521) 2020-06-03 15:33:56 +03:00
Ariel Mashraki
8ea60d13a7 ci: upgrade postgres image (#519) 2020-06-02 17:04:52 +03:00
Ariel Mashraki
916099611b gotype/bool: support valuescanner in codegen (#517) 2020-06-01 21:45:20 +03:00
Alex Snast
60c90b3667 entc/gen/privacy: adding OnMutationOperation helper (#464)
Signed-off-by: Alex Snast <alexsn@fb.com>
2020-05-06 14:47:05 +03:00
Alex Snast
1b0e5ffaf4 entc/gen: simplify hook chain creation (#424)
* entc/gen: simplify hook chain creation

Signed-off-by: Alex Snast <alexsn@fb.com>

* circleci: upgrade orb versions

Signed-off-by: Alex Snast <alexsn@fb.com>
2020-04-07 08:11:33 +03:00
Ariel Mashraki
9cff230d34 entc/gen: temporary workaround for runtime.tmpl (#387)
* entc/gen: temporary workaround for runtime.tmpl

* ci: golangci version
2020-03-16 10:04:31 +02:00
Ariel Mashraki
7988d3084d entc/hooks: initial work for mutations and hooks (#377)
* entc/hooks: initial work for mutations and hooks

* ent/schema: adding policy to schema

* ent: change op string to uint

* entc: move entschema to runtime and enable smooth transition

* entc/privacy: adding privacy template

* all: goimports

* intg/hooks: mutation client/tx and basic schema tests

* ent/privacy: adding more verbose decisions

* entc/gen: edge-ids getter and additional tests

* all: regen assets

* entc/gen: fix client hookd propagation

* intg: add deletion example

* intg/privacy: remove old entschema package

* typed privacy

* ent/privacy: hooks shouldn't be called on privacy deny

* entc/gen: fix schema hooks invocation order

* remove read policy from public api

* update circleci go orb

Co-authored-by: Ariel Mashraki <ariel@mashraki.co.il>
2020-03-16 00:19:27 +02:00
Ariel Mashraki
c8940e6a5f ci: upgrade to mysql latest in integration (#331) 2020-02-08 20:54:09 +02:00
Ariel Mashraki
faf6c2f2f6 ci: initial work for migration-testing (#311)
Also generating new assets for new ci steps.
2020-01-22 21:20:18 +02:00
Ariel Mashraki
94866e213e ci: pin mysql8 to mysql 8.0.18 (not latest) (#293)
Following my bug report in MySQL issue tracker,
I've pinned MySQL8 version to be 8.0.18 until
we figure out if it's a bug or a new change that
we need to support.

Link: https://bugs.mysql.com/bug.php\?id\=98250
2020-01-16 13:20:25 +02:00
Ariel Mashraki
71221877ee ci: run tests twice for testing migration (#290) 2020-01-15 17:28:52 +02:00
Ariel Mashraki
822f7e3efe ci: run codegen and test examples on integration 2019-12-17 18:33:32 +02:00
Ariel Mashraki
3f76e83bcf ent/circleci: set specific postgres versions (#174)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/174

Integration tests are failing with latest images.

Reviewed By: idoshveki

Differential Revision: D18614385

fbshipit-source-id: 80239c943cbef3a3cc0227f8052b2bac8f816533
2019-11-20 05:40:03 -08:00
Ariel Mashraki
2d8e122226 circleci: add short-verbose option to gotessum
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/135

Reviewed By: alexsn

Differential Revision: D18247848

fbshipit-source-id: b6b774e1bae58ee705086e54415806155ba4b3b8
2019-10-31 10:16:00 -07:00
Ariel Mashraki
440a737d73 entc/integration: add postgress 10,11 for test cases
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/131

Reviewed By: alexsn

Differential Revision: D18199300

fbshipit-source-id: 2335f81ba67055934dddae22ec02f1bfb43162d0
2019-10-29 03:31:14 -07:00
Ariel Mashraki
21a58e94a3 entc/integration: test postgres schema creation
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/124

Reviewed By: alexsn

Differential Revision: D18117662

fbshipit-source-id: e8151f92e00f565db26f17f78ff46b132c46e425
2019-10-24 10:49:47 -07:00
Ariel Mashraki
3f1d942d3e ent/circleci: run codegen before running integration tests (#98)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/98

Make sure templates are valid.

Reviewed By: alexsn

Differential Revision: D17933466

fbshipit-source-id: 70dca88cfeaa9d04f21e6a9364642f65b05c7c19
2019-10-15 12:29:28 -07:00
Alex Snast
9983309eac ent/circleci: cache / restore go modules (#86)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/86

In addition rename run.deadline golangci-lint config to run.timeout

Reviewed By: a8m

Differential Revision: D17863321

fbshipit-source-id: f863bac6499ddd3066a3ec6e9f518c0d5156f117
2019-10-12 23:52:42 -07:00
Alex Snast
ce2bc07c1a ent/circleci: adding linter tests
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/80

Reviewed By: a8m

Differential Revision: D17837182

fbshipit-source-id: 9fb539fd6cebc064d2d2804bd52e0fbf413cfc93
2019-10-10 04:45:07 -07:00
Alex Snast
5c93cb823c ent/circleci: store go tests metadata (#63)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/63

Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1527

See https://circleci.com/blog/level-up-go-test-with-gotestsum/ for more info

Reviewed By: a8m

Differential Revision: D17761305

fbshipit-source-id: d16050b4e1825e8c23be5cc0a4b0dff80936b86a
2019-10-05 10:15:47 -07:00
Alex Snast
d581e01bb6 ent/circleci: drop goimports installation
Reviewed By: a8m

Differential Revision: D17761242

fbshipit-source-id: 7ebf67b59eed722ac329b5ab6a152140a013c64c
2019-10-05 10:15:47 -07:00
Alex Snast
397ff3b79d entgo/circleci: run integration tests from docker executer (#28)
Summary:
Switching to docker executer gives us:
- Faster execution times.
- Removes docker-compose dependency.
- Provides view into DB containers output.

Pull Request resolved: https://github.com/facebookincubator/ent/pull/28

Reviewed By: a8m

Differential Revision: D17210011

fbshipit-source-id: 71225939ef16194cf011ec47a5815b42918cbbbd
2019-09-08 04:31:04 -07:00
Alex Snast
06040fae1e ent/circleci: hide cloudfront distribution id echoed by create-invalidation command (#26)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/26

Example output:
```
> aws cloudfront create-invalidation --distribution-id $CDN_DISTRIBUTION_ID --paths "/*" | jq -M "del(.Location)"                                                                      alexsn@Titan
{
  "Invalidation": {
    "Id": "IXPTPF87PGPXA",
    "Status": "InProgress",
    "CreateTime": "2019-08-25T11:06:53.442Z",
    "InvalidationBatch": {
      "Paths": {
        "Quantity": 1,
        "Items": [
          "/*"
        ]
      },
      "CallerReference": "cli-1566731212-457274"
    }
  }
}
```

Reviewed By: a8m

Differential Revision: D17046012

fbshipit-source-id: a135e9d1cb106af298515b7caafc4a8b1ff6e291
2019-08-25 04:50:15 -07:00
Alex Snast
aaafde973b ent/docs: adding noncurrent version lifecycle rule
Reviewed By: a8m

Differential Revision: D16962458

fbshipit-source-id: 8362c9e0e1de3ca9bb5b49529b1609415f1fb137
2019-08-23 01:11:13 -07:00
Alex Snast
277eed5fd3 ent/circleci: fix docs modified check
Reviewed By: a8m

Differential Revision: D16943795

fbshipit-source-id: 7aae23ba56d3c3789a1d636cd3940d29cb0aab75
2019-08-21 12:07:33 -07:00
Alex Snast
4d79e3d674 ent/docs: adding indexer cloudfront edge lambda
Summary: Indexer adds /index.html to any subfolder requested from cloudfront

Reviewed By: a8m

Differential Revision: D16940085

fbshipit-source-id: 6bc561719bf12677625eb5f1575ba3f06d284c43
2019-08-21 11:30:16 -07:00
Alex Snast
8b345d94bb ent/docs: circleci docs deployment
Summary: keeping docs in sync with entgo.io

Reviewed By: a8m

Differential Revision: D16937603

fbshipit-source-id: 1e07111c3db77ed49a768fc1d369a5ca6df5810e
2019-08-21 07:53:24 -07:00
Ariel Mashraki
24d03df613 ent/ci: install goimports before running tests
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/16

Reviewed By: alexsn

Differential Revision: D16914392

fbshipit-source-id: 7f0fc01fb760b0712341810796d6539f549a9b5f
2019-08-20 06:07:08 -07:00
Ariel Mashraki
10b8c52363 ent/ci: change circleci config file name (#15)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/15

config.yaml -> config.yml

Reviewed By: idoshveki

Differential Revision: D16914130

fbshipit-source-id: b01c7c11840d9d820ada4b90fb338ad948da2acc
2019-08-20 01:21:15 -07:00
Ariel Mashraki
e0e754717e ent: change ent package name (#1338)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1338

Pull Request resolved: https://github.com/facebookincubator/ent/pull/14

Reviewed By: alexsn

Differential Revision: D16890825

fbshipit-source-id: 656baaa73f5debab08c849b6b9639caeec2a8ef1
2019-08-19 09:32:14 -07:00