Граф коммитов

49 Коммитов

Автор SHA1 Сообщение Дата
Cornelius Riemenschneider 1bd7aef1b2 Fix search paths.
It turns out we still need to supply this option, so `codeql` goes looking
for the extractor paths specified in the `codeql-workspace.yml` file.
2024-06-03 16:33:17 +02:00
Cornelius Riemenschneider 7b72018e56 Swift: Unified handling of in-tree extractor packs. 2024-06-03 16:06:08 +02:00
Paolo Tranquilli 25ab1a934d Merge branch 'main' into redsun82/bazel-fix 2024-05-31 14:03:20 +02:00
Paolo Tranquilli 959aa3515c Swift: remove integration test running in CI
They are being triggered by QLucie now, so there's no need to also
trigger them in the `codeql` specific CI.
2024-05-31 12:59:38 +02:00
Paolo Tranquilli bfc37fddff Bazel: move `--build_tests_only` from swift action to `.bazelrc` 2024-05-31 12:35:52 +02:00
Paolo Tranquilli b3e29bd8b5 Bazel: add `--build_tests_only` in swift CI 2024-05-31 12:13:26 +02:00
Paolo Tranquilli 2606d3f6d1 Reapply "Bazel: add codeql specific packaging library"
This reverts commit 31d6b9be4d.
2024-05-29 15:46:29 +02:00
Paolo Tranquilli 31d6b9be4d
Revert "Bazel: add codeql specific packaging library" 2024-05-29 15:27:10 +02:00
Paolo Tranquilli ea01ae6534 Swift: fix integration test log upload 2024-05-24 14:29:22 +02:00
Paolo Tranquilli e3d676f91b CI: apply tentative `setup-swift` fix 2024-04-09 09:37:21 +02:00
Paolo Tranquilli 762b4ce42e Swift: prepare integration tests for internal running
This harmonizes Swift integration tests with the rest of the repository,
to prepare for the internal integration test runner to run them. The
stripped down runner is kept compatible, so that current CI can still
use it now. Maybe it will be kept for developer use.

This PR includes:
* moving the integration tests inside `ql`
* editing `qlpack.yml` so that the internal runner can use it
* change database directory to be `test-db` rather than `db`
2024-03-25 10:17:55 +01:00
Alex Denisov 526f6cd5b5 Swift: skip print_unextracted 2023-06-14 16:17:44 +02:00
Alex Denisov 2daa001109 Swift: setup Swift 5.8 unconditionally 2023-06-14 16:17:44 +02:00
Paolo Tranquilli 396b57696c Swift: minimal 5.8 compatibility 2023-06-14 16:17:44 +02:00
Paolo Tranquilli 85fdcd9912 Swift: move consistency queries 2023-05-24 18:10:08 +02:00
Paolo Tranquilli e513af1bcf Swift: add CFG and PrintAst consistency queries, enabling them in CI 2023-05-24 18:10:08 +02:00
Alexandre Boulgakov 8db945a11e Swift: Use `...` to find and run all Bazel tests instead of having to list them. 2023-05-15 20:51:31 +01:00
Paolo Tranquilli 5cb3279816
Merge pull request #12319 from github/redsun82/swift-codegen
Codegen: make Swift codegen language agnostic
2023-02-27 14:06:20 +01:00
Paolo Tranquilli cdd4e8021b Move `swift/codegen` to `misc/codegen` 2023-02-27 09:46:48 +01:00
Paolo Tranquilli c4c9fd72bb Swift: update to 5.7.3
No changes to the Swift frontend library headers, so no changes to the
extractor seem to be required.
2023-02-17 10:03:52 +01:00
erik-krogh b4dddc07f1
use the new actions/cache@v3 instead of my own fork 2022-12-21 21:10:55 +01:00
AlexDenisov ef9b503f69
Merge pull request #11559 from github/redsun82/swift-integration-test-dbs
Swift: always upload integration test logs
2022-12-05 12:41:45 +01:00
Tom Hvitved c2d843f96b CI: Change `--ram` value from 52G to 50G in `codeql` tests 2022-12-05 09:35:56 +01:00
Paolo Tranquilli a0d7043615 Swift: always upload integration test logs
This way we can get logs also in case we cancelled the job due to a test
hanging indefinitely (which is happening from time to time to the Xcode
test).
2022-12-05 08:32:36 +01:00
Paolo Tranquilli cd700dfe11 Swift: upload integration test logs also on failure 2022-12-02 12:20:14 +01:00
Paolo Tranquilli c374a5301e Swift: upload test DBs as artifacts for integration tests 2022-12-01 17:30:25 +01:00
Alex Denisov ad663533c7 Swift: bump setup Swift action 2022-11-30 12:40:42 +01:00
Paolo Tranquilli d165c4963d CI: add workaround for nested composite actions issue
Because of https://github.com/actions/runner/issues/2009 the deeply
nested action cache was failing to save the cache in the post run phase.

