Commit Graph

400 Commits

Author SHA1 Message Date
Abhijeet Patil
5722de49f7 updated the syntax of filter 2024-01-20 22:32:30 +00:00
Abhijeet Patil
b133754121 updated the syntax of filter 2024-01-20 21:35:38 +00:00
Abhijeet Patil
80c374d37f updated the syntax of filter 2024-01-20 16:24:17 +00:00
Abhijeet Patil
acc33173d6 updated the syntax of filter 2024-01-20 16:05:12 +00:00
Abhijeet Patil
8e7a092719 updated the syntax of filter 2024-01-20 15:48:27 +00:00
Abhijeet Patil
5c7dc73919 updated the syntax of filter 2024-01-20 15:41:23 +00:00
Abhijeet Patil
f4c5311d90 updated the syntax of filter 2024-01-20 15:07:56 +00:00
Abhijeet Patil
1e9f2ba188 added skip filter to nextest 2024-01-19 22:10:53 +00:00
Abhijeet Patil
ecb2129f96 skipping failing test for now 2024-01-19 21:59:58 +00:00
Abhijeet Patil
5882011d65 fixing build 2024-01-19 21:31:03 +00:00
Abhijeet Patil
96b61368aa added cargo builds 2024-01-19 19:24:04 +00:00
Abhijeet Patil
51b261f1de restoring to clang changes 2024-01-19 19:22:04 +00:00
Abhijeet Patil
1ad2641714 fixing test 2024-01-19 18:20:14 +00:00
Abhijeet Patil
757592cca2 testing other components 2024-01-19 15:13:57 +00:00
Abhijeet Patil
fc5f0812d3 added pg config run for 14 and 15 2024-01-19 14:30:11 +00:00
Abhijeet Patil
739b2f1fdf added some debug indo 2024-01-19 11:50:14 +00:00
Abhijeet Patil
e0b5895d5a added some debug indo 2024-01-19 11:32:26 +00:00
Abhijeet Patil
8ac7061888 added linker to env variable 2024-01-19 11:32:26 +00:00
Abhijeet Patil
bf391c4881 reverting get header job to its original state 2024-01-19 11:32:26 +00:00
Abhijeet Patil
7978c620e6 fixed build 2024-01-19 11:32:26 +00:00
Abhijeet Patil
d7bcc1805a disabled rustflag 2024-01-19 11:32:26 +00:00
Abhijeet Patil
955402d2d6 disabled rustflag 2024-01-19 11:32:26 +00:00
Abhijeet Patil
f19a8cecf0 removing the nextest filter 2024-01-19 11:32:26 +00:00
Abhijeet Patil
55f549a404 chaning debug build to gcc 2024-01-19 11:32:26 +00:00
Abhijeet Patil
d698a7d1b1 reverting back the debug compiler to clang 2024-01-19 11:32:26 +00:00
Abhijeet Patil
60202936fe testing if debug build will work with gcc 2024-01-19 11:32:26 +00:00
Abhijeet Patil
d22ccd2392 fixing build 2024-01-19 11:32:26 +00:00
Abhijeet Patil
af9c10c319 fixing build 2024-01-19 11:32:26 +00:00
Abhijeet Patil
3ea0e13401 adding back the clang compiler for postgres headers 2024-01-19 11:32:26 +00:00
Abhijeet Patil
8fbeb7dc6f removing clang cc from headers 2024-01-19 11:32:26 +00:00
Abhijeet Patil
53f4b347a1 setting compiler to clang for debug and to gcc for release 2024-01-19 11:32:26 +00:00
Abhijeet Patil
c4dba3577f setting compiler to default i.e. gcc 2024-01-19 11:32:26 +00:00
Abhijeet Patil
59cf9cf799 also building release builds 2024-01-19 11:32:26 +00:00
Abhijeet Patil
3c143976bb testing the regression test for debug and release branch 2024-01-19 11:32:26 +00:00
Abhijeet Patil
3e62479382 ammended review comments 2024-01-19 11:32:26 +00:00
Abhijeet Patil
2a857765e5 fixing build 2024-01-19 11:32:26 +00:00
Abhijeet Patil
0c3e41e430 fixing build 2024-01-19 11:32:26 +00:00
Abhijeet Patil
97b20eee40 fixing build 2024-01-19 11:32:26 +00:00
Abhijeet Patil
ecffa25feb added debug info 2024-01-19 11:32:26 +00:00
Abhijeet Patil
e584ff5630 removed release build to test regress test 2024-01-19 11:32:26 +00:00
abhijeet
330d9a8b02 testing if santiser work
moved sanitizers in its owm workflow

merged all jobs into onme

cleaned up failing job

cleaned up failing job

running just tests

fixing build

reverting changes

fixing linter error and build error

clearning up job

added wal and extension builds

fixing build

fixing build

fixing build

added use sanitizer patch

testing if sanitiser work in main workflow

fixed format issue

fixing format issue

fixing format issue

added flags

disabled flags

enabling flags

enabling flags

added more options to flag

fixing build

fixing build

testing the regression run

added asan and usban flag for regression test

commented unit test and release build

fixing build

fix neon for sanitizers

enabled unit test

updated branch to test the fix

updated branch to test the fix

updated the commit id

fixing build

restoring the submodules to main

updated git modules and revision of commit

updated postgres 16 vendor dir

