Commit graph

25 commits

Author SHA1 Message Date
jayashrig158
542b9cc246 add ruby test 3.1 in verify pipeline (#5892)
* add ruby test 3.1 in verify pipeline

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* updating rubygem to 3.3.3

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* Test fixture plugin files for ABI 3.1.0

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Use kwargs to match new calling style for ERB in ruby 2.7 and 3.0

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Allow Date and Time data types, needed for waivers, since safe load is now the default for YAML

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Use Time.parse, not Time.new since the rules tightened for what you can pass the constructor for waiver dates

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add ruby platform debug message to test parallel output

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Conditionalize permitted_classes in inputs yaml_load for <= 3.1.x only

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* In ruby 3.1.0 net/pop3 is no more a default gem and that will require us to add it in Gemfile so trying with the byebug gem which we are bundling already

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* CFINSPEC-166 Updated url fetcher to handle Net::OpenTimeout Exception on Windows

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-14 16:07:08 +05:30
Clinton Wolfe
d9e11b0d86 Delete vendor (installed gems) dir before running sonarscanner
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-27 19:14:30 -05:00
Clinton Wolfe
08362f0811 Set file exclusions and project ID in properties file
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-24 10:48:04 -05:00
Clinton Wolfe
4d04d525e1 Move vault fetch to happen early to avoid vault token expiry
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-17 14:15:50 -05:00
Clinton Wolfe
2d762f40ab Setup sonarscanner
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-17 13:31:52 -05:00
Vasu1105
fa56a87401 expeditor update lint to ruby 3
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:22:32 +05:30
jayashri garud
aa72a9be6b Replace deprecated --without flag with bundle config
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
2021-09-02 16:17:15 +05:30
Ryan Davis
8327e35473 Latest version of rubygems is starting to blow up because of bundler executable overwrite warnings
Sticking to 3.0.6 for now.
2019-12-16 13:17:14 -08:00
Ryan Davis
c3efba6b12 Fixed against broken master
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-10 18:26:32 -08:00
Miah Johnson
66fbe4d907
Merge pull request #4776 from inspec/mj/debug
something wonky going on with /tmp, lets debug
2019-12-10 13:41:46 -08:00
Miah Johnson
d58c67acd3 lets just look at /tmp
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-12-10 13:35:45 -08:00
Miah Johnson
878a5ff880 something wonky going on with /tmp, lets debug
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-12-10 13:19:25 -08:00
Ryan Davis
e5318f3564 Refactor BK verify script so we can reuse bundle caching across projects easily.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-05 12:17:57 -08:00
Ryan Davis
933c95e27f Split lint to its own step and let all the others just run tests.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-04 12:25:29 -08:00
Ryan Davis
14e835e4cc Attempt to fix bundle caching.
Unfortunately, I can only test this via commits to BK...

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 15:36:06 -08:00
Ryan Davis
e1966973cc Added SKIP_BUNDLE_CACHE var to .expeditor/buildkite/verify.sh
This lets me test our docker setup locally much quicker as I don't
have to time out on the aws s3 push/pull steps.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 15:00:21 -08:00
Ryan Davis
d6843db397 Fix false positives on bundle caching check in buildkite.
+ This adds RESET_BUNDLE_CACHE so we can forcibly reset.
+ Now computes the sha against the Gemfile.lock.
+ Other minor fixes as pointed out by shellcheck.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-31 16:53:20 -07:00
Ryan Davis
3cc4b4d0b4 Add buildkite caching to our verify pipeline.
I'm not sure why we're doing this ourselves instead of using
buildkite's own artifact caching, but that's fine.

This speeds up the "bundle install" phase from ~3m to ~20s.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 17:44:41 -07:00
Ryan Davis
c93d61da1c Add a non-root user for testing on BK.
Unfortunately, we have a lot of failing tests when we run as a
non-root user and the files are owned by root. We can't chmod the
checkout to the non-root user as it is a shared mount in docker and
that's not allowed to the outside world.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 17:40:41 -07:00
Ryan Davis
6b72ca2655
Merge pull request #4480 from inspec/zenspider/isolate
Added test:isolate task that runs tests isolated but in parallel.
2019-09-16 17:01:54 -07:00
Ryan Davis
fe97c3a4c3 Added new pipeline to check all tests work in isolation.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-13 17:14:32 -07:00
Ryan Davis
8567d8641e Update rubygems and use gem env for system details.
Travis used to update rubygems to the latest version before doing
anything else. We don't on BK and I just found a rubygems specific bug
that would have been exposed by this.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-11 16:20:19 -07:00
Ryan Davis
f5d0d93121 This should get buildkite green for now.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-07-15 20:34:59 -07:00
Miah Johnson
faec33ab18 chmod 755 verify.sh
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-07-10 12:41:15 -07:00
Miah Johnson
b0430b6ade Lets put scripts under buildkite directory
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-07-10 12:34:25 -07:00
Renamed from .expeditor/verify.sh (Browse further)