For the moment we just avoid the nesting with a copy-pasted action
snippet.
2022-11-30 10:47:29 +01:00
Paolo Tranquilli 47702b9e14 Swift: tentative fix for the bazel cache 2022-11-29 18:16:33 +01:00
erik-krogh e5f1fe86e4
don't crash on non-existing cache in swift 2022-11-29 15:02:08 +01:00
Paolo Tranquilli 52a117aaf5 Swift: optimize bazel caching in CI
Previously the cache would become stale. Now the same incremental
cache mechanism in use for the QL cache is adopted (and factored out
in a separate action).

Namely, pushes on main will populate the cache using the commit hash as
key, while PRs will try to use the cache of their merge base, read-only.

To avoid the cache growing out of control, a simple cache eviction is
done on pushes.
2022-11-29 11:43:54 +01:00
Paolo Tranquilli 9a25de3ef1 Swift: revert `swift-actions/setup-swift` 2022-11-29 11:17:08 +01:00
erik-krogh 751ffbd9c8
use different keys for different caches 2022-11-28 14:44:07 +01:00
Paolo Tranquilli 8df7d465cb Swift: cache more aggressively in CI
* the QL compilation cache action is used for ql and integration tests
* all caches (Bazel and QL) are populated on push
2022-11-25 08:52:46 +01:00
Paolo Tranquilli 6dcdf8c71f Swift: fix bazel setup 2022-11-18 17:22:44 +01:00
Paolo Tranquilli aeb7b0d050 Swift: remove `ModifiedStubMarkedAsGeneratedError` 2022-11-18 17:13:12 +01:00
Alex Denisov d49015a7e6 Swift: infrastructure for upgrade/downgrade scripts 2022-11-11 15:51:23 +01:00
Paolo Tranquilli d325a42890 Swift: print unextracted entities 2022-11-08 15:38:53 +01:00
Paolo Tranquilli 2c517a3237 Swift: fix codegen test invocation 2022-11-02 14:48:20 +01:00
Paolo Tranquilli 99764450b3 Swift: remove redundant test run 2022-11-02 14:44:33 +01:00
Paolo Tranquilli bc65d358f2 Swift: fix wrongly exchanged action bodies 2022-11-02 14:43:57 +01:00
Paolo Tranquilli 6ce6d9dc37 Swift: fix quick tests action, again 2022-11-02 14:42:14 +01:00
Paolo Tranquilli 08909e5c69 Swift: fix quick tests action 2022-11-02 14:38:07 +01:00
Paolo Tranquilli e6d4685109 Swift: split quick tests in separate action
Also, make the quick test list explicit in the action code, so we can
catch an inadvertant test deletion.
2022-11-02 14:32:45 +01:00
Paolo Tranquilli 57a616262f Swift: fix run cwd 2022-11-02 06:27:09 +01:00
Paolo Tranquilli 0d9ecfc4de Swift: move small bazel tests to build action 2022-11-02 06:23:44 +01:00
Paolo Tranquilli 6e370beb92 Swift: turn on macOS QL tests with slicing 2022-11-02 06:07:55 +01:00
Paolo Tranquilli 59284739dd Swift: reenable ql tests on macos 2022-10-31 17:07:56 +01:00
Paolo Tranquilli 003866621f Swift: rework workflows
* A unique workflow file has been created merging all `swift-*.yml`
  workflows
* Change filtering at job level was added using [dorny/paths-filter][1]
* only one build of the extractor is made, and then shared via cache
  (not as an artifact because of [this longstading issue][2])
* integration tests are now run on on macOS
* qltests are not run any more on macOS to cut on feedback time
* autobuilder tests were moved to the macOS build step to avoid loading
  bazel twice

[1]: https://github.com/dorny/paths-filter#examples
[2]: https://github.com/actions/upload-artifact/issues/38
2022-10-31 16:59:11 +01:00