removed test
2024-01-19 11:32:26 +00:00
Cihan Demirci
d34adf46b4 do not provide disclaimer input for the deploy-prod workflow (#6360)
We've removed this input from the deploy-prod workflow.
2024-01-15 16:15:34 +00:00
Alexander Bayandin
7de829e475 test_runner: replace black with ruff format (#6268)
## Problem

`black` is slow sometimes, we can replace it with `ruff format` (a new
feature in 0.1.2 [0]), which produces pretty similar to black style [1].

On my local machine (MacBook M1 Pro 16GB):
```
# `black` on main
$ hyperfine "BLACK_CACHE_DIR=/dev/null poetry run black ."
Benchmark 1: BLACK_CACHE_DIR=/dev/null poetry run black .
  Time (mean ± σ):      3.131 s ±  0.090 s    [User: 5.194 s, System: 0.859 s]
  Range (min … max):    3.047 s …  3.354 s    10 runs
```
```
# `ruff format` on the current PR
$ hyperfine "RUFF_NO_CACHE=true poetry run ruff format"      
Benchmark 1: RUFF_NO_CACHE=true poetry run ruff format
  Time (mean ± σ):     300.7 ms ±  50.2 ms    [User: 259.5 ms, System: 76.1 ms]
  Range (min … max):   267.5 ms … 420.2 ms    10 runs
```

## Summary of changes
- Replace `black` with `ruff format` everywhere

- [0] https://docs.astral.sh/ruff/formatter/
- [1] https://docs.astral.sh/ruff/formatter/#black-compatibility
2024-01-05 15:35:07 +00:00
Abhijeet Patil
f28bdb6528 Use nextest for rust unittests (#6223)
## Problem
`cargo test` doesn't support timeouts 
or junit output format

## Summary of changes
- Add `nextest` to `build-tools` image
- Switch `cargo test` with `cargo nextest` on CI
- Set timeout
2023-12-30 13:45:31 +00:00
Arpad Müller
a21b719770 Use neon-github-ci-tests S3 bucket for remote_storage tests (#6216)
This bucket is already used by the pytests. The current bucket
github-public-dev is more meant for longer living artifacts.

slack thread:
https://neondb.slack.com/archives/C039YKBRZB4/p1703124944669009

Part of https://github.com/neondatabase/cloud/issues/8233 / #6155
2023-12-21 17:28:28 +01:00
Alexander Bayandin
1dff98be84 CI: fix build-tools image tag for PRs (#6217)
## Problem

Fix build-tools image tag calculation for PRs.
Broken in https://github.com/neondatabase/neon/pull/6195

## Summary of changes
- Use `pinned` tag instead of `$GITHUB_RUN_ID` if there's no changes in
the dockerfile (and we don't build such image)
2023-12-21 14:55:24 +00:00
Abhijeet Patil
61b6c4cf30 Build dockerfile from neon repo (#6195)
## Fixing GitHub workflow issue related to build and push images

## Summary of changes
Followup of PR#608[move docker file from build repo to neon to solve
issue some issues

The build started failing because it missed a validation in logic that
determines changes in the docker file
Also, all the dependent jobs were skipped because of the build and push
of the image job.
To address the above issue following changes were made

- we are adding validation to generate image tag even if it's a merge to
repo.
- All the dependent jobs won't skip even if the build and push image job
is skipped.
- We have moved the logic to generate a tag in the sub-workflow. As the
tag name was necessary to be passed to the sub-workflow it made sense to
abstract that away where it was needed and then store it as an output
variable so that downward dependent jobs could access the value.
- This made the dependency logic easy and we don't need complex
expressions to check the condition on which it will run
- An earlier PR was closed that tried solving a similar problem that has
some feedback and context before creating this PR
https://github.com/neondatabase/neon/pull/6175

## Checklist before requesting a review

- [x] Move the tag generation logic from the main workflow to the
sub-workflow of build and push the image
- [x] Add a condition to generate an image tag for a non-PR-related run 
- [x] remove complex if the condition from the job if conditions

---------

Co-authored-by: Alexander Bayandin <alexander@neon.tech>
Co-authored-by: Abhijeet Patil <abhijeet@neon.tech>
2023-12-21 12:46:51 +00:00
Em Sharnoff
58dbca6ce3 Bump vm-builder v0.19.0 -> v0.21.0 (#6197)
Only applicable change was neondatabase/autoscaling#650, reducing the
vector scrape interval (inside the VM) from 15 seconds to 1 second.
2023-12-19 23:48:41 +00:00
Bodobolero
73d247c464 Analyze clickbench performance with explain plans and pg_stat_statements (#6161)
## Problem

To understand differences in performance between neon, aurora and rds we
want to collect explain analyze plans and pg_stat_statements for
selected benchmarking runs

## Summary of changes

Add workflow input options to collect explain and pg_stat_statements for
benchmarking workflow

Co-authored-by: BodoBolero <bodobolero@gmail.com>
2023-12-19 11:44:25 +00:00
Alexander Bayandin
9bdc25f0af Revert "CI: build build-tools image" (#6156)
It turns out the issue with skipped jobs is not so trivial (because
Github checks jobs transitively), a possible workaround with `if:
always() && contains(fromJSON('["success", "skipped"]'),
needs.build-buildtools-image.result)` will tangle the workflow really
bad. We'll need to come up with a better solution.

To unblock the main I'm going to revert
https://github.com/neondatabase/neon/pull/6082.
2023-12-16 12:32:00 +00:00