Skip to content
Snippets Groups Projects
  1. Jul 22, 2024
  2. Apr 10, 2023
    • Georgy Moiseev's avatar
      lua: bump checks module · a8bc6312
      Georgy Moiseev authored
      Rework "running tests with built-in package" assert since now checks is
      a callable table package with subpackages instead of a single function.
      
      NO_DOC=No tagged version since checks initial embedding
      NO_CHANGELOG=No tagged version since checks initial embedding
      a8bc6312
  3. Mar 24, 2023
    • Georgy Moiseev's avatar
      lua: embed metrics module · 82ebbb35
      Georgy Moiseev authored
      tarantool/metrics [1] is a lua module (distributed as a separate rock)
      for metrics aggregation and export. After this patch, it will be a part
      of the tarantool binary.
      
      1. https://github.com/tarantool/metrics
      
      Part of #7725
      
      @TarantoolBot document
      Title: embedded metrics
      
      Now tarantool has metrics module on its board. metrics is a lua module
      previously distributed as a separate rock which is widely used by
      tarantool applications. Metrics has its own documentation section:
      https://www.tarantool.io/en/doc/latest/book/monitoring/ , but it doesn't
      yet mention anything about the embedding.
      82ebbb35
  4. Feb 14, 2023
    • Georgy Moiseev's avatar
      lua: embed checks module · 5b68b6d6
      Georgy Moiseev authored
      tarantool/checks [1] is a lua module (distributed as a separate rock)
      for function input validation. After this patch, it will a part of
      the tarantool binary.
      
      1. https://github.com/tarantool/checks
      
      Closes #7726
      Needed for #7725
      
      @TarantoolBot document
      Title: embedded checks
      
      Now tarantool has checks module on its board. checks is a lua module
      previously distributed as a separate rock which is widely used by
      many other tarantool lua modules (like cartridge, metrics and crud) and
      tarantool applications. checks has its own repo with README covering its
      API usage: https://github.com/tarantool/checks/blob/master/README.md .
      5b68b6d6
  5. Feb 06, 2023
    • Oleg Chaplashkin's avatar
      test: fix import and usage luatest module · 98dd8e69
      Oleg Chaplashkin authored
      After adding the autorequiring luatest [1,2], there is no need to use
      the following approach now:
      
      ```
      local t = require('luatest')
      local g = t.group()
      
      server:exec(function()
          local t = require('luatest') -- duplicate
          t.assert(...)
      end)
      ```
      
      Modern approach looks like:
      
      ```
      local t = require('luatest')
      local g = t.group()
      
      -- `t` already available in the remote server
      server:exec(function() t.assert(...) end)
      
      -- also it works with any variable
      local my_custom_t = require('luatest')
      
      server:exec(function()
          my_custom_t.assert(...) -- already available
      end)
      ```
      
      [1] tarantool/luatest#277
      [2] tarantool/luatest#289
      
      Part of tarantool/luatest#233
      
      NO_DOC=test fix
      NO_TEST=test fix
      NO_CHANGELOG=test fix
      98dd8e69
  6. Nov 02, 2022
    • Timur Safin's avatar
      debugger: provide access to box lua sources · f32808f9
      Timur Safin authored
      tarantool.debug.getsources() used to provide
      lua sources only for libserver lua modules,
      and was not providing sources for src/box/lua/*
      modules.
      
      Now this code works:
      ```lua
      local tnt = require 'tarantool'
      local code1 = tnt.debug.getsources('box/session')
      local code1 = tnt.debug.getsources('@builtin/box/session..lua')
      ```
      
      Closes #7839
      
      NO_DOC=bugfix
      NO_CHANGELOG=later
      f32808f9
  7. Oct 19, 2022
    • Timur Safin's avatar
      debugger: retrieve @builtin/%s.lua sources · e608a737
      Timur Safin authored
      Extend Tarantool kernel internal API with the call
      `tarantool.debug.getsources()` to allow to retrieve sources
      of a Tarantool `builtin/*` modules to show them in the
      debugger shell.
      
      Created simple luatest script for checking consistency
      of a values returned from `require 'tarantool'.debug.getsources()`
      and an ctual script file content we expected to receive.
      
      NO_DOC=see future commit
      NO_CHANGELOG=see future commit
      e608a737
Loading